/* The Life of Jack — tokens from Figma file pxd1hlRMuMXZVzuG9tyON0 (brand kit). */

:root {
  --ink: #1A211D;
  --smoke: #3C3F3A;
  --silver: #71706C;
  --overcast: #8C97A2;
  --haze: #BECBD4;
  --paper: #DFDAD6;
  --bleach: #F1F3F5;
  --amber: #B0874E;
  --rust: #814936;
  --straw: #9C9460;
  --olive: #4B552F;
  --gold: #D8B57D;
  --shadow: #1A211D24;

  --font-serif: "Instrument Serif", "Palatino Linotype", Palatino, "Book Antiqua", serif;
  --font-body: "Archivo Narrow", "Avenir Next Condensed", "Trebuchet MS", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --pad: clamp(1.5rem, 5vw, 5rem);
  --max: 80rem;
  --measure: 38rem;
  --radius: 0;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/InstrumentSerif-Regular-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/InstrumentSerif-Regular-latinext.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/InstrumentSerif-Italic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/InstrumentSerif-Italic-latinext.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo Narrow";
  src: url("fonts/ArchivoNarrow-variable.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-Regular-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-Medium-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  color: var(--ink);
  background: var(--bleach);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.07;
  background-image: url("textures/grain-fine.png");
  background-size: 256px 256px;
  mix-blend-mode: multiply;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: var(--bleach);
  padding: 0.6rem 1rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: min(100% - (var(--pad) * 2), var(--max));
  margin-inline: auto;
}

/* Nav */

.nav {
  background: var(--bleach);
  border-bottom: 1px solid var(--haze);
}

.nav-inner {
  width: min(100% - (var(--pad) * 2), var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.5rem;
}

.wordmark {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.4vw, 2.75rem);
  letter-spacing: -0.02em;
  line-height: 1;
  text-decoration: none;
  color: var(--ink);
  flex: 0 0 auto;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
  color: var(--ink);
}

.nav-links a:hover {
  color: var(--rust);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 1rem 1.5rem;
  background: var(--rust);
  color: var(--bleach);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1;
  text-decoration: none;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  background: var(--ink);
  color: var(--bleach);
}

.btn:focus-visible {
  outline-color: var(--amber);
}

.btn-on-dark:hover {
  background: var(--bleach);
  color: var(--ink);
}

/* Hero */

.hero {
  position: relative;
  background-color: var(--paper);
  background-image: url("textures/paper.png");
  background-size: 512px 512px;
  overflow: hidden;
}

.hero-inner {
  width: min(100% - (var(--pad) * 2), var(--max));
  margin-inline: auto;
  display: grid;
  gap: 3rem;
  padding-block: clamp(3rem, 8vw, 6.5rem);
  align-items: end;
}

.hero-copy {
  max-width: 38rem;
}

.kicker {
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--rust);
  line-height: 1.3;
}

.hero h1 {
  margin: 0 0 1.5rem;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.96;
  letter-spacing: 0;
  color: var(--ink);
  max-width: 14ch;
}

.lede {
  margin: 0 0 2rem;
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  line-height: 1.4;
  max-width: 34rem;
  color: var(--ink);
}

.book-card {
  background-color: var(--bleach);
  background-image: url("textures/paper.png");
  background-size: 512px 512px;
  background-blend-mode: multiply;
  color: var(--ink);
  padding: 1.5rem 1.5rem 2rem;
  box-shadow: 0 12px 24px var(--shadow);
  min-height: 22rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  max-width: 28.5rem;
  width: 100%;
}

.book-card-top {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.book-card .mark {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  color: var(--ink);
}

.book-card h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.75rem, 8vw, 5rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.book-card .rule {
  width: 100%;
  height: 1px;
  background: var(--ink);
  border: 0;
  margin: 0;
}

.book-card .subtitle {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  color: var(--rust);
  line-height: 1.45;
}

.book-card .spine {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--smoke);
}

/* Sections */

section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.section-inner {
  width: min(100% - (var(--pad) * 2), var(--max));
  margin-inline: auto;
}

.band-bleach { background: var(--bleach); }
.band-paper {
  background-color: var(--paper);
  background-image: url("textures/paper.png");
  background-size: 512px 512px;
}
.band-ink {
  background: var(--ink);
  color: var(--bleach);
}

.band-ink .kicker { color: var(--gold); }
.band-ink p { color: var(--paper); }

h2.display {
  margin: 0 0 1.5rem;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.75rem, 6.2vw, 4.625rem);
  line-height: 1.02;
  letter-spacing: 0;
  max-width: 18ch;
}

.prose {
  max-width: var(--measure);
}

.prose p {
  margin: 0 0 1.15rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.split {
  display: grid;
  gap: 2.5rem;
}

.split-item h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.15;
}

.split-item p {
  margin: 0;
  max-width: 30rem;
}

.note {
  margin: 1.75rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--smoke);
}

/* Book 1 */

.book1-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.book1-grid h2.display {
  max-width: 16ch;
}

.question {
  margin: 1.5rem 0 0;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.6vw, 1.85rem);
  line-height: 1.3;
  max-width: 28rem;
}

/* Series */

.series-intro {
  max-width: 40rem;
  margin: 0 0 2.5rem;
}

.series-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.rite {
  padding: 1.5rem 1.35rem 1.65rem;
  background: var(--paper);
  min-height: 100%;
}

.rite.is-one {
  background: var(--ink);
  color: var(--bleach);
}

.rite .grade {
  margin: 0 0 0.65rem;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--rust);
}

.rite.is-one .grade {
  color: var(--gold);
}

.rite h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.15;
}

.rite p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.4;
}

.rite.is-one p {
  color: var(--paper);
}

/* Close */

.close .display {
  max-width: 14ch;
}

.close p {
  margin: 0 0 2rem;
  max-width: 28rem;
  font-size: 1.375rem;
}

/* Footer */

.footer {
  background: var(--bleach);
  border-top: 1px solid var(--haze);
  padding-block: 1.5rem 2rem;
}

.footer-inner {
  width: min(100% - (var(--pad) * 2), var(--max));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}

.footer .wordmark {
  font-size: 1.75rem;
}

.footer p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--smoke);
}

@media (max-width: 719px) {
  .nav-inner {
    padding-block: 1.15rem;
  }

  .nav .btn {
    display: none;
  }

  .book-card {
    min-height: 0;
  }

  .hero .kicker {
    font-size: 0.6875rem;
  }
}

@media (min-width: 700px) {
  .series-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split {
    grid-template-columns: 1fr 1fr;
    gap: 3rem 4rem;
  }
}

@media (min-width: 960px) {
  .hero-inner {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 4rem;
  }

  .book-card {
    justify-self: end;
  }

  .book-card h2 {
    font-size: 5rem;
  }

  .nav-links {
    display: flex;
  }

  .book1-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: end;
  }

  .series-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

/* Parent pages (added Nov 18, 2026) */

.page-hero h1 {
  font-size: clamp(2.75rem, 6.5vw, 5.25rem);
  line-height: 1;
  max-width: 16ch;
}

.page-hero .hero-copy {
  max-width: 46rem;
}

.crumbs {
  margin: 0 0 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--smoke);
}

.crumbs a {
  color: var(--smoke);
}

.article .prose {
  max-width: 42rem;
}

.article .prose h2 {
  margin: 2.75rem 0 0.85rem;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  line-height: 1.08;
}

.article .prose > h2:first-child {
  margin-top: 0;
}

.article .prose a,
.booklist a {
  color: var(--rust);
  text-underline-offset: 0.15em;
}

.article ul,
.article ol {
  margin: 0 0 1.15rem;
  padding-left: 1.25rem;
}

.article li {
  margin: 0 0 0.6rem;
}

.excerpt {
  margin: 0.5rem 0 1.5rem;
  padding: 1.25rem 0 1.25rem 1.5rem;
  border-left: 3px solid var(--rust);
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  line-height: 1.3;
}

.excerpt p {
  margin: 0;
}

.facts-grid {
  margin: 2.5rem 0;
}

.related-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--bleach);
}

.band-bleach .related-card {
  background: var(--paper);
}

.related-card:hover h3 {
  color: var(--rust);
}

.say-grid {
  margin: 1.5rem 0 2.5rem;
  max-width: 52rem;
}

.say-grid ul {
  padding-left: 1.25rem;
  margin: 0;
}

.say-grid li {
  margin-bottom: 0.6rem;
}

.booklist {
  list-style: none;
  padding: 0 !important;
  margin: 2rem 0 2.5rem !important;
  max-width: 46rem;
  counter-reset: book;
}

.booklist > li {
  counter-increment: book;
  padding: 1.5rem 0;
  border-top: 1px solid var(--haze);
  margin: 0;
}

.booklist h3 {
  margin: 0 0 0.6rem;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  line-height: 1.15;
}

.booklist h3::before {
  content: counter(book) ". ";
  color: var(--rust);
}

.booklist h3 cite {
  font-style: italic;
}

.booklist h3 span {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--smoke);
}

.booklist p {
  margin: 0 0 0.75rem;
}

.heads-up {
  font-size: 1.0625rem;
  color: var(--smoke);
}

.cta-line {
  margin-top: 2rem !important;
  font-weight: 700;
}

@media (min-width: 960px) {
  .related-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
