@import url("typography.css");

:root {
  --forest: #11382a;
  --forest-deep: #0a291f;
  --paper: #fbf7ea;
  --cream: #f4eedc;
  --yellow: #b8aa3b;
  --yellow-soft: #d7cc80;
  --coral: #b96f5b;
  --graphite: #4f5d5b;
  --muted: #6f746d;
  --line: rgba(17, 56, 42, .18);
  --white-line: rgba(244, 238, 220, .24);
  /* Minor third for reading hierarchy; major third for editorial display. */
  --minor-down: .833rem;
  --minor-1: 1.2rem;
  --minor-2: 1.44rem;
  --major-1: 1.25rem;
  --major-2: 1.563rem;
  --major-3: 1.953rem;
  --major-4: 2.441rem;
  --major-5: 3.052rem;
  --major-6: 3.815rem;
  --major-7: 4.768rem;
  --accent: var(--yellow);
  --accent-soft: var(--yellow-soft);
}

.breathe-page { --accent: #b9787a; --accent-soft: #d4a4a0; }
.tender-page { --accent: var(--coral); --accent-soft: #d7a293; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--forest); font: 1rem/1.6 var(--sar-font-body); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
.shell { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }
.eyebrow { margin: 0 0 18px; font-size: var(--minor-down); font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }

.site-header { background: var(--forest-deep); color: var(--cream); border-bottom: 1px solid var(--white-line); }
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; text-transform: uppercase; letter-spacing: .16em; font-size: .82rem; font-weight: 500; }
.brand img { width: 44px; height: 44px; object-fit: cover; border-radius: 50%; border: 1px solid rgba(244, 238, 220, .42); }
.brand .brand-signature { width: 116px; height: auto; border: 0; border-radius: 0; object-fit: contain; margin: 0; filter: brightness(0) invert(1) sepia(.12) saturate(.5); }
.nav-links { display: flex; align-items: center; gap: 25px; font-size: .88rem; }
.nav-links a { text-decoration: none; opacity: .86; }
.nav-links a:hover { opacity: 1; }
.nav-links .nav-cta { padding: 10px 15px; border: 1px solid rgba(244, 238, 220, .48); border-radius: 999px; }

.hero { position: relative; overflow: hidden; min-height: 690px; background: var(--paper); }
.hero::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 46%;
  background:
    linear-gradient(90deg, rgba(10, 41, 31, .42), rgba(10, 41, 31, .08)),
    linear-gradient(0deg, rgba(10, 41, 31, .28), transparent 56%),
    url("book-hero-breathe.webp") center center / cover no-repeat;
}
.tender-page .hero::before {
  background:
    linear-gradient(90deg, rgba(10, 41, 31, .42), rgba(10, 41, 31, .08)),
    linear-gradient(0deg, rgba(10, 41, 31, .28), transparent 56%),
    url("book-hero-tender.webp") center center / cover no-repeat;
}
.hero::after { content: ""; position: absolute; inset: 0 auto 0 42%; width: 8%; background: linear-gradient(90deg, transparent, var(--paper)); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; min-height: 690px; display: grid; grid-template-columns: minmax(300px, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(58px, 8vw, 118px); padding: 74px 0 82px; }
.cover-stage { position: relative; display: grid; place-items: center; }
.cover-stage::after { content: attr(data-book-label); position: absolute; left: calc(50% + 113px); top: 38px; padding: 9px 15px; border-radius: 999px; background: var(--forest); color: var(--cream); font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; white-space: nowrap; }
.book-cover { width: min(336px, 86%); box-shadow: 0 35px 76px rgba(4, 24, 18, .42), 0 5px 15px rgba(4, 24, 18, .25); transform: rotate(-1.2deg); }
.hero-copy { max-width: 650px; }
.hero-copy h1 { margin: 0; font-family: var(--sar-font-display); font-size: clamp(var(--major-6), 7vw, var(--major-7)); font-weight: 500; letter-spacing: -.025em; line-height: .94; }
.subtitle { max-width: 600px; margin: 30px 0 0; font-family: var(--sar-font-display); font-size: clamp(var(--major-2), 2.8vw, var(--major-3)); line-height: 1.18; }
.intro { max-width: 590px; margin: 25px 0 0; color: var(--graphite); font-size: var(--minor-1); line-height: 1.65; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; padding: 13px 20px; border: 1px solid var(--forest); border-radius: 999px; text-decoration: none; font-size: var(--minor-down); font-weight: 500; }
.button-primary { background: var(--forest); color: var(--cream); }
.button-secondary { background: transparent; color: var(--forest); }
.format-note { margin: 17px 0 0; color: var(--muted); font-size: .8rem; }

.recognition { padding: 104px 0; }
.recognition-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 84px; align-items: start; }
.recognition h2, .chapters h2, .sample h2, .series h2 { margin: 0; font-family: var(--sar-font-display); font-size: clamp(var(--major-5), 5vw, var(--major-6)); font-weight: 500; letter-spacing: -.025em; line-height: .98; }
.recognition-copy { color: var(--graphite); }
.recognition-copy p { margin: 0 0 22px; }
.recognition-copy strong { color: var(--forest); font-weight: 500; }
.manifesto { margin-top: 36px; padding: 28px 30px; border-left: 5px solid var(--accent); background: var(--cream); font-family: var(--sar-font-display); font-size: var(--minor-2); line-height: 1.22; }

.chapters { padding: 104px 0; background: var(--forest); color: var(--cream); }
.chapters-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .68fr); gap: 70px; align-items: end; margin-bottom: 56px; }
.chapters-head > p { margin: 0; color: rgba(244, 238, 220, .72); }
.chapter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--white-line); border-left: 1px solid var(--white-line); }
.chapter { min-height: 208px; padding: 29px 28px 34px; border-right: 1px solid var(--white-line); border-bottom: 1px solid var(--white-line); }
.chapter span { color: var(--accent-soft); font-size: .74rem; letter-spacing: .16em; }
.chapter h3 { margin: 36px 0 7px; font-family: var(--sar-font-display); font-size: var(--major-2); font-weight: 500; }
.chapter p { margin: 0; color: rgba(244, 238, 220, .68); font-size: var(--minor-down); }

/* Tender Uprising: a slow procession instead of a feature grid. */
.chapter-procession-list { position: relative; margin-top: 66px; }
.chapter-procession-list::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--white-line); }
.procession-item { position: relative; display: grid; grid-template-columns: 1fr 88px 1fr; min-height: 164px; }
.procession-item:last-child::after { content: ""; position: absolute; left: calc(50% - .5px); bottom: 0; width: 1px; height: 50%; background: var(--forest); }
.procession-number { position: relative; z-index: 1; grid-column: 2; align-self: center; justify-self: center; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--accent); border-radius: 50%; background: var(--forest); color: var(--accent-soft); font-size: .7rem; font-weight: 500; letter-spacing: .1em; }
.procession-copy { position: relative; z-index: 1; max-width: 390px; align-self: center; padding: 30px 0; }
.procession-item:nth-child(odd) .procession-copy { grid-column: 1; justify-self: end; padding-right: 44px; text-align: right; }
.procession-item:nth-child(even) .procession-copy { grid-column: 3; padding-left: 44px; }
.procession-copy h3 { margin: 0; font-family: var(--sar-font-display); font-size: clamp(var(--major-3), 3.8vw, var(--major-5)); font-weight: 500; letter-spacing: -.03em; line-height: .95; }
.procession-copy p { margin: 9px 0 0; color: rgba(244, 238, 220, .7); font-size: var(--minor-down); }

.pullquote { position: relative; overflow: hidden; padding: 122px 0; background: var(--accent); color: var(--forest-deep); text-align: center; }
.pullquote::before { content: "“"; position: absolute; left: 6%; top: -74px; font-family: var(--sar-font-display); font-size: 27rem; line-height: 1; color: rgba(17, 56, 42, .09); }
.pullquote blockquote { position: relative; max-width: 930px; margin: 0 auto; font-family: var(--sar-font-display); font-size: clamp(var(--major-4), 5.6vw, var(--major-6)); font-weight: 500; letter-spacing: -.03em; line-height: 1; }
.pullquote cite { display: block; margin-top: 28px; font-size: var(--minor-down); font-style: normal; letter-spacing: .18em; text-transform: uppercase; }

.excerpt { padding: 112px 0; background: var(--paper); }
.excerpt-grid { display: grid; grid-template-columns: minmax(220px, .62fr) minmax(0, 1.38fr); gap: 88px; align-items: start; }
.excerpt h2 { margin: 0; font-family: var(--sar-font-display); font-size: clamp(var(--major-4), 4vw, var(--major-5)); font-weight: 500; letter-spacing: -.025em; line-height: .98; }
.excerpt-note { margin: 23px 0 0; color: var(--muted); font-size: var(--minor-down); }
.excerpt-copy { max-width: 730px; color: #344a43; font-family: var(--sar-font-display); font-size: var(--minor-1); line-height: 1.72; }
.excerpt-copy p { margin: 0 0 22px; }
.excerpt-copy p:first-child::first-letter { float: left; margin: .08em .12em 0 0; color: var(--forest); font-size: var(--major-5); line-height: .72; }
.excerpt-continue { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); font-family: var(--sar-font-body); font-size: var(--minor-down); }
.excerpt-continue span { color: var(--muted); }
.excerpt-continue a { font-weight: 500; text-underline-offset: 5px; }

.sample { padding: 110px 0; background: var(--cream); }
.sample-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr); gap: clamp(58px, 7vw, 92px); align-items: center; }
.sample-cover { float: left; width: 150px; margin: 24px 26px 18px 0; box-shadow: 0 20px 38px rgba(10, 41, 31, .16); transform: rotate(-1deg); }
.sample-copy::after { content: ""; display: block; clear: both; }
.sample-copy > p:not(.eyebrow) { max-width: 540px; color: var(--graphite); }
.sample-list { margin: 29px 0 0; padding: 0; list-style: none; }
.sample-list li { display: flex; gap: 13px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sample-list li::before { content: "✓"; color: var(--forest); font-weight: 500; }
.gate { padding: 38px; background: var(--paper); border: 1px solid var(--line); box-shadow: 18px 18px 0 color-mix(in srgb, var(--accent) 48%, transparent); }
.gate h3 { margin: 0 0 8px; font-family: var(--sar-font-display); font-size: var(--major-3); font-weight: 500; line-height: 1.1; }
.gate > p { margin: 0 0 23px; color: var(--muted); font-size: .9rem; }
.field { display: grid; gap: 8px; margin-bottom: 14px; }
.field label { font-size: .76rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.field input { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line); background: #fffdf6; color: var(--forest); border-radius: 0; }
.consent { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; margin: 18px 0; color: var(--muted); font-size: .76rem; line-height: 1.45; }
.consent input { margin: 3px 0 0; accent-color: var(--forest); }
.gate button { width: 100%; min-height: 51px; border: 0; background: var(--forest); color: var(--cream); cursor: pointer; font-weight: 500; }
.form-message { min-height: 24px; margin-top: 13px; color: var(--forest); font-size: .84rem; }

.series { padding: 110px 0; }
.series-grid { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 84px; align-items: center; }
.series-covers { display: flex; align-items: flex-end; justify-content: center; min-height: 440px; }
.series-covers img { width: 230px; box-shadow: 0 24px 48px rgba(17,56,42,.16); }
.series-covers img:first-child { transform: rotate(-4deg) translateX(24px); opacity: .82; }
.series-covers img:last-child { transform: rotate(4deg) translateX(-24px); }
.series-copy > p:not(.eyebrow) { max-width: 570px; color: var(--graphite); }
.series-link { display: inline-block; margin-top: 18px; text-underline-offset: 5px; font-weight: 500; }

.buy-band { padding: 88px 0; background: var(--forest-deep); color: var(--cream); text-align: center; }
.buy-band h2 { max-width: 760px; margin: 0 auto; font-family: var(--sar-font-display); font-size: clamp(var(--major-5), 5vw, var(--major-6)); font-weight: 500; line-height: .98; }
.buy-band .actions { justify-content: center; }
.buy-band .button-primary { background: var(--accent); color: var(--forest-deep); border-color: var(--accent); }
.buy-band .button-secondary { color: var(--cream); border-color: rgba(244, 238, 220, .48); }
.site-footer { padding: 34px 0; background: var(--forest-deep); color: rgba(244, 238, 220, .7); border-top: 1px solid var(--white-line); font-size: .78rem; }
.footer-grid { display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-brand img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.footer-brand strong { color: var(--cream); text-transform: uppercase; letter-spacing: .13em; font-weight: 500; }

@media (max-width: 820px) {
  .shell { width: min(100% - 34px, 680px); }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero::before { width: 100%; height: 48%; }
  .hero::after { inset: 40% 0 auto 0; width: 100%; height: 9%; background: linear-gradient(180deg, transparent, var(--paper)); }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; padding: 56px 0 72px; }
  .cover-stage::after { left: calc(50% + 72px); top: 30px; }
  .book-cover { width: min(290px, 78vw); }
  .hero-copy h1 { font-size: clamp(var(--major-6), 14vw, var(--major-7)); }
  .recognition-grid, .series-grid, .chapters-head, .excerpt-grid { grid-template-columns: 1fr; gap: 40px; }
  .sample-grid { grid-template-columns: 1fr; gap: 44px; }
  .sample-cover { width: 138px; margin-right: 24px; }
  .chapter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chapter-procession-list { margin-top: 42px; }
  .gate { box-shadow: 10px 10px 0 color-mix(in srgb, var(--accent) 48%, transparent); }
  .series-covers { min-height: 350px; }
  .series-covers img { width: min(205px, 46vw); }
  .footer-grid { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 520px) {
  .nav { min-height: 68px; }
  .brand img { width: 39px; height: 39px; }
  .brand .brand-signature { width: 98px; height: auto; }
  .nav-cta { padding: 9px 13px !important; }
  .hero-copy h1 { font-size: var(--major-6); }
  .subtitle { font-size: var(--major-2); }
  .actions { flex-direction: column; }
  .button { width: 100%; }
  .recognition, .chapters, .excerpt, .sample, .series { padding: 78px 0; }
  .chapter-grid { grid-template-columns: 1fr; }
  .chapter { min-height: 172px; }
  .procession-item { grid-template-columns: 48px 1fr; min-height: 0; padding-bottom: 12px; }
  .chapter-procession-list::before { left: 20px; }
  .procession-item:last-child::after { left: 20px; background: var(--forest); }
  .procession-number { grid-column: 1; grid-row: 1; align-self: start; }
  .procession-copy, .procession-item:nth-child(odd) .procession-copy, .procession-item:nth-child(even) .procession-copy { grid-column: 2; grid-row: 1; justify-self: stretch; padding: 0 0 48px 14px; text-align: left; }
  .gate { padding: 28px 22px; }
  .sample-cover { width: 112px; margin: 18px 18px 14px 0; }
  .pullquote { padding: 92px 0; }
  .excerpt-continue { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
