:root {
  --cobalt: #0B2F5B;
  --delft: #174A78;
  --delft-light: #7D98BF;
  --cream: #F4ECD8;
  --cream-light: #FBF7EC;
  --gold: #B88A2E;
  --gold-light: #F6D77A;
  --ink: #252A30;
  --muted: #62686E;
  --line: rgba(11,47,91,.18);
  --line-gold: rgba(184,138,46,.32);
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Source Serif 4", Georgia, serif;
  --ui: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --page: min(1240px, calc(100vw - 48px));
  --header-h: 82px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 18px); background: var(--cream); }
body { margin: 0; min-width: 320px; overflow-x: hidden; color: var(--ink); background: var(--cream); font-family: var(--body); font-size: 18px; line-height: 1.62; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
body.nav-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .18em; }
button, input { font: inherit; }
button { cursor: pointer; }
h1,h2,h3,p { margin-top: 0; }
h1,h2,h3 { font-family: var(--display); font-weight: 600; line-height: 1.02; color: var(--cobalt); text-wrap: balance; }
h2 { margin-bottom: 1.35rem; font-size: clamp(2.6rem, 4.8vw, 4.8rem); letter-spacing: -.025em; }
h3 { margin-bottom: .55rem; font-size: clamp(2rem, 3vw, 3rem); }
p:last-child { margin-bottom: 0; }
.page-width { width: var(--page); margin-inline: auto; }
.sr-only { position: absolute!important; width: 1px!important; height: 1px!important; padding: 0!important; margin: -1px!important; overflow: hidden!important; clip: rect(0,0,0,0)!important; white-space: nowrap!important; border: 0!important; }
.skip-link { position: fixed; z-index: 9999; top: 10px; left: 10px; padding: .65rem .9rem; color: #fff; background: var(--cobalt); transform: translateY(-160%); transition: transform .18s ease; }
.skip-link:focus { transform: translateY(0); }
.ceramic-noise { position: fixed; z-index: 200; inset: 0; pointer-events: none; opacity: .08; mix-blend-mode: multiply; background-image: url('/assets/ceramic-noise.png'); }

.site-header { position: fixed; z-index: 100; top: 0; left: 0; width: 100%; height: var(--header-h); border-bottom: 1px solid transparent; background: rgba(244,236,216,.82); transition: background .2s ease,border-color .2s ease,box-shadow .2s ease; }
.site-header.is-scrolled,.site-header:focus-within { border-color: var(--line); background: rgba(244,236,216,.96); box-shadow: 0 8px 30px rgba(11,47,91,.07); backdrop-filter: blur(14px); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.wordmark { display: inline-flex; flex-direction: column; gap: .15rem; color: var(--cobalt); text-decoration: none; }
.wordmark-title { font-family: var(--display); font-size: 1rem; font-weight: 600; letter-spacing: .14em; line-height: 1; text-transform: uppercase; }
.wordmark-subtitle { font-family: var(--ui); font-size: .59rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: clamp(1rem,2.2vw,1.8rem); font-family: var(--ui); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.site-nav a { color: var(--cobalt); text-decoration: none; }
.nav-cta { padding: .72rem .95rem; border: 1px solid var(--gold); background: var(--gold); color: #fffaf0!important; box-shadow: 0 7px 18px rgba(184,138,46,.16); }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); background: transparent; }
.nav-toggle span:not(.sr-only) { display: block; width: 19px; height: 1px; margin: 5px auto; background: var(--cobalt); }

.hero { position: relative; min-height: 760px; padding: calc(var(--header-h) + 3.2rem) 0 3.2rem; overflow: hidden; background: radial-gradient(circle at 77% 35%,rgba(255,255,255,.82),transparent 29rem),linear-gradient(90deg,rgba(255,255,255,.27),transparent 58%); }
.hero-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(440px,.96fr); align-items: center; gap: clamp(2.5rem,5vw,6rem); }
.hero-copy { max-width: 620px; }
.hero-title { margin: 0 0 .5rem; width: min(100%,585px); }
.hero-title img { width: 100%; height: auto; }
.eyebrow,.section-label,.signup-kicker,.pronunciation,.motif-number,figcaption { font-family: var(--ui); font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow { margin-bottom: 1.05rem; color: var(--delft); }
.hero-quote { margin-bottom: .65rem; color: var(--cobalt); font-family: var(--display); font-size: clamp(1.55rem,2.2vw,2rem); font-style: italic; font-weight: 600; }
.hero-deck { max-width: 585px; margin-bottom: 1.75rem; font-size: clamp(1.05rem,1.25vw,1.2rem); line-height: 1.56; }
.hero-book { width: min(100%,700px); margin: 0; justify-self: end; filter: drop-shadow(0 30px 24px rgba(26,31,38,.16)); }
.hero-book img { width: 100%; height: auto; }

.signup-panel { max-width: 620px; padding: 1.2rem; border: 1px solid rgba(184,138,46,.32); background: rgba(251,247,236,.78); box-shadow: 0 16px 48px rgba(11,47,91,.075); backdrop-filter: blur(9px); }
.signup-intro { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .85rem; }
.signup-intro p { margin: 0; color: var(--muted); font-size: .93rem; }
.signup-intro .signup-kicker { color: var(--cobalt); font-size: .67rem; }
.form-row { display: flex; gap: .55rem; }
.signup-form input[type=email] { width: 100%; min-width: 0; height: 54px; padding: 0 .95rem; border: 1px solid rgba(11,47,91,.27); border-radius: 0; outline: 0; background: rgba(255,255,255,.7); color: var(--ink); font-family: var(--ui); font-size: .9rem; }
.signup-form input[type=email]:focus { border-color: var(--delft); box-shadow: 0 0 0 3px rgba(23,74,120,.12); background: #fffdf8; }
.button { position: relative; flex: 0 0 auto; min-height: 54px; padding: .7rem 1.15rem; border: 1px solid transparent; border-radius: 0; font-family: var(--ui); font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; transition: transform .16s ease,box-shadow .16s ease,background .16s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--cobalt); color: var(--cream-light); box-shadow: 0 9px 22px rgba(11,47,91,.17); }
.button-primary:hover { background: #08294f; box-shadow: 0 12px 28px rgba(11,47,91,.22); }
.button:disabled { opacity: .68; cursor: wait; transform: none; }
.form-note,.form-status { font-family: var(--ui); font-size: .69rem; line-height: 1.45; }
.form-note { margin: .65rem 0 0; color: var(--muted); }
.form-status { min-height: 1.05rem; margin: .28rem 0 0; color: var(--delft); font-weight: 700; }
.signup-form.is-success .form-status { color: #285a43; }
.signup-form.has-error .form-status { color: #8a2f2b; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.section-divider { height: 124px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.section-divider img { width: min(78vw,620px); height: auto; }
.section { padding: clamp(5rem,8vw,7.5rem) 0; }
.section-label { margin-bottom: 1rem; color: var(--gold); }
.section-book { padding-top: clamp(4.2rem,7vw,6rem); }
.book-layout { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(380px,.92fr); align-items: center; gap: clamp(3rem,7vw,7rem); }
.book-copy h2 { max-width: 720px; }
.prose { max-width: 720px; font-size: clamp(1.02rem,1.2vw,1.14rem); }
.prose p { margin-bottom: 1.1em; }
.text-link { display: inline-flex; align-items: center; gap: .45rem; margin-top: .75rem; color: var(--cobalt); font-family: var(--ui); font-size: .72rem; font-weight: 800; letter-spacing: .11em; text-decoration: none; text-transform: uppercase; }
.back-cover { width: min(100%,620px); margin: 0; justify-self: end; text-align: center; filter: drop-shadow(0 28px 24px rgba(26,31,38,.13)); }
.back-cover img { width: 100%; height: auto; }
.back-cover figcaption { margin-top: .15rem; color: var(--muted); }

.interlude { display: grid; place-items: center; min-height: 390px; padding: 5.5rem 0; color: var(--cream-light); background: radial-gradient(circle at 68% 50%,rgba(23,74,120,.58),transparent 34rem),var(--cobalt); }
.interlude blockquote { max-width: 980px; margin: 0 auto; text-align: center; }
.interlude blockquote p { margin: 0; color: var(--cream-light); font-family: var(--display); font-size: clamp(2.7rem,5.3vw,5.5rem); font-weight: 500; line-height: 1.05; text-wrap: balance; }

.section-motif { padding-bottom: clamp(5.5rem,8vw,7.5rem); }
.motif-intro { max-width: 830px; text-align: center; }
.motif-intro h2 { margin-bottom: .85rem; }
.section-deck { max-width: 690px; margin: 0 auto; color: var(--muted); font-size: clamp(1.04rem,1.3vw,1.18rem); }
.motif-grid { display: grid; grid-template-columns: minmax(0,1fr) 100px minmax(0,1fr); align-items: stretch; gap: clamp(1.2rem,2.5vw,2.4rem); margin-top: clamp(3rem,5vw,4.7rem); }
.motif-card { position: relative; min-height: 390px; overflow: hidden; border: 1px solid rgba(11,47,91,.16); background: rgba(251,247,236,.5); box-shadow: 0 16px 46px rgba(11,47,91,.055); }
.motif-copy { position: relative; z-index: 2; max-width: 380px; padding: 2.4rem; }
.motif-number { margin-bottom: 1.75rem; color: rgba(11,47,91,.45); }
.motif-copy h3 { overflow-wrap: anywhere; }
.pronunciation { margin-bottom: 1.25rem; color: var(--delft); font-size: .65rem; }
.motif-copy > p:last-child { font-size: clamp(1.02rem,1.25vw,1.14rem); }
.motif-art { position: absolute; z-index: 1; pointer-events: none; }
.motif-art-kintsugi { inset: 0; width: 100%; height: 100%; object-fit: fill; }
.motif-gate .motif-copy { max-width: 100%; padding-bottom: 11.5rem; }
.motif-art-gate { right: 6%; bottom: 3%; width: 64%; max-height: 56%; object-fit: contain; opacity: .98; }
.motif-divider { display: flex; align-items: stretch; justify-content: center; align-self: stretch; }
.motif-divider img { width: 100%; height: 100%; min-height: 390px; object-fit: fill; }
.motif-resolution { max-width: 890px; margin-top: clamp(2.5rem,5vw,4.2rem); color: var(--delft); font-family: var(--display); font-size: clamp(1.55rem,2.4vw,2.15rem); font-style: italic; font-weight: 600; text-align: center; text-wrap: balance; }

.section-author { padding-top: clamp(4.8rem,8vw,7rem); }
.author-layout { display: grid; grid-template-columns: minmax(340px,.78fr) minmax(0,1.22fr); align-items: center; gap: clamp(3rem,7vw,7rem); }
.author-portrait { margin: 0; display: flex; justify-content: center; }
.portrait-ring { width: min(100%,410px); aspect-ratio: 1; overflow: hidden; border: 1px solid var(--line-gold); border-radius: 50%; background: #e9e7ec; box-shadow: 0 24px 65px rgba(11,47,91,.14),0 0 0 10px rgba(184,138,46,.06); }
.portrait-ring img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.author-copy h2 { margin-bottom: 1.2rem; }
.author-facts { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin: 2rem 0 1rem; }
.author-facts div { padding-top: 1rem; border-top: 1px solid var(--line); }
.author-facts dt { margin-bottom: .28rem; color: var(--delft); font-family: var(--ui); font-size: .63rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.author-facts dd { margin: 0; font-size: .98rem; line-height: 1.35; }

.final-cta { padding: clamp(5.5rem,9vw,8rem) 0; color: var(--cream-light); background: radial-gradient(circle at 15% 20%,rgba(23,74,120,.68),transparent 31rem),var(--cobalt); }
.final-cta-layout { display: grid; grid-template-columns: minmax(0,.9fr) minmax(420px,1.1fr); align-items: end; gap: clamp(3rem,7vw,7rem); }
.section-label-light { color: rgba(246,215,122,.86); }
.final-cta h2 { margin-bottom: 1rem; color: var(--cream-light); }
.final-cta-layout > div > p:last-child { max-width: 570px; color: rgba(251,247,236,.76); font-size: 1.03rem; }
.signup-form-dark input[type=email] { border-color: rgba(244,236,216,.44); background: rgba(255,255,255,.08); color: var(--cream-light); }
.signup-form-dark input[type=email]::placeholder { color: rgba(244,236,216,.62); }
.signup-form-dark input[type=email]:focus { border-color: var(--cream-light); background: rgba(255,255,255,.12); box-shadow: 0 0 0 3px rgba(244,236,216,.12); }
.button-light { border-color: var(--gold-light); background: var(--gold-light); color: #3a2d16; }
.signup-form-dark .form-note,.signup-form-dark .form-note a { color: rgba(244,236,216,.68); }
.signup-form-dark .form-status { color: var(--cream-light); }

.site-footer { padding: 3rem 0; border-top: 1px solid rgba(244,236,216,.16); background: var(--cobalt); color: rgba(244,236,216,.74); font-family: var(--ui); font-size: .78rem; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 1.2rem; }
.footer-title { margin-bottom: .25rem; color: var(--gold-light); font-family: var(--display); font-size: 1.25rem; }
.footer-brand p:last-child { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1.2rem; }
.footer-links a { color: var(--cream-light); font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-decoration: none; text-transform: uppercase; }
.footer-copyright { grid-column: 1/-1; margin: .8rem 0 0; font-size: .7rem; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease,transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Utility pages */
.utility-page { min-height: 100svh; display: grid; place-items: center; padding: calc(var(--header-h) + 3rem) 24px 4rem; }
.utility-shell { width: min(820px,100%); padding: clamp(2rem,5vw,4rem); border: 1px solid var(--line); background: rgba(251,247,236,.78); box-shadow: 0 20px 60px rgba(11,47,91,.08); }
.utility-shell h1 { margin-bottom: 1.2rem; font-size: clamp(2.6rem,6vw,5rem); }
.utility-shell h2 { margin: 2.2rem 0 .7rem; font-size: clamp(1.7rem,3vw,2.5rem); }
.utility-card { margin: 1.6rem 0; padding: 1.2rem; border-left: 3px solid var(--gold); background: rgba(244,236,216,.6); }
.utility-actions { margin-top: 2rem; }

@media (max-width: 1050px) {
  .hero-grid { grid-template-columns: minmax(0,1fr) minmax(390px,.85fr); gap: 2.5rem; }
  .hero-book { width: min(100%,590px); }
  .book-layout { grid-template-columns: minmax(0,1fr) minmax(330px,.78fr); gap: 3.2rem; }
  .motif-grid { grid-template-columns: minmax(0,1fr) 78px minmax(0,1fr); }
}

@media (max-width: 820px) {
  :root { --page: min(100% - 32px,720px); --header-h: 72px; }
  .site-nav { position: fixed; top: var(--header-h); right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 1rem 16px 1.4rem; border-bottom: 1px solid var(--line); background: rgba(244,236,216,.98); box-shadow: 0 20px 40px rgba(11,47,91,.12); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .9rem .35rem; border-bottom: 1px solid var(--line); }
  .site-nav .nav-cta { margin-top: .8rem; border: 0; text-align: center; }
  .nav-toggle { display: block; }
  .hero { min-height: 0; padding: calc(var(--header-h) + 2rem) 0 2.8rem; }
  .hero-grid,.book-layout,.author-layout,.final-cta-layout { grid-template-columns: 1fr; gap: 2.1rem; }
  .hero-copy { max-width: none; }
  .hero-title { width: min(100%,550px); }
  .hero-book { width: min(100%,680px); justify-self: center; }
  .section-divider { height: 92px; }
  .section { padding: 4rem 0; }
  .book-copy { order: 1; }
  .back-cover { order: 2; width: min(100%,620px); justify-self: center; }
  .interlude { min-height: 300px; padding: 4rem 0; }
  .motif-grid { grid-template-columns: 1fr; gap: 1rem; margin-top: 2.5rem; }
  .motif-divider { height: 90px; min-height: 0; align-items: center; }
  .motif-divider img { width: 90px; height: 150px; min-height: 0; transform: rotate(90deg); }
  .motif-card { min-height: 350px; }
  .motif-art-gate { width: 55%; }
  .author-portrait { order: 1; }
  .author-copy { order: 2; }
  .portrait-ring { width: min(78vw,390px); }
  .final-cta-layout { align-items: stretch; }
}

@media (max-width: 600px) {
  body { font-size: 17px; }
  .wordmark-title { font-size: .9rem; }
  .wordmark-subtitle { font-size: .52rem; }
  .hero-title { width: 100%; }
  .signup-intro { display: block; }
  .signup-intro p + p { margin-top: .25rem; }
  .form-row { flex-direction: column; }
  .button { width: 100%; }
  .section-divider { height: 70px; }
  .section-divider img { width: min(88vw,340px); max-width: none; }
  .section { padding: 3.4rem 0; }
  .interlude blockquote p { font-size: clamp(2.3rem,11vw,3.4rem); }
  .motif-copy { padding: 1.7rem; }
  .motif-card { min-height: 330px; }
  .motif-gate .motif-copy { padding-bottom: 9rem; }
  .author-facts { grid-template-columns: 1fr; gap: .75rem; }
  .footer-grid { grid-template-columns: 1fr; align-items: start; }
  .footer-links { justify-content: flex-start; }
  .footer-copyright { grid-column: auto; }
}

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