@import url("tokens.css");

@font-face { font-family: "Source Sans 3"; src: url("assets/fonts/SourceSans3-Regular.ttf") format("truetype"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("assets/fonts/SourceSans3-Medium.ttf") format("truetype"); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("assets/fonts/SourceSans3-SemiBold.ttf") format("truetype"); font-style: normal; font-weight: 600; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("assets/fonts/SourceSans3-Bold.ttf") format("truetype"); font-style: normal; font-weight: 700; font-display: swap; }

:root {
  --paper: #fbf7f0;
  --cream: #fff9f1;
  --ink: #212e62;
  --ink-soft: #34426f;
  --dawn: #fcbf80;
  --sand: #f6d6af;
  --mist: #9fadb8;
  --line: #ded4c8;
  --forest: #221e13;
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Trebuchet MS", sans-serif;
  --content: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font-body); font-size: 16px; line-height: 1.5; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
::selection { color: var(--cream); background: var(--ink); }

.skip-link { position: fixed; z-index: 20; top: 12px; left: 12px; padding: 10px 14px; color: var(--cream); background: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.progress-track { position: fixed; z-index: 21; inset: 0 0 auto; height: 3px; background: transparent; }
.progress-track span { display: block; width: 0; height: 100%; background: var(--dawn); transition: width .15s linear; }
.topbar { position: sticky; z-index: 15; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 26px; min-height: 74px; padding: 12px max(5vw, calc((100vw - var(--content)) / 2)); border-bottom: 1px solid rgba(33,46,98,.1); background: rgba(251,247,240,.92); backdrop-filter: blur(16px); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; line-height: 1.05; white-space: nowrap; }
.wordmark-star { color: #c8874f; font-size: 21px; }
.wordmark small { display: block; margin-top: 5px; color: #7b7c81; font-size: 10px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.topnav { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); }
.topnav a { padding: 8px 0; border-bottom: 1px solid transparent; color: #575c6b; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: color .2s, border-color .2s; }
.topnav a:hover, .topnav a[aria-current="location"] { border-color: var(--dawn); color: var(--ink); }
.fullscreen-button { padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: transparent; font-size: 12px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.fullscreen-button:hover { border-color: var(--ink); background: var(--cream); }
.fullscreen-button span { margin-left: 6px; color: #a16d3f; }
.scene { position: relative; min-height: min(850px, calc(100svh - 74px)); padding: clamp(64px, 8vw, 112px) max(6vw, calc((100vw - var(--content)) / 2)); scroll-margin-top: 74px; overflow: hidden; }
.scene-footer { position: absolute; right: max(6vw, calc((100vw - var(--content)) / 2)); bottom: 24px; left: max(6vw, calc((100vw - var(--content)) / 2)); display: flex; justify-content: space-between; color: #7b7c81; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow { margin: 0 0 17px; color: #9a673d; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow-mark { margin-right: 8px; color: var(--ink); font-size: 14px; }
.opening { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); align-items: center; gap: clamp(40px, 8vw, 110px); min-height: calc(100svh - 74px); padding-top: clamp(48px, 7vh, 88px); padding-bottom: 78px; background: radial-gradient(ellipse at 81% 55%, rgba(252,191,128,.2), transparent 38%), var(--paper); }
.opening-copy { max-width: 670px; }
.opening h1 { margin: 0; color: var(--ink); font-family: var(--font-display); font-size: clamp(48px, 6.4vw, 88px); font-weight: 400; letter-spacing: -.045em; line-height: .99; }
.opening h1 em, .scene h2 em, .prototype-heading h2 em { color: #a66e3e; font-weight: 400; }
.opening-subtitle { margin: 26px 0 14px; font-family: var(--font-display); font-size: clamp(23px, 2.2vw, 31px); font-style: italic; }
.opening-description { max-width: 510px; margin: 0; color: #565b69; font-size: 18px; line-height: 1.6; }
.opening-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 31px; }
.button-primary { display: inline-flex; align-items: center; justify-content: center; gap: 17px; min-height: 48px; padding: 12px 18px; border: 1px solid var(--ink); border-radius: 7px; color: var(--cream); background: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; transition: transform .2s, background .2s; }
.button-primary:hover { transform: translateY(-2px); background: #16214b; }
.button-primary span { color: var(--dawn); font-size: 18px; }
.text-link { color: var(--ink); font-size: 14px; font-weight: 700; text-decoration-color: var(--dawn); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.text-link:hover { text-decoration-color: var(--ink); }
.opening-author { margin: 38px 0 0; color: #78787c; font-size: 12px; letter-spacing: .02em; }
.opening-author span { padding: 0 6px; color: #bd8757; }
.opening-cover { position: relative; justify-self: center; width: min(100%, 430px); margin: 0; padding: 0 18px 34px 0; }
.opening-cover img { position: relative; z-index: 1; width: 100%; max-height: min(690px, 75svh); object-fit: cover; box-shadow: 0 24px 64px rgba(34,30,19,.18); }
.cover-halo { position: absolute; top: 7%; right: -8%; bottom: 16%; left: 13%; background: linear-gradient(145deg, rgba(252,191,128,.7), rgba(159,173,184,.1)); filter: blur(34px); }
.opening-cover figcaption { position: absolute; z-index: 2; right: 0; bottom: 7px; color: #777772; font-size: 11px; letter-spacing: .04em; }
.opening-index { position: absolute; right: max(6vw, calc((100vw - var(--content)) / 2)); bottom: 25px; display: flex; align-items: center; gap: 12px; color: #7b7c81; font-size: 11px; }
.opening-index span:first-child { color: var(--ink); font-weight: 700; }
.index-line { width: 46px; height: 1px; background: var(--line); }

.brief-scene { display: flex; flex-direction: column; justify-content: center; background: var(--cream); }
.scene-heading { max-width: 700px; }
.scene h2 { margin: 0; font-family: var(--font-display); font-size: clamp(40px, 5.5vw, 70px); font-weight: 400; letter-spacing: -.035em; line-height: 1.03; }
.brief-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 5vw, 72px); max-width: 1120px; margin-top: clamp(54px, 7vw, 92px); }
.brief-item { position: relative; min-height: 166px; padding-top: 18px; border-top: 1px solid var(--line); }
.brief-number { color: #b9814e; font-family: var(--font-display); font-size: 17px; font-style: italic; }
.brief-item h3 { margin: 18px 0 8px; font-family: var(--font-display); font-size: 26px; font-weight: 400; }
.brief-item p { max-width: 290px; margin: 0; color: #5b5c63; font-size: 16px; }
.brief-footnote { display: flex; align-items: baseline; gap: 10px; margin: 32px 0 0; color: #61616a; font-size: 14px; }
.brief-footnote span { color: #b9814e; }

.system-scene { color: var(--cream); background: var(--ink); }
.light-heading .eyebrow { color: var(--dawn); }
.light-heading h2 { color: var(--cream); }
.system-intro { max-width: 505px; margin: 22px 0 0; color: rgba(255,249,241,.72); font-size: 16px; }
.system-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 7vw, 96px); align-items: stretch; margin-top: 58px; }
.palette-block { display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; gap: 10px; }
.swatch { display: flex; flex-direction: column; justify-content: flex-end; min-height: 190px; padding: 13px 10px; color: var(--ink); }
.swatch span { font-size: 12px; font-weight: 700; }
.swatch code { margin-top: 5px; font-family: var(--font-body); font-size: 10px; }
.swatch-paper { background: #fbf7f0; }
.swatch-ink { color: var(--cream); background: #344572; }
.swatch-dawn { background: #fcbf80; }
.swatch-sand { background: #f6d6af; }
.swatch-mist { background: #9fadb8; }
.type-sample { padding: 21px 24px 20px; border: 1px solid rgba(255,249,241,.24); background: rgba(255,255,255,.035); }
.type-label { display: flex; justify-content: space-between; gap: 16px; color: rgba(255,249,241,.65); font-size: 10px; letter-spacing: .06em; }
.type-display { margin: 22px 0 9px; font-family: var(--font-display); font-size: clamp(37px, 4vw, 52px); letter-spacing: -.04em; line-height: .98; }
.type-display em { color: var(--dawn); }
.type-body { max-width: 440px; margin: 17px 0 0; color: rgba(255,249,241,.76); font-size: 14px; }
.type-actions { display: flex; align-items: center; gap: 11px; margin-top: 22px; color: rgba(255,249,241,.68); font-size: 11px; }
.mini-button { padding: 8px 11px; border-radius: 5px; color: var(--ink); background: var(--dawn); font-size: 12px; font-weight: 700; }
.small-star { color: var(--dawn); font-size: 16px; }
.system-rules { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 35px; color: rgba(255,249,241,.68); font-size: 12px; }
.system-rules span::before { content: "✦"; margin-right: 8px; color: var(--dawn); }
.light-footer { color: rgba(255,249,241,.53); }

.prototype-scene { padding-top: clamp(62px, 7vw, 88px); padding-bottom: 95px; background: #f1e9de; }
.prototype-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; max-width: var(--content); margin: 0 auto 36px; }
.prototype-heading .eyebrow { margin-bottom: 11px; }
.prototype-heading h2 { margin: 0; font-family: var(--font-display); font-size: clamp(39px, 4.8vw, 62px); font-weight: 400; letter-spacing: -.04em; line-height: 1.02; }
.prototype-summary { max-width: 340px; margin: 0 0 5px; color: #62616a; font-size: 15px; }
.landing-preview { max-width: var(--content); margin: 0 auto; overflow: hidden; border: 1px solid rgba(33,46,98,.16); background: var(--paper); box-shadow: 0 20px 54px rgba(34,30,19,.11); }
.preview-nav { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 clamp(18px, 3vw, 42px); border-bottom: 1px solid rgba(33,46,98,.12); color: var(--ink); background: var(--paper); font-size: 10px; letter-spacing: .08em; }
.preview-brand { font-weight: 700; }
.preview-brand span { margin-right: 6px; color: #a66e3e; font-size: 14px; }
.preview-author { color: #77787d; letter-spacing: .02em; }
.preview-nav-link { font-weight: 700; }
.preview-nav-link span { padding-left: 5px; color: #ad794b; }
.preview-hero { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; min-height: 355px; padding: 42px clamp(24px, 7vw, 90px); background: radial-gradient(ellipse at 80% 65%, rgba(252,191,128,.19), transparent 32%), var(--paper); }
.preview-hero-copy { max-width: 540px; }
.preview-eyebrow { margin: 0 0 12px; color: #98633b; font-size: 9px; font-weight: 700; letter-spacing: .15em; }
.preview-hero h3, .memory-copy h3 { margin: 0; color: var(--ink); font-family: var(--font-display); font-size: clamp(38px, 5vw, 63px); font-weight: 400; letter-spacing: -.045em; line-height: .98; }
.preview-hero-copy > p:not(.preview-eyebrow) { max-width: 410px; margin: 15px 0 0; color: #5c5d66; font-size: 14px; }
.preview-cta { display: inline-flex; align-items: center; gap: 18px; margin-top: 21px; padding: 10px 14px; border-radius: 4px; color: var(--cream); background: var(--ink); font-size: 11px; font-weight: 700; text-decoration: none; }
.preview-cta span { color: var(--dawn); font-size: 15px; }
.preview-book { justify-self: center; width: 170px; transform: rotate(2.5deg); }
.preview-book img { width: 100%; box-shadow: 0 16px 32px rgba(34,30,19,.22); }
.preview-themes { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; padding: 40px clamp(24px, 7vw, 90px); background: #fffaf3; }
.themes-title > span { color: #95623c; font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.themes-title h4 { margin: 12px 0 0; font-family: var(--font-display); font-size: clamp(25px, 3vw, 37px); font-weight: 400; line-height: 1.05; }
.theme-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; margin: 0; padding: 0; list-style: none; }
.theme-list li { padding: 12px 0; border-bottom: 1px solid #e8ddd0; color: #333d63; font-family: var(--font-display); font-size: 17px; }
.theme-list li span { margin-right: 11px; color: #ad794b; font-family: var(--font-body); font-size: 10px; }
.preview-signature { display: flex; align-items: center; justify-content: center; gap: 13px; min-height: 100px; color: var(--ink); background: #f6d6af; }
.signature-star { color: #9f6840; font-size: 17px; }
.preview-signature p { margin: 0; font-family: var(--font-display); font-size: 21px; font-style: italic; }
.preview-signature > span:last-child { margin-left: 10px; color: #6a6158; font-size: 11px; }
.prototype-caption { display: grid; grid-template-columns: 180px 1fr; gap: 16px; max-width: var(--content); margin: 17px auto 0; color: #64636a; font-size: 13px; }
.prototype-caption span { color: var(--ink); font-weight: 700; }
.prototype-caption p { margin: 0; }

.concept-b-scene { background: #e7e1d8; }
.preview-nav-dark { color: var(--cream); border-color: rgba(255,249,241,.2); background: #252d46; }
.preview-nav-dark .preview-author { color: rgba(255,249,241,.63); }
.preview-nav-dark .preview-brand span { color: var(--dawn); }
.memory-hero { display: grid; grid-template-columns: 1fr .78fr; align-items: stretch; min-height: 390px; color: var(--cream); background: #252d46; }
.memory-copy { align-self: center; max-width: 650px; padding: 44px clamp(24px, 6vw, 78px); }
.memory-copy .preview-eyebrow { color: var(--dawn); }
.memory-copy h3 { color: var(--cream); font-size: clamp(36px, 4.6vw, 58px); }
.memory-copy > p:not(.preview-eyebrow) { max-width: 440px; margin: 16px 0 0; color: rgba(255,249,241,.73); font-size: 14px; }
.preview-cta-light { color: var(--ink); background: var(--dawn); }
.preview-cta-light span { color: var(--ink); }
.memory-portrait { position: relative; min-height: 390px; overflow: hidden; background: #aaa59b; }
.memory-portrait img { width: 100%; height: 100%; min-height: 390px; object-fit: cover; object-position: center 35%; }
.memory-portrait span { position: absolute; right: 15px; bottom: 14px; padding: 6px 10px; color: var(--ink); background: rgba(255,249,241,.9); font-size: 10px; font-weight: 700; }
.memory-book { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 28px; padding: 30px clamp(24px, 6vw, 78px); background: #fffaf3; }
.memory-book > img { width: 105px; box-shadow: 0 10px 22px rgba(34,30,19,.15); }
.memory-book h4 { margin: 5px 0 6px; font-family: var(--font-display); font-size: 27px; font-weight: 400; }
.memory-book p { max-width: 650px; margin: 0; color: #5b5d67; font-size: 13px; }
.memory-book .memory-subtitle { margin-top: 10px; color: #946543; font-family: var(--font-display); font-size: 16px; font-style: italic; }

.recommendation-scene { display: grid; grid-template-columns: 1fr .85fr; align-items: center; gap: clamp(44px, 8vw, 120px); background: var(--cream); }
.recommendation-copy { max-width: 620px; }
.recommendation-copy h2 { font-size: clamp(42px, 5.3vw, 70px); }
.recommendation-copy > p:not(.eyebrow) { max-width: 530px; margin: 22px 0 28px; color: #5d5e66; font-size: 17px; }
.recommendation-visual { max-width: 480px; padding: 26px 0; }
.rec-step { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.rec-step > span { color: #b17a4b; font-family: var(--font-display); font-size: 23px; font-style: italic; }
.rec-step b { display: block; color: var(--ink); font-family: var(--font-display); font-size: 22px; font-weight: 400; }
.rec-step p { margin: 4px 0 0; color: #686770; font-size: 14px; }
.rec-connector { width: 1px; height: 26px; margin: 5px 0 5px 24px; background: #d4b99d; }
.rec-next { margin-top: 28px; padding: 16px 18px; border-left: 2px solid var(--dawn); background: #f6eee2; }
.rec-next span { display: block; margin-bottom: 5px; color: #8e633e; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.rec-next b { color: #4a4a52; font-size: 14px; font-weight: 600; }

.closing-scene { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 75svh; color: var(--cream); text-align: center; background: linear-gradient(160deg, #29345b 0%, #212e62 52%, #1b254d 100%); }
.closing-scene .eyebrow { margin-top: 16px; color: var(--dawn); }
.closing-mark { color: var(--dawn); font-size: 27px; }
.closing-scene h2 { font-size: clamp(48px, 6.3vw, 82px); }
.closing-scene h2 em { color: var(--dawn); }
.closing-author { margin: 23px 0 28px; color: rgba(255,249,241,.66); font-size: 14px; }
.closing-scene .text-link { color: var(--cream); }
.closing-scene .scene-footer { color: rgba(255,249,241,.48); }

:focus-visible { outline: 3px solid #c88952; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
@media (max-width: 940px) {
  .topbar { flex-wrap: wrap; gap: 8px 18px; padding: 10px 5vw; }
  .topnav { order: 3; width: 100%; gap: 20px; overflow-x: auto; }
  .topnav a { padding: 4px 0 7px; font-size: 12px; }
  .scene { scroll-margin-top: 110px; }
  .opening { gap: 30px; }
  .system-layout { grid-template-columns: 1fr; }
  .palette-block { max-width: 660px; }
  .swatch { min-height: 135px; }
  .prototype-heading { align-items: start; flex-direction: column; }
  .prototype-summary { max-width: 600px; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 110px; }
  .fullscreen-button { margin-left: auto; }
  .topbar { min-height: 98px; }
  .topnav { gap: 18px; }
  .scene { min-height: auto; padding: 68px 22px 82px; }
  .scene-footer { right: 22px; left: 22px; bottom: 20px; font-size: 9px; }
  .opening { grid-template-columns: 1fr; gap: 30px; padding-top: 57px; }
  .opening h1 { font-size: clamp(43px, 12vw, 65px); }
  .opening-description { font-size: 16px; }
  .opening-actions { align-items: flex-start; flex-direction: column; gap: 15px; }
  .opening-author { margin-top: 24px; }
  .opening-cover { width: min(75%, 300px); justify-self: center; margin-bottom: 10px; }
  .opening-cover img { max-height: 470px; }
  .opening-index { display: none; }
  .scene h2 { font-size: clamp(38px, 10vw, 54px); }
  .brief-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 43px; }
  .brief-item { min-height: auto; padding-top: 13px; padding-bottom: 5px; }
  .brief-item h3 { margin-top: 10px; }
  .brief-footnote { align-items: flex-start; margin-top: 24px; }
  .system-layout { gap: 28px; margin-top: 36px; }
  .palette-block { grid-template-columns: repeat(5, minmax(55px,1fr)); gap: 5px; }
  .swatch { min-height: 120px; padding: 9px 6px; }
  .swatch span { font-size: 10px; }
  .swatch code { font-size: 8px; }
  .type-sample { padding: 17px; }
  .type-label { flex-direction: column; gap: 5px; }
  .type-display { font-size: 41px; }
  .system-rules { flex-direction: column; gap: 8px; }
  .prototype-heading h2 { font-size: clamp(38px, 10vw, 52px); }
  .preview-nav { min-height: 42px; padding: 0 13px; font-size: 8px; }
  .preview-author { display: none; }
  .preview-hero { grid-template-columns: 1fr .47fr; min-height: 310px; gap: 12px; padding: 28px 17px; }
  .preview-hero h3 { font-size: clamp(32px, 9vw, 43px); }
  .preview-hero-copy > p:not(.preview-eyebrow) { font-size: 12px; }
  .preview-book { width: 110px; }
  .preview-themes { grid-template-columns: 1fr; gap: 20px; padding: 27px 20px; }
  .themes-title h4 { font-size: 27px; }
  .theme-list { gap: 0 14px; }
  .theme-list li { font-size: 14px; }
  .preview-signature { min-height: 76px; gap: 7px; }
  .preview-signature p { font-size: 16px; }
  .preview-signature > span:last-child { margin-left: 3px; font-size: 9px; }
  .prototype-caption { grid-template-columns: 1fr; gap: 4px; }
  .memory-hero { grid-template-columns: 1fr; }
  .memory-copy { padding: 30px 20px; }
  .memory-copy h3 { font-size: clamp(35px, 9vw, 45px); }
  .memory-portrait { min-height: 260px; max-height: 360px; }
  .memory-portrait img { min-height: 260px; max-height: 360px; object-position: center 33%; }
  .memory-book { grid-template-columns: 78px 1fr; gap: 16px; padding: 23px 18px; }
  .memory-book > img { width: 72px; }
  .memory-book h4 { font-size: 21px; }
  .memory-book p { font-size: 12px; }
  .memory-book .memory-subtitle { font-size: 14px; }
  .recommendation-scene { grid-template-columns: 1fr; gap: 28px; }
  .recommendation-copy > p:not(.eyebrow) { font-size: 16px; }
  .recommendation-visual { padding: 0; }
  .closing-scene { min-height: 75svh; }
  .closing-scene h2 { font-size: clamp(44px, 12vw, 63px); }
}
