:root {
  --ink: #171713;
  --ink-soft: #24231f;
  --cream: #f3eedf;
  --paper: #e7dfca;
  --yellow: #f5b81f;
  --yellow-light: #ffd760;
  --rust: #9e3e24;
  --white: #fffdf6;
  --line: rgba(23, 23, 19, 0.2);
  --shell: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
p { line-height: 1.65; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }

.shell { width: min(var(--shell), calc(100% - 48px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  color: var(--white);
  background: rgba(23, 23, 19, 0.96);
  border-bottom: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(12px);
}
.nav-wrap { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.wordmark { display: inline-flex; flex-direction: column; line-height: .78; letter-spacing: -.045em; font-weight: 950; transform: rotate(-1deg); }
.wordmark span { font-size: 1.15rem; }
.wordmark small { color: var(--yellow); font-size: .63rem; letter-spacing: .23em; margin-top: 9px; }
nav { display: flex; gap: 32px; align-items: center; font-size: .79rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
nav a { padding: 28px 0 25px; border-bottom: 3px solid transparent; }
nav a:hover, nav a:focus-visible { color: var(--yellow-light); border-color: var(--yellow); }

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: #181813;
  min-height: 760px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16,16,12,.98) 0%, rgba(16,16,12,.94) 44%, rgba(16,16,12,.45) 100%),
    url('/img/background.jpg') center 43% / cover;
  filter: saturate(.6) contrast(1.08);
}
.hero-grain, .paper-texture::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .15;
  background-image: repeating-linear-gradient(12deg, transparent 0 4px, rgba(255,255,255,.08) 5px, transparent 6px 12px);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; min-height: 760px; align-items: center; gap: 80px; padding-block: 80px; }
.eyebrow { margin-bottom: 22px; color: var(--rust); font-size: .72rem; line-height: 1.2; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow.light { color: var(--yellow-light); }
.hero h1, .page-hero h1 {
  max-width: 760px;
  margin-bottom: 28px;
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: clamp(4.4rem, 7vw, 7.4rem);
  font-weight: 900;
  line-height: .88;
  letter-spacing: -.035em;
  text-transform: uppercase;
}
.hero h1 span, .page-hero h1 span { color: var(--yellow); }
.hero-lede { max-width: 650px; color: #e8e2d4; font-family: Georgia, serif; font-size: clamp(1.15rem, 2vw, 1.42rem); line-height: 1.55; }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 52px; padding: 0 25px; border: 2px solid var(--ink); font-size: .75rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px) rotate(-.5deg); }
.button.primary { color: var(--ink); background: var(--yellow); border-color: var(--yellow); box-shadow: 5px 5px 0 var(--rust); }
.button.ghost { color: var(--white); border-color: rgba(255,255,255,.55); }
.button.dark { color: var(--white); background: var(--ink); margin-top: 22px; }
.hero-art { position: relative; width: min(360px, 85%); justify-self: center; transform: rotate(2.2deg); }
.hero-art img { display: block; position: relative; z-index: 2; border: 1px solid rgba(255,255,255,.25); box-shadow: 22px 28px 60px rgba(0,0,0,.55); }
.cover-shadow { position: absolute; inset: 16px -18px -16px 18px; z-index: 0; background: var(--yellow); transform: rotate(-4deg); }
.tape-note { position: absolute; z-index: 4; right: -48px; bottom: 50px; padding: 14px 18px; color: var(--ink); background: var(--yellow-light); font-family: "Courier New", monospace; font-weight: 800; transform: rotate(-5deg); box-shadow: 3px 4px 0 rgba(0,0,0,.5); }

.signal-bar { background: var(--yellow); border-block: 3px solid var(--ink); }
.signal-row { min-height: 64px; display: flex; align-items: center; justify-content: center; gap: 24px; overflow: hidden; white-space: nowrap; font-size: .75rem; font-weight: 950; letter-spacing: .14em; text-transform: uppercase; }
.signal-row i { width: 8px; height: 8px; background: var(--rust); transform: rotate(45deg); }
.section { position: relative; padding: 110px 0; }
.cream { background: var(--cream); }
.ink { color: var(--white); background: var(--ink); }
.paper-texture { background: var(--paper); overflow: hidden; }
.paper-texture::before { opacity: .08; background-image: repeating-linear-gradient(45deg, var(--ink) 0 1px, transparent 1px 8px); }
.split-heading, .curriculum-intro, .story-copy { display: grid; grid-template-columns: .88fr 1.12fr; gap: 110px; }
h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.35rem, 4vw, 4.1rem); line-height: 1.08; letter-spacing: -.035em; }
.prose-large p { font-family: Georgia, serif; font-size: 1.17rem; line-height: 1.78; }
.prose-large p:last-child { margin-bottom: 0; }
.section-head { display: grid; grid-template-columns: 1fr .58fr; gap: 80px; align-items: end; margin-bottom: 55px; }
.section-head h2 { margin-bottom: 0; }
.section-head > p { max-width: 480px; margin-bottom: 6px; color: #5d584c; }
.light-head > p { color: #c9c2b3; }
.pathway-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.24); border-left: 1px solid rgba(255,255,255,.24); }
.pathway-card { min-height: 340px; padding: 30px; border-right: 1px solid rgba(255,255,255,.24); border-bottom: 1px solid rgba(255,255,255,.24); transition: background .2s ease, transform .2s ease; }
.pathway-card:hover { background: var(--rust); transform: translateY(-5px); }
.card-index { display: block; margin-bottom: 60px; color: var(--yellow); font-family: "Courier New", monospace; font-weight: 800; }
.card-label { margin-bottom: 12px; color: var(--yellow-light); font-size: .65rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.pathway-card h3 { font-family: Georgia, serif; font-size: 1.55rem; line-height: 1.15; }
.pathway-card > p:last-child { color: #cec8ba; font-size: .91rem; }
.pathway-card:hover > p:last-child { color: var(--white); }
.moves-preview { position: relative; border-top: 2px solid var(--ink); }
.move-line { position: relative; display: grid; grid-template-columns: 85px 1fr; gap: 20px; padding: 28px 8px; border-bottom: 1px solid var(--line); }
.move-line > span { color: var(--rust); font-family: "Courier New", monospace; font-weight: 900; }
.move-line h3 { margin-bottom: 7px; font-family: Georgia, serif; font-size: 1.55rem; }
.move-line p { margin-bottom: 0; color: #5c584e; }
.center-action { margin-top: 42px; text-align: right; }
.text-link { font-size: .76rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; border-bottom: 2px solid var(--rust); padding-bottom: 6px; }
.text-link span { color: var(--rust); font-size: 1.1rem; }
.prayer-section { padding: 120px 0; color: var(--white); background: var(--rust); }
.prayer-grid { display: grid; grid-template-columns: 220px 1fr; gap: 50px 90px; }
.prayer-grid blockquote { grid-column: 2; margin: 0; max-width: 850px; font-family: Georgia, serif; font-size: clamp(2.4rem, 4.5vw, 4.8rem); line-height: 1.13; letter-spacing: -.035em; }
.prayer-note { grid-column: 2; display: flex; justify-content: space-between; gap: 30px; border-top: 1px solid rgba(255,255,255,.4); padding-top: 20px; }
.prayer-note p { font-weight: 900; }
.prayer-note span { color: #f0c8ba; font-size: .78rem; line-height: 1.5; text-align: right; }
.launch-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; padding: 60px; border: 2px solid var(--ink); box-shadow: 12px 12px 0 var(--yellow); }
.launch-panel h2 { margin-bottom: 0; }
.launch-panel > div:last-child > p { font-family: Georgia, serif; font-size: 1.1rem; }

.page-hero { position: relative; overflow: hidden; min-height: 570px; display: flex; color: var(--white); background: var(--ink); }
.page-hero::before { content: ""; position: absolute; inset: 0; opacity: .42; background: url('/img/background.jpg') center 45% / cover; filter: grayscale(1) contrast(1.2); }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23,23,19,.98) 15%, rgba(23,23,19,.76) 65%, rgba(23,23,19,.5)); }
.page-hero-inner { position: relative; z-index: 2; align-self: center; padding-block: 90px; }
.page-hero h1 { font-size: clamp(4rem, 7vw, 7rem); }
.page-hero-inner > p:last-child { max-width: 700px; color: #e4dece; font-family: Georgia, serif; font-size: 1.22rem; }
.full-moves { position: relative; border-top: 2px solid var(--ink); }
.full-move { display: grid; grid-template-columns: 100px 1fr .72fr; gap: 40px; padding: 42px 8px; border-bottom: 1px solid var(--line); }
.move-number { color: var(--rust); font: 900 1.05rem "Courier New", monospace; }
.move-copy h2 { margin-bottom: 10px; font-size: 2rem; }
.move-copy p, .practice p { margin-bottom: 0; color: #5b574e; }
.practice { padding-left: 30px; border-left: 1px solid var(--line); }
.practice span { display: block; margin-bottom: 9px; color: var(--rust); font-size: .63rem; font-weight: 950; letter-spacing: .15em; text-transform: uppercase; }
.source { grid-column: 2 / -1; margin-top: 6px; padding-top: 14px; border-top: 1px dashed var(--line); }
.source span { display: block; margin-bottom: 6px; color: var(--rust); font-size: .63rem; font-weight: 950; letter-spacing: .15em; text-transform: uppercase; }
.source p { margin-bottom: 2px; color: #5b574e; font-family: Georgia, serif; }
.source p + p { font-style: italic; }
.move-line small { display: block; margin-top: 6px; color: var(--rust); font-size: .78rem; font-style: italic; }
.rhythm-list { border-top: 1px solid rgba(255,255,255,.25); }
.rhythm-list article { display: grid; grid-template-columns: 70px 220px 1fr; gap: 30px; padding: 24px 0; align-items: baseline; border-bottom: 1px solid rgba(255,255,255,.25); }
.rhythm-list span { color: var(--yellow); font-family: "Courier New", monospace; }
.rhythm-list h3 { font: 1.3rem Georgia, serif; }
.rhythm-list p { margin-bottom: 0; color: #cfc8bb; }
.boundary-box { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; }
.boundary-box ul { padding-left: 18px; line-height: 1.8; }

.story-hero { min-height: 670px; }
.story-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 340px; gap: 90px; align-items: center; padding-block: 70px; }
.story-hero-grid h1 { margin-bottom: 20px; }
.story-hero-grid > div:first-child > p:last-child { max-width: 650px; color: #e5dfd1; font: 1.25rem/1.65 Georgia, serif; }
.story-cover { width: 280px; justify-self: center; transform: rotate(3deg); box-shadow: 18px 20px 0 var(--yellow); }
.story-cover img { display: block; }
.quote-stage { text-align: center; max-width: 980px; }
.quote-stage blockquote { margin: 0 auto 35px; font: clamp(2.7rem, 5vw, 5.2rem)/1.08 Georgia, serif; letter-spacing: -.04em; }
.quote-stage > p:last-child { max-width: 680px; margin-inline: auto; color: #c9c2b3; }
.expertise-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; }
.expertise-list { border-top: 2px solid var(--ink); }
.expertise-list article { display: grid; grid-template-columns: 50px 220px 1fr; gap: 24px; padding: 27px 0; border-bottom: 1px solid var(--line); }
.expertise-list span { color: var(--rust); font-family: "Courier New", monospace; font-weight: 900; }
.expertise-list h3 { font: 1.2rem Georgia, serif; }
.expertise-list p { margin: 0; color: #5b574e; }

.resource-intro, .safety-grid { display: grid; grid-template-columns: 1fr .68fr; gap: 90px; align-items: end; }
.resource-intro > p { font: 1.18rem/1.75 Georgia, serif; }
.resource-list { position: relative; border-top: 2px solid var(--ink); }
.resource-card { display: grid; grid-template-columns: 80px 1fr 50px; gap: 25px; align-items: center; padding: 34px 8px; border-bottom: 1px solid var(--line); transition: padding .2s ease, background .2s ease; }
.resource-card:hover { padding-inline: 22px; background: rgba(245,184,31,.22); }
.resource-index { color: var(--rust); font-family: "Courier New", monospace; font-weight: 900; }
.resource-card h2 { margin-bottom: 8px; font-size: 1.8rem; }
.resource-card p:last-child { margin-bottom: 0; color: #5b574e; }
.external { justify-self: end; font-size: 1.6rem; }
.safety-grid a { color: var(--yellow-light); text-decoration: underline; text-underline-offset: 4px; }

.site-footer { padding: 70px 0 45px; color: var(--white); background: #0e0e0b; border-top: 6px solid var(--yellow); }
.footer-grid { display: grid; grid-template-columns: 1fr 200px 1fr; gap: 60px; align-items: start; }
.footer-mark { margin-bottom: 18px; }
.footer-grid > div:first-child p { max-width: 350px; color: #a9a394; font-family: Georgia, serif; }
.footer-links { display: flex; flex-direction: column; gap: 15px; font-size: .76rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.footer-links a:hover { color: var(--yellow); }
.fine-print { color: #868075; font-size: .71rem; line-height: 1.65; }

@media (max-width: 900px) {
  .hero-grid, .split-heading, .curriculum-intro, .story-copy, .section-head, .launch-panel, .boundary-box, .expertise-grid, .resource-intro, .safety-grid { grid-template-columns: 1fr; gap: 45px; }
  .hero-grid { padding-top: 90px; }
  .hero-art { width: 300px; margin-top: 25px; }
  .pathway-grid { grid-template-columns: repeat(2, 1fr); }
  .prayer-grid { grid-template-columns: 1fr; }
  .prayer-grid blockquote, .prayer-note { grid-column: 1; }
  .story-hero-grid { grid-template-columns: 1fr 240px; gap: 35px; }
  .full-move { grid-template-columns: 70px 1fr; }
  .practice { grid-column: 2; padding: 0; border: 0; }
  .source { grid-column: 2; }
  .expertise-list article { grid-template-columns: 50px 180px 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .fine-print { grid-column: 1 / -1; }
}

@media (max-width: 650px) {
  .shell { width: min(100% - 30px, var(--shell)); }
  .site-header { position: static; }
  .nav-wrap { padding: 18px 0; align-items: flex-start; }
  nav { justify-content: flex-end; flex-wrap: wrap; gap: 10px 18px; }
  nav a { padding: 0; font-size: .65rem; border: 0; }
  .hero, .hero-grid { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 45px; padding-block: 70px; }
  .hero h1, .page-hero h1 { font-size: clamp(2.4rem, 11.5vw, 4.4rem); overflow-wrap: anywhere; }
  h2 { overflow-wrap: break-word; }
  .hero-art { width: 240px; }
  .tape-note { right: -30px; font-size: .72rem; }
  .signal-row { justify-content: flex-start; overflow-x: auto; }
  .section { padding: 78px 0; }
  .pathway-grid { grid-template-columns: 1fr; }
  .pathway-card { min-height: 290px; }
  .prayer-section { padding: 82px 0; }
  .prayer-grid blockquote { font-size: 2.35rem; }
  .prayer-note { flex-direction: column; }
  .prayer-note span { text-align: left; }
  .launch-panel { padding: 30px 25px; box-shadow: 7px 7px 0 var(--yellow); }
  .story-hero-grid { grid-template-columns: 1fr; }
  .story-cover { width: 210px; justify-self: start; }
  .full-move { grid-template-columns: 45px 1fr; gap: 15px; }
  .rhythm-list article { grid-template-columns: 35px 1fr; }
  .rhythm-list p { grid-column: 2; }
  .expertise-list article { grid-template-columns: 40px 1fr; }
  .expertise-list p { grid-column: 2; }
  .resource-card { grid-template-columns: 45px 1fr; }
  .resource-card .external { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .fine-print { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ---- Static-site additions ---- */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 99; padding: 12px 18px; color: var(--ink); background: var(--yellow); font-weight: 900; }
.skip-link:focus { left: 12px; top: 12px; }
.logo { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.logo img { display: block; width: 200px; height: auto; }
.logo small { color: var(--yellow-light); font-size: .6rem; font-weight: 900; letter-spacing: .32em; }
.footer-logo img { width: 230px; }
nav a[aria-current="page"] { color: var(--yellow-light); border-color: var(--yellow); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.book-hero { min-height: 640px; }
.book-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 360px; gap: 90px; align-items: center; padding-block: 80px; }
.book-hero-grid h1 { margin-bottom: 18px; }
.book-hero-grid .subtitle { color: #e4dece; font: italic 1.45rem/1.4 Georgia, serif; }
.book-hero-grid .byline { color: var(--yellow-light); font: 1.2rem Georgia, serif; }
.book-cover { width: 320px; justify-self: center; transform: rotate(2deg); box-shadow: 18px 20px 0 var(--yellow); }
.book-cover img { display: block; }
.book-copy { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; }
.book-copy .prose-large p:first-child { font-size: 1.32rem; color: var(--ink); }
.edition-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); border-left: 1px solid var(--line); }
.edition { display: flex; flex-direction: column; padding: 34px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.edition h3 { margin-bottom: 8px; font: 1.7rem Georgia, serif; }
.edition dl { margin: 0 0 26px; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .9rem; color: #5b574e; }
.edition dt { font-weight: 800; color: var(--ink); }
.edition dd { margin: 0; }
.edition .button { margin-top: auto; align-self: flex-start; }
.button.soon { color: #6d675a; background: transparent; border-color: #b8ae96; border-style: dashed; cursor: default; }
.button.soon:hover { transform: none; }
.notice { max-width: 860px; padding: 26px 30px; border-left: 6px solid var(--rust); background: var(--white); }
.notice p { margin-bottom: 0; font-family: Georgia, serif; }
.notice strong { display: block; margin-bottom: 8px; color: var(--rust); font: 900 .7rem Arial, sans-serif; letter-spacing: .18em; text-transform: uppercase; }
.epigraph { text-align: center; }
.epigraph blockquote { margin: 0 auto 18px; max-width: 900px; font: clamp(2.2rem, 4.4vw, 4.2rem)/1.1 Georgia, serif; letter-spacing: -.035em; }
.epigraph p { color: #c9c2b3; }
.grad-figure { margin: 0; }
.grad-figure img { display: block; width: 100%; max-width: 440px; box-shadow: 14px 14px 0 var(--yellow); }
.grad-figure figcaption { margin-top: 18px; color: #5b574e; font: italic .95rem Georgia, serif; }
.story-photo { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; }

@media (max-width: 900px) {
  .book-hero-grid { grid-template-columns: 1fr 240px; gap: 35px; }
  .book-copy, .story-photo { grid-template-columns: 1fr; gap: 45px; }
  .edition-grid { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .logo img { width: 150px; }
  .book-hero-grid { grid-template-columns: 1fr; }
  .book-cover { width: 210px; justify-self: start; }
}
