/* 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;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Timeless Sans", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --radius: 28px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::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; overflow-x: clip; }
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; }
section { scroll-margin-top: 72px; }

.eyebrow { 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, 120px); line-height: 0.9; letter-spacing: -0.025em; margin: 0 0 26px; }
.display em, .h2 em { font-style: italic; font-weight: 400; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.6vw, 72px); line-height: 0.96; letter-spacing: -0.025em; margin: 0 0 22px; }
.lede { font-size: clamp(18px, 1.6vw, 22px); max-width: 40ch; margin: 0 0 30px; }
.sub { max-width: 48ch; margin: 0 0 28px; }
.link { font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.link:hover { text-decoration-color: var(--scallion); }

.btn { display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--ink); border-radius: 999px; padding: 16px 26px; 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, a:focus-visible { outline: 3px solid var(--scallion); outline-offset: 3px; }
.btn--ink { background: var(--ink); color: var(--squash); }
.btn--line { background: transparent; color: var(--ink); }
.btn--sm { padding: 10px 16px; font-size: 15px; }

/* Bar */
.bar { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 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; white-space: nowrap; }
.bar__nav { display: flex; align-items: center; gap: 22px; font-weight: 600; font-size: 15px; }
.bar__nav a:not(.btn) { text-decoration: none; }
.bar__nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; }

/* Hero: Nicole, with her book-jacket portrait shown whole (no crop). */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(32px, 5vw, 72px) var(--pad) clamp(56px, 8vw, 120px); }
.hero__copy .display { margin-bottom: 22px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__photo { margin: 0; justify-self: center; width: min(480px, 100%); }
.hero__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 50%; border-radius: var(--radius); }

/* What I talk about */
.talk { padding: clamp(56px, 8vw, 120px) var(--pad); background: var(--paper); border-block: 2px solid var(--ink); }
.talk__title { margin-bottom: clamp(28px, 4vw, 48px); }
.talk__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.tile { position: relative; overflow: hidden; padding: clamp(24px, 2.6vw, 36px); border: 2px solid var(--ink); border-radius: var(--radius); background: var(--powder); }
.tile::before { content: ""; position: absolute; inset: 0; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, -40%), color-mix(in srgb, var(--peach) 45%, transparent), transparent 70%); opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.tile:hover::before { opacity: 1; }
.tile > * { position: relative; }
.tile__t { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.2vw, 34px); letter-spacing: -0.02em; line-height: 1.02; margin: 0 0 14px; }
.tile p { margin: 0; }

/* About */
.about { padding: clamp(56px, 8vw, 120px) var(--pad); }
.about__family { margin: 0 0 clamp(32px, 4vw, 56px); }
.about__family img { width: 100%; height: auto; border-radius: var(--radius); }
.about__copy { max-width: 760px; }
.about__copy p { font-size: clamp(18px, 1.4vw, 20px); }

/* Praise: three static cards */
.praise { padding: 0 var(--pad) clamp(56px, 8vw, 120px); }
.praise__title { max-width: 18ch; margin-bottom: clamp(28px, 4vw, 48px); }
.praise__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quote-card { margin: 0; padding: 32px; border-radius: var(--radius); background: var(--paper); border: 2px solid var(--ink); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.quote-card blockquote { margin: 0; font-family: var(--serif); font-size: clamp(22px, 2vw, 28px); line-height: 1.12; letter-spacing: -0.02em; }
.quote-card figcaption { font: 600 13px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.quote-card--ink { background: var(--ink); color: var(--powder); }

/* Instagram gallery */
.ig { padding: clamp(56px, 8vw, 120px) var(--pad); background: var(--paper); border-top: 2px solid var(--ink); }
.ig__head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.ig__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ig__grid a { display: block; overflow: hidden; border-radius: 14px; }
.ig__grid img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .6s var(--ease), filter .6s var(--ease); }
.ig__grid a:hover img { transform: scale(1.05); filter: saturate(1.1); }
.ig__cta { margin: clamp(28px, 4vw, 40px) 0 0; text-align: center; }

/* The book and the club: one quiet line each */
.quiet { max-width: 760px; margin: 0 auto; padding: clamp(56px, 8vw, 110px) var(--pad); text-align: center; }
.quiet__line { font-family: var(--serif); font-size: clamp(21px, 1.9vw, 27px); line-height: 1.3; letter-spacing: -0.02em; margin: 0 0 18px; }
.quiet__line .link { font-family: var(--sans); font-size: .72em; letter-spacing: 0; }
.quiet .signup { margin-top: 36px; }

/* 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; font-size: 14px; opacity: .8; }
.signup.is-done input, .signup.is-done button { display: none; }
.signup.is-done .signup__note { opacity: 1; font-weight: 600; font-size: 18px; }
.signup.is-error .signup__note { opacity: 1; color: var(--ink); font-weight: 600; }
.signup--center { margin: 0 auto; justify-content: center; }

.foot { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; padding: 28px var(--pad); font-size: 14px; border-top: 1px solid rgba(0,0,0,.12); }

/* Reveal on scroll (motion.js adds .js and .is-in) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js [data-split] .w { display: inline-block; opacity: 0; filter: blur(8px); transform: translateY(.35em); transition: opacity .7s var(--ease), transform .7s var(--ease), filter .7s var(--ease); transition-delay: calc(var(--i) * 55ms); }
.js [data-split].is-in .w { opacity: 1; filter: none; transform: none; }
.js .reveal-img { clip-path: inset(100% 0 0 0 round var(--radius)); transition: clip-path 1.2s var(--ease); }
.js .reveal-img.is-in { clip-path: inset(0 0 0 0 round var(--radius)); }

@media (max-width: 900px) {
  .bar__nav a:not(.btn) { display: none; }
  .hero { grid-template-columns: 1fr; }
  .praise__grid { grid-template-columns: 1fr; }
  .ig__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .ig__grid img { transition: none; }
}
