/* ABOUTME: Styles for the 2026-11-17 design, variant B (docs/DESIGN.md): the palm-leaf world on / and /try. */
/* ABOUTME: A plain file, linked only from a rendered variant (designPassStyles.tsx), so a flag-off page never requests it. */

/* Self-hosted subsets (SIL OFL 1.1, public/fonts/gentium-book-plus/OFL.txt). latin-ext carries the Pali letters. */
@font-face {
  font-family: 'Gentium Book Plus DP';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/gentium-book-plus/gentium-book-plus-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Gentium Book Plus DP';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/gentium-book-plus/gentium-book-plus-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.dp-root {
  /* Neutrals tinted toward the brand hue; the ground is a committed leaf green, not a near-white. */
  --dp-ground: #dce6de;
  --dp-leaf: #f7f9f4;
  --dp-ink: #14201a;
  --dp-ink-2: #36443c;
  --dp-ink-3: #4a5850;
  --dp-rule: #9fb2a6;
  --dp-accent: #3a7159; /* primary-600: the one saturated colour, on one action per view */
  --dp-accent-press: #2f5b49;
  --dp-radius: 4px;
  --dp-shadow: 0 1px 2px rgba(20, 32, 26, 0.08), 0 8px 24px rgba(20, 32, 26, 0.06);
  --dp-display: 'Gentium Book Plus DP', Georgia, 'Times New Roman', serif;
  background: var(--dp-ground);
  color: var(--dp-ink);
}

.dp-wrap {
  margin: 0 auto;
  max-width: 1120px;
  padding: 48px 24px 72px;
}

.dp-display {
  font-family: var(--dp-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.12;
  color: var(--dp-ink);
  text-wrap: balance;
  margin: 0;
}
.dp-h1Large {
  font-size: 40px;
}
.dp-sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--dp-ink-2);
  margin: 0;
  max-width: 58ch;
}

/* The one primary action. */
.dp-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 32px;
  border-radius: var(--dp-radius);
  background: var(--dp-accent);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  transition: background-color 150ms ease-out;
}
.dp-action:hover {
  background: var(--dp-accent-press);
}
.dp-action:focus-visible,
.dp-plain:focus-visible,
.dp-sourceLink:focus-visible {
  outline: 3px solid var(--dp-ink);
  outline-offset: 3px;
}
.dp-under {
  font-size: 16px;
  line-height: 1.5;
  color: var(--dp-ink-2);
  margin: 0;
}
.dp-apps {
  font-size: 16px;
  line-height: 1.8;
  color: var(--dp-ink-2);
  margin: 0;
}
.dp-plain {
  color: var(--dp-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--dp-rule);
}
.dp-plain:hover {
  text-decoration-color: var(--dp-ink);
}
.dp-dot {
  margin: 0 8px;
  color: var(--dp-rule);
}

/* A leaf: a wide, low panel with cut ends, two cord holes and ruled lines. */
.dp-leaf {
  position: relative;
  background: var(--dp-leaf);
  border: 1px solid var(--dp-rule);
  border-radius: var(--dp-radius);
  box-shadow: var(--dp-shadow);
  padding: 24px 72px;
  margin: 0;
}
.dp-leaf::before,
.dp-leaf::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  border: 1px solid var(--dp-rule);
  background: var(--dp-ground);
}
.dp-leaf::before {
  left: 32px;
}
.dp-leaf::after {
  right: 32px;
}
.dp-leafQuote {
  font-family: var(--dp-display);
  font-size: 28px;
  line-height: 1.5;
  color: var(--dp-ink);
  margin: 0;
  /* Ruled lines under each line of text, as on a leaf. */
  background-image: linear-gradient(to bottom, transparent calc(1.5em - 1px), var(--dp-rule) calc(1.5em - 1px));
  background-size: 100% 1.5em;
}
.dp-leafQuoteSmall {
  font-size: 20px;
}
.dp-margin {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  align-items: baseline;
  margin-top: 16px;
  font-size: 16px;
  color: var(--dp-ink-3);
}
.dp-ref {
  font-weight: 700;
  color: var(--dp-ink);
}
.dp-sourceLink {
  color: var(--dp-ink-2);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--dp-rule);
}
/* Motion signature, "inking": cut letters become readable as ink is rubbed in. Once, colour only. */
@keyframes dpInk {
  /* Starts at the muted ink, which already passes AA on the leaf, so the passage is readable from the first paint
     (Codex review: the first version started at the rule colour, 2.11:1). */
  from {
    color: var(--dp-ink-3);
  }
  to {
    color: var(--dp-ink);
  }
}
.dp-ink {
  animation: dpInk 700ms ease-out 1 both;
}
@media (prefers-reduced-motion: reduce) {
  .dp-ink {
    animation: none;
  }
  .dp-action {
    transition: none;
  }
}

/* Variant B: an editorial column. Headline at the left margin; the three steps run down the right. */
.dp-bGrid {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: 72px;
  align-items: start;
}
.dp-bMain {
  display: grid;
  gap: 24px;
  justify-items: start;
}
.dp-bSteps {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--dp-ink);
}
.dp-bStep {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--dp-rule);
}
.dp-bNum {
  font-family: var(--dp-display);
  font-size: 28px;
  line-height: 1;
  color: var(--dp-ink-3);
}
.dp-bTitle {
  font-weight: 700;
  font-size: 17px;
  margin: 0;
  color: var(--dp-ink);
}
.dp-bBody {
  font-size: 16px;
  line-height: 1.5;
  margin: 4px 0 0;
  color: var(--dp-ink-2);
}
.dp-bLeaf {
  margin-top: 16px;
  padding: 16px 48px;
}
.dp-bLeaf::before {
  left: 16px;
}
.dp-bLeaf::after {
  right: 16px;
}

/* The /try flow state. */
.dp-tryCol {
  max-width: 680px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

@media (max-width: 860px) {
  .dp-wrap {
    padding: 32px 16px 48px;
  }
  .dp-h1Large {
    font-size: 28px;
  }
  .dp-bGrid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .dp-leaf {
    padding: 16px 32px;
  }
  .dp-leaf::before {
    left: 12px;
    width: 8px;
    height: 8px;
    margin-top: -4px;
  }
  .dp-leaf::after {
    right: 12px;
    width: 8px;
    height: 8px;
    margin-top: -4px;
  }
  .dp-leafQuote {
    font-size: 20px;
  }
  .dp-leafQuoteSmall {
    font-size: 17px;
  }
  .dp-bLeaf {
    padding: 12px 32px;
  }
  .dp-action {
    width: 100%;
  }
}

/* The question box on a leaf (AnonTeachingCapture skin="leaf", used only by this pass). */
.dp-box {
  background: var(--dp-leaf);
  border: 1px solid var(--dp-rule);
  border-radius: var(--dp-radius);
  box-shadow: var(--dp-shadow);
  padding: 24px;
  display: grid;
  gap: 16px;
  text-align: left;
}
.dp-boxHeading {
  font-family: var(--dp-display);
  font-size: 28px;
  line-height: 1.2;
  font-weight: 400;
  color: var(--dp-ink);
  margin: 0;
}
.dp-boxIntro {
  font-size: 16px;
  line-height: 1.6;
  color: var(--dp-ink-2);
  margin: 8px 0 0;
}
.dp-boxInput {
  width: 100%;
  min-height: 96px;
  padding: 12px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--dp-ink);
  background: #fff;
  border: 1px solid var(--dp-ink-3);
  border-radius: var(--dp-radius);
}
.dp-boxInput::placeholder {
  color: var(--dp-ink-3);
}
.dp-boxInput:focus-visible,
.dp-boxButton:focus-visible {
  outline: 3px solid var(--dp-ink);
  outline-offset: 2px;
}
.dp-boxError {
  font-size: 16px;
  line-height: 1.6;
  color: var(--dp-ink);
  border-left: 3px solid var(--dp-ink);
  padding-left: 12px;
  margin: 0;
}
.dp-boxButton {
  width: 100%;
  min-height: 48px;
  padding: 12px 24px;
  border: 0;
  border-radius: var(--dp-radius);
  background: var(--dp-accent);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
}
.dp-boxButton:hover:not(:disabled) {
  background: var(--dp-accent-press);
}
.dp-boxButton:disabled {
  background: #c9d3cc;
  color: var(--dp-ink-2);
  cursor: not-allowed;
}
