/* Shared by the LP (index.html) and the sponsor page (sponsors.html). Night is the shared tree's sky; day is paper. */
:root {
  --night: #0E0E0C; --night-2: #1B1A17; --night-ink: #EEE8DC; --night-muted: #ABA598; --night-line: #2E2D28;
  --paper: #F4F3EE; --surface: #FBFAF7; --ink: #22332B; --body: #33443B; --muted: #5E6A62; --line: #D9DBD2;
  --accent: #A4502E; --accent-ink: #7E3B21; --accent-soft: #F6E6DB; --gold: #D9B45E; --kashi: #4D6340; --water: #7BBBC7;
  --gutter: clamp(16px, 6vw, 96px); --wide: 1180px;
  --mincho: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --gothic: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic", sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; background: var(--night); }
body { margin: 0; background: var(--night); color: var(--night-ink); font-family: var(--gothic); font-size: clamp(16px, 1.15vw, 17px); line-height: 1.95; -webkit-text-size-adjust: 100%; overflow-x: clip; }
::selection { background: var(--accent); color: #FFFFFF; }
h1, h2, h3 { margin: 0; font-family: var(--mincho); font-weight: 700; font-feature-settings: "palt"; letter-spacing: .04em; text-wrap: balance; word-break: auto-phrase; }
p { margin: 0; word-break: auto-phrase; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.day :focus-visible { outline-color: #2F4B63; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 999px; background: var(--night-ink); color: var(--night); text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: min(100%, var(--wide)); margin-inline: auto; padding-inline: var(--gutter); }

.cta { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 58px; padding: 0 32px; border-radius: 999px; background: var(--accent); color: #FFFFFF; text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: .04em; transition: background .2s, transform .2s var(--ease-out); }
.cta:hover { background: var(--accent-ink); }
.cta:active { transform: scale(.97); }
.note { font-size: 14px; color: var(--night-muted); }
.day .note { color: var(--muted); }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--accent); }
.night .kicker { color: #C9937A; }
.chapter-title { font-size: clamp(26px, 2.8vw, 42px); line-height: 1.6; }
.lede { max-width: 34em; font-size: clamp(16px, 1.3vw, 19px); line-height: 2.05; color: var(--night-muted); }
.day .lede { color: var(--body); }
/* Hidden only once the script that reveals it is known to run (the js class), so the text is there without it. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.js .reveal.seen { opacity: 1; transform: none; }

.site-header { position: absolute; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: max(18px, env(safe-area-inset-top)) var(--gutter) 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-family: "Zen Maru Gothic", sans-serif; font-size: 19px; text-decoration: none; }
.site-header nav { display: flex; align-items: center; gap: 26px; font-size: 14px; }
.site-header nav a { color: var(--night-muted); text-decoration: none; }
.site-header nav a:hover { color: var(--night-ink); }
.site-header .ghost { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; white-space: nowrap; border: 1px solid #ffffff38; border-radius: 999px; color: var(--night-ink); }
.day .site-header nav a { color: var(--muted); }
.day .site-header nav a:hover, .day .site-header .ghost { color: var(--ink); }
.day .site-header .ghost { border-color: var(--line); }
@media (max-width: 760px) { .site-header nav a:not(.ghost) { display: none; } }

.day { background: var(--paper); color: var(--ink); }
.section { padding-block: clamp(80px, 11vw, 150px); }
.section + .section { border-top: 1px solid var(--line); }
.section .chapter-title { margin-top: 14px; }
.section .lede { margin-top: 22px; }

.steps { display: grid; gap: 22px; margin-top: 48px; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li { padding: 28px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-family: var(--mincho); font-weight: 700; font-size: 20px; }
.steps h3 { margin-top: 16px; font-size: 21px; }
.steps p { margin-top: 8px; color: var(--body); }
.steps .eg { margin-top: 14px; padding: 10px 14px; border-radius: 12px; background: var(--paper); font-size: 14px; color: var(--muted); }

.promises { display: grid; gap: 30px 48px; margin-top: 44px; }
@media (min-width: 640px) { .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.promises h3 { font-family: var(--gothic); font-size: 17px; letter-spacing: .02em; }
.promises p { margin-top: 6px; font-size: 15px; color: var(--body); }
.promises li { padding-top: 18px; border-top: 1.5px solid var(--ink); }

/* 85% to supporters, 15% fee: the bar carries its numbers in text, never by colour alone. */
.split { padding: 28px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.split h3 { font-family: var(--gothic); font-size: 17px; letter-spacing: .02em; }
.bar { display: flex; height: 18px; margin-top: 18px; border-radius: 999px; overflow: hidden; }
.bar span:first-child { flex: 100; background: var(--kashi); }
.bar span:last-child { flex: 15; background: var(--gold); }
.legend { display: grid; gap: 10px; margin-top: 18px; }
.legend li { display: flex; align-items: baseline; gap: 12px; }
.legend b { font-family: var(--mincho); font-size: clamp(30px, 3vw, 40px); line-height: 1; font-variant-numeric: tabular-nums; }
.legend .give b { color: var(--kashi); }
.legend .fee b { color: #8A6A1E; }
.example { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

.text-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 10px; color: var(--accent-ink); font-weight: 700; }

.start { padding-block: clamp(96px, 13vw, 180px); background: radial-gradient(90% 120% at 50% 110%, #CFE3DE 0%, #E6EFEA 45%, var(--paper) 100%); color: var(--ink); text-align: center; }
.start h2 { font-size: clamp(30px, 4.6vw, 64px); line-height: 1.45; }
.start p { margin-top: 18px; color: var(--body); }
.start .cta { margin-top: 34px; }
.start .note { margin-top: 16px; color: var(--muted); }

.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding: 40px var(--gutter) calc(96px + env(safe-area-inset-bottom)); background: var(--paper); color: var(--muted); font-size: 14px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .cta { transition: none; }
}

@media (max-width: 400px) {
  .site-header { gap: 8px; }
  .site-header .brand { font-size: 15px; gap: 6px; min-width: 0; }
  .site-header .brand svg { width: 24px; height: 24px; flex: none; }
  .site-header .ghost { padding-inline: 12px; font-size: 13px; }
  .site-header nav { flex: none; }
}

.live-preview {position:relative;width:100%;}.preview-placeholder {position:absolute;inset:0;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;border-radius:22px;background:#f8f7f2;color:#344535;font-size:14px;}.preview-placeholder[hidden]{display:none;}.preview-placeholder img {width:min(80%,328px);height:auto;border-radius:16px;}.preview-placeholder a {min-height:44px;display:flex;align-items:center;color:#7e3b21;text-decoration:underline;}.preview-placeholder p {margin:0;}

