/* The God Gap
   Lee Green / Why Am I Still Here?
   One stylesheet for every page. Mobile first. */

/* ---------- Fonts (self-hosted, no third-party requests) ---------- */
@font-face {
  font-family: "Noto Serif Display";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/noto-serif-display-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Serif Display";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/noto-serif-display-latin-wght-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/literata-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Literata";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/literata-latin-wght-italic.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --forest: #26382d;
  --forest-deep: #1e2d24;
  --ivory: #f3eee2;
  --ivory-deep: #e9e2d1;
  --gold: #b29b6d;
  --gold-light: #c9b588;
  --bronze: #6b5a2c;          /* gold dark enough to read on ivory */
  --brown: #47362b;
  --brown-deep: #3a2c23;
  --charcoal: #242824;
  --sage: #dfe1d3;            /* scripture panels, from the printed guide */
  --rule: rgba(71, 54, 43, 0.24);
  --rule-light: rgba(243, 238, 226, 0.22);
  --error: #8c2f1f;
  --error-on-dark: #f0b9a8;

  --display: "Noto Serif Display", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --text: "Literata", "Iowan Old Style", Georgia, "Times New Roman", serif;

  --step--1: 0.84rem;
  --step-0: 1rem;
  --step-1: 1.19rem;
  --step-2: 1.5rem;
  --step-3: 1.95rem;
  --step-4: 2.45rem;
  --step-5: 3rem;

  --gutter: 1.375rem;
  --measure: 34rem;
  --wide: 68rem;
}

@media (min-width: 48em) {
  :root {
    --step-3: 2.3rem;
    --step-4: 3.1rem;
    --step-5: 4.2rem;
    --gutter: 2.5rem;
  }
}

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

html {
  font-size: 106.25%;                 /* 17px: comfortable reading on a phone */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (min-width: 48em) { html { font-size: 112.5%; } }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--text);
  font-size: var(--step-0);
  line-height: 1.68;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
}
.on-dark :focus-visible { outline-color: var(--gold-light); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute; left: 0.75rem; top: -4rem;
  background: var(--ivory); color: var(--charcoal);
  padding: 0.6rem 0.9rem; z-index: 50;
}
.skip:focus { top: 0.75rem; }

[hidden] { display: none !important; }

/* ---------- Shared pieces ---------- */
.wrap {
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.measure { max-width: var(--measure); }

.band { padding-block: 4rem; }
@media (min-width: 48em) { .band { padding-block: 6.5rem; } }

.on-dark { color: var(--ivory); }

.lede {
  font-size: var(--step-1);
  line-height: 1.55;
}

.eyebrow {
  font-family: var(--text);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.5;
  color: var(--gold);
  margin: 0 0 1.1rem;
}

.signature {
  font-family: var(--display);
  font-style: italic;
  font-size: var(--step-1);
  margin-top: 0.9rem;
}

/* Buttons: square, quiet, sized for thumbs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.85rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.btn--gold { background: var(--gold); color: var(--charcoal); }
.btn--gold:hover { background: var(--gold-light); }
.btn--forest { background: var(--forest); color: var(--ivory); }
.btn--forest:hover { background: var(--forest-deep); }
.btn--line { background: transparent; color: inherit; border-color: currentColor; }
.btn--line:hover { background: rgba(38, 56, 45, 0.07); }
.on-dark .btn--line:hover { background: rgba(243, 238, 226, 0.1); }
.btn--plain {
  letter-spacing: 0; font-weight: 500; font-size: var(--step--1);
  text-decoration: underline; text-underline-offset: 0.2em;
  background: none; border: 0; color: inherit; padding: 0.6rem 0; min-height: 2.75rem;
}
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.6; cursor: progress; }
.btn--block { width: 100%; }

/* A picture set into the page like a tipped-in plate */
.plate {
  margin: 0;
  position: relative;
}
.plate img { width: 100%; }
.plate::after {
  content: "";
  position: absolute;
  inset: 0.5rem;
  border: 1px solid rgba(243, 238, 226, 0.5);
  pointer-events: none;
}

/* ---------- Landing: hero ---------- */
.hero {
  background: var(--forest);
  padding: 0.625rem;
}
.hero__frame {
  border: 1px solid var(--gold);
  padding: 1.1rem 1.1rem 2.6rem;
}
.hero__top {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2.4rem;
  font-size: var(--step--1);
}
.wordmark {
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
}
.hero__top a:not(.wordmark) { color: var(--gold-light); }

.hero__grid { display: grid; gap: 2rem; }
.hero h1 {
  font-size: clamp(2.2rem, 10vw, 3.3rem);
  line-height: 1.04;
  text-wrap: wrap;
}
.hero h1 span { display: block; margin-top: 0.14em; font-style: italic; font-weight: 400; }
/* the seven marks from the cover of the printed guide */
.seven {
  list-style: none; margin: 2.2rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.5rem;
  max-width: 21rem;
  font-size: 0.66rem; letter-spacing: 0.08em; color: var(--gold-light);
}
.seven li { border-top: 1px solid rgba(201, 181, 136, 0.55); padding-top: 0.45rem; }
.hero__body p { max-width: 32rem; }
.hero__body .lede { margin-bottom: 1.1em; }
.hero__cta { margin-top: 1.9rem; }
.hero__note {
  margin-top: 0.9rem;
  font-size: var(--step--1);
  color: var(--gold-light);
}

@media (min-width: 56em) {
  .hero { padding: 1rem; }
  .hero__frame { padding: 1.6rem 3rem 2.75rem; }
  .hero__top { margin-bottom: 3.2rem; }
  .hero__top, .hero__grid { max-width: 76rem; margin-inline: auto; }
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    grid-template-areas: "head head" "body book";
    column-gap: 5rem;
    row-gap: 3rem;
    align-items: start;
  }
  .hero__head { grid-area: head; }
  .hero__body { grid-area: body; }
  .hero h1 { font-size: clamp(3rem, 5.8vw, 5.05rem); line-height: 1.02; }
  .hero__cta .btn { padding-inline: 2rem; }
  /* the book breaks the gold frame and rests on the page below, like a copy set down on a desk */
  .hero__book {
    grid-area: book;
    margin-bottom: -13rem;
    z-index: 2;
    box-shadow: 0 1.6rem 2.6rem -1.4rem rgba(20, 24, 20, 0.55);
  }
  .hero + main .gap__band { padding-top: 5.5rem; }
  .hero + main .gap__intro { align-items: start; }
  .hero + main .gap__intro > div { padding-top: clamp(2rem, 13vw - 6rem, 6.5rem); }
  .hero + main .gap__intro > figure { order: -1; }
}

/* ---------- Landing: the God Gap ---------- */
.gap__intro { display: grid; gap: 2.4rem; }
.gap__intro h2 { margin-bottom: 1.4rem; }
.gap__definition {
  font-family: var(--display);
  font-size: var(--step-2);
  line-height: 1.28;
  border-left: 2px solid var(--gold);
  padding-left: 1.1rem;
  margin: 0 0 1.5rem;
}
@media (min-width: 56em) {
  .gap__intro {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    column-gap: 5rem;
    align-items: center;
  }
}

/* The cross-section: what stands above the surface, what hangs beneath it.
   This is the one loud idea on the page. Everything else stays quiet. */
.surface__above { padding: 3.5rem 0 0; }
.surface__below {
  background: var(--brown);
  color: var(--ivory);
  border-top: 2px solid var(--gold);
  padding: 0 0 4.5rem;
}
.surface__label { text-align: center; }
.surface__label h3 { font-size: var(--step-2); }
.surface__label p { font-size: var(--step--1); margin: 0.35rem 0 0; }
.surface__above .surface__label p { color: var(--bronze); }
.surface__below .surface__label p { color: var(--gold-light); }
.surface__below .surface__label { padding-top: 0; margin-top: 2.4rem; }

.stand, .hang {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 54rem;
  display: grid;
  font-family: var(--display);
  font-size: clamp(0.95rem, 4.5vw, 1.55rem);
  letter-spacing: 0.01em;
  text-align: center;
}
.stand {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  margin-top: 1.2rem;
}
.stand li {
  position: relative;
  white-space: nowrap;
  font-size: clamp(0.78rem, 3.8vw, 1.55rem);
  padding-bottom: var(--stem);
}
.stand li::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 1px;
  height: calc(var(--stem) - 0.55rem);
  background: var(--bronze);
}
.stand li:nth-child(1) { --stem: 3.2rem; }
.stand li:nth-child(2) { --stem: 6.2rem; }
.stand li:nth-child(3) { --stem: 4.4rem; }
.stand li:nth-child(4) { --stem: 7.4rem; }

/* Roots: hairlines drop from the surface and end at a word.
   On a phone there are three roots carrying two words each; on a wide screen, six roots. */
.hang {
  --r1: 8.6rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: var(--r1) auto;
}
.hang li { position: relative; padding-top: var(--root); }
.hang li::before {
  content: "";
  position: absolute;
  left: 50%; top: 0;
  width: 1px;
  height: calc(var(--root) + 0.3rem);
  background: var(--gold);
  transform-origin: top;
}
.hang li:nth-child(n + 4)::before {
  top: calc(-1 * var(--r1));
  height: calc(var(--r1) + var(--root) + 0.3rem);
}
.hang li span {
  position: relative; z-index: 1;
  display: inline-block;
  background: var(--brown);
  padding: 0.5rem 0.3rem;
  line-height: 1.2;
}
.hang li:nth-child(1) { --root: 2.6rem; }
.hang li:nth-child(2) { --root: 5.4rem; }
.hang li:nth-child(3) { --root: 3.8rem; }
.hang li:nth-child(4) { --root: 1.8rem; }
.hang li:nth-child(5) { --root: 0.6rem; }
.hang li:nth-child(6) { --root: 2.8rem; }
@media (min-width: 56em) {
  .hang { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: auto; }
  .hang li:nth-child(n + 4)::before { top: 0; height: calc(var(--root) + 0.3rem); }
  .hang li:nth-child(1) { --root: 3.4rem; }
  .hang li:nth-child(2) { --root: 8rem; }
  .hang li:nth-child(3) { --root: 5rem; }
  .hang li:nth-child(4) { --root: 10.5rem; }
  .hang li:nth-child(5) { --root: 2.6rem; }
  .hang li:nth-child(6) { --root: 6.6rem; }
}

/* The surface is a court line: half-court stripe, center circle, the arcs at either end. */
.surface__court { position: relative; height: 0; z-index: 1; }
.surface__court svg {
  position: absolute; left: 0; top: 0;
  width: 100%;
  height: clamp(2.4rem, 8vw, 5.5rem);
  transform: translateY(-50%);
  overflow: visible;
  pointer-events: none;
}
.surface__court path { fill: none; stroke-width: 1.25px; vector-effect: non-scaling-stroke; }
.surface__court .up { stroke: var(--gold); }
.surface__court .down { stroke: var(--gold); opacity: 0.75; }

/* One piece of motion on the whole site: what is seen rises fast, what is unseen grows slow and deep. */
.surface.will-grow .stand li { opacity: 0; }
.surface.will-grow .stand li::after { transform: scaleY(0); }
.surface.will-grow .hang li::before { transform: scaleY(0); }
.surface.will-grow .hang li span { opacity: 0; }
.surface.will-grow .surface__below .surface__label { opacity: 0; }
.stand li { transition: opacity 0.5s ease 0.5s; }
.stand li::after { transform-origin: bottom; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.hang li::before { transition: transform 2.4s cubic-bezier(0.3, 0.1, 0.2, 1) 0.9s; }
.hang li span { transition: opacity 0.9s ease 2.3s; }
.hang li:nth-child(n + 4) span { transition-delay: 3s; }
.surface__below .surface__label { transition: opacity 1s ease 3.4s; }
.stand li:nth-child(2), .stand li:nth-child(2)::after { transition-delay: 0.08s; }
.stand li:nth-child(3), .stand li:nth-child(3)::after { transition-delay: 0.16s; }
.stand li:nth-child(4), .stand li:nth-child(4)::after { transition-delay: 0.24s; }
.stand li:nth-child(n) { transition-delay: 0.55s; }

.pullquote {
  margin: 3.6rem auto 0;
  max-width: 40rem;
  text-align: center;
}
.pullquote p {
  font-family: var(--display);
  font-style: italic;
  font-size: var(--step-2);
  line-height: 1.3;
  margin: 0;
}
.pullquote footer, .pullquote cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--display);
  font-style: normal;
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.on-ivory.pullquote footer, .on-ivory .pullquote cite { color: var(--bronze); }
@media (min-width: 48em) { .pullquote p { font-size: var(--step-3); } }

/* ---------- Landing: is this you ---------- */
.recognize { background: var(--brown); padding-top: 0; }
.recognize__grid { display: grid; gap: 2.4rem; border-top: 1px solid var(--rule-light); padding-top: 4rem; }
.recognize ul { list-style: none; margin: 0; padding: 0; }
.recognize li {
  font-family: var(--display);
  font-size: var(--step-1);
  line-height: 1.35;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--rule-light);
}
.recognize li:first-child { border-top: 1px solid var(--rule-light); }
.recognize__close { margin-top: 2.2rem; max-width: var(--measure); }
@media (min-width: 56em) {
  .recognize__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); column-gap: 5rem; padding-top: 6rem; }
  .recognize h2 { position: sticky; top: 3rem; }
  .recognize li { font-size: var(--step-2); padding: 1.25rem 0; }
}

/* ---------- Landing: what you will discover ---------- */
.discover__head { max-width: 40rem; margin-bottom: 2.6rem; }
.discover__head h2 { margin-bottom: 1.2rem; }
.days { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.days li {
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1fr);
  column-gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
}
.days__n {
  font-family: var(--display);
  font-style: italic;
  font-size: var(--step-1);
  color: var(--bronze);
  line-height: 1.3;
}
.days h3 { font-size: var(--step-1); line-height: 1.3; margin-bottom: 0.45rem; }
.days p { margin: 0; grid-column: 2; }
.discover__foot { margin-top: 2rem; max-width: var(--measure); }
@media (min-width: 56em) {
  .days li { grid-template-columns: 7rem minmax(0, 1fr) minmax(0, 1.25fr); column-gap: 2.5rem; padding: 1.7rem 0; }
  .days h3 { font-size: var(--step-2); margin: 0; }
  .days p { padding-top: 0.35rem; grid-column: 3; }
}

/* ---------- Landing: about ---------- */
.about { background: var(--ivory-deep); }
.about__grid { display: grid; gap: 2rem; }
.about h2 { font-size: var(--step-3); }
@media (min-width: 56em) {
  .about__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); column-gap: 5rem; }
}

/* ---------- Registration (landing and completion) ---------- */
.register { background: var(--forest); padding: 0.625rem; }
.register__frame { border: 1px solid var(--gold); padding: 3.2rem 1.1rem 3rem; }
.register__grid { display: grid; gap: 2.4rem; }
.register h2 { margin-bottom: 1.2rem; }
@media (min-width: 56em) {
  .register { padding: 1rem; }
  .register__frame { padding: 6rem 3rem; }
  .register__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); column-gap: 5rem; align-items: start; max-width: var(--wide); margin-inline: auto; }
}

.form { display: grid; gap: 1.25rem; }
.field label, .field .label {
  display: block;
  font-size: var(--step--1);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.input {
  display: block;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(243, 238, 226, 0.55);
  border-radius: 0;
  background: rgba(243, 238, 226, 0.06);
  color: var(--ivory);
  font-family: var(--text);
  font-size: 1rem;                    /* 17px: no zoom-on-focus in iOS */
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
}
.input::placeholder { color: rgba(243, 238, 226, 0.5); }
.input:focus { outline: 2px solid var(--gold-light); outline-offset: 2px; border-color: var(--gold-light); }
.input[aria-invalid="true"] { border-color: var(--error-on-dark); }
.field__error { margin: 0.4rem 0 0; font-size: var(--step--1); color: var(--error-on-dark); }

.check {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr);
  column-gap: 0.75rem;
  align-items: start;
  font-size: var(--step--1);
  line-height: 1.55;
  cursor: pointer;
}
.check input {
  -webkit-appearance: none; appearance: none;
  width: 1.6rem; height: 1.6rem; margin: 0.05rem 0 0;
  border: 1px solid currentColor; border-radius: 0;
  background: transparent; color: inherit;
  display: grid; place-content: center;
  cursor: pointer;
}
.check input::after {
  content: "";
  width: 0.5rem; height: 0.85rem;
  border: solid currentColor; border-width: 0 2px 2px 0;
  transform: translateY(-0.1rem) rotate(45deg) scale(0);
}
.check input:checked::after { transform: translateY(-0.1rem) rotate(45deg) scale(1); }
.check input:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

.form__status { font-size: var(--step--1); min-height: 1.4em; margin: 0; }
.form__status[data-state="error"] {
  color: var(--error-on-dark);
  border-left: 2px solid var(--error-on-dark);
  padding-left: 0.8rem;
}
.form__status[data-state="ok"] { color: var(--gold-light); }
.form__fine { font-size: 0.78rem; line-height: 1.6; color: rgba(243, 238, 226, 0.82); margin: 0; }
.form__fine a { color: var(--ivory); }
.hp { position: absolute; left: -200vw; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.foot {
  background: var(--charcoal);
  color: rgba(243, 238, 226, 0.8);
  font-size: var(--step--1);
  padding-block: 2.6rem 6rem;
}
.foot__grid { display: grid; gap: 1.2rem; }
.foot .wordmark { color: var(--ivory); }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; }
.foot p { margin: 0; }
@media (min-width: 48em) {
  .foot { padding-block: 3rem; }
  .foot__grid { grid-template-columns: 1fr auto; align-items: baseline; }
}

/* Sticky call to action on phones. Hidden whenever a real button or the form is in view. */
.dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 20;
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
  background: var(--charcoal);
  border-top: 1px solid var(--gold);
  transform: translateY(110%);
  transition: transform 0.25s ease;
}
.dock[data-show="true"] { transform: none; }
.dock .btn { min-height: 3rem; }
@media (min-width: 56em) { .dock { display: none; } }

/* ---------- Assessment ---------- */
.journal { background: var(--ivory); min-height: 100vh; }

.jbar {
  position: sticky; top: 0; z-index: 10;
  background: var(--ivory);
  border-bottom: 1px solid var(--rule);
}
.jbar__row {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding-block: 0.55rem;
  font-size: var(--step--1);
}
.jbar__title {
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.jbar__title span { display: none; }
@media (min-width: 30em) { .jbar__title span { display: inline; } }
.jbar .btn--plain { white-space: nowrap; }
.jbar .btn--plain { padding: 0.4rem 0; min-height: 2.5rem; }

/* Seven marks, the same ones printed on the cover of the guide */
.ticks {
  list-style: none; margin: 0; padding: 0 0 0.7rem;
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.45rem;
}
.ticks button {
  display: block; width: 100%;
  background: none; border: 0; padding: 0.55rem 0 0; margin: 0;
  border-top: 2px solid var(--rule);
  font-family: var(--text); font-size: 0.68rem; letter-spacing: 0.06em;
  color: rgba(36, 40, 36, 0.62);
  text-align: left; cursor: pointer;
  min-height: 2rem;
}
.ticks button[data-done="true"] { border-top-color: var(--gold); color: var(--bronze); }
.ticks button[aria-current="step"] { border-top: 4px solid var(--forest); padding-top: calc(0.55rem - 2px); color: var(--forest); font-weight: 700; }

.step { padding-block: 0 3.5rem; }
.step--plain { padding-top: 2.6rem; }
.step__body { padding-top: 2.4rem; }

/* Each day opens like a chapter: the green and gold of the guide's cover */
.opener { background: var(--forest); padding: 0.625rem; }
.opener__frame { border: 1px solid var(--gold); padding: 2.2rem 1.1rem 2.5rem; }
.opener .step__meta { color: var(--gold-light); margin-bottom: 1.2rem; }
.opener h1 { font-size: clamp(2rem, 8.4vw, 3.1rem); line-height: 1.07; margin: 0; }
.opener h1 span { display: block; font-style: italic; font-weight: 400; margin-top: 0.12em; }
@media (min-width: 48em) {
  .opener { padding: 1rem; }
  .opener__frame { padding: 4rem 2rem 4.4rem; }
}
.step__inner { max-width: 38rem; margin-inline: auto; }
.step__meta {
  display: flex; gap: 0.9rem; align-items: baseline;
  font-size: var(--step--1);
  color: var(--bronze);
  margin-bottom: 1rem;
}
.step__meta b { font-weight: 600; }
.step__meta span { font-family: var(--display); font-style: italic; font-size: var(--step-1); }
.step--plain h1 { font-size: var(--step-3); margin-bottom: 1.6rem; }
.step h2 { font-size: var(--step-2); }
.teaching p { hanging-punctuation: first; }

.scripture {
  background: var(--sage);
  border-left: 3px solid var(--gold);
  padding: 1.15rem 1.2rem;
  margin: 2rem 0;
}
.scripture__ref { font-weight: 700; font-size: var(--step--1); letter-spacing: 0.04em; margin-bottom: 0.4rem; }
.scripture__text { margin-bottom: 0.6rem; }
.scripture a { font-size: var(--step--1); }

.sub {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--step-2);
  color: var(--forest);
  margin: 2.6rem 0 1.2rem;
}

.write { margin-bottom: 1.9rem; }
.write label { display: block; font-weight: 600; line-height: 1.5; margin-bottom: 0.5rem; }
.write__hint { display: block; font-weight: 400; font-size: var(--step--1); color: var(--bronze); margin-top: 0.2rem; }
/* Ruled paper, like the lines in the printed guide */
.write textarea {
  display: block; width: 100%;
  min-height: 8.2rem;
  padding: 0 0.15rem;
  border: 0; border-radius: 0;
  background-color: transparent;
  background-image: linear-gradient(to bottom, transparent calc(2rem - 1px), var(--rule) calc(2rem - 1px));
  background-size: 100% 2rem;
  background-attachment: local;
  color: var(--forest);
  font-family: var(--text);
  font-size: 1rem;
  line-height: 2rem;
  resize: none;
  overflow: hidden;
  -webkit-appearance: none; appearance: none;
}
.write textarea:focus { outline: none; background-image: linear-gradient(to bottom, transparent calc(2rem - 1px), var(--bronze) calc(2rem - 1px)); }
.write textarea:focus-visible { box-shadow: -0.6rem 0 0 -0.45rem var(--bronze); }

.assignment {
  border-top: 1px solid var(--charcoal);
  border-bottom: 1px solid var(--charcoal);
  padding: 1.4rem 0 1.5rem;
  margin-top: 2.6rem;
}
.assignment .sub { margin-top: 0; margin-bottom: 0.7rem; }
.assignment .check { margin-top: 1.1rem; color: var(--forest); font-size: var(--step-0); }
.assignment .check input:focus-visible { outline-color: var(--bronze); }

.stepnav {
  display: grid; gap: 0.75rem;
  margin-top: 2.8rem;
}
@media (min-width: 36em) {
  .stepnav { grid-template-columns: 1fr 1fr; }
  .stepnav > :only-child { grid-column: 2; }
}
.saved-note { font-size: var(--step--1); color: var(--bronze); margin-top: 1rem; min-height: 1.5em; }

.rrr { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.rrr li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--rule); }
.rrr b { font-family: var(--display); font-style: italic; font-weight: 400; font-size: var(--step-1); color: var(--bronze); }

.choice { border-top: 1px solid var(--charcoal); margin-top: 2.6rem; padding-top: 1.6rem; }
.choice h2 { margin-bottom: 0.7rem; }
.choice .stepnav { margin-top: 1.5rem; }

.review__day { border-top: 1px solid var(--rule); padding: 1.5rem 0; }
.review__day h2 { font-size: var(--step-1); line-height: 1.3; margin-bottom: 0.9rem; }
.review__q { font-weight: 600; font-size: var(--step--1); margin: 0.9rem 0 0.25rem; }
.review__a { white-space: pre-wrap; color: var(--forest); margin: 0; }
.review__a[data-empty="true"] { color: rgba(36, 40, 36, 0.62); font-style: italic; }
.tools { display: grid; gap: 0.75rem; margin: 1.8rem 0; }
@media (min-width: 36em) { .tools { grid-template-columns: 1fr 1fr; } }
.notice {
  border-left: 3px solid var(--gold);
  background: var(--ivory-deep);
  padding: 1rem 1.1rem;
  font-size: var(--step--1);
  margin: 1.5rem 0;
}
.danger { border-top: 1px solid var(--rule); margin-top: 2.2rem; padding-top: 1.5rem; }
.danger .btn--line { color: var(--error); }

.gate { padding-block: 4.5rem; }
.gate h1 { font-size: var(--step-3); margin-bottom: 1.2rem; }
.gate .stepnav { max-width: 30rem; }

/* ---------- Completion ---------- */
.done__head { padding-block: 2.6rem 3rem; }
.done__back { border-top: 1px solid var(--rule); padding-top: 2.6rem; }
.done__back h2 { margin-bottom: 1.2rem; }
.yours { border-left: 3px solid var(--gold); padding-left: 1.1rem; margin: 1.5rem 0; }
.yours__q { font-size: var(--step--1); font-weight: 600; margin-bottom: 0.3rem; }
.yours__a { white-space: pre-wrap; font-family: var(--display); font-style: italic; font-size: var(--step-1); line-height: 1.45; color: var(--forest); margin: 0; }

.book { background: var(--ivory-deep); }
.book__grid { display: grid; gap: 2.4rem; align-items: center; }
.book h2 { margin-bottom: 0.4rem; }
.book__sub { font-family: var(--display); font-style: italic; font-size: var(--step-1); line-height: 1.35; margin-bottom: 1.4rem; }
.book .plate::after { border-color: rgba(71, 54, 43, 0.35); }
@media (min-width: 56em) { .book__grid { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); column-gap: 5rem; } }

.benefits { list-style: none; margin: 1.5rem 0 0; padding: 0; border-top: 1px solid var(--rule-light); }
.benefits li { padding: 0.8rem 0; border-bottom: 1px solid var(--rule-light); }

/* ---------- Plain document pages (privacy, 404) ---------- */
.doc { padding-block: 3rem 5rem; }
.doc__inner { max-width: 38rem; margin-inline: auto; }
.doc h1 { margin: 2rem 0 1.5rem; }
.doc h2 { font-size: var(--step-2); margin: 2.4rem 0 0.8rem; }
.doc ul { padding-left: 1.2rem; margin: 0 0 1.05em; }
.doc li { margin-bottom: 0.4em; }


/* ---------- Assessment: script and gate states ---------- */
[data-gate] { display: none; }
.gated [data-gate] { display: block; }
.gated [data-app] { display: none; }
.js [data-step] { display: none; }
.js [data-step].is-current { display: block; }
.step__title:focus { outline: none; }
.scripture__links { display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; margin: 0; }
.jfoot { max-width: calc(38rem + 2 * var(--gutter)); padding-block: 1.6rem 3rem; font-size: 0.78rem; color: rgba(36, 40, 36, 0.72); border-top: 1px solid var(--rule); }
.jfoot p { margin-bottom: 0.5rem; }
.plan .sub { margin-bottom: 0.4rem; }
.plan .write label { font-weight: 400; }

.pullquote--left { text-align: left; margin: 2.4rem 0 0; border-left: 2px solid var(--gold); padding-left: 1.2rem; }
.pullquote.on-ivory footer { color: var(--bronze); }
.joined { border: 1px solid var(--gold); padding: 1.6rem 1.4rem; }
.joined h3 { margin-bottom: 0.8rem; }
.joined:focus { outline: none; }
.foot__line { margin-top: 0.6rem !important; }
.gap__band { padding-bottom: 0; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Print: only the reader's own reflections ---------- */
#print-doc { display: none; }
@media print {
  @page { margin: 18mm 16mm; }
  body { background: #fff; color: #000; font-size: 11pt; }
  body > *:not(#print-doc) { display: none !important; }
  #print-doc { display: block; }
  #print-doc h1 { font-size: 22pt; margin-bottom: 4pt; }
  #print-doc .p-sub { font-style: italic; margin-bottom: 18pt; }
  #print-doc section { break-inside: avoid; border-top: 0.5pt solid #777; padding-top: 10pt; margin-top: 14pt; }
  #print-doc h2 { font-size: 13pt; margin-bottom: 6pt; }
  #print-doc .p-q { font-weight: 700; margin: 8pt 0 2pt; }
  #print-doc .p-a { white-space: pre-wrap; margin: 0 0 6pt; min-height: 14pt; }
  #print-doc .p-task { font-style: italic; margin-top: 6pt; }
  #print-doc .p-foot { margin-top: 20pt; font-size: 9pt; }
}
