@charset "utf-8";
/* ═══════════════════════════════════════════════════════════════════════════
   Hearthline Home Labor
   1. Tokens   2. Reset   3. Type   4. Layout   5. Components
   6. Sections 7. Form    8. Motion 9. Responsive

   Almanac, not brochure. A slab serif, walnut and oat, arched photographs, a
   paper-fibre grain, torn edges between bands, and a ledger as the center of
   the page rather than a grid of cards.
   ═══════════════════════════════════════════════════════════════════════════ */

@import url("_lqip.css");

/* ── 1. Tokens ─────────────────────────────────────────────────────────── */
:root {
  /* One accent. Ember, in two weights so it can sit on either ground. */
  --ember:      #e8795c;   /* 5.7:1 on walnut */
  --ember-deep: #9c3418;   /* 5.6:1 on oat    */

  --t-display: clamp(2.5rem, 1.1rem + 5vw, 4.9rem);
  --t-h2:      clamp(1.85rem, 1.15rem + 2.4vw, 3.05rem);
  --t-h3:      clamp(1.18rem, 1.05rem + 0.5vw, 1.5rem);
  --t-lede:    clamp(1.08rem, 1rem + 0.42vw, 1.32rem);
  --t-body:    clamp(1rem, 0.97rem + 0.2vw, 1.09rem);
  --t-small:   0.8rem;

  --shell: 80rem;
  --gut:   clamp(1.2rem, 0.6rem + 2.5vw, 3.1rem);
  --sec-y: clamp(4.5rem, 3rem + 7vw, 9.5rem);

  --arch:  999px 999px 10px 10px;   /* the corner treatment: an arched top */
  --ease:  cubic-bezier(.24, .9, .3, 1);

  /* Paper fibre. Turbulence stretched horizontally so it reads as laid paper
     rather than the film grain other sites in this family use. */
  --fibre: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.028 .85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");

  color-scheme: dark;
}

[data-ground="walnut"] {
  --bg:      #2a1d18;
  --raise:   #362621;
  --line:    #4e3830;
  --ink:     #f5ece0;
  --mute:    #b5a294;   /* 6.7:1 */
  --acc:     var(--ember);
  --on-acc:  #23140f;
  --err:     #ffb0a0;
  --ok:      #9dd0a8;
  --fibre-op: .06;
}
[data-ground="oat"] {
  --bg:      #ece3d2;
  --raise:   #f8f2e6;
  --line:    #d3c6ae;
  --ink:     #241a14;
  --mute:    #6b5b4d;   /* 5.1:1 */
  --acc:     var(--ember-deep);
  --on-acc:  #fdf7ee;
  --err:     #8f2d12;
  --ok:      #2f6136;
  --fibre-op: .05;
}

/* ── 2. Reset ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

@font-face {
  font-family: "Bitter"; src: url("/assets/fonts/bitter.woff2") format("woff2");
  font-weight: 600 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Karla"; src: url("/assets/fonts/karla.woff2") format("woff2");
  font-weight: 400 600; font-style: normal; font-display: swap;
}

/* scroll-padding-top, not scroll-margin on each target: the nav is fixed, so
   without it every in-page link scrolls its heading to y=0 and straight under
   an opaque bar. Measured at 69-75px across this family. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: #2a1d18;
  color: #f5ece0;
  font-family: "Karla", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--t-body);
  line-height: 1.65;
  overflow-x: hidden;
}

img, svg, picture, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--ember); color: #23140f; }

[hidden] { display: none !important; }

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

.u-sr {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: fixed; top: 0; left: 50%; translate: -50% -160%;
  z-index: 200; padding: .85rem 1.5rem;
  background: var(--ember); color: #23140f;
  font-family: "Bitter", serif; font-weight: 700;
  transition: translate .25s var(--ease);
}
.skip:focus { translate: -50% 0; }

/* ── 3. Type ───────────────────────────────────────────────────────────── */
.h1, .h2, .h3, h1, h2, h3 {
  font-family: "Bitter", ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 700; line-height: 1.1; letter-spacing: -.022em;
  text-wrap: balance;
}
.h2 { font-size: var(--t-h2); }
.h3 { font-size: var(--t-h3); line-height: 1.22; letter-spacing: -.014em; }
p { text-wrap: pretty; }
strong { font-weight: 600; color: var(--ink); }

.label {
  font-family: "Bitter", serif; font-weight: 600;
  font-size: var(--t-small); letter-spacing: .16em; text-transform: uppercase;
  color: var(--acc);
}
.label--mute { color: var(--mute); }
.lede { font-size: var(--t-lede); color: var(--mute); }
.sep { opacity: .45; padding-inline: .3em; }
.nowrap { white-space: nowrap; }

.sec-head { max-width: 46rem; margin-bottom: clamp(2.4rem, 1.6rem + 3vw, 4rem); }
.sec-head .h2 { margin-top: .9rem; }
.sec-head .lede { margin-top: 1.05rem; max-width: 40rem; }

/* ── 4. Layout ─────────────────────────────────────────────────────────── */
.shell {
  width: 100%; max-width: var(--shell);
  margin-inline: auto; padding-inline: var(--gut);
  position: relative; z-index: 2;
}

section[data-ground], .foot {
  position: relative; background: var(--bg); color: var(--ink);
}
/* flow-root so a first child's top margin cannot collapse out of a band and
   leave a strip of the body background showing between two sections. */
section[data-ground] { padding-block: var(--sec-y); display: flow-root; }
/* Where two sections share a ground, only one pays for the join. */
section[data-ground="oat"] + section[data-ground="oat"],
section[data-ground="walnut"] + section[data-ground="walnut"] { padding-top: 0; }

/* Paper fibre, above the ground and below the content. Deliberately NOT
   applied with `section > *` — that outranks position:absolute on full-bleed
   media layers and drops them into normal flow. */
section[data-ground]::before, .foot::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: var(--fibre);
  opacity: var(--fibre-op);
}

/* Torn edge between bands. Angular rather than wavy — paper tears in straight
   short runs, it does not undulate. */
.tear { position: relative; z-index: 3; line-height: 0; }
.tear svg { display: block; width: 100%; height: clamp(20px, 2.8vw, 40px); }
.tear--oat    { background: #2a1d18; }
.tear--oat    svg path { fill: #ece3d2; }
.tear--walnut { background: #ece3d2; }
.tear--walnut svg path { fill: #2a1d18; }

/* ── 5. Components ─────────────────────────────────────────────────────── */

/* Photography — one warm grade across every frame, which is what stops a set
   of stock photographs looking like a set of stock photographs. */
.ph {
  position: relative; display: block; overflow: hidden;
  background-image: var(--lqip);
  background-size: cover; background-position: center;
  isolation: isolate;
}
.ph picture { display: block; width: 100%; height: 100%; }
.ph img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.86) contrast(1.05) brightness(.99) sepia(.12);
  opacity: 0; transition: opacity .7s var(--ease), scale 1.3s var(--ease);
}
.ph img.is-loaded { opacity: 1; }
.ph::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(198deg, rgba(232,121,92,.22) 0%, rgba(232,121,92,0) 54%),
    linear-gradient(0deg,   rgba(42,29,24,.42)  0%, rgba(42,29,24,0)  56%);
  mix-blend-mode: soft-light;
}
.ph--arch    { aspect-ratio: 4 / 5;  border-radius: var(--arch); }
.ph--tall    { aspect-ratio: 2 / 3;  border-radius: var(--arch); }
.ph--door    { aspect-ratio: 16 / 10; border-radius: 10px; }
.ph--band    { aspect-ratio: 16 / 9;  border-radius: 10px; }

/* Buttons — small radius, generous padding, slab type. */
.btn {
  --pad: .82rem 1.45rem;
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: var(--pad); border-radius: 6px;
  font-family: "Bitter", serif; font-weight: 700; font-size: .92rem;
  border: 2px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .28s var(--ease), color .28s var(--ease),
              border-color .28s var(--ease), translate .28s var(--ease);
}
.btn--lg   { --pad: 1rem 1.85rem; font-size: 1rem; }
.btn--full { width: 100%; }
.btn--solid { background: var(--acc); color: var(--on-acc); border-color: var(--acc); }
.btn--solid:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn--line { border-color: var(--line); color: var(--ink); }
.btn--line:hover { border-color: var(--acc); color: var(--acc); }
.btn:active { translate: 0 1px; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease);
}
.nav::before { content: none; }
.nav.is-stuck {
  background: color-mix(in oklab, #2a1d18 93%, transparent);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.nav__in { display: flex; align-items: center; gap: clamp(.8rem, 2.4vw, 2.2rem); min-height: 72px; }
.nav__links { display: flex; gap: clamp(.9rem, 1.9vw, 1.8rem); margin-inline: auto; }
.nav__links a {
  position: relative; padding: .4rem .1rem;
  font-size: .92rem; color: var(--mute); transition: color .28s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .05rem; height: 2px;
  background: var(--acc); scale: 0 1; transform-origin: right;
  transition: scale .32s var(--ease);
}
.nav__links a:hover, .nav__links a.is-here { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-here::after { scale: 1 1; transform-origin: left; }
.nav__cta { display: flex; align-items: center; gap: .5rem; }
.nav .btn { --pad: .58rem 1.05rem; font-size: .84rem; }

.brand { display: inline-flex; align-items: center; gap: .62rem; flex: none; }
.brand__mark { width: 27px; height: 27px; color: var(--acc); flex: none; }
.brand__word {
  display: flex; flex-direction: column; line-height: 1;
  font-family: "Bitter", serif; font-weight: 700; font-size: 1.24rem; letter-spacing: -.025em;
}
.brand__sub {
  font-family: "Karla", sans-serif; font-size: .57rem; font-weight: 600;
  letter-spacing: .21em; text-transform: uppercase; color: var(--mute); margin-top: .32rem;
}

.nav__toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; margin-left: auto;
  background: none; border: 0; cursor: pointer; padding: 0;
}
.nav__bar {
  display: block; width: 22px; height: 2px; background: var(--ink); margin-inline: auto;
  transition: translate .25s var(--ease), rotate .25s var(--ease);
}
.nav__toggle[aria-expanded="true"] .nav__bar:first-child { translate: 0 3.5px; rotate: 45deg; }
.nav__toggle[aria-expanded="true"] .nav__bar:last-child  { translate: 0 -3.5px; rotate: -45deg; }

.menu {
  display: flex; flex-direction: column;
  padding: .4rem var(--gut) 1.8rem;
  background: #2a1d18; border-top: 1px solid var(--line);
}
.menu a { padding: .95rem 0; border-bottom: 1px solid var(--line); font-size: 1.04rem; }
.menu__cta { color: var(--ember); font-weight: 600; }

/* ── 6. Sections ───────────────────────────────────────────────────────── */

/* Hero — a collage of three arched frames, offset from each other. */
.hero { padding-block: 7.5rem clamp(2.5rem, 1.8rem + 2.4vw, 4rem); }
.hero__grid {
  display: grid; gap: clamp(2.2rem, 1rem + 4vw, 4.5rem);
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  align-items: center;
}
.hero__h { font-size: var(--t-display); margin: 1rem 0 0; }
.hero__h em { font-style: normal; color: var(--acc); }
.hero__lede { margin-top: 1.4rem; max-width: 32rem; font-size: var(--t-lede); color: var(--mute); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 2rem; }

/* Pinned prints. Each frame sits on a paper mat, a little askew, overlapping
   its neighbour — then straightens when you point at it. */
.collage {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr) minmax(0, 1fr);
  align-items: center; padding-block: 2.5rem 1.5rem;
}
.collage figure {
  position: relative; padding: .55rem .55rem .2rem;
  background: #f3eadc; border-radius: 999px 999px 6px 6px;
  box-shadow: 0 1px 0 rgba(0,0,0,.25), 0 18px 40px -18px rgba(0,0,0,.65);
  transition: rotate .5s var(--ease), translate .5s var(--ease), scale .5s var(--ease), z-index 0s .25s;
}
.collage figure:nth-child(1) { rotate: -4deg; translate: 12% 1.4rem; z-index: 1; }
.collage figure:nth-child(2) { rotate: 1.6deg; translate: 0 -1rem; z-index: 2; }
.collage figure:nth-child(3) { rotate: 4.5deg; translate: -12% 2.2rem; z-index: 1; }
.collage figure:hover { rotate: 0deg; scale: 1.04; z-index: 3; transition-delay: 0s; }
.collage figcaption {
  padding: .5rem 0 .35rem; text-align: center;
  font-family: "Bitter", serif; font-weight: 600;
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #4a372d;
}

/* A plain strip of what gets staffed — no scrolling marquee on this site. */
.strip { border-block: 1px solid var(--line); }
.strip ul {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.6rem;
  padding-block: 1.1rem;
}
.strip li { font-family: "Bitter", serif; font-weight: 600; font-size: .84rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }

/* Essay */
.essay__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 1rem + 4vw, 5rem); }
.essay__body p + p { margin-top: 1.1rem; }
.essay__body p { color: var(--mute); }
.essay__body .h2 { margin: .9rem 0 1.3rem; }
.pull {
  margin: 1.9rem 0; padding: 1.2rem 0 1.2rem 1.4rem;
  border-left: 4px solid var(--acc);
  font-family: "Bitter", serif; font-weight: 700;
  font-size: clamp(1.22rem, 1.05rem + .9vw, 1.6rem); line-height: 1.32;
  color: var(--ink); letter-spacing: -.016em;
}

/* The ledger — the centre of this site. */
.ledger { width: 100%; border-collapse: collapse; }
.ledger caption { text-align: left; color: var(--mute); font-size: .9rem; padding-bottom: 1.1rem; max-width: 44rem; }
.ledger th, .ledger td { text-align: left; padding: 1rem .95rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.ledger thead th {
  font-family: "Bitter", serif; font-weight: 600; font-size: .74rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--mute);
  border-bottom: 2px solid var(--line);
}
.ledger tbody th { font-family: "Bitter", serif; font-weight: 700; font-size: 1rem; color: var(--ink); width: 22%; }
.ledger td { color: var(--mute); font-size: .94rem; }
.ledger tbody tr:hover { background: var(--raise); }
.ledger .gotcha { color: var(--ink); }
.ledger .gotcha b {
  color: var(--acc); font-weight: 600;
  /* A highlighter pass, laid under the text rather than over it. */
  background-image: linear-gradient(transparent 56%, rgba(232,121,92,.22) 56%, rgba(232,121,92,.22) 94%, transparent 94%);
  background-repeat: no-repeat; background-size: 100% 100%;
  transition: background-size .9s var(--ease);
}
/* With JS, the pass is drawn as the ledger scrolls in, one row after another. */
.js .reveal:not(.is-in) .ledger .gotcha b { background-size: 0% 100%; }
.ledger tbody tr:nth-child(2) .gotcha b { transition-delay: .25s; }
.ledger tbody tr:nth-child(3) .gotcha b { transition-delay: .5s; }
.ledger tbody tr:nth-child(4) .gotcha b { transition-delay: .75s; }
.ledger tbody tr:nth-child(5) .gotcha b { transition-delay: 1s; }

/* The cast strip — five arched portraits in a row. */
.cast { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(.8rem, 1.6vw, 1.6rem); }
.cast figure:hover .ph img { scale: 1.04; }
.cast h3 { margin-top: .9rem; font-size: 1.02rem; }
.cast p { margin-top: .3rem; font-size: .86rem; color: var(--mute); }

/* Two panels */
.panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: center; }
.panel--flip .panel__fig { order: -1; }
.panel__body .h2 { margin: .9rem 0 1.2rem; }
.panel__body > p { color: var(--mute); }
.ticks { display: grid; gap: .68rem; margin: 1.4rem 0 1.9rem; }
.ticks li { position: relative; padding-left: 1.6rem; color: var(--mute); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: .62rem; height: .62rem; border-radius: 50% 50% 50% 0;
  background: var(--acc); rotate: -45deg;
}
.ticks strong { color: var(--ink); font-weight: 600; }

/* Steps — lettered, in the slab face. */
.steps { border-top: 2px solid var(--line); }
.step {
  display: grid; grid-template-columns: 3.6rem 1fr; gap: clamp(1rem, 2.6vw, 2.2rem);
  padding-block: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
  border-bottom: 1px solid var(--line);
}
.step__k {
  font-family: "Bitter", serif; font-weight: 700; font-size: 1.8rem;
  line-height: 1; color: var(--acc);
}
.step__c { max-width: 46rem; }
.step__c h3 { margin-bottom: .5rem; }
.step__c p { color: var(--mute); }

/* On the books — the band */
.books__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 4rem); }
.books__fig { align-self: start; }
.promises li { padding-block: 1.1rem; border-top: 1px solid var(--line); }
.promises li:last-child { border-bottom: 1px solid var(--line); }
.promises h3 { font-size: 1rem; margin-bottom: .28rem; }
.promises p { font-size: .9rem; color: var(--mute); line-height: 1.58; }

/* Quotes */
.quotes__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.6rem, 1rem + 2.4vw, 3rem); }
.quote { border-top: 2px solid var(--line); padding-top: 1.3rem; }
.quote blockquote p {
  font-family: "Bitter", serif; font-weight: 600;
  font-size: 1.04rem; line-height: 1.45; letter-spacing: -.012em;
}
.quote figcaption { margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: .2rem; }
.quote__who { font-family: "Bitter", serif; font-weight: 700; font-size: .9rem; }
.quote__where { font-size: .85rem; color: var(--mute); }

/* FAQ */
.faq__grid { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: clamp(2rem, 1rem + 4vw, 4.5rem); }
.faq__list { border-top: 2px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.4rem;
  padding: 1.15rem 0; cursor: pointer; list-style: none;
  font-family: "Bitter", serif; font-weight: 700; font-size: 1.06rem; letter-spacing: -.014em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 11px; height: 11px;
  border: 2px solid var(--acc); border-left: 0; border-top: 0;
  rotate: 45deg; translate: 0 -3px; transition: rotate .28s var(--ease);
}
.faq details[open] summary::after { rotate: 225deg; translate: 0 3px; }
.faq summary:hover { color: var(--acc); }
.faq__a { padding-bottom: 1.4rem; padding-right: clamp(0rem, 5vw, 4rem); }
.faq__a p { color: var(--mute); }
.faq__a p + p { margin-top: .85rem; }
.faq__a a { color: var(--acc); text-decoration: underline; text-underline-offset: 3px; }

/* Contact */
.contact__grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(2rem, 1rem + 4vw, 4.5rem); }
.contact__head .h2 { margin: .9rem 0 1.2rem; }
.contact__es { margin-top: 1rem; color: var(--mute); font-size: .95rem; }
.contact__direct { margin-top: 1.9rem; padding-top: 1.3rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: .35rem; }
.contact__direct a {
  font-family: "Bitter", serif; font-weight: 700; color: var(--acc);
  text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere;
}

/* ── 7. Form ───────────────────────────────────────────────────────────── */
/* Everything inside derives from the ground tokens. A component that hardcodes
   its own surfaces will fail contrast on whichever ground it did not expect. */
.form { background: var(--raise); border: 1px solid var(--line); border-radius: 10px; padding: clamp(1.3rem, 1rem + 1.9vw, 2.3rem); }

.seg { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--line); border-radius: 8px; overflow: hidden; margin-bottom: 1.7rem; }
.seg__btn {
  padding: .78rem .9rem; background: none; border: 0; cursor: pointer;
  font-family: "Bitter", serif; font-weight: 700; font-size: .88rem;
  color: var(--mute); transition: background .28s var(--ease), color .28s var(--ease);
}
.seg__btn.is-on { background: var(--acc); color: var(--on-acc); }
.seg__btn:not(.is-on):hover { color: var(--ink); }

.form__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1.05rem; }
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label { font-family: "Bitter", serif; font-weight: 600; font-size: .84rem; }
.field .opt { font-family: "Karla", sans-serif; font-weight: 400; color: var(--mute); }
.field input, .field textarea {
  width: 100%; padding: .75rem .9rem; border-radius: 6px;
  background: var(--bg); border: 1px solid var(--line); color: var(--ink);
  transition: border-color .25s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: color-mix(in oklab, var(--mute) 92%, transparent); }
.field input:focus-visible, .field textarea:focus-visible { border-color: var(--acc); }
.field textarea { resize: vertical; min-height: 5.8rem; }
.field__err { font-size: .8rem; color: var(--err); }
.field.is-bad input, .field.is-bad textarea { border-color: var(--err); }

.check { flex-direction: row; align-items: flex-start; gap: .62rem; }
.check input { width: 1.5rem; height: 1.5rem; flex: none; margin-top: .28rem; accent-color: var(--acc); }
.check label { font-family: "Karla", sans-serif; font-weight: 400; color: var(--mute); font-size: .9rem; line-height: 1.5; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form button[type="submit"] { margin-top: 1.6rem; }
.form__status { margin-top: .95rem; font-size: .92rem; color: var(--ok); }
.form__status:empty { margin: 0; }
.form__status.is-bad { color: var(--err); }
.form__status a { color: inherit; text-decoration: underline; }
.form__fine { margin-top: 1.05rem; font-size: .83rem; color: var(--mute); line-height: 1.55; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.foot { padding-block: clamp(3rem, 2rem + 2.6vw, 4.4rem) 2.3rem; border-top: 1px solid var(--line); }
.foot__top {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem 2.4rem;
  padding-bottom: 2rem; border-bottom: 1px solid var(--line);
}
.foot__nav { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-inline: auto; }
.foot__nav a { font-size: .92rem; color: var(--mute); transition: color .28s var(--ease); }
.foot__nav a:hover { color: var(--ink); }
.foot__mail a {
  font-family: "Bitter", serif; font-weight: 700; color: var(--acc);
  text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere;
}
.foot__eeo { margin-top: 2rem; max-width: 62rem; font-size: .82rem; line-height: 1.62; color: var(--mute); }
.foot__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
  margin-top: 2rem; padding-top: 1.3rem; border-top: 1px solid var(--line);
  font-size: .82rem; color: var(--mute);
}

/* ── 8. Motion ─────────────────────────────────────────────────────────── */
/* Visible by default, so the page still reads if the script never runs. The
   script adds .js itself as its first statement, which is what opts in. */
.reveal { opacity: 1; translate: none; }
.js .reveal {
  opacity: 0; translate: 0 18px;
  transition: opacity .8s var(--ease), translate .8s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-in { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; translate: none; }
  .ph img { opacity: 1; }
  .collage figure { transition: none; }
}

/* ── 9. Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .hero__grid, .essay__grid, .panel, .books__grid, .faq__grid, .contact__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .panel--flip .panel__fig { order: 0; }
  .panel__fig, .books__fig { max-width: 36rem; }
  .cast { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quotes__list { grid-template-columns: minmax(0, 1fr); }
  .quote + .quote { margin-top: .5rem; }
}

@media (max-width: 880px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav { background: color-mix(in oklab, #2a1d18 93%, transparent); backdrop-filter: blur(12px); }
  .strip ul { justify-content: flex-start; }
}

@media (max-width: 680px) {
  .cast { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collage figure:nth-child(1) { translate: 8% .6rem; }
  .collage figure:nth-child(3) { translate: -8% 1rem; }
  .collage figure { padding: .35rem .35rem .1rem; }
  .form__fields { grid-template-columns: minmax(0, 1fr); }
  .field--wide { grid-column: auto; }
  .foot__nav { margin-inline: 0; width: 100%; }
  .hero__actions .btn { flex: 1 1 100%; }
  .step { grid-template-columns: minmax(0, 1fr); gap: .3rem; }
  /* A ledger cannot usefully shrink below its columns; stack it into records. */
  .ledger, .ledger tbody, .ledger tr, .ledger td, .ledger th, .ledger caption { display: block; width: auto; }
  .ledger tbody th { width: auto; }
  .ledger thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ledger tbody tr { border-bottom: 2px solid var(--line); padding-block: .7rem; }
  .ledger tbody th { border: 0; padding: 0 0 .35rem; }
  .ledger td { border: 0; padding: .22rem 0; }
  .ledger td::before {
    content: attr(data-th) " ";
    font-family: "Bitter", serif; font-weight: 600; font-size: .72rem;
    letter-spacing: .12em; text-transform: uppercase; color: var(--mute);
  }
}

@media (max-width: 420px) {
  .cast { grid-template-columns: minmax(0, 1fr); }
  .seg { grid-template-columns: minmax(0, 1fr); }
  .seg__btn + .seg__btn { border-top: 2px solid var(--line); }
}

@media print {
  .nav, .form, .skip, .tear { display: none !important; }
  body, section[data-ground] { background: #fff !important; color: #000 !important; }
}
