@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #f7f5ef;
  --ink: #1c1b18;
  --ink-soft: #6b6960;
  --accent: #e4573d;
  --accent-ink: #fff;
  --card: #fff;
  --line: #e5e1d5;
  --focus: #2d5bff;
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 12px;
  --pill: 999px;
  --shadow: 0 1px 2px rgb(28 27 24 / 0.05), 0 6px 16px rgb(28 27 24 / 0.05);
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 20px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 12px 20px;
}
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

/* ---------- Typography ---------- */
.eyebrow {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft); margin: 0 0 8px; font-weight: 500;
}
.section-title, .page-title, .hero-title {
  font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em;
  line-height: 1.05; margin: 0;
}
.section-title { font-size: clamp(30px, 4vw, 44px); }
.page-title { font-size: clamp(34px, 5vw, 56px); }
.section-sub, .page-sub {
  color: var(--ink-soft); margin: 12px 0 0; max-width: 62ch;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 20px; height: 68px;
}
.wordmark {
  font-weight: 700; font-size: 17px; letter-spacing: 0.14em;
  text-transform: uppercase; text-decoration: none; white-space: nowrap;
}
.wordmark span { color: var(--accent); }
.site-nav { display: flex; gap: 22px; }
.site-nav a {
  text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--accent); }
.header-search {
  /* Auto margins on both sides so the field sits centred in the space between
     the nav and the drawer button, instead of being shoved against the button. */
  flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--pill); padding: 0 16px; height: 40px; max-width: 420px;
  margin: 0 auto;
}
.header-search .icon { width: 17px; height: 17px; color: var(--ink-soft); flex: none; }
.header-search input {
  flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 15px;
}
.drawer-btn {
  display: flex; align-items: center; gap: 8px; background: none;
  border: 1.5px solid var(--ink); border-radius: var(--pill);
  padding: 0 18px; height: 40px; /* matches .header-search so both sit on one line */
  cursor: pointer; font-size: 14px; font-weight: 500;
  white-space: nowrap; flex: none;
}
.drawer-btn:hover { background: var(--ink); color: var(--paper); }
.drawer-btn .icon { width: 17px; height: 17px; }
.drawer-count {
  background: var(--accent); color: var(--accent-ink);
  border-radius: var(--pill); min-width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; padding: 0 6px;
}
/* display:inline-flex would otherwise beat the [hidden] attribute */
.drawer-count[hidden] { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 40px; text-align: center; }
.hero-title { font-size: clamp(46px, 9vw, 96px); }
.hero-title em { color: var(--accent); font-style: italic; }
.hero-sub {
  color: var(--ink-soft); max-width: 62ch; margin: 24px auto 0; font-size: 18px;
}
.hero-search {
  display: flex; align-items: center; gap: 10px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--pill);
  padding: 8px 8px 8px 22px; margin: 32px auto 0; max-width: 620px;
  box-shadow: var(--shadow);
}
.hero-search .icon { width: 20px; height: 20px; color: var(--ink-soft); flex: none; }
.hero-search input {
  flex: 1; min-width: 0; border: 0; background: none; outline: none;
  font-size: 17px; padding: 10px 0;
}
.search-inline { margin: 0 0 32px; max-width: 620px; }
.hero-chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.hero-chips a {
  font-size: 14px; text-decoration: none; color: var(--ink-soft);
  border: 1px solid var(--line); background: var(--card);
  border-radius: var(--pill); padding: 7px 16px;
}
.hero-chips a:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- Full-bleed sock wall (home) ---------- */
.wall-intro {
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--line);
}
.wall-intro-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
}
.wall-intro-copy { flex: 1 1 320px; min-width: 0; }
.wall-intro-title {
  font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em;
  line-height: 1.02; margin: 0; font-size: clamp(30px, 5vw, 54px);
}
.wall-intro-title em { color: var(--accent); font-style: italic; }
.wall-search {
  flex: 1 1 340px; display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--pill); padding: 6px 6px 6px 20px; max-width: 520px;
  box-shadow: var(--shadow);
}
.wall-search .icon { width: 19px; height: 19px; color: var(--ink-soft); flex: none; }
.wall-search input {
  flex: 1; min-width: 0; border: 0; background: none; outline: none;
  font-size: 16px; padding: 9px 0;
}
.wall-chips {
  display: flex; gap: 9px; flex-wrap: wrap; margin-top: 18px;
}
.wall-chips a {
  font-size: 13px; text-decoration: none; color: var(--ink-soft);
  border: 1px solid var(--line); background: var(--card);
  border-radius: var(--pill); padding: 6px 14px;
}
.wall-chips a:hover { border-color: var(--ink); color: var(--ink); }

/* The wall itself — full-bleed, dense, tight gutters. */
.sock-wall { padding: 4px 0 8px; }
.sock-wall-grid {
  display: grid; gap: 2px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  padding: 0 2px;
}
/* Inside the wall the cards butt together into one continuous surface: square
   corners, hairline separators, price/title reveal on hover. */
.sock-wall-grid .card { margin: 0; }
.sock-wall-grid .card-media {
  aspect-ratio: 3 / 4; margin-bottom: 0; border-radius: 0;
  border: none; outline: 1px solid var(--line); outline-offset: -1px;
}
.sock-wall-grid .card:hover .card-media { border-color: transparent; }
.sock-wall-grid .card:hover { z-index: 2; }
.sock-wall-grid .card-body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 20px 12px 12px;
  background: linear-gradient(to top, rgb(28 27 24 / 0.82), rgb(28 27 24 / 0));
  color: #fff; opacity: 0; transition: opacity 0.14s ease;
  pointer-events: none;
}
.sock-wall-grid .card:hover .card-body,
.sock-wall-grid .card:focus-within .card-body { opacity: 1; }
.sock-wall-grid .card-seller { color: rgb(255 255 255 / 0.75); margin-bottom: 2px; }
.sock-wall-grid .card-title { color: #fff; -webkit-line-clamp: 1; margin-bottom: 2px; }
.sock-wall-grid .card-price { color: rgb(255 255 255 / 0.9); }
.sock-wall-grid .card-promoted { color: #fff; }
.sock-wall-grid .card-is-promoted .card-media { outline-color: var(--accent); }
.sock-wall-grid .card-buy {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3;
  margin: 0; background: var(--paper); border-color: var(--paper);
  opacity: 0; transition: opacity 0.14s ease;
}
.sock-wall-grid .card:hover .card-buy,
.sock-wall-grid .card:focus-within .card-buy { opacity: 1; }
.sock-wall-more { display: flex; justify-content: center; margin-top: 18px; }

@media (max-width: 560px) {
  .sock-wall-grid { grid-template-columns: repeat(2, 1fr); }
  .wall-search { flex-basis: 100%; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--pill); padding: 12px 24px; font-size: 15px;
  font-weight: 500; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #000; }
.btn-outline { background: none; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-block { display: flex; width: 100%; }
.icon-btn {
  background: none; border: 0; cursor: pointer; padding: 6px;
  display: inline-flex; border-radius: 50%;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: var(--line); }

/* ---------- Section head ---------- */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 28px; flex-wrap: wrap;
}
.section-link { font-size: 15px; text-decoration: none; font-weight: 500; white-space: nowrap; }
.section-link:hover { color: var(--accent); }

/* ---------- Grid + cards ---------- */
.grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
}
.card { position: relative; }
.card-link { text-decoration: none; display: block; }
.card-media {
  position: relative; aspect-ratio: 4 / 5; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 12px;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card:hover .card-media { border-color: var(--ink); }
.card-noimg {
  width: 100%; height: 100%; display: grid; place-items: center; font-size: 40px;
}
.card-rating {
  position: absolute; top: 10px; left: 10px; background: var(--card);
  border-radius: var(--pill); padding: 3px 9px; font-size: 12px; font-weight: 600;
  box-shadow: var(--shadow);
}
.card-badge {
  position: absolute; bottom: 10px; left: 10px; background: var(--ink);
  color: var(--paper); border-radius: var(--pill); padding: 4px 10px; font-size: 12px;
}
.card-sold-out .card-media img { opacity: 0.55; }
.card-seller {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft); margin: 0 0 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.card-title {
  font-size: 15px; font-weight: 500; line-height: 1.35; margin: 0 0 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-price { font-size: 15px; margin: 0; color: var(--ink-soft); }
/* Paid placements must be visually distinguishable from organic results, so
   this sits in the card body in the accent colour rather than as a subtle
   corner badge that could be mistaken for decoration. */
.card-promoted {
  font-size: 11px; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin: 0 0 4px;
}
.card-is-promoted .card-media { border-color: var(--accent); }
.card-buy {
  display: block; text-align: center; text-decoration: none;
  margin-top: 10px; padding: 9px 14px; font-size: 13px; font-weight: 500;
  border: 1.5px solid var(--ink); border-radius: var(--pill);
}
.card-buy:hover { background: var(--ink); color: var(--paper); }

.commission-note {
  font-size: 12px; color: var(--ink-soft); margin: 0 0 20px; max-width: 78ch;
}
.commission-note-inline {
  margin: -8px 0 20px; /* tucks under the buy buttons it refers to */
}

.card-add {
  position: absolute; top: 10px; right: 10px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--pill);
  padding: 6px 12px; font-size: 12px; font-weight: 600; cursor: pointer;
  opacity: 0; transition: opacity 0.12s ease;
}
.card:hover .card-add, .card-add:focus-visible { opacity: 1; }
.card-add.is-added { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); opacity: 1; }
@media (hover: none) { .card-add { opacity: 1; } }

/* ---------- Rows ---------- */
.drawer-row, .collection-row, .guide-row {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.drawer-card, .collection-card, .guide-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; text-decoration: none;
  display: flex; flex-direction: column; gap: 8px;
}
.drawer-card:hover, .collection-card:hover, .guide-card:hover {
  border-color: var(--ink); box-shadow: var(--shadow);
}
.drawer-card h3, .collection-card h3, .guide-card h3 {
  font-family: var(--font-display); font-weight: 400; font-size: 24px;
  line-height: 1.15; margin: 0;
}
.drawer-card p, .collection-card p, .guide-card p {
  color: var(--ink-soft); font-size: 14px; margin: 0;
}
.collection-go { font-size: 14px; font-weight: 500; margin-top: auto; padding-top: 12px; }
.collection-go::after { content: " →"; }
.guide-card p:not(.eyebrow) { flex: 1; }

/* ---------- Steps ---------- */
.steps { background: var(--ink); color: var(--paper); padding: 72px 0; margin: 40px 0; }
.steps-inner { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.step .eyebrow { color: rgb(247 245 239 / 0.55); }
.step h3 { font-family: var(--font-display); font-weight: 400; font-size: 26px; margin: 0 0 10px; }
.step p { color: rgb(247 245 239 / 0.75); margin: 0; font-size: 15px; }

/* ---------- Page head / breadcrumbs ---------- */
.breadcrumbs {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  font-size: 13px; color: var(--ink-soft); margin-bottom: 24px;
}
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.page-head { margin-bottom: 36px; max-width: 72ch; }
.result-count { font-size: 13px; color: var(--ink-soft); margin: 0 0 20px; }

/* ---------- Chips ---------- */
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.chip {
  font-size: 14px; text-decoration: none; border: 1px solid var(--line);
  background: var(--card); border-radius: var(--pill); padding: 8px 16px;
}
a.chip:hover { border-color: var(--ink); }
.chip-static { color: var(--ink-soft); }
.chip-disabled { opacity: 0.45; text-decoration: line-through; }

/* ---------- Prose ---------- */
.prose { max-width: 68ch; }
.prose p { margin: 0 0 16px; }
.prose h2 {
  font-family: var(--font-display); font-weight: 400; font-size: 28px;
  margin: 32px 0 12px; line-height: 1.15;
}
.prose h3 { font-size: 19px; margin: 24px 0 8px; }
.prose ul { padding-left: 20px; margin: 0 0 16px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--accent); }
.specs { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0; font-size: 15px; }
.specs dt { color: var(--ink-soft); }
.specs dd { margin: 0; }

/* ---------- PDP ---------- */
.pdp { display: grid; gap: 48px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .pdp { grid-template-columns: 1fr 1fr; align-items: start; } }
.pdp-hero {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.pdp-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pdp-thumbs img {
  width: 76px; height: 95px; object-fit: cover; border: 1px solid var(--line);
  border-radius: 8px; background: var(--card);
}
.pdp-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 4vw, 44px); line-height: 1.08; margin: 0 0 16px; }
.pdp-meta { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; }
.pdp-price { font-size: 26px; margin: 0; }
.pdp-rating { margin: 0; font-size: 15px; }
.pdp-rating span { color: var(--ink-soft); font-size: 14px; }
.pdp-soldout { color: var(--accent); font-weight: 500; margin: 0 0 20px; }
.pdp-variants { margin-bottom: 24px; }
.pdp-variants .chip-row { margin-bottom: 0; }
.pdp-actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.pdp-disclosure { font-size: 13px; color: var(--ink-soft); margin: 0 0 28px; }
.pdp-disclosure a { color: var(--ink-soft); }
.pdp-desc { margin-bottom: 8px; }

/* ---------- Drawer page + panel ---------- */
.drawer-groups { display: grid; gap: 28px; max-width: 720px; }
.drawer-group { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.drawer-group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.drawer-group-head .eyebrow { margin-bottom: 0; }
.drawer-subtotal { font-weight: 500; margin: 0; }
.drawer-lines { list-style: none; padding: 0; margin: 16px 0 20px; display: grid; gap: 14px; }
.drawer-line { display: flex; gap: 14px; align-items: center; }
.drawer-line img { width: 60px; height: 75px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.drawer-line-info { flex: 1; min-width: 0; }
.drawer-line-info a { text-decoration: none; font-size: 15px; font-weight: 500; }
.drawer-line-info a:hover { color: var(--accent); }
.drawer-line-info p { margin: 2px 0 0; font-size: 14px; color: var(--ink-soft); }
.drawer-line.is-sold-out img { opacity: 0.5; }
.sold-out-tag { color: var(--accent); }
.drawer-total { font-size: 15px; color: var(--ink-soft); margin: 16px 0 0; }
.drawer-actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.drawer-disclaimer { font-size: 13px; color: var(--ink-soft); margin: 20px 0 0; max-width: 60ch; }
.drawer-empty { color: var(--ink-soft); padding: 24px 0; }
.drawer-line-qty { display: flex; align-items: center; gap: 6px; }
.drawer-line-qty button {
  width: 26px; height: 26px; border: 1px solid var(--line); background: var(--paper);
  border-radius: 50%; cursor: pointer; line-height: 1; display: grid; place-items: center;
}
.drawer-line-qty button:hover { border-color: var(--ink); }

.drawer-overlay {
  position: fixed; inset: 0; z-index: 60; background: rgb(28 27 24 / 0.35);
  display: flex; justify-content: flex-end;
}
.drawer-overlay[hidden] { display: none; }
.drawer-panel {
  background: var(--paper); width: min(440px, 100%); height: 100%;
  display: flex; flex-direction: column; box-shadow: -8px 0 30px rgb(28 27 24 / 0.14);
}
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--line);
}
.drawer-head h2 { font-family: var(--font-display); font-weight: 400; font-size: 26px; margin: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.drawer-body .drawer-groups { gap: 20px; }
.drawer-body .drawer-group { padding: 18px; }
.drawer-foot { padding: 20px 24px; border-top: 1px solid var(--line); }
.drawer-share-result { margin-top: 12px; }
.drawer-share-result input {
  width: 100%; padding: 10px 14px; border: 1px solid var(--line);
  border-radius: var(--pill); font-size: 14px; background: var(--card);
}

/* ---------- Guides / articles ---------- */
.article { max-width: 760px; }
.article-narrow { max-width: 680px; }
.article-meta { font-size: 13px; color: var(--ink-soft); margin: 16px 0 0; }
.article-body > div { margin-bottom: 4px; }
.embed-card { max-width: 240px; margin: 28px 0; }
.article-disclosure {
  font-size: 13px; color: var(--ink-soft); border-top: 1px solid var(--line);
  padding-top: 20px; margin-top: 40px;
}

/* ---------- Empty / pager ---------- */
.empty { text-align: center; padding: 64px 20px; max-width: 52ch; margin: 0 auto; }
.empty-icon { font-size: 44px; margin-bottom: 12px; }
.empty h1, .empty h2 { font-family: var(--font-display); font-weight: 400; font-size: 32px; margin: 0 0 12px; }
.empty p { color: var(--ink-soft); margin: 0 0 20px; }
.pager { display: flex; justify-content: center; margin-top: 44px; }
.collection-grid, .drawer-grid, .guide-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 64px; padding: 56px 0 28px; }
.footer-inner { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1.4fr 1fr; } }
.footer-note { color: var(--ink-soft); font-size: 14px; max-width: 46ch; margin: 14px 0 0; }
.footer-links { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-links > div { display: flex; flex-direction: column; gap: 8px; }
.footer-links h2 {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft); margin: 0 0 4px; font-weight: 500;
}
.footer-links a { text-decoration: none; font-size: 15px; }
.footer-links a:hover { color: var(--accent); }
.footer-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.footer-legal p { font-size: 12px; color: var(--ink-soft); margin: 0; max-width: 90ch; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .site-nav { display: none; }
  .header-search { max-width: none; }
  .drawer-btn span:not(.drawer-count) { display: none; }
}
/* Below this width the header bar can't hold a usable search field, so the
   search moves to its own row rather than collapsing to an unusable sliver. */
@media (max-width: 620px) {
  .header-inner { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; gap: 12px; }
  .wordmark { flex: 1; }
  .header-search { order: 3; width: 100%; flex-basis: 100%; margin-left: 0; }
}
@media (max-width: 560px) {
  .section { padding: 40px 20px; }
  .hero { padding: 44px 0 28px; }
  .hero-search { flex-wrap: wrap; border-radius: var(--radius); padding: 12px; }
  .hero-search input { width: 100%; }
  .hero-search .btn { width: 100%; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .steps { padding: 48px 0; }
}

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