/* Display serif: Source Serif 4, the web fallback for Plantin MT Pro (brand/2026-08-15-visual-locks.md). */
@font-face { font-family: "Source Serif 4"; src: url("assets/fonts/SourceSerif4-opsz.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("assets/fonts/SourceSerif4-opsz-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Timeless Sans"; src: url("assets/fonts/TimelessSansVF.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

/* EHMC house palette (brand/NOW.md). No sage, no orange+black pairing. */
:root {
  --powder: #F5F4EC;
  --ink: #000;
  --squash: #F7C948;
  --scallion: #2E7D4F;
  --peach: #F0A28A;
  --spa: #B8E2EC; /* drawings only (brand/2026-08-15-visual-locks.md) */
  --paper: #FFFFFF;
  --hair: color-mix(in srgb, var(--ink) 15%, #fff);
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Timeless Sans", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --radius: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--powder); color: var(--ink); font-family: var(--sans); font-size: 18px; line-height: 1.45; letter-spacing: -0.012em; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 18px; }
.display { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 7.4vw, 112px); line-height: 0.9; letter-spacing: -0.025em; margin: 0 0 24px; }
.display em, .h2 em, .band__line em { font-style: italic; font-weight: 400; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5vw, 72px); line-height: 0.95; letter-spacing: -0.025em; margin: 0 0 18px; }
.lede { font-size: clamp(18px, 1.6vw, 22px); max-width: 34ch; margin: 0 0 28px; }
.sub { max-width: 52ch; margin: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 18px 28px; font: 600 17px/1 var(--sans); letter-spacing: -0.01em; cursor: pointer; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(0,0,0,.12); }
.btn:focus-visible, input:focus-visible, .chip:focus-visible { outline: 3px solid var(--scallion); outline-offset: 3px; }
.btn--ink { background: var(--ink); color: var(--squash); }
.btn--sm { padding: 12px 18px; font-size: 15px; }

/* Bar */
.bar { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; padding: 14px var(--pad); background: color-mix(in srgb, var(--powder) 88%, transparent); backdrop-filter: blur(10px); }
.bar__name { font-family: var(--serif); font-size: 24px; font-weight: 400; letter-spacing: -0.025em; text-decoration: none; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(24px, 4vw, 56px) var(--pad) clamp(48px, 6vw, 96px); }
/* Approved palette exception (Bobby, 2026-10-17): this large Spaghetti Squash panel sits beside the pre-order ask and stays yellow. */
.hero__stage { position: relative; aspect-ratio: 1 / 1.02; border-radius: var(--radius); background: radial-gradient(120% 90% at 50% 30%, color-mix(in srgb, var(--squash) 55%, #fff) 0%, var(--squash) 55%, color-mix(in srgb, var(--squash) 90%, #000) 100%); overflow: hidden; }
.hero__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; animation: stage-in .6s ease-out both; }
@keyframes stage-in { from { opacity: 0; } to { opacity: 1; } }
.stage__fallback { position: absolute; left: 50%; top: 50%; width: 46%; transform: translate(-50%, -50%) rotate(-4deg); box-shadow: 0 30px 50px rgba(0,0,0,.25); border-radius: 3px; }
.hero__stage.is-3d .stage__fallback { display: none; }
.stage__controls { position: absolute; z-index: 1; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; gap: 8px; }
.stage__controls[hidden] { display: none; }
.chip { border: 0; border-radius: 999px; padding: 10px 16px; background: var(--powder); color: var(--ink); font: 600 14px/1 var(--sans); cursor: pointer; box-shadow: 0 2px 0 rgba(0,0,0,.12); }
.chip:hover { background: #fff; }

/* Signup */
.signup { display: flex; flex-wrap: wrap; gap: 10px; max-width: 520px; }
.signup input { flex: 1 1 220px; min-width: 0; border: 2px solid var(--ink); border-radius: 999px; padding: 16px 22px; font: 500 17px/1 var(--sans); letter-spacing: -0.01em; background: #fff; color: var(--ink); }
.signup__note { flex-basis: 100%; margin: 4px 0 0 6px; font-size: 14px; opacity: .75; }
.signup.is-done input, .signup.is-done button { display: none; }
.signup.is-done .signup__note { opacity: 1; font-weight: 600; font-size: 17px; }
.signup.is-error .signup__note { opacity: 1; color: var(--ink); font-weight: 600; }
.signup--center { margin: 0 auto; justify-content: center; }

/* Quote */
.quote { background: var(--paper); padding: clamp(56px, 8vw, 120px) var(--pad); }
.quote blockquote { margin: 0 auto; max-width: 1100px; }
.quote p { font-family: var(--serif); font-size: clamp(28px, 3.6vw, 52px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 24px; }
.quote footer { font-weight: 600; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; }

/* Pillars */
.pillars, .find { padding: clamp(64px, 9vw, 140px) var(--pad); }
.section-head { margin-bottom: clamp(32px, 4vw, 56px); }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { border-radius: var(--radius); padding: 32px 28px 40px; min-height: 340px; display: flex; flex-direction: column; transition: transform .25s ease; }
.card:hover { transform: translateY(-6px) rotate(-.6deg); }
.card h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 3.4vw, 52px); letter-spacing: -0.025em; line-height: 1; margin: auto 0 14px; }
.card p { margin: 0; max-width: 32ch; }
.card__num { font-weight: 700; font-size: 14px; letter-spacing: .06em; }
.card--ink { background: var(--ink); color: var(--powder); }
.card--paper { background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink); }
.card--peach { background: #F7D3C4; color: var(--ink); } /* Peach soft-surface tint (visual-locks) */

/* Photo band */
.band { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; padding: 0 var(--pad); }
.band__img { margin: 0; border-radius: var(--radius); overflow: hidden; }
.band__img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.band__img--b img { aspect-ratio: auto; height: 100%; }
.band__line { grid-column: 1 / -1; font-family: var(--serif); font-size: clamp(36px, 6vw, 92px); line-height: .92; letter-spacing: -0.025em; margin: 36px 0 0; max-width: 16ch; }

/* Find */
.find__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; counter-reset: f; }
.find__list li { counter-increment: f; border-top: 2px solid var(--ink); padding: 22px 0 32px 56px; position: relative; font-size: clamp(18px, 1.6vw, 22px); }
.find__list li::before { content: counter(f, decimal-leading-zero); position: absolute; left: 0; top: 24px; font-weight: 700; font-size: 14px; color: var(--scallion); }

/* Author */
.author { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 5vw, 80px); align-items: center; padding: 0 var(--pad) clamp(64px, 9vw, 140px); }
.author__photo { margin: 0; border-radius: var(--radius); overflow: hidden; }
.author__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.author__copy p { max-width: 46ch; }

/* CTA */
.cta { background: var(--squash); text-align: center; padding: clamp(72px, 10vw, 160px) var(--pad); }
.display--cta { max-width: 14ch; margin-left: auto; margin-right: auto; }
.cta .lede { margin-left: auto; margin-right: auto; max-width: 40ch; }
.cta__meta { margin: 40px 0 0; font-size: 14px; opacity: .7; }

.foot { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; padding: 28px var(--pad); font-size: 14px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero__stage { order: -1; aspect-ratio: 1 / 1.05; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 240px; }
  .band { grid-template-columns: 1fr; }
  .find__list { grid-template-columns: 1fr; }
  .author { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
  .hero__stage canvas { animation: none; }
}

/* pre-order */
.btn--lg { padding: 22px 36px; font-size: 19px; }
.buy { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin: 0 0 22px; }
.buy__meta { font-size: 14px; letter-spacing: .02em; opacity: .75; }
.or { margin: 0 0 10px; font-size: 15px; opacity: .8; }
.cta .or { margin-top: 18px; }
.find__close { margin-top: 28px; }

/* Polaroid frames: family photo strip */
.polaroid { list-style: none; background: #fff; padding: 10px 10px 14px; border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 12px 28px rgba(0,0,0,.12); transition: transform .25s ease; }
.polaroid img { display: block; width: 100%; height: auto; border-radius: 2px; }
.polaroid span { display: block; margin-top: 10px; text-align: center; font: 600 13px/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; }
.polaroid:nth-child(odd) { transform: rotate(-1.6deg); }
.polaroid:nth-child(even) { transform: rotate(1.4deg); }
.polaroid:hover { transform: rotate(0) translateY(-4px); }
.strip { padding: clamp(64px, 9vw, 140px) var(--pad); }
.strip__row { display: flex; gap: 18px; margin: 32px 0 0; padding: 8px 4px 20px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.strip__row .polaroid { flex: 0 0 58%; scroll-snap-align: center; padding-bottom: 30px; }
@media (min-width: 760px) {
  .strip__row { overflow: visible; }
  .strip__row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
  .strip__row .polaroid { flex: none; }
}
@media (prefers-reduced-motion: reduce) { .polaroid { transition: none; } }
.hero .display { font-size: clamp(44px, 5.6vw, 88px); }

/* Sample: fanned proof pages beside the email ask. The pages are a teaser, not meant to be read. */
.btn--squash { background: var(--squash); color: var(--ink); }
.sample { padding: clamp(32px, 5vw, 72px) var(--pad); }
.sample__panel { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: center; background: var(--ink); color: var(--powder); border-radius: var(--radius); padding: clamp(40px, 6vw, 96px) clamp(24px, 5vw, 80px); overflow: hidden; }
.sample__copy .sub { margin-bottom: 28px; }
.sample .signup input { border-color: var(--powder); }
.sample .signup.is-error .signup__note { color: var(--powder); }
.sample__art { position: relative; display: block; aspect-ratio: 1 / 1; cursor: pointer; }
.sample__page { position: absolute; left: 50%; top: 50%; width: 54%; background: #fff; padding: 6px; border-radius: 3px; box-shadow: 0 24px 48px rgba(0,0,0,.45); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.sample__page img { width: 100%; border-radius: 1px; }
.sample__page--1 { z-index: 3; transform: translate(-50%, -50%) rotate(3deg); }
.sample__page--1::after { content: ""; position: absolute; inset: 45% 6px 6px; background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 85%); }
.sample__page--2 { z-index: 2; transform: translate(-62%, -52%) rotate(-6deg); }
.sample__page--3 { z-index: 1; transform: translate(-38%, -48%) rotate(10deg); }
.sample__art:hover .sample__page--1 { transform: translate(-50%, -56%) rotate(1deg); }
.sample__art:hover .sample__page--2 { transform: translate(-74%, -52%) rotate(-11deg); }
.sample__art:hover .sample__page--3 { transform: translate(-26%, -46%) rotate(16deg); }
.sample__badge { position: absolute; z-index: 4; right: 6%; top: 8%; display: grid; place-items: center; width: clamp(88px, 11vw, 128px); aspect-ratio: 1; border-radius: 50%; background: var(--squash); color: var(--ink); font: 700 clamp(17px, 1.7vw, 22px)/1 var(--sans); letter-spacing: -0.02em; text-align: center; transform: rotate(12deg); box-shadow: 0 8px 20px rgba(0,0,0,.35); }
@media (max-width: 900px) {
  .sample__panel { grid-template-columns: 1fr; }
  .sample__art { max-width: 420px; width: 100%; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) { .sample__page { transition: none; } }
