/* Mitsu Print */

/* ---------- Fonts (self-hosted, OFL; see /fonts/OFL.txt) ---------- */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/fonts/schibsted-grotesk-latin.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: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/fonts/schibsted-grotesk-latin-ext.woff2') format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Metric-matched fallback so the swap causes no layout shift.
   Values computed from Schibsted Grotesk's hhea metrics and average letter width vs Arial. */
@font-face {
  font-family: 'Schibsted Fallback';
  src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('Arimo');
  size-adjust: 105.23%;
  ascent-override: 92.8%;
  descent-override: 24.5%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #f2f4ef;
  --ink: #1e5a41;
  --text: #17402f;
  --muted: #4a6b5b;
  --rule: #a9bdb1;
  --panel: #ffffff;
  --field: #ffffff;
  --field-border: #7c9588; /* spec said #b8c8be (1.7:1); darkened to 3.2:1 on white for WCAG 1.4.11 */
  --accent: #1e5a41;
  --on-accent: #f2f4ef;
  --stamp: #c8352b;
  --error: #b02a21;
  --focus: #1e5a41;
  --texture: none;
  --dot: rgba(30, 90, 65, 0.22);

  --font: 'Schibsted Grotesk', 'Schibsted Fallback', Arial, sans-serif;
  --wrap: 1120px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 18px;
  color-scheme: light;
}

:root[data-theme='dark'] {
  --bg: #232527;
  --ink: #ece8df;
  --text: #ece8df;
  --muted: #b3aea4;
  --rule: #5a5752;
  --panel: #2a2c2f;
  --field: #232527;
  --field-border: #7e7a73; /* spec said #5a5752 (2:1); lightened to 3.3:1 on the panel for WCAG 1.4.11 */
  --accent: #d9b866;
  --on-accent: #1c1d1f;
  --stamp: #e0756a;
  --error: #f0968c;
  --focus: #d9b866;
  --dot: rgba(217, 184, 102, 0.28);
  /* Textured PEI build plate: two offset dot layers. */
  --texture: radial-gradient(rgba(255, 255, 255, 0.045) 0.8px, transparent 1.4px) 0 0 / 7px 7px,
    radial-gradient(rgba(0, 0, 0, 0.32) 0.9px, transparent 1.6px) 3px 4px / 11px 11px;
  color-scheme: dark;
}

/* No-JS fallback: follow the system when the theme script hasn't set data-theme. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #232527;
    --ink: #ece8df;
    --text: #ece8df;
    --muted: #b3aea4;
    --rule: #5a5752;
    --panel: #2a2c2f;
    --field: #232527;
    --field-border: #7e7a73; /* spec said #5a5752 (2:1); lightened to 3.3:1 on the panel for WCAG 1.4.11 */
    --accent: #d9b866;
    --on-accent: #1c1d1f;
    --stamp: #e0756a;
    --error: #f0968c;
    --focus: #d9b866;
    --dot: rgba(217, 184, 102, 0.28);
    --texture: radial-gradient(rgba(255, 255, 255, 0.045) 0.8px, transparent 1.4px) 0 0 / 7px 7px,
      radial-gradient(rgba(0, 0, 0, 0.32) 0.9px, transparent 1.6px) 3px 4px / 11px 11px;
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}
body {
  margin: 0;
  background: var(--texture), var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1;
}
h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.15;
  margin: 0;
}
p {
  margin: 0 0 1em;
}
a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
img,
svg {
  display: block;
  max-width: 100%;
}
.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}
.muted {
  color: var(--muted);
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.6rem 1rem;
  border-radius: var(--r-sm);
  font-weight: 700;
}
.skip-link:focus {
  top: 1rem;
}
[hidden] {
  display: none !important;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  border: 2px solid var(--accent);
  border-radius: var(--r-md);
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.button:hover {
  box-shadow: 0 3px 0 0 color-mix(in srgb, var(--accent) 45%, transparent);
  transform: translateY(-1px);
}
.button:active {
  transform: translateY(0);
  box-shadow: none;
}
.button:disabled {
  cursor: progress;
  opacity: 0.75;
  transform: none;
  box-shadow: none;
}
.button--small {
  min-height: 40px;
  padding: 0.45rem 1rem;
  border-radius: var(--r-sm);
  font-size: 0.95rem;
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding-block: 1rem;
}
.brand {
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
}
.brand__mark {
  width: 38px;
  height: 38px;
  flex: none;
}
.brand__name {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
}
.site-nav > a:not(.button) {
  font-weight: 500;
  text-decoration: none;
  padding-block: 0.4rem;
}
.site-nav > a:not(.button):hover {
  text-decoration: underline;
}
.theme-toggle {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--rule);
  background: transparent;
  color: var(--ink);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}
.theme-toggle:hover {
  border-color: var(--ink);
}
.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-toggle__sun {
  display: none !important;
}
:root[data-theme='dark'] .theme-toggle__sun {
  display: block !important;
}
:root[data-theme='dark'] .theme-toggle__moon {
  display: none !important;
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(2.5rem, 6vw, 4.5rem);
}
.hero__title {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  font-weight: inherit;
}

/* The half-printed headline: outline on top, layer lines below a stamp-red marker.
   The fill and marker repeat once per line box (mask / background sized to one line),
   so a headline that wraps onto two lines is "printed" to the same height on each line. */
@property --fill-top {
  syntax: '<percentage>';
  inherits: true;
  initial-value: 40%;
}
.display {
  --fill-top: 40%;
  --line: 0.98em; /* = line-height */
  position: relative;
  display: inline-block;
  align-self: flex-start;
  max-width: 100%;
  font-size: clamp(2.75rem, 17vw, 8.6rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--ink);
  padding-bottom: 0.04em;
}
.display__outline {
  display: block;
  color: transparent;
  -webkit-text-stroke: max(1.25px, 0.011em) var(--ink);
}
.display__fill {
  position: absolute;
  inset: 0 0 auto 0;
  padding-bottom: inherit;
  color: transparent;
  background: repeating-linear-gradient(to bottom, var(--ink) 0 3px, transparent 3px 5px);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-mask: linear-gradient(to bottom, transparent var(--fill-top), #000 var(--fill-top)) 0 0 / 100% var(--line) repeat-y;
  mask: linear-gradient(to bottom, transparent var(--fill-top), #000 var(--fill-top)) 0 0 / 100% var(--line) repeat-y;
}
.display__line {
  position: absolute;
  inset: 0 -0.5rem 0.04em;
  background: linear-gradient(
      to bottom,
      transparent calc(var(--fill-top) - 1px),
      var(--stamp) calc(var(--fill-top) - 1px) calc(var(--fill-top) + 1px),
      transparent calc(var(--fill-top) + 1px)
    )
    0 0 / 100% var(--line) repeat-y;
}
/* Fallback when background-clip:text isn't supported: solid fill below the line. */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .display__fill {
    color: var(--ink);
    background: none;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .display {
    animation: print-rise 1.8s cubic-bezier(0.25, 0.7, 0.2, 1) 0.25s both;
  }
}
@keyframes print-rise {
  from {
    --fill-top: 100%;
  }
  to {
    --fill-top: 40%;
  }
}

.hero__lede {
  display: block;
  font-size: clamp(1.4rem, 3.2vw, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 24ch;
}
.hero__body {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 1.75rem;
}
.hero__intro {
  font-size: 1.15rem;
  max-width: 46ch;
  margin: 0;
}

/* Round stamp */
.stamp {
  flex: none;
  width: 148px;
  height: 148px;
  color: var(--stamp);
  transform: rotate(-9deg);
  margin-left: auto;
}
.stamp text {
  fill: currentColor;
  font-family: var(--font);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.06em;
}

/* ---------- Sections ---------- */
.section-title {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 1.25rem;
}
.how,
.quote,
.faq,
.gallery {
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

/* How it works: one bordered strip of four boxed steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--panel) 55%, transparent);
}
.step {
  padding: 1.4rem 1.3rem 1.5rem;
  border-left: 1.5px solid var(--rule);
}
.step:first-child {
  border-left: 0;
}
.step__num {
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 0.75rem;
}
.step__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.step__text {
  color: var(--muted);
  margin: 0;
}

/* ---------- Quote form ---------- */
.quote {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr);
  gap: 2.5rem;
  align-items: start;
}
.quote__intro p {
  max-width: 32ch;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: clamp(1.25rem, 3.5vw, 2.25rem);
}
.order-form__fields {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem 1.25rem;
}
.field {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}
.field--half {
  grid-column: span 1;
}
.field label,
.field__label {
  font-weight: 700;
  color: var(--ink);
}
.field__optional {
  font-weight: 400;
  color: var(--muted);
}
.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.8rem;
  font: inherit;
  color: var(--text);
  background: var(--field);
  border: 1.5px solid var(--field-border);
  border-radius: var(--r-sm);
  transition: border-color 0.12s ease;
}
.field input {
  min-width: 0;
}
/* iOS draws date inputs with a built-in minimum width that ignores width:100%
   and can push past the form. Drop the native styling there only
   (-webkit-touch-callout is supported only by iOS WebKit), so desktop pickers are untouched. */
@supports (-webkit-touch-callout: none) {
  .field input[type='date'] {
    display: block;
    max-width: 100%;
    -webkit-appearance: none;
    appearance: none;
    text-align: left;
  }
  .field input[type='date']::-webkit-date-and-time-value {
    text-align: left;
    margin: 0;
  }
}
.field textarea {
  resize: vertical;
  min-height: 7.5rem;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
  opacity: 0.85;
}
.field input:hover,
.field textarea:hover {
  border-color: var(--muted);
}
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--focus);
}
.field [aria-invalid='true'] {
  border-color: var(--error);
}
.field__hint,
.field__note {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}
.field__note:empty,
.field__error:empty {
  display: none;
}
.field__note {
  color: var(--text);
  border-left: 3px solid var(--stamp);
  padding-left: 0.6rem;
}
.field__error {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--error);
}
.field__error::before {
  content: '';
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  margin-right: 0.45em;
  border-radius: 50%;
  background: currentColor;
  vertical-align: 0.1em;
}
.field--trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Drop zone: a dotted build plate */
.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 150px;
  padding: 1.5rem 1rem;
  text-align: center;
  border: 2px dashed var(--accent);
  border-radius: var(--r-md);
  background: radial-gradient(var(--dot) 1.2px, transparent 1.6px) 0 0 / 14px 14px, var(--field);
  color: var(--text);
  cursor: pointer;
  font-weight: 400 !important;
  transition: background-color 0.15s ease, border-style 0.15s ease;
}
.dropzone:hover,
.dropzone.is-dragover {
  border-style: solid;
  background: radial-gradient(var(--dot) 1.2px, transparent 1.6px) 0 0 / 14px 14px,
    color-mix(in srgb, var(--accent) 10%, var(--field));
}
.dropzone__icon {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dropzone__text {
  font-weight: 500;
}
.dropzone__choose {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.dropzone__hint {
  font-size: 0.92rem;
  color: var(--muted);
}
/* The real file input stays focusable and operable by keyboard; the label is the visible target. */
.field {
  position: relative;
}
/* Specific enough to beat `.field input`, which would otherwise stretch this hidden input
   to full width plus padding and make the page scroll sideways on phones. */
.field .dropzone__input {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  overflow: hidden;
  clip-path: inset(50%);
}
.field:has(.dropzone__input:focus-visible) .dropzone {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.field:has(.dropzone__input[aria-invalid='true']) .dropzone {
  border-color: var(--error);
}
.file-list {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.file-list:empty {
  display: none;
}
.file {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.25rem 0.75rem;
  padding: 0.55rem 0.55rem 0.55rem 0.85rem;
  border: 1.5px solid var(--field-border);
  border-radius: var(--r-sm);
  background: var(--field);
}
.file__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}
.file__size {
  color: var(--muted);
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}
.file__remove {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.file__remove:hover {
  color: var(--error);
  background: color-mix(in srgb, var(--error) 10%, transparent);
}
.file__remove svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.file__progress {
  grid-column: 1 / -1;
  width: 100%;
  height: 6px;
  appearance: none;
  border: 0;
  border-radius: 3px;
  background: color-mix(in srgb, var(--rule) 55%, transparent);
  overflow: hidden;
}
.file__progress::-webkit-progress-bar {
  background: color-mix(in srgb, var(--rule) 55%, transparent);
}
.file__progress::-webkit-progress-value {
  background: var(--accent);
}
.file__progress::-moz-progress-bar {
  background: var(--accent);
}
.file.is-done .file__size::after {
  content: ' · uploaded';
}

.turnstile:empty {
  display: none;
}
.form-error {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--error);
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--error) 9%, var(--panel));
  color: var(--text);
}
.form-error:focus {
  outline: none;
}
.order-form__actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 0.25rem;
}
.order-form__actions p {
  margin: 0;
}
.order-form__privacy {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.success {
  padding-block: 1rem;
}
.success__title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.success__title:focus {
  outline: none;
}
.success p {
  font-size: 1.1rem;
  max-width: 52ch;
}

/* ---------- FAQ ---------- */
.faq__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2.5rem;
  border-top: 1.5px solid var(--ink);
}
.faq__item {
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--rule);
}
.faq__item h3 {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.faq__item p {
  margin: 0;
  max-width: 60ch;
}

/* ---------- Recent prints (duotone in the current theme's ink + background) ---------- */
.gallery__strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}
.duotone {
  position: relative;
  margin: 0;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--duo-dark, var(--ink));
  isolation: isolate;
}
:root[data-theme='dark'] .duotone {
  --duo-dark: var(--bg);
  --duo-light: var(--ink);
}
.duotone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1);
  mix-blend-mode: screen;
}
.duotone::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--duo-light, var(--bg));
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* ---------- Prose pages ---------- */
.prose {
  max-width: 70ch;
  padding-block: clamp(2rem, 6vw, 4rem);
}
.prose h1 {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}
.prose h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 2rem 0 0.5rem;
}
.prose__lead {
  font-size: 1.2rem;
}
.prose ul {
  padding-left: 1.2rem;
}
.prose li + li {
  margin-top: 0.4rem;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: 2rem;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.75rem 2.25rem;
}
.site-footer__who {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  color: var(--ink);
  font-weight: 500;
}
.site-footer__mark {
  width: 24px;
  height: 24px;
  flex: none;
}
.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .quote {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }
  .quote__intro p {
    max-width: 60ch;
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .step:nth-child(3) {
    border-left: 0;
  }
  .step:nth-child(n + 3) {
    border-top: 1.5px solid var(--rule);
  }
}
@media (max-width: 640px) {
  .wrap {
    width: min(100% - 1.75rem, var(--wrap));
  }
  /* Header on phones: brand + theme toggle on the first row,
     links left and "Get a quote" right on the second, both rows edge-aligned. */
  .site-header__inner {
    gap: 0.6rem 1rem;
    padding-block: 0.85rem;
  }
  .theme-toggle {
    order: 1;
  }
  .site-nav {
    order: 2;
    flex: 1 0 100%;
    gap: 0.5rem 1rem;
  }
  .site-nav .button {
    margin-left: auto;
  }
  .hero__body {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  .stamp {
    width: 124px;
    height: 124px;
    margin-left: 0;
    align-self: flex-end;
    margin-top: -0.5rem;
  }
  .order-form__fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .field--half {
    grid-column: 1 / -1;
  }
  /* The form runs edge to edge on phones, so its fields line up with the
     rest of the page instead of sitting inside a second set of margins. */
  .panel {
    margin-inline: -0.875rem;
    padding: 1.5rem 0.875rem 1.75rem;
    border-radius: 0;
    border-inline: 0;
  }
  .faq__list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 400px) {
  .site-nav {
    gap: 0.5rem 0.8rem;
    font-size: 0.94rem;
  }
  .site-nav .button {
    padding-inline: 0.8rem;
  }
}
@media (max-width: 520px) {
  .steps {
    grid-template-columns: 1fr;
  }
  .step {
    border-left: 0;
  }
  .step + .step {
    border-top: 1.5px solid var(--rule);
  }
  .display__line {
    inset: 0 -0.25rem 0.04em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
