:root {
  color-scheme: light;
  --ink: #0b0c0f;
  --ink-soft: #17191e;
  --paper: #f4f0e7;
  --paper-deep: #e8e1d4;
  --white: #fffef9;
  --line: rgba(11, 12, 15, 0.16);
  --line-dark: rgba(255, 255, 255, 0.18);
  --muted: #686962;
  --acid: #d8ff42;
  --acid-deep: #bde52c;
  --danger: #a93232;
  --shadow: 0 30px 80px rgba(21, 19, 14, 0.12);
  --radius: 18px;
  --shell: min(1180px, calc(100% - 44px));
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  min-width: 280px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  color: var(--ink);
  background: var(--acid);
  font-weight: 800;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 5;
  color: #fff;
  background: var(--ink);
}

.site-header__inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line-dark);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: -0.025em;
}

.brand > span {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--ink);
  background: var(--acid);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--acid);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.55fr);
  gap: 7vw;
  align-items: end;
  padding-block: clamp(64px, 8vw, 112px) clamp(70px, 9vw, 120px);
  color: #fff;
  background: var(--ink);
}

.hero::before {
  position: absolute;
  inset: 76px 0 auto;
  height: clamp(360px, 52vw, 690px);
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 80% 18%, rgba(216, 255, 66, 0.1), transparent 23%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: auto, 54px 54px, 54px 54px;
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}

.hero__copy,
.hero-proof {
  position: relative;
  z-index: 1;
}

.eyebrow,
.step-label {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 850;
  letter-spacing: 0.19em;
  line-height: 1.4;
}

.eyebrow {
  color: var(--acid);
}

.hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(3.4rem, 7.3vw, 7.2rem);
  font-weight: 760;
  letter-spacing: -0.075em;
  line-height: 0.87;
}

.hero h1 em {
  color: var(--acid);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.hero__lede {
  max-width: 720px;
  margin: 33px 0 0;
  color: rgba(255, 255, 255, 0.67);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.65;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 29px 0 0;
  padding: 0;
  list-style: none;
}

.trust-list li {
  padding: 9px 13px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
  font-weight: 700;
}

.hero-proof {
  border-top: 1px solid var(--line-dark);
}

.hero-proof > div {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 4px 10px;
  padding: 21px 0;
  border-bottom: 1px solid var(--line-dark);
}

.hero-proof span {
  grid-row: span 2;
  color: var(--acid);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-style: italic;
}

.hero-proof strong {
  font-size: 0.94rem;
  letter-spacing: -0.01em;
}

.hero-proof small {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.75rem;
}

.hero-proof > p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.75rem;
  line-height: 1.55;
}

main {
  overflow: hidden;
  background: linear-gradient(var(--ink) 0 1px, var(--paper) 1px);
}

.workbench {
  padding-block: clamp(60px, 8vw, 96px);
}

.workbench__head {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: end;
  margin-bottom: 28px;
}

.workbench__head h2,
.method h2 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.workbench__head > p {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.drop-zone {
  min-height: 156px;
  display: grid;
  grid-template-columns: 78px 1fr auto;
  gap: 22px;
  align-items: center;
  margin-bottom: 18px;
  padding: 28px 32px;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  color: #fff;
  background: var(--ink-soft);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.drop-zone:hover,
.drop-zone:focus-within,
.drop-zone[data-dragover="true"] {
  border-color: var(--acid);
  background: #20231b;
  transform: translateY(-2px);
}

.drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.drop-zone__icon {
  position: relative;
  width: 70px;
  height: 70px;
  display: block;
}

.drop-zone__icon i {
  position: absolute;
  width: 43px;
  height: 55px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 5px;
  background: #262930;
  transform-origin: bottom center;
}

.drop-zone__icon i:nth-child(1) {
  left: 4px;
  top: 9px;
  transform: rotate(-10deg);
}

.drop-zone__icon i:nth-child(2) {
  left: 14px;
  top: 5px;
  transform: rotate(1deg);
}

.drop-zone__icon i:nth-child(3) {
  left: 24px;
  top: 9px;
  border-color: var(--acid);
  background: linear-gradient(145deg, #32362a, #151714);
  transform: rotate(10deg);
}

.drop-zone__copy {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.drop-zone__copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.drop-zone__copy small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.82rem;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 11px;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.035em;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease, opacity 150ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.button--light {
  color: var(--ink);
  background: var(--paper);
}

.button--dark {
  color: #fff;
  background: var(--ink);
}

.button--accent {
  min-width: 200px;
  color: var(--ink);
  background: var(--acid);
}

.button--accent:hover:not(:disabled) {
  background: var(--acid-deep);
}

.button--quiet {
  border-color: var(--line);
  background: transparent;
}

.button--danger {
  color: var(--danger);
}

.file-errors {
  margin-bottom: 18px;
  padding: 17px 19px;
  border: 1px solid rgba(169, 50, 50, 0.24);
  border-radius: 13px;
  color: #692323;
  background: #fff0eb;
}

.file-errors__head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.file-errors__head button {
  padding: 4px 0;
  border: 0;
  color: inherit;
  background: none;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
}

.file-errors ul {
  margin: 12px 0 0;
  padding-left: 20px;
  font-size: 0.8rem;
  line-height: 1.55;
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(290px, 0.38fr) minmax(0, 0.62fr);
  gap: 18px;
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 254, 249, 0.76);
  box-shadow: 0 16px 48px rgba(17, 16, 13, 0.055);
}

.settings-panel,
.pages-panel {
  padding: 24px;
}

.settings-panel {
  position: sticky;
  top: 18px;
}

.panel__head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  margin-bottom: 24px;
}

.panel__head h3,
.export-panel h3,
.result-panel h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.local-pill {
  flex: none;
  padding: 7px 9px;
  border-radius: 999px;
  color: #354205;
  background: rgba(216, 255, 66, 0.48);
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.field,
.control-group {
  display: grid;
  gap: 9px;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}

.field > span:first-child,
.control-group legend {
  margin: 0;
  color: #262722;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.field small {
  color: var(--muted);
  font-size: 0.69rem;
  line-height: 1.45;
}

select,
.matte-field input[type="text"] {
  width: 100%;
  min-height: 45px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--white);
  padding: 0 12px;
  outline: none;
}

select:focus-visible,
.matte-field input[type="text"]:focus-visible {
  border-color: #81991f;
  box-shadow: 0 0 0 3px rgba(216, 255, 66, 0.38);
}

.segmented {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.segmented legend {
  grid-column: 1 / -1;
}

.segmented button {
  min-height: 44px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  font-size: 0.7rem;
  font-weight: 750;
  cursor: pointer;
}

.segmented button[aria-pressed="true"] {
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
}

.margin-options {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.margin-options legend {
  grid-column: 1 / -1;
}

.margin-options label {
  position: relative;
}

.margin-options input {
  position: absolute;
  opacity: 0;
}

.margin-options span {
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 0.68rem;
  font-weight: 800;
  cursor: pointer;
}

.margin-options input:checked + span {
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
}

.margin-options input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(216, 255, 66, 0.5);
}

.colour-control {
  display: grid;
  grid-template-columns: 47px 1fr;
  gap: 8px;
}

.matte-field input[type="color"] {
  width: 47px;
  height: 45px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
}

.quality-field input[type="range"] {
  width: 100%;
  accent-color: var(--ink);
}

.settings-note {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  padding: 14px;
  border-radius: 12px;
  color: #41423c;
  background: var(--paper);
}

.settings-note > span {
  font-size: 1.25rem;
}

.settings-note p {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.5;
}

.panel__head--pages {
  align-items: center;
}

.page-count {
  min-width: 58px;
  display: grid;
  justify-items: end;
}

.page-count strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.1rem;
  font-weight: 400;
  line-height: 0.85;
}

.page-count span {
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 800;
  text-transform: uppercase;
}

.empty-state {
  min-height: 370px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 40px 24px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  text-align: center;
}

.empty-state > span {
  color: rgba(11, 12, 15, 0.12);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 6rem;
  font-style: italic;
  line-height: 0.85;
}

.empty-state h4 {
  margin: 16px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 400;
}

.empty-state p {
  max-width: 390px;
  margin: 10px 0 20px;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.55;
}

.page-list {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-item {
  position: relative;
  display: grid;
  grid-template-columns: 30px 108px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
  transition: border-color 150ms ease, transform 150ms ease, opacity 150ms ease;
}

.page-item[draggable="true"] {
  cursor: grab;
}

.page-item[data-dragging="true"] {
  opacity: 0.52;
}

.page-item[data-drop-target="true"] {
  border-color: #7e971c;
  transform: translateY(2px);
}

.page-number {
  align-self: start;
  padding-top: 4px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-style: italic;
}

.page-preview {
  width: 108px;
  height: 126px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 7px;
  background:
    linear-gradient(45deg, #eceae3 25%, transparent 25%),
    linear-gradient(-45deg, #eceae3 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eceae3 75%),
    linear-gradient(-45deg, transparent 75%, #eceae3 75%), #f6f5f1;
  background-position: 0 0, 0 6px, 6px -6px, -6px 0;
  background-size: 12px 12px;
}

.page-preview canvas {
  max-width: 100%;
  max-height: 100%;
  display: block;
  border: 1px solid rgba(11, 12, 15, 0.11);
  background: #fff;
  box-shadow: 0 5px 14px rgba(10, 10, 8, 0.16);
}

.page-meta {
  min-width: 0;
}

.page-meta strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.81rem;
}

.page-meta span,
.page-meta small {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.5;
}

.page-meta span {
  margin-top: 5px;
}

.page-controls {
  display: grid;
  grid-template-columns: repeat(2, 44px);
  gap: 6px;
}

.icon-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  font-size: 0.9rem;
  font-weight: 900;
  cursor: pointer;
}

.icon-button:hover:not(:disabled) {
  border-color: var(--ink);
  background: var(--white);
}

.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.32;
}

.icon-button--remove:hover {
  border-color: #bd5b5b;
  color: var(--danger);
}

.list-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 15px;
}

.export-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  margin-top: 18px;
  padding: 27px 30px;
  color: #fff;
  background: var(--ink-soft);
  border-color: var(--ink-soft);
}

.export-panel__copy > p:last-child {
  margin: 9px 0 0;
  color: rgba(255, 255, 255, 0.53);
  font-size: 0.78rem;
  line-height: 1.5;
}

.export-panel .step-label {
  color: var(--acid);
}

.export-panel__action {
  min-width: 230px;
  display: grid;
  justify-items: stretch;
  gap: 8px;
}

.export-panel__action p {
  margin: 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.65rem;
  text-align: center;
}

.result-panel {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin-top: 18px;
  padding: 26px 30px;
  border-color: rgba(98, 125, 5, 0.3);
  background: #f4ffd0;
}

.result-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--acid);
  background: var(--ink);
  font-size: 1.3rem;
  font-weight: 900;
}

.result-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 14px 0 0;
}

.result-facts div {
  display: grid;
  gap: 2px;
}

.result-facts dt {
  color: #5d6348;
  font-size: 0.61rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.result-facts dd {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 850;
}

.result-panel p[role="status"] {
  margin: 10px 0 0;
  color: #4e5636;
  font-size: 0.72rem;
}

.method {
  display: grid;
  grid-template-columns: minmax(280px, 0.65fr) minmax(0, 1.35fr);
  gap: 7vw;
  padding-block: clamp(54px, 8vw, 100px);
  border-top: 1px solid var(--line);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.method-grid article {
  min-height: 260px;
  padding: 23px;
  background: var(--paper);
}

.method-grid article > span {
  color: #829b20;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-style: italic;
}

.method-grid h3 {
  margin: 54px 0 10px;
  font-size: 0.89rem;
  letter-spacing: -0.01em;
}

.method-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.65;
}

.footer {
  min-height: 130px;
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
  color: rgba(255, 255, 255, 0.6);
  background: var(--ink);
}

.footer::before {
  position: absolute;
  left: 0;
  width: 100%;
  height: 130px;
  z-index: -1;
  content: "";
  background: var(--ink);
}

.footer p,
.footer > a:last-child {
  margin: 0;
  font-size: 0.72rem;
}

.footer > a:last-child {
  text-decoration-color: rgba(255, 255, 255, 0.28);
  text-underline-offset: 4px;
}

.noscript {
  position: fixed;
  inset: auto 15px 15px;
  z-index: 50;
  padding: 13px;
  border-radius: 9px;
  color: #fff;
  background: #8c2525;
  text-align: center;
}

:focus-visible {
  outline: 3px solid #89a518;
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 920px) {
  :root {
    --shell: min(100% - 34px, 760px);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .hero-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-proof > div {
    padding: 17px 12px 17px 0;
  }

  .hero-proof > p {
    grid-column: 1 / -1;
  }

  .studio-grid {
    grid-template-columns: 1fr;
  }

  .settings-panel {
    position: static;
  }

  .method {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  :root {
    --shell: calc(100% - 28px);
    --radius: 15px;
  }

  .site-header__inner {
    min-height: 66px;
  }

  .site-nav a:not(:last-child) {
    display: none;
  }

  .hero {
    padding-block: 58px 70px;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 5rem);
  }

  .hero__lede {
    margin-top: 25px;
  }

  .hero-proof {
    grid-template-columns: 1fr;
  }

  .hero-proof > div {
    grid-template-columns: 28px 1fr;
  }

  .workbench__head {
    display: grid;
    gap: 18px;
  }

  .drop-zone {
    grid-template-columns: 58px 1fr;
    gap: 15px;
    padding: 22px 19px;
  }

  .drop-zone__icon {
    width: 54px;
    height: 58px;
    transform: scale(0.78);
    transform-origin: left center;
  }

  .drop-zone .button {
    grid-column: 1 / -1;
  }

  .settings-panel,
  .pages-panel {
    padding: 18px;
  }

  .page-item {
    grid-template-columns: 23px 82px minmax(0, 1fr);
  }

  .page-preview {
    width: 82px;
    height: 105px;
  }

  .page-controls {
    grid-column: 2 / -1;
    grid-template-columns: repeat(4, 44px);
    justify-content: end;
  }

  .export-panel {
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }

  .export-panel__action {
    min-width: 0;
  }

  .result-panel {
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 22px 19px;
  }

  .result-mark {
    width: 44px;
    height: 44px;
  }

  .result-panel > .button {
    grid-column: 1 / -1;
  }

  .method-grid {
    grid-template-columns: 1fr;
  }

  .method-grid article {
    min-height: 0;
  }

  .method-grid h3 {
    margin-top: 25px;
  }

  .footer {
    min-height: 170px;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .footer::before {
    height: 170px;
  }
}

@media (max-width: 390px) {
  :root {
    --shell: calc(100% - 20px);
  }

  .hero h1 {
    font-size: clamp(2.65rem, 14.3vw, 3.5rem);
    letter-spacing: -0.065em;
  }

  .trust-list {
    gap: 6px;
  }

  .trust-list li {
    padding: 7px 9px;
    font-size: 0.67rem;
  }

  .workbench__head h2,
  .method h2 {
    font-size: 2.05rem;
  }

  .drop-zone {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .drop-zone__copy strong {
    font-size: 1.45rem;
  }

  .segmented {
    grid-template-columns: 1fr;
  }

  .segmented legend {
    grid-column: 1;
  }

  .margin-options {
    grid-template-columns: repeat(2, 1fr);
  }

  .margin-options legend {
    grid-column: 1 / -1;
  }

  .panel__head {
    gap: 12px;
  }

  .local-pill {
    padding: 6px 7px;
    font-size: 0.53rem;
  }

  .page-item {
    grid-template-columns: 22px minmax(0, 1fr);
  }

  .page-preview {
    width: 100%;
    height: 210px;
  }

  .page-meta {
    grid-column: 2;
  }

  .page-controls {
    grid-column: 2;
    justify-content: start;
  }

  .list-actions {
    display: grid;
  }

  .result-panel {
    grid-template-columns: 1fr;
  }

  .result-mark {
    display: none;
  }
}

@media (max-width: 330px) {
  .brand {
    font-size: 0.92rem;
  }

  .site-nav a {
    font-size: 0.68rem;
  }

  .settings-panel,
  .pages-panel {
    padding: 15px;
  }

  .page-preview {
    height: 185px;
  }
}

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

@media (prefers-contrast: more) {
  :root {
    --line: rgba(11, 12, 15, 0.42);
  }

  .field small,
  .page-meta span,
  .page-meta small {
    color: #42433e;
  }
}
