/* AfterPew home page. The shared pieces (type, strip, kicker, button, footer) come from house.css.
   This file brings the page's own colours and layout. Read ~/afterpew-house/README.md before changing words or look. */

/* The house faces again as small woff2 files. A later @font-face for the same family and weight wins,
   so the large ttf files named in house.css are never downloaded here. */
@font-face { font-family: "EB Garamond"; src: url("fonts/eb-garamond-400Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("fonts/eb-garamond-400Regular_Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("fonts/eb-garamond-500Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("fonts/eb-garamond-600SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/dm-sans-400Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/dm-sans-500Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/dm-sans-700Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* linen and pew wood, from the AfterPew icon */
  --ap-page: #f6f2ea; --ap-ink: #211b15; --ap-soft: #5a5046; --ap-line: #dcd3c3;
  --ap-accent: #8b3a1f; --ap-button: #211b15; --ap-on-button: #f6f2ea;
  --band: #efe9dd; --card: #fffdf8; --good: #2f6b3a; --shadow: 0 1px 2px rgba(40, 25, 10, .08), 0 18px 40px -18px rgba(40, 25, 10, .35);
  --gutter: 22px; --wide: 1180px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ap-page: #16130f; --ap-ink: #efe8db; --ap-soft: #b3a895; --ap-line: #342d25;
    --ap-accent: #e0a070; --ap-button: #efe8db; --ap-on-button: #16130f;
    --band: #1d1914; --card: #211c16; --good: #8fbf85; --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -18px rgba(0, 0, 0, .7);
  }
}
@media (max-width: 760px) { :root { --gutter: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ap-page); color: var(--ap-ink); font: 400 17px/1.65 var(--ap-sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ap-accent); text-underline-offset: 3px; }
a:hover { color: var(--ap-ink); }
h1, h2, h3 { font-family: var(--ap-serif); font-weight: 500; margin: 0; letter-spacing: -.005em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.08; }
h3 { font-size: 1.6rem; line-height: 1.2; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--ap-accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ap-ink); color: var(--ap-page); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.fine { font-size: .86rem; color: var(--ap-soft); margin: 0; }
.sub { color: var(--ap-soft); max-width: 40em; margin: 14px 0 0; }
main > section { max-width: var(--wide); margin-inline: auto; padding: clamp(60px, 8.5vw, 116px) var(--gutter); }

/* ───────── the bar ───────── */
.bar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 22px; padding: 9px var(--gutter);
  background: color-mix(in srgb, var(--ap-page) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.bar.scrolled { border-bottom-color: var(--ap-line); }
.bar-brand img { width: 34px; height: 34px; border-radius: 8px; }
.bar-nav { display: flex; gap: 22px; margin-right: auto; font-size: .93rem; }
.bar-nav a { color: var(--ap-soft); text-decoration: none; }
.bar-nav a:hover { color: var(--ap-ink); }
@media (max-width: 760px) { .bar-nav { display: none; } .bar { justify-content: space-between; } }

/* ───────── opening: big type, and a crowd you can move through ───────── */
main > .open { max-width: none; padding: clamp(22px, 3vw, 40px) 0 0; overflow: hidden; }
.open > .ap-kicker, .open > h1, .open-row, .crowd-note { padding-inline: var(--gutter); }
.open .ap-kicker { font-size: clamp(1.12rem, 1.9vw, 1.5rem); margin-bottom: clamp(6px, 1vw, 14px); }
.open h1 { font-size: clamp(1.9rem, 10.3vw, 11.5rem); line-height: .96; letter-spacing: -.022em; text-wrap: initial; }
.open h1 span { white-space: nowrap; }
.open-row { display: grid; grid-template-columns: minmax(0, 38em) auto; gap: 18px clamp(28px, 6vw, 96px); align-items: center; justify-content: start; margin-top: clamp(18px, 2.2vw, 32px); }
.lead { font-size: clamp(1.06rem, 1.35vw, 1.2rem); line-height: 1.58; margin: 0; }
.open-go { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.open-go .ap-btn { font-size: 1.06rem; padding: 18px 28px; }
.open-lead { font-size: .96rem; }
@media (max-width: 900px) { .open-row { grid-template-columns: 1fr; } }

.crowd { --tall: clamp(190px, 21vw, 310px); margin-top: calc(var(--tall) * -.05); position: relative; pointer-events: none; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.crowd::-webkit-scrollbar { display: none; }
.crowd-track { position: relative; height: calc(var(--tall) * 1.5); min-width: 1180px; --px: 0; }
.crowd-track::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: linear-gradient(to bottom, transparent, var(--band)); z-index: 0; pointer-events: none; }
.fig { pointer-events: auto; position: absolute; bottom: 5%; padding: 0; border: 0; background: none; cursor: pointer; z-index: 2; -webkit-tap-highlight-color: transparent;
  height: calc(var(--tall) * var(--size, 1)); aspect-ratio: var(--ratio); margin-left: calc(var(--tall) * var(--size, 1) * var(--ratio) / -2);
  transform: translateX(calc(var(--px) * 22px)); transition: transform .5s cubic-bezier(.2, .7, .2, 1), filter .25s ease; }
.fig.back { bottom: 15%; z-index: 1; --size: .84; filter: saturate(.86) brightness(.97); transform: translateX(calc(var(--px) * -12px)); }
.fig img { width: 100%; height: 100%; object-fit: contain; transform-origin: 50% 100%; animation: sway var(--beat, 6s) ease-in-out var(--wait, 0s) infinite alternate; filter: drop-shadow(0 6px 5px rgba(40, 25, 10, .25)); pointer-events: none; }
@keyframes sway { from { transform: rotate(-.9deg); } to { transform: rotate(.9deg); } }
.fig:hover, .fig:focus-visible, .fig.on { z-index: 5; filter: none; outline: none; transform: translateX(calc(var(--px) * 22px)) translateY(-5%) scale(1.09); }
.fig.back:hover, .fig.back:focus-visible, .fig.back.on { transform: translateX(calc(var(--px) * -12px)) translateY(-5%) scale(1.12); }
.crowd-say { position: absolute; z-index: 6; transform: translate(-50%, -100%); background: var(--ap-ink); color: var(--ap-page); border-radius: 10px; padding: 9px 14px 10px; width: max-content; max-width: 250px; text-align: center; font-size: .86rem; line-height: 1.35; pointer-events: none; opacity: 0; transition: opacity .18s ease; box-shadow: var(--shadow); }
.crowd-say.on { opacity: 1; }
.crowd-say b { display: block; font: 500 1.25rem/1.15 var(--ap-serif); }
.crowd-say::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: inherit; transform: translateX(-50%) rotate(45deg); }
.crowd-note { background: var(--band); margin: 0; padding-block: 4px 22px; text-align: center; font-size: .9rem; color: var(--ap-soft); }

/* ───────── the six days ───────── */
main > .week { max-width: none; padding: 0; }
.week-stage { --day-bg: #2a1d12; --day-ink: #f5f1e6; --day-soft: #cfc6b4; --day-accent: #e9c98a; background: var(--day-bg); color: var(--day-ink); transition: background-color .8s ease; padding: clamp(74px, 9vh, 104px) var(--gutter) 22px; }
.week-stage .ap-kicker { color: var(--day-accent); margin: 0; }
.day { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px clamp(24px, 5vw, 80px); align-items: center; padding-block: 34px; }
.day-name { font-size: clamp(3.2rem, 11.2vw, 10.5rem); line-height: .92; letter-spacing: -.025em; margin: 0 0 clamp(12px, 2vh, 26px); text-wrap: initial; }
.day-purpose { font: italic 400 clamp(1.8rem, 3.5vw, 3.2rem)/1.08 var(--ap-serif); color: var(--day-accent); margin: 0 0 14px; }
.day-habit { font-size: clamp(1.05rem, 1.35vw, 1.22rem); line-height: 1.55; margin: 0 0 12px; max-width: 30em; }
.day-today { color: var(--day-soft); margin: 0; max-width: 32em; font-size: .95rem; }
.day figure { margin: 0; justify-self: center; }
.day-art { width: auto; max-width: 100%; max-height: 58vh; border-radius: 8px; box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .7); }
.day figcaption { font-size: .84rem; color: var(--day-soft); margin-top: 10px; }
.week-ticks { list-style: none; margin: 0; padding: 0; display: none; gap: 6px; }
.week-ticks button { font: 500 .86rem/1 var(--ap-sans); width: 38px; height: 38px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--day-ink) 35%, transparent); background: none; color: var(--day-ink); cursor: pointer; transition: background-color .25s ease, color .25s ease; }
.week-ticks button[aria-current="true"] { background: var(--day-ink); color: var(--day-bg); border-color: var(--day-ink); }

/* with the script running, the stage holds still and the days pass through it as you scroll */
.week.live { height: calc(6 * 78vh + 100vh); height: calc(6 * 78svh + 100svh); }
.week.live .week-stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; }
.week.live .week-days { display: grid; align-items: center; min-height: 0; }
.week.live .day { grid-area: 1 / 1; padding-block: 0; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s linear .45s; }
.week.live .day.on { opacity: 1; visibility: visible; transition: opacity .45s ease .12s, visibility 0s; }
.week.live .day-name, .week.live .day figure { transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.week.live .day:not(.on) .day-name { transform: translateY(42px); }
.week.live .day:not(.on) figure { transform: scale(.94) translateY(18px); }
.week.live .week-ticks { display: flex; }
@media (max-width: 900px) {
  .day { grid-template-columns: 1fr; gap: 12px; align-content: center; }
  .day-name { margin-bottom: 4px; }
  .day figure { order: 1; justify-self: start; }
  .day-art { max-height: 30vh; max-height: 30svh; }
  .day figcaption { display: none; }
  .day-text { order: 2; }
  .day-today { font-size: .9rem; }
  .week-stage { padding-top: 70px; }
}

/* ───────── start with Sunday's passage ───────── */
main > .start { padding-bottom: clamp(30px, 4vw, 56px); }
.start-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 26px; }
.start-pick label { font-size: .92rem; color: var(--ap-soft); width: 100%; }
.start-pick select { font: 500 1.05rem/1.2 var(--ap-sans); color: var(--ap-ink); background: var(--card); border: 1px solid var(--ap-line); border-radius: 10px; padding: 13px 14px; min-width: 0; }
.start-unsure { font: 400 .95rem/1.2 var(--ap-sans); color: var(--ap-accent); background: none; border: 0; padding: 6px 0; margin-left: 6px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.plan { margin-top: 26px; border: 1px solid var(--ap-line); border-radius: 16px; background: var(--card); overflow: hidden; }
.plan-top { padding: 22px 26px 18px; border-bottom: 1px solid var(--ap-line); }
.plan-top p { margin: 0 0 2px; color: var(--ap-soft); font-size: .92rem; }
.plan-top h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.plan-top .plan-sunday { margin-top: 10px; color: var(--ap-accent); font-size: .95rem; }
.plan-body { display: grid; grid-template-columns: 250px 1fr; }
.plan-days { list-style: none; margin: 0; padding: 10px; border-right: 1px solid var(--ap-line); display: grid; gap: 4px; align-content: start; }
.plan-days button { width: 100%; text-align: left; background: none; border: 0; border-radius: 10px; padding: 10px 14px; cursor: pointer; color: var(--ap-ink); font: 400 .82rem/1.3 var(--ap-sans); display: grid; }
.plan-days button b { font: 500 1.22rem/1.2 var(--ap-serif); }
.plan-days button span { color: var(--ap-soft); }
.plan-days button i { font-style: normal; color: var(--ap-accent); }
.plan-days button:hover { background: var(--band); }
.plan-days button[aria-selected="true"] { background: var(--ap-ink); color: var(--ap-page); }
.plan-days button[aria-selected="true"] span, .plan-days button[aria-selected="true"] i { color: color-mix(in srgb, var(--ap-page) 75%, transparent); }
.plan-day { padding: 24px 28px 28px; min-height: 340px; }
.plan-day h4 { font: 500 clamp(1.6rem, 2.6vw, 2.1rem)/1.12 var(--ap-serif); margin: 0 0 12px; }
.plan-day p { max-width: 40em; }
.plan-day ul, .plan-day ol { margin: 0 0 1em; padding-left: 1.2em; max-width: 40em; }
.plan-day li { margin-bottom: 6px; }
.plan-day .quiet { color: var(--ap-soft); font-size: .92rem; }
.plan-day .verse { font: italic 400 1.3rem/1.35 var(--ap-serif); margin: 0 0 14px; }
.plan-day textarea, .plan-day input[type="text"] { width: 100%; max-width: 40em; font: 400 1rem/1.5 var(--ap-sans); color: var(--ap-ink); background: var(--ap-page); border: 1px solid var(--ap-line); border-radius: 10px; padding: 12px 14px; display: block; }
.plan-day textarea { min-height: 130px; resize: vertical; }
.plan-day input[type="text"] { max-width: 18em; }
.plan-day label { display: block; font-size: .9rem; color: var(--ap-soft); margin: 14px 0 6px; }
.plan-day .go { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 16px; }
.plan-day dl { margin: 0 0 1em; display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; max-width: 46em; }
.plan-day dt { font: 500 1.05rem/1.5 var(--ap-serif); }
.plan-day dd { margin: 0; color: var(--ap-soft); }
@media (max-width: 760px) {
  .plan-body { grid-template-columns: 1fr; }
  .plan-days { grid-template-columns: repeat(3, 1fr); border-right: 0; border-bottom: 1px solid var(--ap-line); }
  .plan-days button { padding: 8px 10px; }
  .plan-days button b { font-size: 1.05rem; }
  .plan-days button span { display: none; }
  .plan-day { padding: 20px 18px 24px; }
  .plan-top { padding: 18px 18px 14px; }
  .plan-day dl { grid-template-columns: 1fr; gap: 0; } .plan-day dd { margin-bottom: 10px; }
}

/* ───────── the two apps ───────── */
.apps-head { margin-bottom: clamp(24px, 4vw, 44px); }
.apps-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 22px; align-items: stretch; }
.app { border-radius: 14px; overflow: hidden; scroll-margin-top: 90px; }
.app-name { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.app-name img { width: 44px; height: 44px; border-radius: 10px; }
.app h3 { font-size: 2rem; }
.app-say { font: italic 400 clamp(1.35rem, 2.1vw, 1.7rem)/1.28 var(--ap-serif); margin: 0 0 14px; }
.app-go { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 22px 0 14px; }
.app-go a:not(.ap-btn) { font-size: .95rem; }

.app-mk { background: #0a0e16; color: #f5f1e6; padding: 30px 30px 0; display: flex; flex-direction: column;
  --ap-button: #7a5cff; --ap-on-button: #fff; --ap-accent: #e2a85a; --ap-soft: #9aa8be; }
.app-mk p { color: #c9d2e0; }
.app-mk .app-say { color: #f5f1e6; }
.app-mk a:not(.ap-btn) { color: #e2a85a; }
.app-mk .app-art { margin: 26px -30px 0; width: calc(100% + 60px); max-width: none; margin-top: auto; padding-top: 0; }
.app-mk .fine { margin-bottom: 26px; }

.app-bb { background: #efe6d3; color: #33281c; display: grid; grid-template-columns: 42% 1fr;
  --ap-button: #8a6a1c; --ap-on-button: #fff8e6; --ap-accent: #8a6a1c; --ap-soft: #5d4f3d; }
.app-bb .app-art { width: 100%; height: 100%; object-fit: cover; }
.app-bb .app-body { padding: 30px; align-self: center; }
.app-bb p { color: #4a3d2e; }
.app-bb .app-say { color: #33281c; }
.app-bb a:not(.ap-btn) { color: #8a6a1c; }
@media (max-width: 980px) { .apps-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) {
  .app-bb { grid-template-columns: 1fr; }
  .app-bb .app-art { aspect-ratio: 16 / 10; }
  .app-mk { padding: 24px 22px 0; } .app-mk .app-art { margin-inline: -22px; width: calc(100% + 44px); }
  .app-bb .app-body { padding: 24px 22px; }
}

/* ───────── try one ───────── */
.try-head { margin-bottom: clamp(26px, 4vw, 48px); }
.try-note h3 { margin-bottom: 8px; }
.try-note p { color: var(--ap-soft); margin: 0; max-width: 30em; }
.try-meek { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(22px, 4vw, 56px); align-items: start; }
.try-bb { display: grid; grid-template-columns: 8fr 4fr; gap: clamp(22px, 4vw, 56px); align-items: start; margin-top: clamp(44px, 6vw, 84px); }
.try-bb .try-note { order: 2; }
@media (max-width: 900px) {
  .try-meek, .try-bb { grid-template-columns: 1fr; }
  .try-bb .try-note { order: 0; }
}

.game { background: var(--card); border: 1px solid var(--ap-line); border-radius: 14px; overflow: hidden; }
.game-top { display: grid; grid-template-columns: 40% 1fr; align-items: center; background: #f4ede0; color: #2b2219; }
.game-top img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.game-top div { padding: 18px 22px; }
.game-who { font-size: .9rem; color: #57493b; margin: 0 0 6px; }
.game-says { font: italic 400 clamp(1.12rem, 1.7vw, 1.36rem)/1.32 var(--ap-serif); margin: 0; }
.game-body { padding: 20px 22px 22px; }
.game-ask { font-size: .92rem; color: var(--ap-soft); margin: 0 0 10px; }
.replies { display: grid; gap: 10px; }
.reply { text-align: left; font: 400 1rem/1.5 var(--ap-sans); color: var(--ap-ink); background: transparent; border: 1px solid var(--ap-line); border-radius: 10px; padding: 13px 16px; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.reply:hover:not(:disabled) { border-color: var(--ap-accent); background: color-mix(in srgb, var(--ap-accent) 7%, transparent); }
.reply:disabled { cursor: default; }
.reply .verdict { display: block; margin-top: 8px; font-size: .9rem; color: var(--ap-soft); }
.reply .verdict b { color: var(--ap-accent); font-weight: 700; }
.reply.right { border-color: var(--good); background: color-mix(in srgb, var(--good) 9%, transparent); }
.reply.right .verdict b { color: var(--good); }
.reply.wrong { opacity: .85; }
.reply.rest { opacity: .5; }
.game-next { margin-top: 18px; display: none; }
.game-next.on { display: block; }
.game-next p { color: var(--ap-soft); margin: 0 0 12px; max-width: 36em; }
.game-next div { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
@media (max-width: 620px) { .game-top { grid-template-columns: 1fr; } }

.kin { background: #efe6d3; color: #33281c; border-radius: 14px; padding: 22px; display: grid; grid-template-columns: 200px 1fr; gap: 6px 26px; }
.kin-stage { grid-row: 1 / span 2; align-self: end; position: relative; text-align: center; min-height: 280px; display: flex; align-items: flex-end; justify-content: center; }
.kin-stage img { height: 280px; width: auto; position: relative; z-index: 1; filter: drop-shadow(0 8px 6px rgba(60, 40, 10, .28)); }
.kin-stage::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: 2px; height: 14px; border-radius: 50%; background: rgba(90, 60, 10, .22); filter: blur(6px); }
.kin-who .era { font-size: .84rem; color: #84735c; margin: 0 0 2px; }
.kin-who h4 { font: 500 2.3rem/1.05 var(--ap-serif); margin: 0 0 4px; }
.kin-who .known { font: italic 400 1.2rem/1.3 var(--ap-serif); color: #5d4f3d; margin: 0 0 4px; }
.kin-who .verse { font-size: .86rem; color: #84735c; margin: 0 0 10px; }
.kin-rel { display: grid; gap: 10px; align-content: start; }
.kin-rel p { font-size: .82rem; color: #84735c; margin: 0 0 5px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; font: 500 .92rem/1 var(--ap-sans); color: #33281c; background: #f7f0e1; border: 1px solid #d9cbae; border-radius: 999px; padding: 4px 13px 4px 4px; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.chip:hover { border-color: #b8923a; background: #ecd9a4; transform: translateY(-1px); }
.chip .face { width: 34px; height: 34px; border-radius: 50%; background: #ecdcb0 no-repeat 50% 5% / 185%; border: 1px solid #d9cbae; flex: none; }
.kin-trail { grid-column: 1 / -1; border-top: 1px solid #d9cbae; margin-top: 14px; padding-top: 12px; font-size: .88rem; color: #84735c; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.kin-trail button { font: inherit; color: #8a6a1c; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.kin-trail a { color: #8a6a1c; margin-left: auto; }
.kin.swap .kin-stage img, .kin.swap .kin-who { animation: arrive .35s ease both; }
@keyframes arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 620px) {
  .kin { grid-template-columns: 112px 1fr; padding: 18px 16px; gap: 6px 14px; }
  .kin-stage { grid-row: 1; min-height: 170px; }
  .kin-stage img { height: 170px; }
  .kin-who h4 { font-size: 1.8rem; }
  .kin-rel { grid-column: 1 / -1; margin-top: 10px; }
}

/* ───────── Bible Graph ───────── */
main > .graph { max-width: none; background: var(--band); padding-inline: 0; }
.graph > * { max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
.sky { position: relative; max-width: 1400px; margin-top: 30px; height: min(74vh, 660px); padding: 0; background: #0a0e16; overflow: hidden; }
@media (min-width: 1444px) { .sky { border-radius: 14px; } }
.sky iframe { width: 100%; height: 100%; border: 0; display: block; pointer-events: none; }
.sky.awake iframe { pointer-events: auto; }
.sky-cover { position: absolute; inset: 0; border: 0; background: linear-gradient(to top, rgba(10, 14, 22, .55), transparent 45%); cursor: pointer; display: flex; align-items: flex-end; justify-content: center; padding: 0 0 26px; --ap-button: #f5f1e6; --ap-on-button: #0a0e16; }
.sky.awake .sky-cover { display: none; }
.sky-note { margin-top: 12px; font-size: .92rem; color: var(--ap-soft); }
.graph-one { margin-top: clamp(34px, 5vw, 60px); }
.graph-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 14px; }
.graph-pick label { font-size: .9rem; color: var(--ap-soft); }
.graph-pick select { font: 500 1rem/1.2 var(--ap-sans); color: var(--ap-ink); background: var(--card); border: 1px solid var(--ap-line); border-radius: 10px; padding: 12px 14px; max-width: 100%; min-width: 0; }
.graph-quick { display: flex; flex-wrap: wrap; gap: 8px; }
.graph-quick button { font: 400 .92rem/1 var(--ap-sans); color: var(--ap-accent); background: none; border: 0; border-bottom: 1px solid currentColor; padding: 4px 0; margin-right: 10px; cursor: pointer; }
.graph-quick button[aria-pressed="true"] { color: var(--ap-ink); border-bottom-width: 2px; }

.map { position: relative; display: flex; gap: clamp(48px, 8vw, 110px); align-items: center; margin-top: 30px; padding-block: 8px; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; padding: 0; max-width: none; }
.map path { fill: none; stroke: var(--ap-ink); stroke-width: 1.4; opacity: .5; }
.map path.soft { stroke: var(--ap-accent); stroke-dasharray: 3 5; opacity: .75; }
.map path.draw { transition: stroke-dashoffset .9s cubic-bezier(.4, 0, .2, 1); }
.map path.fade { transition: opacity .6s ease .5s; }
.map-col { flex: 1 1 0; min-width: 0; position: relative; z-index: 1; }
.map-col.empty { display: none; }
.map-label { font: italic 400 1rem/1.2 var(--ap-serif); color: var(--ap-soft); margin: 0 0 10px; }
.map-nodes { display: grid; gap: 12px; }
.node { text-align: left; background: var(--card); color: var(--ap-ink); border: 1px solid var(--ap-line); border-radius: 10px; padding: 11px 14px; cursor: pointer; font: 400 .88rem/1.35 var(--ap-sans); transition: border-color .15s ease, transform .15s ease; width: 100%; }
.node b { display: block; font: 500 1.16rem/1.2 var(--ap-serif); }
.node span { color: var(--ap-soft); }
.node:hover { border-color: var(--ap-accent); transform: translateY(-1px); }
.node.here { cursor: default; background: var(--ap-ink); color: var(--ap-page); border-color: var(--ap-ink); padding: 16px 18px; transform: none; }
.node.here b { font-size: 1.5rem; }
.node.here span { color: color-mix(in srgb, var(--ap-page) 78%, transparent); }
.node.here em { display: block; font-style: normal; margin-top: 8px; font-size: .9rem; line-height: 1.5; color: color-mix(in srgb, var(--ap-page) 88%, transparent); }
.map-none { color: var(--ap-soft); margin: 0; max-width: 24em; }
@media (max-width: 760px) {
  .map { flex-direction: column; align-items: stretch; gap: 46px; }
  /* on a phone the map shows one step back; tap a passage to go further */
  #col-far { display: none; }
  .map-nodes { grid-template-columns: 1fr 1fr; }
  #col-here .map-nodes { grid-template-columns: 1fr; }
  .node { padding: 10px 12px; }
}
.graph-why { margin-top: 30px; }
.graph-why h3 { font-size: 1.3rem; margin-bottom: 10px; }
.graph-why dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; max-width: 60em; }
.graph-why dt { font: 500 1.08rem/1.5 var(--ap-serif); }
.graph-why dd { margin: 0; color: var(--ap-soft); }
.graph-why dd i { font-style: normal; color: var(--ap-accent); }
.graph-more { margin-top: 26px; margin-bottom: 0; }
@media (max-width: 620px) { .graph-why dl { grid-template-columns: 1fr; gap: 0 0; } .graph-why dd { margin-bottom: 12px; } }

/* ───────── Real Voices ───────── */
main > .voices { max-width: 860px; }
.voices h2 { margin-bottom: 16px; }
.voices p { font: 400 clamp(1.3rem, 2.3vw, 1.7rem)/1.42 var(--ap-serif); }
.voices p:last-child { font: 400 1rem/1.6 var(--ap-sans); margin: 0; }

/* ───────── why ───────── */
main > .why { border-top: 1px solid var(--ap-line); }
.why-head, .why-body { margin-left: 26%; max-width: 38em; }
.why-head { margin-bottom: 24px; }
.why-body p { font: 400 1.32rem/1.52 var(--ap-serif); }
.why-links { display: flex; flex-wrap: wrap; gap: 8px 26px; font: 400 1rem/1.6 var(--ap-sans) !important; margin: 22px 0 0; }
@media (max-width: 900px) { .why-head, .why-body { margin-left: 0; } }

/* ───────── writing ───────── */
main > .writing { border-top: 1px solid var(--ap-line); }
.writing-head { margin-bottom: 22px; }
.posts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ap-line); }
.posts li { display: grid; grid-template-columns: 9.5em 1fr; gap: 4px 20px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--ap-line); }
.posts time { font-size: .9rem; color: var(--ap-soft); font-variant-numeric: tabular-nums; }
.posts a { font: 500 clamp(1.35rem, 2.6vw, 1.9rem)/1.2 var(--ap-serif); color: var(--ap-ink); text-decoration: none; }
.posts a:hover { color: var(--ap-accent); text-decoration: underline; text-decoration-thickness: 1px; }
.posts .posts-label { font: italic 400 1.1rem/1.3 var(--ap-serif); color: var(--ap-accent); }
.writing-studies { margin: 22px 0 0; font-size: 1.05rem; line-height: 1.6; color: var(--ap-soft); }
.writing-studies a { font: 500 1.2rem/1.3 var(--ap-serif); color: var(--ap-ink); }
.writing-studies a:hover { color: var(--ap-accent); }
.writing-all { margin: 20px 0 0; }
@media (max-width: 620px) { .posts li { grid-template-columns: 1fr; } }

/* ───────── leaders ───────── */
main > .leaders { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(22px, 5vw, 72px); border-top: 1px solid var(--ap-line); }
.leaders-body p { max-width: 36em; }
.leaders-go { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin: 24px 0 0; }
@media (max-width: 900px) { main > .leaders { grid-template-columns: 1fr; } }

/* ───────── the list ───────── */
main > .list { padding-block: 0; }
.list-in { background: var(--ap-ink); color: var(--ap-page); border-radius: 16px; padding: clamp(28px, 5vw, 60px);
  --ap-button: var(--ap-page); --ap-on-button: var(--ap-ink); }
.list-in h2 { margin-bottom: 12px; }
.list-in > p { max-width: 34em; color: color-mix(in srgb, var(--ap-page) 82%, transparent); }
.list form { margin-top: 22px; max-width: 620px; }
.list label { display: block; font-size: .9rem; margin-bottom: 8px; color: color-mix(in srgb, var(--ap-page) 82%, transparent); }
.join-row { display: flex; gap: 10px; flex-wrap: wrap; }
.join-row input { flex: 1 1 240px; min-width: 0; font: 400 1.05rem/1.2 var(--ap-sans); padding: 15px 18px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--ap-page) 40%, transparent); background: color-mix(in srgb, var(--ap-page) 8%, transparent); color: var(--ap-page); }
.join-row input::placeholder { color: color-mix(in srgb, var(--ap-page) 50%, transparent); }
.join-row input:focus-visible { outline-color: var(--ap-page); border-radius: 999px; }
.list .check { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; cursor: pointer; }
.list .check input { width: 18px; height: 18px; accent-color: var(--ap-page); flex: none; }
.list .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.join-say { min-height: 1.6em; margin: 14px 0 6px; font-weight: 500; }
.join-say.bad { color: #ffb4a0; }
.list .fine { color: color-mix(in srgb, var(--ap-page) 66%, transparent); }
.list .fine a { color: inherit; }
.list form.done .join-row, .list form.done .check, .list form.done > label { display: none; }

/* ───────── a favor ───────── */
main > .favor { max-width: 640px; text-align: center; }
.favor h2 { margin-bottom: 14px; }
.sign { font: italic 400 1.4rem/1.2 var(--ap-serif); margin: 26px 0 0; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); background: var(--ap-ink); color: var(--ap-page); padding: 12px 20px; border-radius: 999px; font-size: .92rem; z-index: 90; box-shadow: var(--shadow); }

/* sections come up gently, once */
.rise { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { opacity: 1; transform: none; transition: none; }
  .map path.draw, .map path.fade, .kin.swap .kin-stage img, .kin.swap .kin-who { transition: none; animation: none; }
  .fig img { animation: none; }
  .fig, .week.live .day, .week.live .day-name, .week.live .day figure, .week-stage { transition: none; }
}
@media print {
  .bar, .list, .favor button, .graph-pick, .try, .sky, .crowd { display: none; }
  body { background: #fff; color: #000; }
}
