/* =====================================================================
   Curious Bird Books — Variant E1: "The Bookshop Window"
   A commerce-forward flavor of Variant E ("The Quiet Gallery").
   Same art-forward, quiet-gallery DNA — but no hero: a compact masthead
   drops straight into a four-cover shop-window row so the books and their
   prices sit above the fold. Art returns as slim, height-capped bands.
   Interior-page styles are unchanged from Variant E; every homepage
   override below is scoped to .masthead / .covers--window / E1 classes.
   Fonts: Young Serif (display) + Bitter (body). Brand crow logo.
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Ground + neutrals */
  --ground:      #f6f4ef;   /* warm near-white gallery wall */
  --cream:       #eae6dd;   /* brand cream */
  --ink:         #2d2d2a;   /* brand charcoal */
  --ink-soft:    #595950;   /* muted body / captions */
  --ink-faint:   #6f6e63;   /* fine print - darkened from #8a897e 2026-07-20 for WCAG AA (4.68:1 on ground; was 3.21) */
  --line:        #ddd8cc;   /* hairlines */

  /* Brand accents (used sparingly) */
  --teal:   #7bb5b2;
  --mustard:#edd286;
  --blue:   #34659b;

  /* Per-book color fields — chalky, per art-director feedback 2026-07-18:
     same hues as before, but lighter + grayer so they sit in the same tonal
     family as the ground and the mustard masthead (the Transit Children's
     Editions register: softness comes from lightness, not just saturation).
     Previous (too punchy): oneyear #8772a2, always #d5a23a, begin #64759d,
     herstyle #3f827c. */
  --field-oneyear:  #7fa36b;  /* muted leafy green - One Year (Ioana via Valerie 2026-07-19 eve, Eric ratified; supersedes terracotta #d46f58) */
  --field-always:   #cf6f7c;  /* dusty watermelon pink - Always be You (Ioana via Valerie 2026-07-19 eve: reddish/pinkish away from the yellows now that One Year is green; supersedes marigold #e9b44c) */
  --field-begin:    #a8b4c4;  /* pigeon gray     — Begin One Way (sampled from the cover's pigeon, per Ioana) */
  --field-herstyle: #ac9fc0;  /* chalky lavender — Her Style */

  --maxw: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --radius: 3px;

  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --body:  "Bitter", Georgia, serif;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  overflow-x: clip; /* contain the off-canvas mobile nav; no page-wide horizontal scroll */
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.06rem);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 760px; }
.wrap--mid { max-width: 980px; }

.skip-link {
  position: absolute; left: 8px; top: -60px;
  background: var(--ink); color: var(--ground);
  padding: .6rem 1rem; border-radius: var(--radius); z-index: 200;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 8px; }

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

/* ---------- Eyebrow / small labels ---------- */
.eyebrow {
  font-family: var(--body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 1.1rem;
}
.eyebrow--center { text-align: center; }

/* ---------- Header (tiny, utilitarian — page gets out of the way) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: saturate(1.1) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--maxw); margin-inline: auto;
  padding: .7rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); }
.brand-logo { width: 30px; height: 30px; }
.brand-word {
  font-family: var(--serif);
  font-size: 1.02rem;
  letter-spacing: .005em;
}
.primary-nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.primary-nav a {
  text-decoration: none;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: .35rem 0;
  position: relative;
  transition: color .2s var(--ease);
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease);
}
.primary-nav a:hover { color: var(--ink); }
.primary-nav a:hover::after { transform: scaleX(1); }
.primary-nav a[aria-current="page"] { color: var(--ink); }
.primary-nav a[aria-current="page"]::after { transform: scaleX(1); background: var(--teal); height: 2px; }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; padding: 8px;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 4px 0; transition: transform .25s var(--ease), opacity .2s var(--ease); }

/* ---------- Buttons / text links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--body); font-size: .8rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .82rem 1.5rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  text-decoration: none; color: var(--ink); background: transparent;
  cursor: pointer;
  transition: background .22s var(--ease), color .22s var(--ease), transform .22s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--ink); color: var(--ground); }
.btn--solid:hover { background: color-mix(in srgb, var(--ink) 82%, var(--blue)); }
.btn--ghost:hover { background: var(--ink); color: var(--ground); }

.textlink {
  display: inline-flex; align-items: center; gap: .4rem;
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--ink-faint);
  padding-bottom: 1px;
  transition: gap .22s var(--ease), border-color .22s var(--ease);
}
.textlink .arrow { transition: transform .22s var(--ease); }
.textlink:hover { border-color: var(--ink); }
.textlink:hover .arrow { transform: translateX(4px); }

.inline-mail { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Section scaffolding ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-kicker {
  display: block; text-align: center;
  font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 1rem;
}

/* =====================================================================
   INTRO (home) — one quiet centered breath, then the books
   ===================================================================== */
.intro {
  text-align: center;
  padding-block: clamp(3.5rem, 9vw, 8rem) clamp(2rem, 5vw, 3.5rem);
}
.intro h1 {
  font-size: clamp(2rem, 1.3rem + 3.4vw, 3.6rem);
  max-width: 16ch; margin-inline: auto;
  line-height: 1.04;
}
.intro__sub {
  max-width: 52ch; margin: 1.6rem auto 0;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.18rem);
  line-height: 1.7;
}
.intro__cue {
  margin-top: 2.4rem;
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-faint);
  display: inline-flex; align-items: center; gap: .5rem;
}
.intro__cue::after { content: "↓"; font-size: 1rem; animation: bob 2.6s var(--ease) infinite; }
@keyframes bob { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(4px);} }

.books-lead {
  text-align: center; max-width: 40ch; margin: 0 auto clamp(2rem,4vw,3rem);
  color: var(--ink-soft); font-size: 1.06rem;
}

/* =====================================================================
   COVER GRID — the covers ARE the homepage.
   Each book floats on its own infinite color field.
   ===================================================================== */
.covers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
}
.cover {
  display: flex; flex-direction: column;
  text-decoration: none; color: var(--ink);
  min-width: 0; /* keep grid tracks equal despite wide cover images */
}
.covers > *, .shop-grid > * { min-width: 0; }
.cover__field {
  position: relative;
  display: grid; place-items: center;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
}
/* the framed cover art sits centered; the field color bleeds around it
   so the mat blends into an infinite color plane (the Transit effect).
   Absolutely centered (inset:0 + margin:auto) so percentage max-sizes
   resolve against the field box — as a grid item, portrait covers
   (One Year, Her Style) auto-grew the row track and clipped at the
   bottom edge of the field. */
.cover__field img {
  position: absolute; inset: 0; margin: auto;
  width: auto; height: auto;
  max-width: 80%; max-height: 78%;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(30,25,40,.30)) drop-shadow(0 16px 28px rgba(30,25,40,.30));
  transition: transform .5s var(--ease);
}
.cover:hover .cover__field img,
.cover:focus-visible .cover__field img { transform: scale(1.035); }

.cover__field--oneyear  { background: var(--field-oneyear); }
.cover__field--always   { background: var(--field-always); }
.cover__field--begin    { background: var(--field-begin); }
.cover__field--herstyle { background: var(--field-herstyle); }

/* "Coming 2026" pill sits where a price would go on a shipping title */
.cover__coming {
  font-size: .64rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); border: 1px solid var(--ink-faint); border-radius: 999px;
  padding: .16rem .6rem; white-space: nowrap;
}

.cover__caption {
  padding: 1.1rem .25rem 0;
  display: flex; flex-direction: column; gap: .35rem;
}
.cover__row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.cover__title { font-size: 1.28rem; line-height: 1.12; }
.cover__price { font-size: .9rem; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.cover__blurb { font-size: .92rem; color: var(--ink-soft); line-height: 1.55; margin: 0; }
.cover__more {
  margin-top: .35rem; font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-faint);
  display: inline-flex; align-items: center; gap: .4rem;
}
.cover:hover .cover__more { color: var(--ink); }
.cover__more .arrow { transition: transform .22s var(--ease); }
.cover:hover .cover__more .arrow { transform: translateX(4px); }

/* =====================================================================
   ART BANDS — interior spreads as full-width imagery moments
   ===================================================================== */
.artband {
  width: 100%;
  overflow: hidden;
  position: relative;
  background: var(--cream);
}
.artband img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.artband--tall { aspect-ratio: 16 / 7; }
.artband--wide { aspect-ratio: 21 / 6; }
@media (max-width: 640px) {
  .artband--tall { aspect-ratio: 4 / 3; }
  .artband--wide { aspect-ratio: 5 / 4; }
}
/* Full-bleed, natural ratio — shows the whole spread (incl. baked-in month
   names / book text) with no crop. Used for real interior artwork. */
.artband--full { background: transparent; }
.artband--full img { width: 100%; height: auto; object-fit: initial; }

/* Framed "page from the book" — a contained image on the cream page, for
   square interiors and single process photos. */
.artframe { max-width: 860px; margin-inline: auto; }
.artframe figure { margin: 0; }
.artframe img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius);
  box-shadow: 0 22px 44px rgba(30,25,40,.16);
}
.artframe figcaption,
.diptych figcaption {
  margin-top: .9rem; text-align: center;
  font-size: .85rem; line-height: 1.55; color: var(--ink-faint);
  max-width: 60ch; margin-inline: auto;
}


/* Quiet statement — a single line of prose between imagery */
.statement {
  text-align: center;
  padding-block: clamp(3rem, 7vw, 6rem);
}
.statement p {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 1rem + 1.8vw, 2.1rem);
  line-height: 1.28;
  max-width: 24ch; margin-inline: auto;
  letter-spacing: -0.01em;
}
.statement--soft p { color: var(--ink); }

/* Quiet moment — short line + link, optional split with imagery */
.moment {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4.5rem);
}
.moment--reverse .moment__media { order: 2; }
.moment__media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--cream);
}
.moment__media img { width: 100%; height: 100%; object-fit: cover; }
/* Two clean images side by side (per Ioana: the Her Style cover + the
   Pumps spread). No color fields, no crop — natural ratios, soft shadow. */
.moment__media--pair {
  display: grid; grid-template-columns: .72fr 1fr;
  gap: clamp(.8rem, 1.6vw, 1.3rem); align-items: center;
  aspect-ratio: auto; background: none; border-radius: 0; overflow: visible;
}
.moment__media--pair img {
  width: 100%; height: auto; object-fit: unset; display: block;
  border-radius: var(--radius);
  box-shadow: 0 14px 28px rgba(30,25,40,.16);
}
.moment__text h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); margin-bottom: 1rem; }
.moment__text p { color: var(--ink-soft); max-width: 42ch; }
.moment__text .textlink { margin-top: .8rem; }

/* Wholesale teaser strip */
.wholesale {
  background: var(--teal);
  color: var(--ink);
  text-align: center;
  border-radius: var(--radius);
}
.wholesale .inner { padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 3rem); }
.wholesale h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.7rem); margin-bottom: .8rem; }
.wholesale p { max-width: 46ch; margin-inline: auto; color: color-mix(in srgb, var(--ink) 88%, transparent); }
.wholesale__actions { display: inline-flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin-top: 1.6rem; }
.wholesale .btn { border-color: var(--ink); }
.wholesale .btn--solid { background: var(--ink); color: var(--teal); }

/* =====================================================================
   NEWSLETTER — illustrated card (Transit's "book club" card)
   ===================================================================== */
.news {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--line);
}
.news__art { position: relative; min-height: 260px; background: #9fbeb2; /* keeps the prior sage; not a One Year context */ }
.news__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news__body { padding: clamp(2rem, 4vw, 3.4rem); display: flex; flex-direction: column; justify-content: center; }
.news__body h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); margin-bottom: .8rem; }
.news__body p { color: var(--ink-soft); margin-bottom: 1.4rem; }
.news-form { display: flex; gap: .6rem; flex-wrap: wrap; }
.news-form label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.news-form input {
  flex: 1 1 220px; min-width: 0;
  font-family: var(--body); font-size: .98rem;
  padding: .8rem 1rem;
  border: 1px solid var(--ink-faint); border-radius: 999px; background: var(--ground);
  color: var(--ink);
}
.news-form input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.news-note { font-size: .78rem; color: var(--ink-faint); margin-top: .9rem; }

/* =====================================================================
   FOOTER — simple, dark
   ===================================================================== */
.site-footer {
  background: var(--ink);
  color: color-mix(in srgb, var(--ground) 78%, transparent);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  margin-top: clamp(3rem, 7vw, 6rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.footer-brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ground); }
.footer-brand img { width: 34px; height: 34px; filter: brightness(0) invert(1); opacity: .92; }
.footer-brand span { font-family: var(--serif); font-size: 1.15rem; }
.footer-col h3 {
  font-family: var(--body); font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: color-mix(in srgb, var(--ground) 60%, transparent); margin-bottom: 1rem;
}
.footer-blurb { font-size: .92rem; line-height: 1.65; margin-top: 1rem; max-width: 34ch; }
.footer-mail { display: inline-block; margin-top: .8rem; color: var(--ground); text-decoration: underline; text-underline-offset: 3px; font-size: .92rem; }
.footer-nav { display: flex; flex-direction: column; gap: .6rem; }
.footer-nav a { text-decoration: none; color: color-mix(in srgb, var(--ground) 82%, transparent); font-size: .95rem; width: fit-content; transition: color .2s var(--ease); }
.footer-nav a:hover { color: var(--ground); }
.footer-news p { font-size: .92rem; margin-bottom: 1rem; }
.footer .news-form input { background: color-mix(in srgb, var(--ground) 12%, transparent); border-color: color-mix(in srgb, var(--ground) 30%, transparent); color: var(--ground); }
.footer .news-form input::placeholder { color: color-mix(in srgb, var(--ground) 55%, transparent); }
.footer .btn--solid { background: var(--ground); color: var(--ink); border-color: var(--ground); }
.footer-bottom {
  max-width: var(--maxw); margin: clamp(2.5rem,5vw,3.5rem) auto 0; padding-inline: var(--gutter);
  border-top: 1px solid color-mix(in srgb, var(--ground) 20%, transparent);
  padding-top: 1.4rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  font-size: .8rem; color: color-mix(in srgb, var(--ground) 55%, transparent);
}
.footer-bottom a { color: inherit; }
.socials a { color: color-mix(in srgb, var(--ground) 80%, transparent); text-decoration: none; }
.socials a:hover { color: var(--ground); }

/* =====================================================================
   PAGE HEADERS (interior pages)
   ===================================================================== */
.pagehead { text-align: center; padding-block: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.pagehead h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem); }
.pagehead p { max-width: 54ch; margin: 1.2rem auto 0; color: var(--ink-soft); }

/* =====================================================================
   SHOP grid (uses the cover-field pattern, 3-up on desktop)
   ===================================================================== */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
}
@media (max-width: 900px){ .shop-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .shop-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   PRODUCT pages — imagery led
   ===================================================================== */
.product { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.product__hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.product__stage {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  /* Flex centering, not the abs-inset-margin-auto pattern: Safari resolves
     that to a stretched box for replaced elements and paints the drop-shadows
     around the phantom rectangle. The min-width guard below covers the
     grid-track growth the abs hack originally worked around. */
  display: flex; align-items: center; justify-content: center;
}
.product__hero > * { min-width: 0; }
.product__stage img {
  width: auto; height: auto; max-width: 88%; max-height: 90%;
  object-fit: contain; filter: drop-shadow(0 3px 6px rgba(30,25,40,.30)) drop-shadow(0 18px 32px rgba(30,25,40,.30));
  cursor: zoom-in;
}

/* ---------- Lightbox — a floating plate in the site's own language ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 120;
  display: none; align-items: center; justify-content: center;
  background: rgba(45, 45, 42, .45);
  backdrop-filter: blur(6px) saturate(1.05);
  padding: clamp(.75rem, 3vw, 2.5rem);
}
.lightbox.is-open { display: flex; }
.lightbox__panel {
  display: flex; flex-direction: column;
  width: min(88vw, 1200px); max-height: 92vh;
  background: var(--ground);
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(30, 25, 40, .35);
  padding: clamp(.9rem, 2vw, 1.4rem);
  gap: .9rem;
}
.lightbox__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-inline: .2rem;
}
.lightbox__title {
  font-family: var(--serif); font-size: 1.05rem; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lightbox__stage {
  position: relative;
  height: 68vh;
  border-radius: 10px; overflow: hidden;
  background: var(--cream);
  /* Flex centering: Safari resolves the abs-inset-margin-auto pattern to a
     stretched box for replaced elements, painting a ghost plate behind the
     image; flex is deterministic in every engine. */
  display: flex; align-items: center; justify-content: center;
}
/* Percentage max-sizes resolve against the stage's definite 68vh box
   (grid auto-tracks would grow to the image's intrinsic size and clip). */
.lightbox__img {
  max-width: 92%; max-height: 90%;
  width: auto; height: auto; border-radius: 4px;
  filter: drop-shadow(0 3px 6px rgba(30,25,40,.28)) drop-shadow(0 16px 30px rgba(30,25,40,.28));
}
.lightbox__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-inline: .2rem;
}
.lightbox__count {
  font-family: var(--body); font-size: .74rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft);
}
.lightbox__navgroup { display: flex; gap: .55rem; }
.lightbox__btn {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 999px;
  border: 1px solid var(--ink); cursor: pointer;
  background: transparent; color: var(--ink);
  font-size: 1.05rem; line-height: 1;
  transition: background .22s var(--ease), color .22s var(--ease), transform .22s var(--ease);
}
.lightbox__btn:hover { background: var(--ink); color: var(--ground); transform: translateY(-1px); }
.lightbox__close { width: 36px; height: 36px; border-color: transparent; font-size: 1.2rem; }
.lightbox__close:hover { transform: none; }
body.lightbox-open { overflow: hidden; }
@media (max-width: 700px) {
  .lightbox__panel { width: 94vw; }
  .lightbox__stage { height: 60svh; }
}
.stage--oneyear { background: var(--field-oneyear); }
.stage--always  { background: var(--field-always); }
.stage--begin   { background: var(--field-begin); }
.stage--herstyle { background: var(--field-herstyle); }

.product__thumbs { display: flex; gap: .7rem; margin-top: .9rem; }
.product__thumbs button {
  flex: 1; padding: 0; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; background: var(--cream); aspect-ratio: 1/1;
}
.product__thumbs button[aria-current="true"] { border-color: var(--ink); }
.product__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.product__info { padding-top: .5rem; }
.product__info h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); margin-bottom: .5rem; }
.product__byline { color: var(--ink-soft); font-style: italic; margin-bottom: 1.1rem; }
.product__price { font-size: 1.4rem; font-weight: 600; margin-bottom: 1.4rem; }
.product__lede { font-family: var(--serif); font-size: 1.16rem; line-height: 1.4; margin-bottom: 1.2rem; }
.product__cart { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.6rem 0; }
.product__body p { color: var(--ink-soft); }
.specs {
  margin-top: 1.8rem; border-top: 1px solid var(--line); padding-top: 1.4rem;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem 1.5rem;
}
.specs div { font-size: .9rem; }
.specs dt { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: .15rem; }
.specs dd { margin: 0; color: var(--ink); }
.product__spread { margin-top: clamp(3rem, 6vw, 5rem); }

/* =====================================================================
   PROSE (about)
   ===================================================================== */
.prose { max-width: 66ch; margin-inline: auto; }
.prose h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem); margin: 2.4rem 0 .8rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-soft); }
.prose .lede { font-family: var(--serif); font-size: clamp(1.25rem,1.05rem+1vw,1.6rem); line-height: 1.4; color: var(--ink); margin-bottom: 1.6rem; }
.prose ul { padding-left: 1.1rem; color: var(--ink-soft); }
.prose li { margin-bottom: .5rem; }

.placeholder-note {
  background: var(--mustard);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 1rem 1.3rem;
  font-size: .9rem;
  margin-bottom: 2rem;
  display: flex; gap: .7rem; align-items: flex-start;
}
.placeholder-note strong { display: block; }
.placeholder-note .tag { font-weight: 700; letter-spacing: .04em; }

/* Illustrators */
.people { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); max-width: 980px; margin-inline: auto; }
.person {
  display: grid; grid-template-columns: 240px 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start;
}
.person--reverse { grid-template-columns: 1fr 240px; }
.person--reverse .person__photo { order: 2; }
.person__photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1/1; background: var(--cream); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__body h2 { font-size: clamp(1.5rem,1.2rem+1.4vw,2.1rem); margin-bottom: .3rem; }
.person__role { color: var(--teal); font-weight: 600; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.person__body p { color: var(--ink-soft); }
.person__ig { display: inline-block; margin-top: .6rem; font-weight: 600; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem,5vw,4rem); align-items: start; max-width: 1040px; margin-inline: auto; }
.contact-aside h2 { font-size: 1.5rem; margin-bottom: .8rem; }
.contact-aside p { color: var(--ink-soft); }
.contact-aside a { color: var(--blue); }
.form-field { margin-bottom: 1.2rem; }
.form-field label { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .4rem; }
.form-field input, .form-field textarea {
  width: 100%; font-family: var(--body); font-size: 1rem;
  padding: .8rem 1rem; border: 1px solid var(--ink-faint); border-radius: var(--radius); background: var(--ground); color: var(--ink);
}
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field input:focus-visible, .form-field textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* FAQ accordion */
.faq { max-width: 760px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.2rem 0;
  font-family: var(--serif); font-size: 1.2rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--body); font-size: 1.5rem; color: var(--ink-faint); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq__a { padding: 0 0 1.4rem; color: var(--ink-soft); }

/* Breadcrumb / back link */
.backlink { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); text-decoration: none; margin-bottom: 1.5rem; }
.backlink:hover { color: var(--ink); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 860px) {
  .moment, .news, .product__hero, .contact-grid { grid-template-columns: 1fr; }
  .moment--reverse .moment__media { order: 0; }
  .news__art { min-height: 220px; aspect-ratio: 16/9; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-news { grid-column: 1 / -1; }
  .person, .person--reverse { grid-template-columns: 1fr; }
  .person--reverse .person__photo { order: 0; }
  .person__photo { max-width: 240px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .primary-nav {
    /* The sticky header's backdrop-filter makes it the containing block for
       fixed descendants, so inset-based sizing collapsed the drawer to the
       header's 64px height. Viewport units sidestep that: the drawer is
       always full-height from the top edge. */
    position: fixed; top: 0; right: 0; height: 100vh; height: 100dvh;
    width: min(78vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.6rem;
    background: var(--ground);
    padding: 2rem var(--gutter);
    box-shadow: -20px 0 60px rgba(0,0,0,.12);
    /* fully removed from layout when closed so the off-canvas panel can never
       widen the page (which otherwise inflates the mobile layout viewport) */
    display: none;
  }
  .primary-nav a { font-size: 1rem; }
  body.nav-open .primary-nav { display: flex; animation: navIn .28s var(--ease); }
  @keyframes navIn { from { opacity: 0; transform: translateX(10%); } to { opacity: 1; transform: translateX(0); } }
  body.nav-open .nav-toggle span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2){ opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }
}

@media (max-width: 560px) {
  .covers { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   VARIANT E1 — "The Bookshop Window"
   Homepage-only overrides. Everything here is scoped to E1 classes so the
   shared interior pages (shop, product, about, etc.) render exactly as
   they do in Variant E.
   ===================================================================== */

/* ---------- Masthead (replaces the hero) — one line + the shop cue ---------- */
/* Per Ioana (July feedback doc): the masthead band carries the soft
   yellow from the heritage variant — the brand mustard. */
.masthead {
  background: var(--mustard);
  padding-block: clamp(1.9rem, 3.8vw, 3.2rem) clamp(1.3rem, 2.8vw, 2rem);
}
.masthead__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem 2.5rem; flex-wrap: wrap;
}
.masthead__line {
  font-size: clamp(1.5rem, 1.05rem + 1.9vw, 2.4rem);
  line-height: 1.08; max-width: 20ch; margin: 0;
}

/* Inline pill button (masthead "Shop all books") */
.pill {
  flex: none;
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--body); font-size: .78rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .72rem 1.4rem; border-radius: 999px;
  border: 1px solid var(--ink);
  text-decoration: none; color: var(--ink); background: transparent;
  white-space: nowrap;
  transition: background .22s var(--ease), color .22s var(--ease), transform .22s var(--ease);
}
.pill .arrow { transition: transform .22s var(--ease); }
.pill:hover { transform: translateY(-2px); }
.pill:hover .arrow { transform: translateX(4px); }
.pill--solid { background: var(--ink); color: var(--ground); }
.pill--solid:hover { background: color-mix(in srgb, var(--ink) 82%, var(--blue)); }

/* ---------- The shop window — all four covers in one compact row ---------- */
.covers--window {
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(.9rem, 1.8vw, 1.6rem);
  align-items: start;
}
.covers--window .cover__field {
  aspect-ratio: 4 / 5;          /* compact bookshelf cells (~360px tall at 1440) */
}
.covers--window .cover__field img {
  max-width: 84%; max-height: 86%;
}
.covers--window .cover__caption { padding-top: .85rem; gap: .3rem; }
.covers--window .cover__title  { font-size: 1.08rem; }
.covers--window .cover__blurb  { font-size: .84rem; line-height: 1.45; }
.covers--window .cover__more   { margin-top: .25rem; }

/* ---------- Slim, height-capped art bands (no layout shift: fixed height) ---------- */
.artband--band { height: clamp(240px, 40vh, 420px); background: var(--cream); }
.artband--band img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* ---------- Compact featured moment (Her Style) ---------- */
.moment--compact { grid-template-columns: 1fr 1.08fr; gap: clamp(1.5rem, 4vw, 3.5rem); }
.moment--compact .moment__media { aspect-ratio: 3 / 2; }
.moment--compact .moment__text h2 { font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.15rem); }

/* ---------- Process — "the endpapers start as paper" ---------- */
.process {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.process__text h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); margin-bottom: 1rem; }
.process__text p { color: var(--ink-soft); max-width: 40ch; }
.process__text .textlink { margin-top: .8rem; }
.process__pair {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(.7rem, 1.6vw, 1.1rem);
  align-items: start;
}
.process__pair figure { margin: 0; }
.process__pair img {
  width: 100%; height: 100%; object-fit: cover;
  aspect-ratio: 4 / 3; border-radius: var(--radius);
  box-shadow: 0 14px 30px rgba(30,25,40,.14);
}
.process__pair figcaption {
  margin-top: .55rem; text-align: center;
  font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- Compact wholesale strip ---------- */
.wholesale--compact .inner { padding: clamp(2rem, 4.5vw, 3.2rem) clamp(1.5rem, 5vw, 3rem); }

/* ---------- E1 responsive ---------- */
@media (max-width: 900px) {
  .covers.covers--window { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: 1fr; }
  .process__text p { max-width: none; }
}

@media (max-width: 700px) {
  /* cap art-band height with svh so mobile URL-bar changes don't overgrow it */
  .artband--band { height: clamp(200px, 38svh, 300px); }
}

@media (max-width: 560px) {
  /* Do NOT stack four tall covers — horizontal scroll-snap row with a peek. */
  .covers.covers--window {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    padding-bottom: .6rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .covers.covers--window .cover {
    flex: 0 0 74%;               /* next cover peeks at ~26% */
    scroll-snap-align: start;
  }
  .covers--window .cover__field { aspect-ratio: 4 / 5; }
  .masthead__line { max-width: none; }
}

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

/* Screen-reader-only headings (SEO/a11y pass 2026-07-19): give product pages a
   real document outline without altering the visual design. */
.sr-only {
  position: absolute;
  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;
}

/* Honeypot field for form spam: visually removed, invisible to humans, filled by bots. */
.hp-field { position: absolute !important; left: -5000px !important; width: 1px; height: 1px; overflow: hidden; }


/* Contrast fixes (Lighthouse AA, 2026-07-20): the blue link color fails on the
   teal wholesale surfaces (2.6:1), so links there use ink (5.9:1). */
.wholesale .inline-mail,
.ws-order-card .inline-mail { color: var(--ink); }
