/* =====================================================================
   Thomas Anthony -- design system
   Neutral editorial shell. Three publishing worlds via [data-world].
   Books provide the color; the site stays quiet.
   ===================================================================== */

/* ---------- 1. Tokens ---------- */

:root {
  /* Neutral master palette */
  --ivory:        #f5f0e6;
  --ivory-lift:   #fbf8f2;
  --stone:        #eae3d6;
  --stone-deep:   #ddd4c4;
  --ink:          #25221f;
  --ink-soft:     #5c554c;
  --ink-mute:     #665e53;
  /* Antique gold, darkened until link-sized text clears 4.5:1 on ivory and on the stone wash. */
  --gold:         #795f24;
  --gold-soft:    #c0a468;   /* decorative only -- fragments, selection, footer headings on navy */
  --navy:         #1f2d3d;
  --navy-deep:    #16202b;
  --rule:         rgba(37, 34, 31, .16);
  --rule-soft:    rgba(37, 34, 31, .08);

  /* World hooks -- overridden by [data-world] */
  --accent:       var(--gold);
  --accent-on-field: var(--gold);   /* accent legible on --field */
  --accent-deep:  #6c5423;
  --wash:         var(--stone);
  --field:        var(--stone);
  --field-ink:    var(--ink);
  --field-ink-soft: var(--ink-soft);
  --field-rule:   var(--rule);

  /* Type */
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --fs-display: clamp(2.6rem, 6.6vw, 5rem);
  --fs-h1:      clamp(2.1rem, 4.4vw, 3.5rem);
  --fs-h2:      clamp(1.7rem, 2.9vw, 2.5rem);
  --fs-h3:      clamp(1.2rem, 1.7vw, 1.55rem);
  --fs-lead:    clamp(1.06rem, 1.3vw, 1.28rem);
  --fs-body:    1.0625rem;
  --fs-small:   .875rem;
  --fs-micro:   .75rem;

  --lh-tight: 1.06;
  --lh-head:  1.18;
  --lh-body:  1.68;

  --track-eyebrow: .16em;
  --track-nav:     .09em;

  /* Space */
  --s-1: .25rem; --s-2: .5rem;  --s-3: .75rem; --s-4: 1rem;
  --s-5: 1.5rem; --s-6: 2rem;   --s-7: 3rem;   --s-8: 4rem;
  --s-9: 5.5rem; --s-10: 7.5rem; --s-11: 10rem;

  /* Widths */
  --w-page: 78rem;
  --w-wide: 92rem;
  --w-text: 40rem;      /* ~68 characters */

  /* Surface */
  --radius: 2px;
  --shadow-cover: 0 1px 2px rgba(37,34,31,.10), 0 12px 28px -10px rgba(37,34,31,.30);
  --shadow-cover-lg: 0 2px 4px rgba(37,34,31,.10), 0 30px 60px -18px rgba(37,34,31,.38);

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .45s;
  --dur-fast: .2s;

  --z-header: 50;
  --z-nav: 60;
  --z-skip: 100;
}

[data-world="odra"] {
  --accent:      #9a5138;   /* terracotta, dark enough for 4.86:1 on the odra wash */
  --accent-on-field: #8a4630;  /* the field is darker than the wash: 4.99:1 */
  --accent-deep: #743925;
  --wash:        #f2e9df;
  --field:       #e8dacb;
  --field-ink:   #3a2b22;
  --field-ink-soft: #6b5344;
  --field-rule:  rgba(58, 43, 34, .18);
}

[data-world="new-kid-code"] {
  --accent:      #2f6675;
  --accent-on-field: #2f6675;  /* 4.96:1 on this field, no change needed */
  --accent-deep: #1f4a56;
  --wash:        #edf1ec;
  --field:       #dee6e2;
  --field-ink:   #21332f;
  --field-ink-soft: #4c5f59;
  --field-rule:  rgba(33, 51, 47, .18);
}

[data-world="guides"] {
  --accent:      #1b3a5c;
  --accent-on-field: #c0a468;  /* field is inverted navy, so the accent goes light */
  --accent-deep: #12293f;
  --wash:        #ecedef;
  --field:       #1b3a5c;         /* inverted: the guides world reads dark and structured */
  --field-ink:   #f7f3ea;
  --field-ink-soft: rgba(247, 243, 234, .78);
  --field-rule:  rgba(247, 243, 234, .24);
}

/* ---------- 2. Reset & base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Restrained paper grain. Subconscious, never enough to soften text. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 2; }

::selection { background: var(--gold-soft); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 1px;
}

/* Visible to crawlers and screen readers, not to the eye. Used to give short visual link
   text a full descriptive anchor without printing the whole book title in a micro-link. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute; top: 0; left: 0; z-index: var(--z-skip);
  padding: var(--s-3) var(--s-5);
  background: var(--ink); color: var(--ivory);
  font-size: var(--fs-small); text-decoration: none;
  transform: translateY(-110%);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 3. Typography ---------- */

h1, h2, h3, h4, .display {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-weight: 500;
  line-height: var(--lh-head);
  letter-spacing: -.012em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

.display {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: -.022em;
  font-weight: 400;
}

.eyebrow {
  font-family: var(--sans);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-4);
}
.eyebrow--mute { color: var(--ink-mute); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.58;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.prose p { margin-bottom: var(--s-5); text-wrap: pretty; }
.prose p:last-child { margin-bottom: 0; }

a { color: inherit; }
.link {
  color: var(--accent);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  padding-bottom: 1px;
  transition: background-size var(--dur-fast) var(--ease);
}
.link:hover { background-size: 0 1px; }

/* Arrow link -- the site's quiet secondary action */
.arrow {
  display: inline-flex; align-items: baseline; gap: .55em;
  font-family: var(--sans);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
  padding-bottom: .35em;
  border-bottom: 1px solid currentColor;
  transition: gap var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.arrow::after { content: "\2192"; font-size: 1.05em; }
.arrow:hover { gap: .95em; color: var(--accent-deep); }

/* ---------- 4. Layout ---------- */

.wrap { width: min(100% - 2.5rem, var(--w-page)); margin-inline: auto; }
.wrap--wide { width: min(100% - 2.5rem, var(--w-wide)); }
.wrap--text { width: min(100% - 2.5rem, var(--w-text)); }

.section { padding-block: var(--s-9); }
.section--tight { padding-block: var(--s-8); }
.section--loose { padding-block: var(--s-10); }
.section--wash { background: var(--wash); }
.section--stone { background: var(--stone); }
.section--rule { border-top: 1px solid var(--rule); }

.section-head { max-width: 46rem; margin-bottom: var(--s-8); }
.section-head .lead { margin-top: var(--s-4); }

.hr { height: 1px; background: var(--rule); border: 0; }
.hr--short { width: 3.5rem; height: 2px; background: var(--accent); border: 0; }

/* ---------- 5. Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 46px;
  padding: .8rem 1.6rem;
  font-family: var(--sans);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}
.btn--primary { background: var(--ink); color: var(--ivory); }
.btn--primary:hover { background: var(--accent-deep); }
.btn--ghost { border-color: var(--rule); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--onfield { border-color: var(--field-rule); color: var(--field-ink); }
.btn--onfield:hover { background: var(--field-ink); color: var(--field); }
.btn--block { width: 100%; }

/* ---------- 6. Header ---------- */

.header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: color-mix(in srgb, var(--ivory) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--rule-soft);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-5);
  min-height: 76px;
}
.brand { text-decoration: none; display: block; line-height: 1; }
.brand__name {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: 1.22rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.brand__sub {
  display: block;
  margin-top: .4rem;
  font-size: .625rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.nav__list { display: flex; align-items: center; gap: var(--s-6); }
.nav__link {
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: var(--track-nav);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding-block: .5rem;
  border-bottom: 1px solid transparent;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.nav__link:hover { color: var(--ink); border-color: var(--accent); }
.nav__link[aria-current] { color: var(--ink); border-color: var(--accent); }

.nav__toggle { display: none; }

/* ---------- 7. Mobile nav ---------- */

@media (max-width: 900px) {
  .nav__toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 46px; height: 46px; margin-right: -.6rem;
    align-items: center;
  }
  .nav__toggle span {
    display: block; width: 22px; height: 1.5px; background: var(--ink);
    transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
  }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .nav__list {
    position: fixed; inset: 76px 0 auto 0; z-index: var(--z-nav);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--s-4) 1.25rem var(--s-7);
    background: var(--ivory);
    border-bottom: 1px solid var(--rule);
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
  }
  .nav__list[hidden] { display: none; }
  .nav__link {
    display: block;
    font-size: .9rem;
    letter-spacing: .06em;
    padding: var(--s-4) 0;
    border-bottom: 1px solid var(--rule-soft);
  }
  .nav__link:hover, .nav__link[aria-current] { border-color: var(--accent); }
}

/* ---------- 8. Homepage hero ---------- */

.hero { padding-block: clamp(3rem, 7vw, 6.5rem) clamp(3rem, 6vw, 5.5rem); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero__name {
  font-size: var(--fs-display);
  line-height: .96;
  letter-spacing: -.028em;
  font-weight: 400;
}
.hero__line {
  margin-top: var(--s-5);
  max-width: 30ch;
  font-family: var(--serif);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: var(--fs-lead);
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-soft);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-7); }

/* Editorial still-life of three covers -- staggered, not a collage */
.hero__shelf {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(.75rem, 2vw, 1.75rem);
  align-items: end;
}
.hero__shelf figure { margin: 0; }
.hero__shelf img {
  width: 100%;
  border-radius: 1px;
  box-shadow: var(--shadow-cover);
}
.hero__shelf figure:nth-child(1) { transform: translateY(-1.75rem); }
.hero__shelf figure:nth-child(2) { transform: translateY(1.25rem) scale(1.06); z-index: 2; }
.hero__shelf figure:nth-child(2) img { box-shadow: var(--shadow-cover-lg); }
.hero__shelf figure:nth-child(3) { transform: translateY(-.5rem); }
.hero__shelf figcaption {
  margin-top: var(--s-3);
  font-size: .6875rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-align: center;
}

/* ---------- 9. Three doorways ---------- */

.doorways {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.doorway {
  --accent: var(--gold);
  display: flex; flex-direction: column;
  padding: clamp(2.5rem, 4vw, 4rem) clamp(1.5rem, 2.6vw, 2.75rem) clamp(2.5rem, 4vw, 3.5rem);
  background: var(--field);
  color: var(--field-ink);
  text-decoration: none;
  border-right: 1px solid var(--field-rule);
  transition: background-color var(--dur) var(--ease);
}
.doorway:last-child { border-right: 0; }
.doorway__cover {
  align-self: center;
  width: min(74%, 15rem);
  margin-bottom: var(--s-7);
  box-shadow: var(--shadow-cover);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.doorway:hover .doorway__cover { transform: translateY(-8px); box-shadow: var(--shadow-cover-lg); }
.doorway__eyebrow {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--field-ink-soft);
  margin-bottom: var(--s-3);
}
.doorway__title {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -.015em;
}
.doorway__text {
  margin-top: var(--s-4);
  font-size: .96rem;
  line-height: 1.62;
  color: var(--field-ink-soft);
  flex: 1;
}
.doorway__cta {
  display: inline-flex; align-items: baseline; gap: .55em;
  margin-top: var(--s-6);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding-bottom: .4em;
  border-bottom: 1px solid var(--field-rule);
  align-self: flex-start;
  transition: gap var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.doorway__cta::after { content: "\2192"; }
.doorway:hover .doorway__cta { gap: .95em; border-color: currentColor; }

/* ---------- 10. Featured Now ---------- */

.featured { background: var(--wash); }
.featured__grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: center;
}
.featured__cover img {
  width: 100%;
  box-shadow: var(--shadow-cover-lg);
}
.featured__hook {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: clamp(1.35rem, 2.3vw, 1.95rem);
  font-weight: 400;
  line-height: 1.34;
  letter-spacing: -.012em;
  margin-block: var(--s-4) var(--s-5);
  text-wrap: pretty;
}
.featured__actions { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-6); }

/* ---------- 11. Catalog rail ---------- */

.rail {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.75rem) clamp(1.25rem, 2.4vw, 2rem);
}
.book-item { display: flex; flex-direction: column; }
.book-item__cover { display: block; margin-bottom: var(--s-4); }
.book-item__cover img {
  width: 100%;
  box-shadow: var(--shadow-cover);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.book-item:hover .book-item__cover img { transform: translateY(-6px); box-shadow: var(--shadow-cover-lg); }
.book-item__meta {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: var(--s-2);
}
.book-item__title {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.24;
}
.book-item__title a { text-decoration: none; }
.book-item__title a:hover { color: var(--accent); }
.book-item__hook {
  margin-top: var(--s-3);
  font-size: .9rem;
  line-height: 1.56;
  color: var(--ink-soft);
  flex: 1;
}
.book-item__link { margin-top: var(--s-4); }

/* Numbered series sequence */
.series-list { display: flex; flex-direction: column; }
.series-item {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 15rem) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 3rem);
  align-items: start;
  padding-block: clamp(2rem, 4vw, 3.25rem);
  border-top: 1px solid var(--rule);
}
.series-item:last-child { border-bottom: 1px solid var(--rule); }
.series-item__num {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  opacity: .55;
}
.series-item__cover img { width: 100%; box-shadow: var(--shadow-cover); }
.series-item__title { font-size: clamp(1.4rem, 2.2vw, 1.85rem); }
.series-item__hook {
  margin-top: var(--s-4);
  font-family: var(--serif);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.series-item__actions { display: flex; flex-wrap: wrap; gap: var(--s-5); margin-top: var(--s-5); align-items: center; }

/* ---------- 12. World hero ---------- */

.world-hero {
  background: var(--field);
  color: var(--field-ink);
  border-bottom: 1px solid var(--field-rule);
  padding-block: clamp(3rem, 6.5vw, 6rem);
  position: relative;
  overflow: hidden;
}
.world-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.world-hero__eyebrow { color: var(--field-ink-soft); }
.world-hero__title { font-size: var(--fs-display); line-height: 1; letter-spacing: -.026em; font-weight: 400; }
.world-hero__line {
  margin-top: var(--s-5);
  max-width: 34ch;
  font-family: var(--serif);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--field-ink-soft);
}
.world-hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-7); }
.world-hero__cover {
  justify-self: center;
  width: min(100%, 20rem);
  box-shadow: var(--shadow-cover-lg);
}

/* Odra: pale-gold fragments drifting. Motion is a whisper, and opt-out is honored. */
.fragments { position: absolute; inset: 0; pointer-events: none; }
.fragments span {
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold-soft);
  opacity: .0;
  animation: drift 15s var(--ease) infinite;
}
@keyframes drift {
  0%   { opacity: 0; transform: translate3d(0, 14px, 0) scale(.7); }
  35%  { opacity: .5; }
  70%  { opacity: .28; }
  100% { opacity: 0; transform: translate3d(14px, -34px, 0) scale(1.05); }
}

/* New Kid Code: notebook rule, a school-paper detail rather than an illustration */
[data-world="new-kid-code"] .world-hero::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom, transparent 0 33px, var(--field-rule) 33px 34px);
  opacity: .5;
  mask-image: linear-gradient(to bottom, transparent, #000 55%, transparent);
}

/* ---------- 13. Question / theme grid ---------- */

.questions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--rule); }
.question { background: var(--ivory); padding: clamp(1.75rem, 3vw, 2.75rem); }
.question h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 400;
  font-style: italic;
}
.question p { margin-top: var(--s-4); color: var(--ink-soft); font-size: .96rem; line-height: 1.62; }

.audience-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s-6) var(--s-7); }
.audience-list h3 {
  font-size: 1.08rem;
  padding-top: var(--s-4);
  border-top: 2px solid var(--accent);
}
.audience-list p { margin-top: var(--s-3); font-size: .94rem; line-height: 1.6; color: var(--ink-soft); }

.pull {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: -.018em;
  text-align: center;
  max-width: 24ch;
  margin-inline: auto;
  text-wrap: balance;
}

/* ---------- 14. Article cards / resource list ---------- */

.resource-list { border-top: 1px solid var(--rule); }
.resource {
  display: grid;
  grid-template-columns: minmax(0, 12rem) minmax(0, 1fr) auto;
  gap: var(--s-5) clamp(1.5rem, 3vw, 3rem);
  align-items: baseline;
  padding-block: var(--s-6);
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease);
}
.resource:hover { background: color-mix(in srgb, var(--wash) 60%, transparent); }
/* These are spans inside an <a>, so they need an explicit block display -- otherwise they
   run together inline and the dek's margin-top silently does nothing. */
.resource__world {
  display: block;
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--ink-mute);
}
.resource__title {
  display: block;
  font-family: var(--serif);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 500;
  line-height: 1.24;
  text-wrap: balance;
}
.resource:hover .resource__title { color: var(--accent); }
.resource__dek {
  display: block;
  margin-top: var(--s-3);
  font-size: .94rem;
  line-height: 1.6;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.resource__go { color: var(--accent); font-size: 1.1rem; }

/* ---------- 15. Book page ---------- */

.breadcrumbs { padding-block: var(--s-5); font-size: var(--fs-micro); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; }
/* The last crumb is a <span>, the rest are <a>. Align on the row box rather than the text
   baseline, or any rule changing the anchors' display drops the span out of alignment. */
.breadcrumbs li { display: inline-flex; align-items: center; }
.breadcrumbs li::after { content: "\203a"; margin-left: .55rem; color: var(--ink-mute); opacity: .6; }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }

.book-hero { padding-block: var(--s-6) var(--s-9); }
.book-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.book-hero__cover { position: sticky; top: 108px; }
.book-hero__cover img { width: 100%; box-shadow: var(--shadow-cover-lg); }
.book-hero__series { margin-bottom: var(--s-4); }
.book-hero__title { font-size: var(--fs-h1); letter-spacing: -.022em; }
.book-hero__subtitle {
  margin-top: var(--s-4);
  font-family: var(--serif);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: 1.12rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink-soft);
}
.book-hero__hook {
  margin-top: var(--s-5);
  padding-left: var(--s-5);
  border-left: 2px solid var(--accent);
  font-family: var(--serif);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: clamp(1.15rem, 1.9vw, 1.4rem);
  line-height: 1.42;
  color: var(--ink);
}
.buy { margin-top: var(--s-7); }
.buy__actions { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; }
.buy__note { margin-top: var(--s-4); font-size: var(--fs-small); color: var(--ink-mute); }
.soon {
  display: inline-block; padding: .7rem 1.3rem;
  border: 1px dashed var(--rule);
  font-size: var(--fs-small); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute);
}

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s-5); margin-top: var(--s-7); padding-top: var(--s-6); border-top: 1px solid var(--rule); }
.facts dt { font-size: var(--fs-micro); font-weight: 600; letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--ink-mute); }
.facts dd { margin-top: var(--s-2); font-size: .94rem; }

.tags { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3); margin-top: var(--s-5); }
.tag {
  font-size: var(--fs-micro);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: .38rem .7rem;
  border: 1px solid var(--rule);
}

.checklist { display: grid; gap: var(--s-4); }
.checklist li {
  position: relative;
  padding-left: 1.8rem;
  font-size: 1rem;
  line-height: 1.58;
}
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: .66em;
  width: 10px; height: 1px;
  background: var(--accent);
}

.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.tool {
  background: var(--ivory-lift);
  padding: var(--s-5);
  font-size: .92rem;
  line-height: 1.45;
  display: flex; align-items: flex-start; gap: .7rem;
}
.tool::before {
  content: "";
  flex: none;
  width: 26px; height: 32px;
  margin-top: .1rem;
  border: 1px solid var(--accent);
  border-top-width: 4px;
  opacity: .45;
}

.prevnext { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-5); padding-block: var(--s-6); border-top: 1px solid var(--rule); }
.prevnext__label { display: block; font-size: var(--fs-micro); letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--ink-mute); margin-bottom: var(--s-2); }
.prevnext a { text-decoration: none; font-family: var(--serif); font-variation-settings: "SOFT" 0, "WONK" 0; font-size: 1.1rem; }
.prevnext a:hover { color: var(--accent); }

/* ---------- 16. Article ---------- */

.article-head { padding-block: var(--s-7) var(--s-8); }
.article-head h1 { font-size: var(--fs-h1); max-width: 20ch; }
.article-head .lead { margin-top: var(--s-5); max-width: 46ch; }
.article-meta { margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--rule); font-size: var(--fs-small); color: var(--ink-mute); }

.article-body { font-size: 1.09rem; line-height: 1.76; }
/* Email addresses and bare URLs are single unbreakable words. Two things are needed:
   let them break, and stop them setting a grid item's min-content width. Without the
   min-width reset a grid child refuses to shrink below its longest word. */
.article-body, .prose { overflow-wrap: break-word; }
.article-body a, .prose a, a[href^="mailto:"] { overflow-wrap: anywhere; }
.signup__grid > *, .author-block > *, .featured__grid > *, .book-hero__grid > * { min-width: 0; }
.article-body p { margin-bottom: var(--s-5); text-wrap: pretty; }
.article-body h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  margin-block: var(--s-8) var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid var(--rule);
}
.article-body h3 { font-size: 1.2rem; margin-block: var(--s-6) var(--s-4); }
.article-body ul, .article-body ol { margin-bottom: var(--s-5); display: grid; gap: var(--s-3); }
.article-body li { position: relative; padding-left: 1.6rem; }
.article-body ul > li::before { content: ""; position: absolute; left: 0; top: .78em; width: 9px; height: 1px; background: var(--accent); }
.article-body ol { counter-reset: n; }
.article-body ol > li { counter-increment: n; }
.article-body ol > li::before {
  content: counter(n);
  position: absolute; left: 0; top: .06em;
  font-family: var(--serif); font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: .95em; color: var(--accent);
}
.article-body strong { font-weight: 600; }
.article-body em { font-style: italic; }
.article-body a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .18em; }

.callout {
  margin-block: var(--s-7);
  padding: var(--s-6);
  background: var(--wash);
  border-left: 2px solid var(--accent);
  font-size: 1rem;
  line-height: 1.62;
}
.callout p { margin-bottom: var(--s-4); }
.callout p:last-child { margin-bottom: 0; }
.callout__label {
  display: block;
  font-family: var(--sans);
  font-size: var(--fs-micro); font-weight: 600;
  letter-spacing: var(--track-eyebrow); text-transform: uppercase;
  color: var(--accent); margin-bottom: var(--s-3);
}

.book-cta {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: var(--s-5) var(--s-6);
  align-items: center;
  margin-block: var(--s-8);
  padding: var(--s-6);
  background: var(--wash);
}
.book-cta img { width: 100%; box-shadow: var(--shadow-cover); }
.book-cta h2 { font-size: 1.3rem; margin: 0 0 var(--s-3); padding: 0; border: 0; }
.book-cta p { font-size: .95rem; color: var(--ink-soft); margin-bottom: var(--s-4); }

/* ---------- 17. Newsletter ---------- */

.signup { background: var(--stone); }
.signup__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }

.field { margin-bottom: var(--s-5); }
.field label, .fieldset__legend {
  display: block;
  font-size: var(--fs-micro); font-weight: 600;
  letter-spacing: var(--track-eyebrow); text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: var(--s-3);
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: .85rem 1rem;
  background: var(--ivory-lift);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color var(--dur-fast) var(--ease);
}
.field input:hover, .field textarea:hover { border-color: var(--ink-mute); }
.field textarea { resize: vertical; min-height: 8rem; }
.field__hint { display: block; margin-top: var(--s-2); font-size: var(--fs-small); color: var(--ink-mute); }
.field__optional { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink-mute); }
.field [aria-invalid="true"] { border-color: #8c2f22; border-width: 1.5px; }
.field [aria-invalid="true"]:focus-visible { outline-color: #8c2f22; }

.choices { display: flex; flex-wrap: wrap; gap: var(--s-3); border: 0; padding: 0; margin: 0 0 var(--s-5); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.choice span {
  display: block;
  padding: .6rem 1rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-size: var(--fs-small);
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.choice input:checked + span { border-color: var(--ink); background: var(--ivory-lift); font-weight: 600; }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

.form-status { margin-top: var(--s-4); font-size: var(--fs-small); min-height: 1.4em; color: var(--ink-soft); }
.form-status[data-state="error"] { color: #8c2f22; }
.form-status[data-state="ok"] { color: #2c5c3f; font-weight: 600; }
.form-status[data-state="note"] { color: var(--ink); }
.form-status[data-state="busy"] { color: var(--ink-mute); }
.form-status[data-state="busy"]::after {
  content: "";
  display: inline-block; vertical-align: -1px;
  width: .7em; height: .7em; margin-left: .5em;
  border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* ---------- 18. Author block ---------- */

.author-block { display: grid; grid-template-columns: minmax(0, .55fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.author-block__portrait { position: relative; }
.author-block__portrait img { width: 100%; filter: grayscale(.12) contrast(1.02); }
.author-block__portrait::after {
  content: ""; position: absolute; inset: .75rem -.75rem -.75rem .75rem;
  border: 1px solid var(--accent); opacity: .4; z-index: -1;
}

/* ---------- 19. Footer ---------- */

.footer {
  background: var(--navy-deep);
  color: rgba(245, 240, 230, .74);
  padding-block: var(--s-8) var(--s-6);
  font-size: var(--fs-small);
}
.footer a { color: rgba(245, 240, 230, .74); text-decoration: none; }
.footer a:hover { color: var(--ivory); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: var(--s-7) var(--s-6); }
.footer__brand .brand__name { color: var(--ivory); font-size: 1.1rem; }
.footer__blurb { margin-top: var(--s-4); max-width: 30ch; line-height: 1.6; }
.footer h2 {
  font-family: var(--sans);
  font-size: var(--fs-micro); font-weight: 600;
  letter-spacing: var(--track-eyebrow); text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: var(--s-4);
}
.footer ul { display: grid; gap: var(--s-3); }
.footer__base {
  display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-6); justify-content: space-between;
  margin-top: var(--s-8); padding-top: var(--s-5);
  border-top: 1px solid rgba(245, 240, 230, .16);
  font-size: var(--fs-micro); letter-spacing: .04em;
}

/* ---------- 20. 404 / misc ---------- */

.center-page { min-height: 58vh; display: grid; place-content: center; text-align: center; padding-block: var(--s-9); }
.center-page .lead { margin-inline: auto; max-width: 42ch; margin-top: var(--s-5); }
.center-page nav { display: flex; flex-wrap: wrap; gap: var(--s-5); justify-content: center; margin-top: var(--s-7); }

/* Reveal is opt-in at runtime: .reveal alone is visible. JS arms only the elements that
   are actually below the fold, so a failed script can never leave the page blank. */
/* Scroll-driven reveal, CSS only. No script, no observer, nothing to fail: browsers
   without animation-timeline simply render the content, which is the correct fallback. */
@keyframes reveal {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 20%;
    }
  }
}

/* ---------- 21. Responsive ---------- */

@media (max-width: 1080px) {
  .doorways { grid-template-columns: 1fr; }
  .doorway { border-right: 0; border-bottom: 1px solid var(--field-rule); }
  .doorway:last-child { border-bottom: 0; }
  .doorway__cover { width: min(48%, 12rem); }
}

@media (max-width: 900px) {
  .hero__grid, .featured__grid, .world-hero__grid, .book-hero__grid,
  .signup__grid, .author-block { grid-template-columns: 1fr; }
  .hero__grid { gap: var(--s-8); }
  .hero__shelf { max-width: 30rem; margin-inline: auto; }
  .featured__cover { max-width: 22rem; }
  .world-hero__cover { max-width: 16rem; }
  .book-hero__cover { position: static; max-width: 17rem; }
  .book-hero__grid { gap: var(--s-7); }
  .author-block__portrait { max-width: 20rem; }
  .questions { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .series-item { grid-template-columns: 3rem minmax(0, 1fr); }
  .series-item__cover { grid-column: 2; max-width: 11rem; }
  .series-item__body { grid-column: 2; }
  .resource { grid-template-columns: 1fr; gap: var(--s-2); }
  .resource__go { display: none; }
}

@media (max-width: 560px) {
  :root { --fs-body: 1.0625rem; }
  .wrap, .wrap--wide, .wrap--text { width: calc(100% - 2rem); }
  .hero__shelf figure:nth-child(n) { transform: none; }
  .hero__shelf { align-items: start; gap: .6rem; }
  .hero__shelf figcaption { font-size: .5625rem; letter-spacing: .08em; }
  .footer__grid { grid-template-columns: 1fr; }
  .book-cta { grid-template-columns: 1fr; }
  .book-cta img { max-width: 8rem; }
  .btn { width: 100%; }
  .buy__actions .btn, .hero__actions .btn, .featured__actions .btn,
  .world-hero__actions .btn, .center-page .btn { width: 100%; }
}

/* Touch: grow the text-sized links to a comfortable target without bloating desktop. */
@media (pointer: coarse) {
  .arrow, .book-item__link .arrow { padding-block: .55rem .6rem; }
  .breadcrumbs li > * { display: inline-block; padding-block: .35rem; }
  .footer a { display: inline-block; padding-block: .2rem; }
}

/* ---------- 22. Preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { animation: none !important; opacity: 1 !important; transform: none !important; }
  .fragments { display: none; }
}

/* ---------- 23. Correction pass ---------- */

/* Sequel reading-order nudge, directly under the buy CTAs */
.start-here {
  margin-top: var(--s-5);
  padding: var(--s-4) var(--s-5);
  background: var(--wash);
  border-left: 2px solid var(--accent);
}
.start-here__text { font-size: .95rem; line-height: 1.55; color: var(--ink-soft); margin-bottom: var(--s-3); }

/* New-release strip. Configurable and temporary by design, not a sale banner. */
.release { background: var(--field); color: var(--field-ink); border-block: 1px solid var(--field-rule); }
.release__inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-6);
  padding-block: var(--s-5);
}
.release__cover { flex: none; width: 90px; display: block; }
.release__cover img { width: 100%; box-shadow: var(--shadow-cover); }
.release__copy { flex: 1 1 22ch; }
.release__tag {
  font-size: var(--fs-micro); font-weight: 600;
  letter-spacing: var(--track-eyebrow); text-transform: uppercase;
  /* deep accent, not --accent: the strip sits on --field, which is darker than the wash */
  color: var(--accent-deep);
}
.release__text {
  margin-top: var(--s-2);
  font-family: var(--serif);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.4;
  flex: 1 1 22ch;
}
.release__actions { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-5); }
.release__actions .arrow { color: var(--field-ink); }
.release__minor {
  font-size: var(--fs-small); color: var(--field-ink-soft); text-decoration: none;
  border-bottom: 1px solid var(--field-rule); padding-bottom: .2em;
}
.release__minor:hover { border-color: currentColor; }

/* "New" flag on a series sequence entry */
.flag {
  display: inline-block;
  margin-left: .6rem;
  padding: .18rem .5rem;
  font-family: var(--sans);
  font-size: .625rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
  border: 1px solid currentColor;
  vertical-align: .28em;
}

/* Editorial theme blocks: the questions underneath a book */
.themes {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px; background: var(--rule); border: 1px solid var(--rule);
}
.theme { background: var(--ivory); padding: clamp(1.5rem, 2.6vw, 2.25rem); }
.theme__q {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-style: italic; font-weight: 400; line-height: 1.36;
}
.theme__a { margin-top: var(--s-4); font-size: .92rem; line-height: 1.6; color: var(--ink-soft); }

/* Positioning: what this is, and what it is not */
.is-isnt { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s-6) var(--s-7); }
.is-isnt h3 { font-size: 1rem; padding-bottom: var(--s-3); border-bottom: 2px solid var(--accent); }
.is-isnt ul { margin-top: var(--s-4); display: grid; gap: var(--s-3); }
.is-isnt li { position: relative; padding-left: 1.5rem; font-size: .95rem; line-height: 1.5; color: var(--ink-soft); }
.is-isnt li::before { content: ""; position: absolute; left: 0; top: .68em; width: 9px; height: 1px; background: var(--accent); }
.is-isnt--not h3 { border-color: var(--rule); }
.is-isnt--not li { color: var(--ink-mute); }
.is-isnt--not li::before { background: var(--ink-mute); opacity: .5; }

/* Worksheet previews: real pages rendered from the printable PDF */
.sheets { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.4vw, 2rem); }
.sheet { display: flex; flex-direction: column; }
.sheet a { text-decoration: none; }
.sheet img {
  width: 100%;
  border: 1px solid var(--rule);
  background: #fff;
  box-shadow: var(--shadow-cover);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.sheet a:hover img { transform: translateY(-5px); box-shadow: var(--shadow-cover-lg); }
.sheet__name {
  margin-top: var(--s-4);
  font-family: var(--serif);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: 1.02rem; font-weight: 500; line-height: 1.28;
}
.sheet__why { margin-top: var(--s-2); font-size: .88rem; line-height: 1.55; color: var(--ink-soft); }
/* The free-pack ask, sitting directly under the worksheet previews it refers to. */
.take-pack { background: var(--wash); border-bottom: 1px solid var(--rule); }

/* Resource center: one editorial lead, then topic clusters */
.lead-resource {
  display: block;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  background: var(--wash);
  border-left: 2px solid var(--accent);
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease);
}
.lead-resource:hover { background: color-mix(in srgb, var(--wash) 70%, var(--ivory)); }
.lead-resource__title {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  line-height: 1.16;
  text-wrap: balance;
}
.lead-resource:hover .lead-resource__title { color: var(--accent); }
.lead-resource__dek {
  display: block;
  margin-top: var(--s-4);
  max-width: 54ch;
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.lead-resource .arrow { margin-top: var(--s-5); }

.cluster { padding-block: var(--s-7); }
.cluster__head { margin-bottom: var(--s-5); }
.cluster__head h2 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  padding-bottom: var(--s-3);
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.cluster__intro { margin-top: var(--s-4); font-size: .96rem; color: var(--ink-soft); max-width: 52ch; }

/* Coming soon. A quiet announcement, not a countdown: nothing to buy yet, so the only
   ask is the newsletter. Uses the world's field color so it reads as part of that world. */
.soon {
  display: block;
  background: var(--field);
  color: var(--field-ink);
  border-block: 1px solid var(--field-rule);
  padding-block: clamp(2.75rem, 5vw, 4.5rem);
  position: relative;
  overflow: hidden;
}
.soon__inner {
  display: grid;
  grid-template-columns: minmax(0, .62fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.soon--no-cover .soon__inner { grid-template-columns: 1fr; max-width: 46rem; text-align: center; }
.soon--no-cover .soon__actions { justify-content: center; }

.soon__cover img { width: 100%; box-shadow: var(--shadow-cover-lg); }
.soon__label {
  font-family: var(--sans);
  font-size: var(--fs-micro); font-weight: 600;
  letter-spacing: var(--track-eyebrow); text-transform: uppercase;
  color: var(--accent-on-field);
  margin-bottom: var(--s-4);
}
.soon__title {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.024em;
  text-wrap: balance;
}
.soon__standfirst {
  margin-top: var(--s-4);
  font-size: var(--fs-small);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--field-ink-soft);
}
.soon__hook {
  margin-top: var(--s-5);
  max-width: 34ch;
  font-family: var(--serif);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: clamp(1.15rem, 1.9vw, 1.45rem);
  font-style: italic;
  line-height: 1.42;
  color: var(--field-ink);
  text-wrap: pretty;
}
.soon--no-cover .soon__hook { margin-inline: auto; }
.soon__actions {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--s-5);
  margin-top: var(--s-7);
}
.soon__actions .arrow { color: var(--field-ink); }

@media (max-width: 900px) {
  .soon__inner { grid-template-columns: 1fr; text-align: center; }
  .soon__cover { max-width: 15rem; margin-inline: auto; }
  .soon__hook { margin-inline: auto; }
  .soon__actions { justify-content: center; }
}

/* Download card */
.download {
  display: grid;
  grid-template-columns: minmax(0, 9rem) minmax(0, 1fr);
  gap: var(--s-5) var(--s-6);
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--wash);
  border-left: 2px solid var(--accent);
}
.download img { width: 100%; border: 1px solid var(--rule); background: #fff; box-shadow: var(--shadow-cover); }
.download h2, .download h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin: 0; padding: 0; border: 0; }
.download p { margin-top: var(--s-3); font-size: .95rem; line-height: 1.6; color: var(--ink-soft); }
.download__actions { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; margin-top: var(--s-5); }
.download__meta { margin-top: var(--s-4); font-size: var(--fs-micro); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); }

/* Sample / excerpt */
.sample { position: relative; padding: clamp(1.75rem, 3vw, 2.5rem); background: var(--ivory-lift); border: 1px solid var(--rule); }
.sample__body {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: 1.06rem;
  line-height: 1.72;
  max-height: 30rem;
  overflow: hidden;
}
.sample__body p { margin-bottom: var(--s-4); }
.sample__body p:last-child { margin-bottom: 0; }
.sample__fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 9rem;
  background: linear-gradient(to bottom, transparent, var(--ivory-lift) 78%);
  pointer-events: none;
}
.sample__actions { position: relative; margin-top: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-5); align-items: center; }

/* Reader response: renders only when real, attributed quotes exist */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s-6) var(--s-7); }
.quote__text { font-family: var(--serif); font-variation-settings: "SOFT" 0, "WONK" 0; font-size: 1.08rem; line-height: 1.5; }
.quote__by { margin-top: var(--s-3); font-size: var(--fs-small); color: var(--ink-mute); }

/* Sources & further reading */
.sources { margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--rule); }
.sources h2 { font-size: 1.15rem; margin: 0 0 var(--s-4); padding: 0; border: 0; }
.sources ol { display: grid; gap: var(--s-3); counter-reset: src; }
.sources li { position: relative; padding-left: 1.7rem; font-size: .92rem; line-height: 1.55; color: var(--ink-soft); counter-increment: src; }
.sources li::before { content: counter(src) "."; position: absolute; left: 0; color: var(--accent); font-size: .85em; }

/* Header dropdown */
.nav__group { position: relative; }
.nav__button { display: inline-flex; align-items: center; gap: .4em; }
.nav__button::after {
  content: ""; width: 5px; height: 5px; margin-top: -2px;
  border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--dur-fast) var(--ease);
}
.nav__button[aria-expanded="true"]::after { transform: rotate(-135deg); }
.nav__menu {
  position: absolute; top: calc(100% + .75rem); left: -1rem; z-index: var(--z-nav);
  min-width: 15rem;
  padding: var(--s-3) 0;
  background: var(--ivory-lift);
  border: 1px solid var(--rule);
  box-shadow: 0 12px 32px -12px rgba(37, 34, 31, .28);
}
.nav__menu[hidden] { display: none; }
.nav__menu a {
  display: block; padding: .6rem 1.25rem;
  font-size: .8rem; letter-spacing: .04em; text-transform: none;
  color: var(--ink-soft); text-decoration: none;
}
.nav__menu a:hover { background: var(--wash); color: var(--ink); }
.nav__menu-world {
  display: block;
  font-size: .625rem; font-weight: 600;
  letter-spacing: var(--track-eyebrow); text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: .15rem;
}
.nav__menu a:hover .nav__menu-world,
.nav__menu a[aria-current] .nav__menu-world { color: var(--accent); }
.nav__menu-label {
  display: block;
  font-family: var(--serif);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: .98rem; line-height: 1.2;
  color: var(--ink);
}

@media (max-width: 900px) {
  .nav__group { position: static; }
  .nav__menu {
    position: static; min-width: 0;
    margin: 0 0 var(--s-3) var(--s-4);
    border: 0; border-left: 1px solid var(--rule);
    box-shadow: none; background: none; padding: 0;
  }
  .nav__menu a { padding: var(--s-3) var(--s-4); }
  .nav__button { width: 100%; justify-content: space-between; }
  .sheets { grid-template-columns: repeat(2, 1fr); }
  .download { grid-template-columns: 1fr; }
  .download img { max-width: 9rem; }
}

@media (max-width: 560px) {
  .sheets { grid-template-columns: 1fr; }
    .release__inner { flex-direction: column; align-items: flex-start; }
  .release__cover { width: 78px; }
}

/* Press facts table */
.facts-table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 46rem; }
.facts-table th, .facts-table td { text-align: left; vertical-align: top; padding: var(--s-4) var(--s-4) var(--s-4) 0; border-bottom: 1px solid var(--rule); }
.facts-table thead th {
  font-family: var(--sans);
  font-size: var(--fs-micro); font-weight: 600;
  letter-spacing: var(--track-eyebrow); text-transform: uppercase;
  color: var(--ink-mute);
  border-bottom-width: 2px; border-bottom-color: var(--ink);
}
.facts-table tbody th {
  font-family: var(--serif); font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: 1rem; font-weight: 500; padding-right: var(--s-5); min-width: 12rem;
}
.facts-table tbody th span { display: block; margin-top: .3rem; font-family: var(--sans); font-size: .78rem; font-weight: 400; color: var(--ink-mute); line-height: 1.4; }
.facts-table td { color: var(--ink-soft); }
.facts-table code { font-size: .8rem; color: var(--ink); }

/* Select styled like the text inputs */
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%),
                    linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% + 1px), calc(100% - 13px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}

/* ======================================================================================
   /start -- the social landing page.

   Scoped to body.landing so none of it can leak into the rest of the site. This is the one
   place where the social channel's navy/gold identity and the ivory book site meet, so the
   palette inverts here and nowhere else. Gold is --gold-soft (#c0a468), which measures ~7:1
   on --navy-deep; the sitewide --gold is tuned for ivory and would fail badly on navy.
   ====================================================================================== */

body.landing {
  --landing-navy: #01131e;   /* sampled from banner.png so the lockup blends seamlessly */
  --landing-navy-soft: #0a2032;
  --landing-teal: #10333f;
  --landing-ivory: #f5f0e6;
  --landing-gold: #c0a468;
  --landing-mute: #b9b3a6;
  background: var(--ivory);
}

/* --- header ---------------------------------------------------------------------- */
.landing-head {
  background: var(--landing-navy);
  color: var(--landing-ivory);
}
.landing-head__bar {
  min-height: 60px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding-block: .6rem;
}
.landing-head__brand {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  gap: .6rem;
  color: var(--landing-ivory);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: .01em;
}
.landing-head__lockup {
  display: block;
  height: 40px;
  width: 40px;
  flex: 0 0 40px;
  border-radius: 50%;     /* the roundel ships on a black square; this clips the corners */
}
@media (min-width: 620px) {
  .landing-head__lockup { height: 44px; width: 44px; flex-basis: 44px; }
}
.landing-head__nav { display: flex; gap: 1.1rem; flex-wrap: nowrap; }
.landing-head__nav a {
  color: var(--landing-ivory);
  text-decoration: none;
  white-space: nowrap;
  font-size: .92rem;
  padding-block: .5rem;          /* touch target without making the bar taller */
  border-bottom: 1px solid transparent;
}
.landing-head__nav a:hover,
.landing-head__nav a:focus-visible { border-bottom-color: var(--landing-gold); }

/* The brand name earns its place even on the narrowest phones -- a bare roundel does not
   tell a visitor arriving from a Short whose site this is. Type shrinks instead. */
@media (max-width: 430px) {
  .landing-head__brand { font-size: .84rem; gap: .45rem; }
  .landing-head__lockup { height: 34px; width: 34px; flex-basis: 34px; }
  .landing-head__nav { gap: .7rem; }
  .landing-head__nav a { font-size: .8rem; }
}
@media (max-width: 430px) {
  .landing-head__nav a.is-extra { display: none; }
}
@media (max-width: 380px) {
  .landing-head__brand { font-size: .78rem; }
  .landing-head__nav { gap: .55rem; }
  .landing-head__nav a { font-size: .74rem; }
}

/* --- hero ------------------------------------------------------------------------- */
.landing-hero {
  background:
    radial-gradient(120% 90% at 18% 0%, var(--landing-teal) 0%, transparent 62%),
    var(--landing-navy);
  color: var(--landing-ivory);
  padding-block: clamp(1.1rem, 4vw, 3.4rem);
}
.landing-hero__grid {
  display: grid;
  gap: clamp(.85rem, 3vw, 2.6rem);
  align-items: center;
}
/* Sized so the primary CTA still lands inside a typical phone viewport. The cover is the
   hero image, but a cover the reader has to scroll past to find the button is a cover that
   cost a conversion. */
.landing-hero__art { max-width: 176px; margin-inline: auto; }
@media (min-width: 420px) { .landing-hero__art { max-width: 205px; } }
.landing-hero__art img {
  width: 100%;
  height: auto;
  box-shadow: 0 18px 40px rgb(0 0 0 / .45);
}
.landing-eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--landing-gold);
  margin-bottom: .5rem;
}
body.landing .landing-hero__body h1 {
  font-size: clamp(1.9rem, 7vw, 3.1rem);
  line-height: 1.08;
  color: var(--landing-ivory);
  margin: 0;
}
.landing-series {
  font-family: var(--sans);
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--landing-mute);
  margin-top: .55rem;
}
.landing-hook {
  font-size: clamp(1.02rem, 3.4vw, 1.22rem);
  line-height: 1.46;
  margin-top: .8rem;
  color: var(--landing-ivory);
}
.landing-blurb {
  font-size: .96rem;
  line-height: 1.58;
  color: var(--landing-mute);
  margin-top: .65rem;
  max-width: 46ch;
}

.landing-cta {
  margin-top: 1.05rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .9rem 1.4rem;
}
.btn--gold {
  background: var(--landing-gold);
  color: #01131e;
  border-color: var(--landing-gold);
  font-weight: 600;
  min-height: 52px;                /* comfortable thumb target */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn--gold:hover, .btn--gold:focus-visible { background: #cdb47c; border-color: #cdb47c; }
/* Deliberately quieter than the primary: two equal CTAs is no CTA. */
.landing-cta__second {
  color: var(--landing-ivory);
  font-size: .95rem;
  text-decoration: underline;
  text-decoration-color: rgb(245 240 230 / .45);
  text-underline-offset: .25em;
  padding-block: .5rem;
}
.landing-cta__second:hover, .landing-cta__second:focus-visible {
  text-decoration-color: var(--landing-gold);
}

/* The spec's mobile order is cover, headline, hook, CTA -- the supporting paragraph is not
   above the button. Moving it below keeps the primary CTA inside the first viewport even on
   a 360x780 phone; on wider screens source order is restored. */
@media (max-width: 759px) {
  .landing-hero__body { display: flex; flex-direction: column; }
  .landing-cta { order: 1; }
  .landing-blurb { order: 2; margin-top: 1.1rem; }
}

@media (min-width: 760px) {
  .landing-hero__grid { grid-template-columns: 36% 1fr; }
  .landing-hero__art { max-width: 320px; margin-inline: 0; }
}

/* --- intro + category cards --------------------------------------------------------- */
.landing-intro { padding-top: clamp(1.8rem, 5vw, 3rem); }
.landing-intro h2 { font-size: clamp(1.35rem, 4.4vw, 1.85rem); }

.cat-grid { display: grid; gap: var(--s-5); }
.cat-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: var(--s-4);
  align-items: start;
  padding: var(--s-4);
  background: var(--stone, #efece4);
  border: 1px solid rgb(0 0 0 / .07);
}
.cat-card__art img { width: 100%; height: auto; box-shadow: 0 6px 16px rgb(0 0 0 / .22); }
.cat-card__label {
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.cat-card__body h3 { font-size: 1.12rem; margin: .25rem 0 .45rem; }
.cat-card__body p { font-size: .94rem; line-height: 1.58; }
.cat-card__body .arrow { margin-top: .7rem; display: inline-block; }

@media (min-width: 620px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-card { grid-template-columns: 1fr; }
  .cat-card__art { max-width: 132px; }
}

/* --- sticky mobile CTA -------------------------------------------------------------- */
/* Hidden by default and revealed by script, so if JS never runs the page simply has no
   sticky bar -- the hero CTA above is always the real one. */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  padding: .55rem max(env(safe-area-inset-left), .8rem)
           calc(.55rem + env(safe-area-inset-bottom)) max(env(safe-area-inset-right), .8rem);
  background: rgb(1 19 30 / .97);
  border-top: 1px solid rgb(192 164 104 / .35);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform .22s ease, visibility .22s;
}
.sticky-cta[hidden] { display: none; }      /* no-JS: never rendered at all */
.sticky-cta.is-in { transform: translateY(0); visibility: visible; }
.sticky-cta .btn { width: 100%; }
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }
@media (min-width: 760px) { .sticky-cta { display: none; } }

/* ======================================================================================
   /* --- hubs, pathway cards, book mechanism, editorial note --------------------------- */
   Practical Guides is an umbrella over three topic libraries. These components carry that
   structure; everything reuses existing tokens so the guides world still looks like itself.
   ====================================================================================== */

.hub-head { padding-bottom: var(--s-5); }
.hub-head h1 { font-size: clamp(1.9rem, 5.2vw, 2.9rem); line-height: 1.1; }
.hub-head .lead { margin-top: var(--s-4); font-size: 1.12rem; }

.path-grid { display: grid; gap: var(--s-5); }
.path-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: var(--s-4);
  align-items: start;
  padding: var(--s-4);
  background: var(--wash);
  border: 1px solid rgb(0 0 0 / .07);
}
.path-card__art img { width: 100%; height: auto; box-shadow: 0 6px 16px rgb(0 0 0 / .2); }
.path-card h3 { font-size: 1.12rem; margin-bottom: .35rem; }
.path-card p { font-size: .95rem; line-height: 1.58; }
.path-card__book {
  margin-top: .5rem;
  font-family: var(--sans);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.path-card .arrow { margin-top: .6rem; display: inline-block; }
@media (min-width: 720px) { .path-grid { grid-template-columns: repeat(3, 1fr); }
  .path-card { grid-template-columns: 1fr; } .path-card__art { max-width: 118px; } }

/* bottom-of-hub conversion */
.hub-cta__grid { display: grid; gap: var(--s-5); align-items: center; }
.hub-cta__cover { display: block; max-width: 150px; }
.hub-cta__cover img { width: 100%; height: auto; box-shadow: 0 10px 26px rgb(0 0 0 / .25); }
.hub-cta__buttons { margin-top: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-3); }
@media (min-width: 700px) {
  .hub-cta__grid { grid-template-columns: 190px 1fr; gap: var(--s-6); }
  .hub-cta__cover { max-width: 190px; }
}

/* "See how the book handles a change" */
.mech-grid { display: grid; gap: var(--s-5); margin-top: var(--s-5); }
.mech {
  padding: var(--s-5);
  background: var(--wash);
  border-left: 3px solid var(--accent);
}
.mech__num {
  font-family: var(--sans);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-on-field, var(--accent));
}
.mech h3 { font-size: 1.15rem; margin: .3rem 0 .6rem; }
.mech p { font-size: .95rem; line-height: 1.6; }
.mech__matters { margin-top: .6rem; color: var(--ink-mute); }
.mech__method {
  margin-top: .9rem;
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
}
.mech__record { margin-top: .5rem; display: grid; gap: .3rem; }
.mech__record li { position: relative; padding-left: 1.1rem; font-size: .93rem; line-height: 1.5; }
.mech__record li::before {
  content: ""; position: absolute; left: 0; top: .72em;
  width: 7px; height: 1px; background: var(--accent);
}
.mech__urgency { margin-top: .9rem; font-size: .93rem; }
.mech__urgency span {
  font-family: var(--sans); font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-mute); margin-right: .45rem;
}
.mech__note { margin-top: var(--s-5); font-style: italic; color: var(--ink-mute); max-width: 62ch; }
@media (min-width: 860px) { .mech-grid { grid-template-columns: repeat(3, 1fr); } }

/* sources + editorial approach */
.editorial {
  margin-top: var(--s-6);
  padding: var(--s-4) var(--s-5);
  border: 1px solid rgb(0 0 0 / .1);
  background: var(--off-white, #faf9f6);
}
.editorial h2 {
  font-family: var(--sans);
  font-size: .74rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: .5rem;
}
.editorial p { font-size: .92rem; line-height: 1.6; color: var(--ink-mute); }

@media print {
  .header, .footer, .signup, .nav__toggle, .skip-link, body::before,
  .breadcrumbs, [data-print], .download, .release { display: none !important; }
  .section { padding-block: 1rem !important; }
  .facts-table { min-width: 0; font-size: 8.5pt; }
  .rail { grid-template-columns: repeat(4, 1fr) !important; }
  body { background: #fff; color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}
