/* ВЁРСТКА — paper, ink, proof orange */

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url("../fonts/golos-text-cyrillic-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url("../fonts/golos-text-cyrillic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url("../fonts/golos-text-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url("../fonts/golos-text-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../fonts/ibm-plex-mono-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("../fonts/ibm-plex-mono-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f2ede1;
  --paper-raised: #fbf7ec;
  --paper-deep: #e8e0d0;
  --ink: #17140f;
  --ink-soft: #625b4e;
  --ink-faint: #918878;
  --line: #d5ccba;
  --line-strong: #b9ae9a;
  --accent: #b8430f;
  --accent-dark: #94340a;
  --accent-wash: rgba(184, 67, 15, 0.07);
  --error: #9e2418;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 10px;
  --page: 1320px;
  --gutter: 40px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(23, 20, 15, 0.055) 1px, transparent 0),
    radial-gradient(circle at 1px 1px, rgba(184, 67, 15, 0.075) 1px, transparent 0);
  background-size: 22px 22px, 37px 37px;
  background-position: 0 0, 11px 7px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  color: var(--paper-raised);
  background: var(--accent);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* crop marks — the page as a printed sheet */
.crop-marks {
  position: fixed;
  inset: 16px;
  z-index: 0;
  pointer-events: none;
}
.crop-marks i {
  position: absolute;
  width: 17px;
  height: 17px;
  border-color: rgba(23, 20, 15, 0.24);
  border-style: solid;
  border-width: 0;
}
.crop-marks i:nth-child(1) {
  top: 0;
  left: 0;
  border-top-width: 1px;
  border-left-width: 1px;
}
.crop-marks i:nth-child(2) {
  top: 0;
  right: 0;
  border-top-width: 1px;
  border-right-width: 1px;
}
.crop-marks i:nth-child(3) {
  bottom: 0;
  left: 0;
  border-bottom-width: 1px;
  border-left-width: 1px;
}
.crop-marks i:nth-child(4) {
  bottom: 0;
  right: 0;
  border-bottom-width: 1px;
  border-right-width: 1px;
}

/* header */
.site-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 22px var(--gutter);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.wordmark__name {
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.015em;
}
.wordmark__tag {
  padding-left: 11px;
  border-left: 1px solid var(--line-strong);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.13em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  min-width: 0;
}
.header-note {
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.11em;
  white-space: nowrap;
}
.header-link {
  padding-bottom: 3px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: color 160ms ease, border-color 160ms ease;
}
.header-link span {
  display: inline-block;
  margin-left: 2px;
  transition: transform 160ms ease;
}
.header-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.header-link:hover span {
  transform: translate(2px, -2px);
}

/* page */
.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(380px, 0.82fr);
  gap: clamp(36px, 5vw, 76px);
  align-items: start;
  padding: clamp(48px, 6vw, 78px) 0 58px;
}

.hero__copy {
  min-width: 0;
  padding-top: 4px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow__mark {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  background: var(--accent);
}

.display {
  max-width: 12ch;
  margin: 20px 0 24px;
  font-size: clamp(54px, 7.2vw, 108px);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.display__accent {
  color: var(--accent);
}

.lede {
  max-width: 30em;
  margin: 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.52;
  text-wrap: pretty;
}
.lede strong {
  color: var(--ink);
  font-weight: 600;
}

.specs {
  max-width: 600px;
  margin-top: 38px;
  border-top: 1px solid var(--line-strong);
}
.spec {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 9px 0 8px;
  border-bottom: 1px solid var(--line);
}
.spec__label {
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}
.spec__value {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

.note {
  max-width: 600px;
  margin-top: 22px;
}
.note summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
  transition: color 160ms ease;
}
.note summary::-webkit-details-marker {
  display: none;
}
.note summary::before {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border: 1px solid var(--line-strong);
  font-size: 10px;
  line-height: 1;
}
.note[open] summary::before {
  content: "−";
}
.note summary:hover {
  color: var(--accent);
}
.note p {
  max-width: 58ch;
  margin: 10px 0 0;
  padding-left: 21px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.55;
}
.note p + p {
  margin-top: 7px;
}

/* tool card */
.tool {
  align-self: start;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-raised);
  box-shadow:
    0 24px 50px -32px rgba(23, 20, 15, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.75) inset;
}

.tool__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 17px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1;
  letter-spacing: 0.1em;
}
.tool__index {
  color: var(--accent);
  font-weight: 500;
}
.tool__title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tool__status {
  color: var(--ink-faint);
  transition: color 160ms ease;
}
.tool__status::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 6px;
  background: currentColor;
  vertical-align: 1px;
}
.tool__status[data-state="busy"] {
  color: var(--accent);
}
.tool__status[data-state="done"] {
  color: #3c6b3c;
}
.tool__status[data-state="error"] {
  color: var(--error);
}

.tool__body {
  padding: 17px;
}

/* drop zone */
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 320px;
  padding: 28px 22px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 7px;
  background: transparent;
  text-align: center;
  transition: border-color 180ms ease, background-color 180ms ease;
}
.dropzone:hover,
.dropzone.is-dragover {
  border-color: var(--accent);
  background: var(--accent-wash);
}
.dropzone__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 15px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 17px;
  line-height: 1;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}
.dropzone:hover .dropzone__icon,
.dropzone.is-dragover .dropzone__icon {
  color: var(--paper-raised);
  background: var(--ink);
  transform: translateY(2px);
}
.dropzone__title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.dropzone__sub {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 12px;
}
.dropzone__formats {
  width: 100%;
  margin-top: 20px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.6;
  letter-spacing: 0.07em;
}

.privacy {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 13px 2px 0;
  color: var(--ink-faint);
  font-size: 10.5px;
  line-height: 1.45;
}
.privacy__mark {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  margin-top: 5px;
  background: var(--accent);
}

/* selected file */
#view-file {
  animation: rise 220ms ease both;
}

.filechip {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--ink);
  border-radius: 5px;
  background: var(--paper);
}
.filechip__format {
  flex: 0 0 auto;
  padding: 3px 5px;
  border-radius: 2px;
  color: var(--paper-raised);
  background: var(--ink);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.06em;
}
.filechip__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.filechip__size {
  flex: 0 0 auto;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 8px;
}
.filechip__remove {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--ink-soft);
  background: transparent;
  font-size: 17px;
  line-height: 1;
  transition: color 140ms ease, background-color 140ms ease;
}
.filechip__remove:hover {
  color: var(--paper-raised);
  background: var(--accent);
}

.fields {
  display: grid;
  gap: 13px;
  margin-top: 17px;
}
.field {
  display: block;
  min-width: 0;
}
.field__label {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.09em;
}
.field input,
.field select {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  font-size: 15px;
  line-height: 1.35;
}
.field input {
  padding: 5px 0 7px;
}
.field input::placeholder {
  color: var(--ink-faint);
  opacity: 0.75;
}
.field input:focus {
  border-color: var(--accent);
  outline: 0;
  box-shadow: 0 1px 0 var(--accent);
}
.field select {
  padding: 6px 22px 7px 0;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 7px) 55%, calc(100% - 2px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}
.field select:focus {
  border-color: var(--accent);
  outline: 0;
  box-shadow: 0 1px 0 var(--accent);
}

.settings {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
}
.field--select {
  flex: 1;
  min-width: 0;
}
.settings__hint {
  flex: 0 0 auto;
  margin: 0 0 8px;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.35;
  text-align: right;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 17px;
  border: 1px solid var(--ink);
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.btn span {
  transition: transform 160ms ease;
}
.btn:hover span {
  transform: translate(2px, -1px);
}
.btn--primary {
  color: #fff9ef;
  background: var(--accent);
  border-color: var(--accent);
}
.btn--primary:hover {
  background: var(--ink);
  border-color: var(--ink);
}
.btn--primary:active {
  transform: translateY(1px);
}
.btn--ghost {
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.btn--inline {
  width: auto;
  align-self: flex-start;
  margin-top: 6px;
  padding: 0 18px;
}
.btn:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}
#convert {
  width: 100%;
  margin-top: 18px;
}

.form-note {
  margin: 9px 0 0;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.45;
  letter-spacing: 0.02em;
  text-align: center;
}

/* progress */
.progress {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 330px;
  padding: 12px 3px;
}
.progress__stage {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.progress__line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 7px;
}
.progress__percent {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
}
.progress__detail {
  overflow: hidden;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.4;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.progress__track {
  height: 5px;
  margin-top: 14px;
  overflow: hidden;
  background: var(--paper-deep);
}
.progress__bar {
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width 220ms ease;
}

/* result */
#view-result {
  animation: rise 260ms ease both;
}
.result {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.result__cover {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--paper-deep);
  box-shadow: 5px 5px 0 var(--line);
}
.result__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.result__meta {
  min-width: 0;
  padding-top: 2px;
}
.result__stamp {
  margin: 0 0 8px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.12em;
}
.result__stamp::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 6px;
  background: currentColor;
  vertical-align: 1px;
}
.result__title {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.result__author {
  overflow: hidden;
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.result__stats {
  margin: 9px 0 0;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.5;
  letter-spacing: 0.03em;
}

.pages {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: end;
  margin-top: 22px;
  padding-top: 15px;
  border-top: 1px solid var(--ink);
}
.pages__number {
  color: var(--accent);
  font-size: clamp(64px, 7vw, 88px);
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: -0.065em;
  font-variant-numeric: tabular-nums;
}
.pages__label {
  padding-bottom: 2px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.45;
  letter-spacing: 0.08em;
}
.pages__note {
  display: block;
  color: var(--ink-faint);
  font-size: 7.5px;
  letter-spacing: 0.05em;
}
.ruler {
  grid-column: 1 / -1;
  height: 17px;
  margin-top: 3px;
  border-bottom: 1px solid var(--ink);
  background-image:
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 10%),
    repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 2.5%);
  background-position: bottom left, bottom left;
  background-repeat: repeat-x;
  background-size: 100% 17px, 100% 8px;
}

.actions {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}
.actions .btn {
  width: 100%;
}

.steps {
  display: grid;
  gap: 5px;
  margin: 16px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.4;
}
.steps li {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.steps span {
  width: 16px;
  flex: 0 0 auto;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 8px;
}

.linkbtn {
  margin-top: 14px;
  padding: 0;
  border: 0;
  color: var(--ink-faint);
  background: transparent;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.4;
  letter-spacing: 0.07em;
  text-align: left;
  transition: color 160ms ease;
}
.linkbtn:hover {
  color: var(--accent);
}

/* error */
#view-error {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 300px;
  animation: rise 220ms ease both;
}
.error__label {
  margin: 0 0 8px;
  color: var(--error);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
}
.error__text {
  max-width: 36ch;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  text-wrap: pretty;
}

.tool__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 17px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 7.5px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* footer */
.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 20px var(--gutter) 26px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 7.5px;
  line-height: 1.6;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.footer__right {
  display: flex;
  align-items: baseline;
  gap: 22px;
}
.footer__right a {
  color: var(--ink-soft);
  transition: color 160ms ease;
}
.footer__right a:hover {
  color: var(--accent);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(350px, 0.9fr);
    gap: 38px;
  }
  .display {
    font-size: clamp(54px, 7.4vw, 92px);
  }
}

@media (max-width: 900px) {
  :root {
    --gutter: 24px;
  }
  .crop-marks {
    display: none;
  }
  .header-note {
    display: none;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding-top: 48px;
  }
  .hero__copy {
    max-width: 720px;
  }
  .display {
    max-width: 11ch;
    font-size: clamp(56px, 12vw, 100px);
  }
  .tool {
    width: 100%;
    max-width: 620px;
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 16px;
  }
  .site-header {
    padding-top: 16px;
    padding-bottom: 16px;
    gap: 14px;
  }
  .wordmark {
    gap: 8px;
  }
  .wordmark__name {
    font-size: 17px;
  }
  .wordmark__tag {
    padding-left: 8px;
    font-size: 8px;
  }
  .header-link {
    font-size: 8.5px;
  }
  .hero {
    gap: 30px;
    padding-top: 36px;
    padding-bottom: 40px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 0.08em;
  }
  .display {
    margin-top: 16px;
    font-size: clamp(46px, 15.2vw, 76px);
  }
  .lede {
    font-size: 16px;
  }
  .specs {
    margin-top: 28px;
  }
  .spec {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 9px;
  }
  .spec__value {
    font-size: 8px;
  }
  .note p {
    padding-left: 0;
  }
  .tool__body {
    padding: 13px;
  }
  .dropzone {
    min-height: 230px;
    padding: 24px 16px 18px;
  }
  .dropzone__title {
    font-size: 16px;
  }
  .settings {
    display: block;
  }
  .settings__hint {
    margin: 7px 0 0;
    text-align: left;
  }
  .result {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 13px;
  }
  .result__title {
    font-size: 19px;
  }
  .pages__number {
    font-size: 64px;
  }
  .progress {
    min-height: 300px;
  }
  .site-footer {
    display: block;
    padding-top: 16px;
    padding-bottom: 20px;
  }
  .footer__right {
    justify-content: space-between;
    margin-top: 7px;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
