/* =====================================================================
   Kindred · the style
   Charities and not-for-profits: Besley for headlines, Atkinson
   Hyperlegible Next for reading (made for low vision), Azeret Mono for
   amounts and dates, on warm paper with ink, one deep teal and a
   marigold for fills. Signature pieces: the gift picker (.give: once or
   monthly, what each amount does, whether it's tax deductible, and a live
   receipt), the impact ledger (.ledger: where every dollar came from and
   went, by year), the gift manager (.mygift: change, pause, move or stop
   a monthly gift online), and the volunteer roster (.roster: shifts with
   spots left, clashes caught, checks needed).
   Motion: html.calm stills everything (footer switch, remembered as
   "site-motion"; default from prefers-reduced-motion).
   ===================================================================== */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html:focus-within { scroll-behavior: smooth; }
html.calm:focus-within { scroll-behavior: auto; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--fs-body)/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--sun); color: #1b1712; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { 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: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: var(--r-s); background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none; transition: top var(--d) var(--ease); }
.skip:focus { top: 12px; }
code, kbd, .mono { font-family: var(--mono); font-size: 0.92em; }
:not(pre) > code { padding: 0.1em 0.35em; border-radius: 5px; background: var(--well); }

/* ---------- type ---------- */
.h1, .h2, .h3 { font-family: var(--display); font-weight: 700; color: var(--ink); text-wrap: balance; }
.h1 { font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -0.02em; }
.h2 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -0.015em; }
.h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.01em; }
/* the lit phrase: Besley italic in teal, with a marigold brush stroke under it that draws in */
.h1 em, .h2 em { font-style: italic; font-weight: 600; color: var(--kin); }
.h1 em { background: linear-gradient(var(--sun), var(--sun)) 0 92% / 100% 0.14em no-repeat; padding-inline: 0.04em; border-radius: 0.1em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
html:not(.calm) .h1 em { animation: kd-draw 1.1s 0.3s var(--ease) both; }
@keyframes kd-draw { from { background-size: 0% 0.14em; } }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--ink-2); max-width: 56ch; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); }
.tag { display: inline-flex; align-items: center; gap: 8px; font: 600 var(--fs-label)/1.2 var(--body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.tag::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--sun); box-shadow: 5px 0 0 -1px var(--kin); margin-right: 4px; }
.tag b { font-weight: 700; color: var(--kin); }
.num { font-variant-numeric: tabular-nums; }
.prose p + p { margin-top: 1em; }
.prose a, .link { color: var(--kin); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; font-weight: 600; }
.prose a:hover, .link:hover { color: var(--kin-2); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 20px; border-radius: var(--r-s); border: 1.5px solid transparent; font: 600 15.5px/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform var(--d-fast) var(--ease), background var(--d-fast), border-color var(--d-fast), color var(--d-fast); }
.btn svg { width: 17px; height: 17px; flex: none; transition: transform var(--d) var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-kin { background: var(--kin); color: var(--on-kin); }
.btn-kin:hover { background: var(--kin-2); }
.btn-line { border-color: color-mix(in srgb, var(--ink) 25%, var(--line)); background: var(--card); color: var(--ink); }
.btn-line:hover { border-color: var(--kin); color: var(--kin); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- top line ---------- */
.topline { background: var(--ink); color: var(--paper); }
.topline .wrap { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 38px; padding-block: 7px; text-align: center; font: 500 14px/1.4 var(--body); }
.topline b { padding: 2px 9px; border-radius: 999px; background: var(--sun); color: #1b1712; font: 600 11px/1.3 var(--mono); letter-spacing: 0.04em; }
.topline a { font-weight: 600; color: var(--paper); text-underline-offset: 3px; }
@media (max-width: 560px) { .topline b { display: none; } }

/* ---------- header and phone menu ---------- */
.nav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-in { position: relative; display: flex; align-items: center; gap: 20px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
/* the mark: two circles leaning together, teal and marigold, where they overlap is ink */
.brand-mark { position: relative; flex: none; width: 36px; height: 26px; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; top: 0; width: 26px; height: 26px; border-radius: 50%; }
.brand-mark::before { left: 0; background: var(--kin); }
.brand-mark::after { right: 0; background: var(--sun); mix-blend-mode: multiply; }
:root[data-theme="dark"] .brand-mark::after { mix-blend-mode: screen; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand-mark::after { mix-blend-mode: screen; } }
.brand-word { font: 700 22px/1 var(--display); letter-spacing: -0.02em; }
.brand-sub { display: block; font: 500 11.5px/1.2 var(--mono); color: var(--muted); margin-top: 4px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { position: relative; padding: 9px 12px; border-radius: var(--r-s); text-decoration: none; font: 500 15px/1 var(--body); color: var(--ink-2); transition: color var(--d-fast), background var(--d-fast); }
.nav-links a:hover { color: var(--ink); background: var(--well); }
.nav-links a[aria-current="page"] { color: var(--kin); background: var(--kin-soft); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--card); cursor: pointer; place-items: center; }
.menu-btn i, .menu-btn i::before, .menu-btn i::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); position: relative; transition: transform var(--d) var(--ease), background var(--d-fast); }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; }
.menu-btn i::before { top: -6px; } .menu-btn i::after { top: 6px; }
.menu-btn[aria-expanded="true"] i { background: transparent; }
.menu-btn[aria-expanded="true"] i::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i::after { transform: translateY(-6px) rotate(-45deg); }
.site-menu { position: absolute; left: 0; right: 0; top: 100%; display: grid; padding: 14px var(--gutter) 24px; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lift); animation: kd-open var(--d) var(--ease) both; }
.site-menu a { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 13px 0; border-bottom: 1px solid var(--line); text-decoration: none; font: 700 26px/1.1 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.site-menu a::after { content: attr(data-no); font: 500 12px/1 var(--mono); color: var(--muted); }
.site-menu a[aria-current="page"] { color: var(--kin); }
.site-menu .btn { display: flex; justify-content: center; margin-top: 18px; border-bottom: 0; font: 600 15.5px/1 var(--body); color: var(--on-kin); }
.site-menu .btn::after { display: none; }
@keyframes kd-open { from { opacity: 0; transform: translateY(-8px); } }
html.calm .site-menu { animation: none; }
@media (max-width: 1100px) { .nav-links { display: none; } .menu-btn { display: grid; } }
@media (max-width: 640px) { .nav .nav-cta { display: none; } }
@media (min-width: 1101px) { .site-menu { display: none !important; } }

/* ---------- sections ---------- */
.section { position: relative; padding-block: clamp(60px, 8.5vw, 110px); }
.section.alt { background: var(--well); }
.section-head { display: grid; gap: 14px; justify-items: start; max-width: 780px; margin-bottom: clamp(28px, 4vw, 52px); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .grid-4 { grid-template-columns: minmax(0, 1fr); } }
.grid-2.lean { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.grid-2.lean > .section-head { position: sticky; top: 100px; }
.grid-2.side { grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .grid-2.lean, .grid-2.side { grid-template-columns: minmax(0, 1fr); } .grid-2.lean > .section-head { position: static; } }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(30px, 5vw, 68px) clamp(54px, 8vw, 100px); overflow: clip; }
.hero::before { content: ""; position: absolute; z-index: -1; right: -10%; top: -20%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--sun) 28%, transparent), transparent); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 22px; justify-items: start; min-width: 0; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; font: 500 14.5px/1.4 var(--body); color: var(--ink-2); }
.hero-facts li { display: flex; gap: 8px; align-items: baseline; }
.hero-facts li b { font: 600 20px/1 var(--mono); color: var(--ink); }
@media (max-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- the gift picker (signature) ---------- */
.give { display: grid; gap: 16px; padding: clamp(18px, 2.6vw, 28px); border-radius: var(--r-l); background: var(--card); box-shadow: var(--shadow-lift), 0 0 0 1px var(--line); min-width: 0; }
.give-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.give-head b { font: 700 22px/1.2 var(--display); }
.freq { display: inline-flex; padding: 4px; border-radius: var(--r-pill); background: var(--well); box-shadow: inset 0 0 0 1px var(--line); }
.freq button { min-height: 38px; padding: 0 16px; border: 0; border-radius: var(--r-pill); background: transparent; cursor: pointer; font: 700 14.5px/1 var(--body); color: var(--ink-2); transition: background var(--d-fast), color var(--d-fast); }
.freq button[aria-pressed="true"] { background: var(--kin); color: var(--on-kin); }
.amounts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.amt { min-height: 56px; border: 1.5px solid var(--line); border-radius: var(--r-s); background: var(--card); cursor: pointer; font: 700 21px/1 var(--display); color: var(--ink); transition: border-color var(--d-fast), background var(--d-fast), transform var(--d-fast) var(--ease); }
.amt:hover { border-color: var(--kin); }
.amt[aria-pressed="true"] { border-color: var(--kin); background: var(--kin-soft); color: var(--kin); box-shadow: inset 0 -4px 0 var(--sun); }
html:not(.calm) .amt[aria-pressed="true"] { animation: kd-pop 260ms var(--snap); }
@keyframes kd-pop { 50% { transform: scale(1.04); } }
.amt-other { grid-column: 1 / -1; display: flex; align-items: center; gap: 0; border: 1.5px solid var(--line); border-radius: var(--r-s); background: var(--card); }
.amt-other span { padding: 0 4px 0 14px; font: 700 19px/1 var(--display); color: var(--muted); }
.amt-other input { flex: 1; min-width: 0; height: 50px; border: 0; background: transparent; font: 600 17px/1 var(--mono); }
.amt-other input:focus { outline: none; }
.amt-other:focus-within { border-color: var(--kin); box-shadow: 0 0 0 3px color-mix(in srgb, var(--kin) 22%, transparent); }
.amt-other.on { border-color: var(--kin); background: var(--kin-soft); }
.does { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 64px; padding: 12px 14px; border-radius: var(--r-m); background: var(--sun-soft); font-size: 15.5px; line-height: 1.45; color: var(--ink-2); }
.does::before { content: ""; width: 44px; height: 30px; background: radial-gradient(circle at 15px 15px, var(--kin) 14px, transparent 15px), radial-gradient(circle at 29px 15px, var(--sun) 14px, transparent 15px); }
.does b { color: var(--ink); }
html:not(.calm) .does.swap { animation: kd-swap 320ms var(--ease); }
@keyframes kd-swap { from { opacity: 0.25; transform: translateY(4px); } }
.give .field select { width: 100%; }
.give-out { display: grid; gap: 6px; font-size: 14.5px; color: var(--ink-2); }
.give-out p { display: flex; gap: 9px; }
.give-out p::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 0.5em; border-radius: 50%; background: var(--kin); }
.give-out p.no::before { background: transparent; box-shadow: inset 0 0 0 2px var(--muted); }
.give-go { width: 100%; min-height: 56px; font-size: 17px; }
.give-fine { font-size: 13.5px; color: var(--muted); }
.give-done { display: grid; gap: 6px; padding: 14px 16px; border-radius: var(--r-m); background: var(--kin-soft); color: var(--ink-2); font-size: 15px; }
.give-done b { color: var(--kin); font: 700 18px/1.3 var(--display); }
@media (max-width: 420px) { .amounts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- the receipt (live) ---------- */
.receipt { position: relative; display: grid; gap: 12px; padding: 22px 22px 26px; border-radius: 6px; background: var(--card); box-shadow: var(--shadow-card), 0 0 0 1px var(--line); font-size: 14.5px; min-width: 0; }
/* a torn edge along the bottom */
.receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 8px; background: radial-gradient(circle at 6px 0, var(--card) 5.5px, transparent 6px) 0 0 / 12px 8px repeat-x; filter: drop-shadow(0 1px 0 var(--line)); }
.receipt .r-org { display: grid; gap: 2px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.receipt .r-org b { font: 700 18px/1.25 var(--display); }
.receipt .r-org span { font: 500 12.5px/1.4 var(--mono); color: var(--muted); }
.receipt .r-kind { font: 700 13px/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--kin); }
.receipt .r-kind.no { color: var(--sun-ink); }
.receipt dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px 16px; }
.receipt dt { color: var(--muted); }
.receipt dd { text-align: right; font: 500 14px/1.45 var(--mono); overflow-wrap: anywhere; }
.receipt dd.amt-big { font: 700 22px/1.2 var(--display); }
.receipt .r-note { padding-top: 12px; border-top: 1px dashed var(--line); font-size: 13.5px; color: var(--ink-2); }
html:not(.calm) .receipt.swap { animation: kd-swap 320ms var(--ease); }

/* ---------- the impact ledger (signature) ---------- */
.ledger { display: grid; gap: 18px; padding: clamp(18px, 2.6vw, 28px); border-radius: var(--r-l); background: var(--card); box-shadow: var(--shadow-card), 0 0 0 1px var(--line); min-width: 0; }
.ledger-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.ledger-head b { font: 700 21px/1.25 var(--display); }
.ledger h3 { font: 600 12.5px/1.2 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.lbar { display: flex; height: 54px; border-radius: 12px; overflow: hidden; gap: 3px; background: var(--card); }
.lbar span { position: relative; display: block; min-width: 4px; flex: 1 1 0; transition: flex-grow 700ms var(--ease); }
.lbar span:nth-child(1) { background: var(--kin); }
.lbar span:nth-child(2) { background: var(--sun); }
.lbar span:nth-child(3) { background: color-mix(in srgb, var(--ink) 55%, var(--card)); }
.lbar span:nth-child(4) { background: color-mix(in srgb, var(--kin) 45%, var(--card)); }
.lbar span:nth-child(5) { background: color-mix(in srgb, var(--sun) 50%, var(--card)); }
.lbar span:nth-child(n+6) { background: var(--line); }
html.calm .lbar span { transition: none; }
.cents { font: 600 clamp(19px, 1.8vw, 24px)/1.35 var(--display); text-wrap: balance; }
.cents em { font-style: italic; color: var(--kin); }
.ltable { width: 100%; border-collapse: collapse; font-size: 15px; }
.ltable th, .ltable td { padding: 10px 8px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.ltable thead th { font: 500 12px/1.2 var(--mono); color: var(--muted); }
.ltable th.n { text-align: right; }
.ltable td.n { text-align: right; white-space: nowrap; font: 500 14.5px/1.45 var(--mono); }
.ltable td i { display: inline-block; width: 12px; height: 12px; margin-right: 9px; border-radius: 3px; vertical-align: -1px; }
.ltable td small { display: block; color: var(--muted); font-size: 13.5px; margin-left: 21px; }
.ltable tfoot td { font-weight: 700; border-bottom: 0; }
.ledger .src { font-size: 13.5px; color: var(--muted); }
.ledger .src a { color: var(--kin); font-weight: 700; }
.ledger-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 860px) { .ledger-split { grid-template-columns: minmax(0, 1fr); } }

/* ---------- the gift manager (signature) ---------- */
.mygift { display: grid; gap: 16px; padding: clamp(18px, 2.6vw, 28px); border-radius: var(--r-l); background: var(--card); box-shadow: var(--shadow-card), 0 0 0 1px var(--line); min-width: 0; }
.mg-top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.mg-top small { display: block; font: 500 12.5px/1.2 var(--mono); color: var(--muted); }
.mg-top b { font: 700 44px/1.05 var(--display); letter-spacing: -0.02em; }
.mg-top b small { display: inline; margin-left: 4px; font: 600 15px/1 var(--body); }
.state { display: inline-flex; align-items: center; gap: 7px; margin-left: 10px; padding: 4px 10px; border-radius: var(--r-pill); font: 700 12.5px/1.2 var(--body); vertical-align: 0.6em; }
.state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.state.on { background: var(--kin-soft); color: var(--kin); }
.state.paused { background: var(--sun-soft); color: var(--sun-ink); }
.state.stopped { background: var(--well); color: var(--muted); }
.mg-next { font: 500 14.5px/1.45 var(--mono); color: var(--ink-2); }
.mygift .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.mygift .acts button[aria-expanded="true"] { border-color: var(--kin); color: var(--kin); background: var(--kin-soft); }
.mygift .acts .stop { color: var(--alert); }
.mg-panel { display: grid; gap: 12px; padding: 16px; border-radius: var(--r-m); background: var(--well); }
html:not(.calm) .mg-panel { animation: kd-swap 300ms var(--ease); }
.mg-panel h3 { font: 700 17px/1.3 var(--display); }
.mg-panel p { font-size: 15px; color: var(--ink-2); }
.mg-panel .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mg-panel .amt { min-height: 46px; padding: 0 16px; font-size: 18px; }
.mg-panel .amt-other { grid-column: auto; width: 150px; }
.mg-panel .amt-other input { height: 42px; }
.mg-panel.stop { background: color-mix(in srgb, var(--alert) 8%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--alert) 30%, var(--line)); }
.mg-msg { min-height: 1.5em; font: 600 15px/1.45 var(--body); color: var(--kin); }
.mg-msg:empty { min-height: 0; }
.receipts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.receipts li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.receipts li span { font: 500 13.5px/1.5 var(--mono); color: var(--muted); }
.receipts a { color: var(--kin); font-weight: 700; }

/* ---------- the volunteer roster (signature) ---------- */
.roster { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(18px, 3vw, 32px); align-items: start; min-width: 0; }
.roster > .seg { grid-column: 1 / -1; justify-self: start; }
.shifts { display: grid; gap: 10px; }
.shift { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: center; padding: 16px 18px; border-radius: var(--r-m); background: var(--card); box-shadow: 0 0 0 1px var(--line); transition: box-shadow var(--d-fast); }
.shift.in { box-shadow: 0 0 0 2px var(--kin); }
.shift time { font: 500 13px/1.3 var(--mono); color: var(--kin); }
.shift b { grid-column: 1; font: 700 17.5px/1.3 var(--display); }
.shift p { grid-column: 1; font-size: 14.5px; color: var(--ink-2); }
.shift .need { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: var(--r-pill); background: var(--sun-soft); color: var(--sun-ink); font: 700 12px/1.6 var(--body); }
.shift .side { grid-column: 2; grid-row: 1 / span 3; display: grid; gap: 8px; justify-items: end; }
.spots { display: grid; gap: 5px; justify-items: end; font: 500 12.5px/1.2 var(--mono); color: var(--muted); }
.spots i { display: block; width: 90px; height: 6px; border-radius: 3px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.spots i::before { content: ""; display: block; height: 100%; width: var(--fill, 0%); background: var(--sun); transition: width 400ms var(--ease); }
.spots.full { color: var(--alert); }
.shift [data-join][aria-pressed="true"] { background: var(--kin); border-color: var(--kin); color: var(--on-kin); }
.shift [data-join]:disabled { opacity: 0.5; cursor: not-allowed; }
.shift[hidden] { display: none; }
.mine { position: sticky; top: 96px; display: grid; gap: 10px; padding: 18px; border-radius: var(--r-m); background: var(--well); box-shadow: inset 0 0 0 1px var(--line); }
.mine h3 { font: 700 18px/1.3 var(--display); }
.mine ol { display: grid; gap: 8px; }
.mine li { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--r-s); background: var(--card); font-size: 14.5px; }
.mine li span { font: 500 12.5px/1.3 var(--mono); color: var(--kin); }
.mine .clash { padding: 10px 12px; border-radius: var(--r-s); background: color-mix(in srgb, var(--alert) 9%, var(--card)); color: var(--alert); font: 700 14px/1.45 var(--body); }
.mine .needs { font-size: 14px; color: var(--ink-2); }
@media (max-width: 900px) { .roster { grid-template-columns: minmax(0, 1fr); } .mine { position: static; } }
@media (max-width: 520px) { .shift { grid-template-columns: minmax(0, 1fr); } .shift .side { grid-column: 1; grid-row: auto; justify-items: start; grid-template-columns: auto auto; align-items: center; } .spots { justify-items: start; } }

/* ---------- cards, facts, notices ---------- */
.card { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: var(--r-m); background: var(--card); box-shadow: var(--shadow-card), 0 0 0 1px var(--line); min-width: 0; }
.card .k { font: 500 12.5px/1.2 var(--mono); color: var(--kin); }
.card h3 { font: 700 20px/1.25 var(--display); }
.card p { color: var(--ink-2); font-size: 15.5px; }
.facts { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 0; border-block: 1px solid var(--line); }
.facts > div { display: grid; gap: 6px; align-content: start; padding: 20px 18px 20px 0; min-width: 0; overflow-wrap: break-word; }
.facts > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.facts .k { font: 500 12.5px/1.2 var(--mono); color: var(--kin); }
.facts b { font: 700 19px/1.25 var(--display); }
.facts p { font-size: 15.5px; color: var(--ink-2); }
.facts.stack { grid-template-columns: minmax(0, 1fr); }
.facts.stack > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .facts:not(.stack) { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts > div:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 480px) { .facts { grid-template-columns: minmax(0, 1fr); } .facts > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }
.notice { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; padding: 16px 18px; border-radius: var(--r-m); background: var(--kin-soft); font-size: 15.5px; color: var(--ink-2); overflow-wrap: break-word; }
.notice svg { width: 20px; height: 20px; color: var(--kin); margin-top: 2px; }
.notice b { color: var(--ink); }
.notice.sun { background: var(--sun-soft); }
.notice.sun svg { color: var(--sun-ink); }
.side-box { display: grid; gap: 10px; padding: 16px 18px; border-radius: var(--r-m); background: var(--card); box-shadow: 0 0 0 1px var(--line); overflow-wrap: break-word; }
.side-box h3 { font: 500 12.5px/1.2 var(--mono); color: var(--muted); }
.side-box ul { display: grid; gap: 8px; font-size: 15px; }
.sidebar { display: grid; gap: 16px; align-content: start; }
.regbox { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-items: center; padding: 14px 16px; border-radius: var(--r-m); border: 1.5px dashed color-mix(in srgb, var(--kin) 45%, var(--line)); font-size: 14.5px; color: var(--ink-2); }
.regbox::before { content: ""; grid-row: 1 / span 2; width: 34px; height: 34px; border-radius: 50%; background: var(--kin-soft); box-shadow: inset 0 0 0 2px var(--kin); }
.regbox b { color: var(--ink); }
.regbox a { color: var(--kin); font-weight: 700; }
.split-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); grid-template-areas: "copy give" "receipt give"; gap: 28px clamp(28px, 5vw, 64px); align-items: start; }
.split-hero > .hero-copy { grid-area: copy; } .split-hero > .hero-give { grid-area: give; } .split-hero > .hero-receipt { grid-area: receipt; min-width: 0; }
@media (max-width: 1000px) { .split-hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "give" "receipt"; } }
.give-pair { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(18px, 3vw, 32px); align-items: start; }
@media (max-width: 900px) { .give-pair { grid-template-columns: minmax(0, 1fr); } }

/* ---------- closing ---------- */
.close { padding-block: clamp(56px, 8vw, 96px); }
.close-card { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 28px; align-items: end; padding: clamp(28px, 5vw, 60px); border-radius: var(--r-l); background: var(--close-bg, #0d3b38); color: #f2ece3; overflow: hidden; isolation: isolate; }
/* two circles drifting together in the corner */
.close-card::before, .close-card::after { content: ""; position: absolute; z-index: -1; top: -40px; width: 220px; height: 220px; border-radius: 50%; }
.close-card::before { right: 120px; background: color-mix(in srgb, var(--close-em, #f5c25b) 35%, transparent); }
.close-card::after { right: -10px; background: rgba(255, 255, 255, 0.12); }
html:not(.calm) .close-card::before { animation: kd-lean 7s var(--ease) infinite alternate; }
html:not(.calm) .close-card::after { animation: kd-lean 7s var(--ease) infinite alternate-reverse; }
@keyframes kd-lean { to { transform: translateX(40px); } }
.close-card .h2 { color: #fff; }
.close-card .h2 em { color: var(--close-em, #f5c25b); }
.close-card p { color: #d6e4e1; max-width: 52ch; margin-top: 14px; }
.close-card .tag { color: #b8ccc8; }
.close-card .tag b { color: var(--close-em, #f5c25b); }
.close-card .tag::before { background: var(--close-em, #f5c25b); box-shadow: 5px 0 0 -1px rgba(255, 255, 255, 0.7); }
.close-card .btn-kin { background: var(--close-em, #f5c25b); color: #1b1712; }
.close-card .btn-kin:hover { filter: brightness(1.08); }
.close-card :focus-visible { outline-color: #fff; }
@media (max-width: 860px) { .close-card { grid-template-columns: minmax(0, 1fr); } .close-card::before, .close-card::after { width: 140px; height: 140px; } }
/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 880px; }
.faq details { border-radius: var(--r-m); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 18px 22px; font: 600 18px/1.35 var(--display); border-radius: var(--r-m); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); background: linear-gradient(var(--kin), var(--kin)) center / 10px 1.6px no-repeat, linear-gradient(var(--kin), var(--kin)) center / 1.6px 10px no-repeat; transition: transform var(--d) var(--ease); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details > div { padding: 0 22px 20px; color: var(--ink-2); max-width: 72ch; }

/* ---------- footer ---------- */
.foot { padding-block: 56px 30px; border-top: 1px solid var(--line); background: var(--well); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot h4 { font: 500 var(--fs-label)/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.foot ul { display: grid; gap: 9px; }
.foot a { text-decoration: none; color: var(--ink-2); }
.foot a:hover { color: var(--kin); }
.licence { margin-top: 28px; padding: 14px 16px; border-radius: var(--r-s); background: var(--card); box-shadow: 0 0 0 1px var(--line); font: 400 12px/1.7 var(--mono); color: var(--muted); }
.licence b { color: var(--ink); font-weight: 500; }
.foot-base { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; align-items: center; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.foot-switches { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- switch ---------- */
.switch { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--card); cursor: pointer; font: 500 14.5px/1 var(--body); color: var(--ink-2); }
.switch .sw { position: relative; flex: none; width: 38px; height: 22px; border-radius: var(--r-pill); background: var(--well); box-shadow: inset 0 0 0 1px var(--line); transition: background var(--d-fast); }
.switch .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--card); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); transition: transform var(--d) var(--ease); }
.switch[aria-checked="true"] .sw { background: var(--kin); box-shadow: none; }
.switch[aria-checked="true"] .sw::after { transform: translateX(16px); background: #fff; }

/* =====================================================================
   Multi-page kit
   ===================================================================== */
.page-head { position: relative; padding-block: clamp(30px, 4.5vw, 64px) clamp(34px, 4.5vw, 60px); border-bottom: 1px solid var(--line); overflow: clip; }

.page-head .wrap { position: relative; }
.page-head .h1 { font-size: clamp(38px, 5vw, 68px); margin-top: 16px; }
.page-head .lead { margin-top: 16px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font: 500 11.5px/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--kin); }
.crumbs span[aria-hidden] { opacity: 0.6; }

.field { display: grid; gap: 7px; align-content: start; min-width: 0; }
.field > span, .field-set > legend { font: 600 15.5px/1.25 var(--body); color: var(--ink); }
.field small, .field-set > legend small { color: var(--muted); font: 400 14px/1.35 var(--body); }
.field input, .field textarea, .field select { width: 100%; min-height: 50px; padding: 12px 15px; border-radius: var(--r-s); border: 1px solid color-mix(in srgb, var(--ink) 25%, var(--line)); background: var(--card); color: var(--ink); transition: box-shadow var(--d-fast), border-color var(--d-fast); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 30%, transparent); }
.field [aria-invalid="true"] { border-color: var(--alert); box-shadow: 0 0 0 3px color-mix(in srgb, var(--alert) 20%, transparent); }
.field select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(-45deg, transparent 50%, var(--ink) 50%); background-size: 6px 6px; background-position: right 22px center, right 16px center; background-repeat: no-repeat; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field-wide { grid-column: 1 / -1; }
@media (max-width: 620px) { .fields { grid-template-columns: 1fr; } }
fieldset.field-set { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 10px; }
fieldset.field-set > legend { padding: 0; margin-bottom: 10px; }
fieldset.field-set > .seg { justify-self: start; }
.form-card { display: grid; gap: 22px; padding: clamp(22px, 3.5vw, 38px); border-radius: var(--r-l); background: var(--card); box-shadow: var(--shadow-card), 0 0 0 1px var(--line); }
.form-done { padding: 16px 18px; border-radius: var(--r-m); background: var(--kin-soft); color: var(--ink); font-weight: 600; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--ink-2); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--kin); }

.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.choice { position: relative; display: block; cursor: pointer; min-width: 0; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice > span { display: grid; gap: 3px; height: 100%; padding: 15px 17px; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--card); transition: border-color var(--d-fast), background var(--d-fast), box-shadow var(--d-fast); }
.choice > span b { font: 600 17px/1.2 var(--display); }
.choice > span small { color: var(--muted); font-size: 14.5px; }
.choice:hover > span { border-color: color-mix(in srgb, var(--ink) 40%, var(--line)); }
.choice input:checked + span { border-color: var(--kin); box-shadow: 0 0 0 1px var(--kin); background: color-mix(in srgb, var(--kin-soft) 45%, var(--card)); }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--card); }
.seg button, .seg label { position: relative; padding: 9px 15px; border: 0; border-radius: var(--r-pill); background: transparent; cursor: pointer; font: 500 14.5px/1 var(--body); color: var(--ink-2); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg button:hover, .seg label:hover { background: var(--well); }
.seg button[aria-pressed="true"], .seg label:has(input:checked) { background: var(--ink); color: var(--paper); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }

input.range { --p: 50%; appearance: none; -webkit-appearance: none; width: 100%; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--kin) 0 var(--p), var(--line) var(--p) 100%); cursor: pointer; }
input.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--card); border: 2px solid var(--kin); box-shadow: var(--shadow-card); }
input.range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--card); border: 2px solid var(--kin); }

.table { overflow-x: auto; border-radius: var(--r-m); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.table table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table caption { caption-side: bottom; text-align: left; padding: 12px 18px; font: 400 12px/1.5 var(--mono); color: var(--muted); }
.table th, .table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child > * { border-bottom: 0; }
.table thead th { font: 500 10.5px/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: var(--well); border-bottom: 1px solid var(--line); }
.table tbody th { font: 600 16.5px/1.35 var(--display); }
.table td { color: var(--ink-2); }
.table .r { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 680px) {
  .table.stack table, .table.stack tbody, .table.stack tr, .table.stack td, .table.stack th { display: block; }
  .table.stack table { display: flex; flex-direction: column; }
  .table.stack caption { display: block; order: 1; }
  .table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table.stack tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .table.stack td, .table.stack th { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 12px; border: 0; padding: 4px 0; text-align: left !important; }
  .table.stack th[scope="row"] { display: block; }
  .table.stack td::before { content: attr(data-label); font: 500 10.5px/1.5 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
}

.field input.range { min-height: 0; height: 6px; padding: 0; border: 0; margin: 14px 0 8px; box-shadow: none; background: linear-gradient(90deg, var(--kin) 0 var(--p), var(--line) var(--p) 100%); }


/* ---------- reveal on scroll ---------- */
.js [data-enter] { opacity: 0; transform: translateY(14px); transition: opacity 650ms var(--ease), transform 650ms var(--ease); }
.js [data-enter].entered { opacity: 1; transform: none; }
html.calm [data-enter] { opacity: 1 !important; transform: none !important; transition: none !important; }
.form-card, .form-card > *, .form-card .fields > * { min-width: 0; }
.field input, .field textarea, .field select { min-width: 0; max-width: 100%; }
.page-head::before { content: ""; position: absolute; right: -6%; top: -40%; width: 46%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--sun) 26%, transparent), transparent); pointer-events: none; }
.page-head::after { content: ""; position: absolute; right: 12%; bottom: 18%; width: 64px; height: 44px; background: radial-gradient(circle at 22px 22px, var(--kin) 21px, transparent 22px), radial-gradient(circle at 42px 22px, var(--sun) 21px, transparent 22px); opacity: 0.5; pointer-events: none; }
@media (max-width: 700px) { .page-head::after { display: none; } }

@media print { .nav, .foot-switches, .menu-btn, .site-menu, .close, .give-go, .mygift .acts { display: none !important; } body { background: #fff; } }
