/* Country Heart Critter Care — site styles */
:root {
  --red: #B23A2B; --red-d: #8C2A1F; --red-soft: #FBE6E1;
  --gold: #F2B33D; --gold-d: #C98A12; --gold-soft: #FFF0CC;
  --green: #3E7C4F; --green-d: #2C5C39; --green-soft: #E3F0E3;
  --sky: #2F6F95; --sky-soft: #E2EFF6;
  --plum: #6B3E75;
  --cream: #FFF8EE; --paper: #FFFFFF; --sand: #F6EADB;
  --ink: #2A211C; --ink-2: #57483E; --ink-3: #7A6A5F;
  --line: #E8D8C4;
  --radius: 18px; --radius-s: 12px;
  --shadow: 0 1px 2px rgba(42,33,28,.06), 0 8px 28px rgba(42,33,28,.08);
  --shadow-l: 0 24px 60px rgba(42,33,28,.18);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --focus: 0 0 0 3px #fff, 0 0 0 6px #1D4ED8;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.big-text { font-size: 118%; }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--cream); }
img, video, iframe { max-width: 100%; display: block; }
a { color: var(--red-d); text-underline-offset: 3px; }
a:hover { color: var(--red); }
html.links-u a { text-decoration: underline !important; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 800; }
.skip:focus { top: 12px; color: #fff; }

/* accessibility bar */
.a11y-bar { background: var(--ink); color: #FFF4E2; font-size: .875rem; }
.a11y-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 6px 0; }
.a11y-label { opacity: .9; }
.a11y-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.a11y-btns button { font: inherit; font-weight: 700; color: #FFF4E2; background: transparent; border: 1.5px solid rgba(255,244,226,.45); border-radius: 999px; padding: 3px 12px; cursor: pointer; min-height: 32px; }
.a11y-btns button[aria-pressed="true"] { background: var(--gold); color: var(--ink); border-color: var(--gold); }

/* header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,248,238,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-logo { width: 52px; height: 52px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-weight: 800; font-size: 1.2rem; }
.brand-sub { font-size: .8rem; color: var(--ink-3); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 700; padding: 8px 12px; border-radius: 999px; }
.site-nav a:hover { background: var(--sand); color: var(--ink); }
.site-nav a.btn-give { margin-left: 6px; }
.nav-toggle { display: none; background: none; border: 0; width: 46px; height: 46px; border-radius: 12px; cursor: pointer; }
.burger, .burger::before, .burger::after { display: block; width: 24px; height: 3px; background: var(--ink); border-radius: 2px; position: relative; margin: auto; transition: transform .2s; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -8px; } .burger::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .burger { background: transparent; }
.nav-toggle[aria-expanded="true"] .burger::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger::after { transform: translateY(-8px) rotate(-45deg); }

/* buttons */
.btn { --b: var(--red); display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 800; text-decoration: none; border-radius: 999px; padding: 12px 22px; min-height: 48px; border: 2px solid transparent; cursor: pointer; transition: transform .12s, background .15s, box-shadow .15s; line-height: 1.2; text-align: center; }
.btn:active { transform: translateY(1px); }
.btn-primary, .btn-give { background: var(--red); color: #fff !important; box-shadow: 0 6px 18px rgba(178,58,43,.28); }
.btn-primary:hover, .btn-give:hover { background: var(--red-d); color: #fff; }
.btn-secondary { background: var(--paper); color: var(--red-d); border-color: var(--red); }
.btn-secondary:hover { background: var(--red-soft); }
.btn-ghost { background: rgba(255,255,255,.7); color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #FFC85C; color: var(--ink); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-d); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; min-height: 40px; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* hero */
.hero { position: relative; overflow: hidden; min-height: min(86vh, 760px); display: flex; align-items: flex-start; }
.hero-art { position: absolute; inset: 0; z-index: 0; }
.hero-art svg { width: 100%; height: 100%; }
.sun-heart { transform-box: fill-box; transform-origin: center; animation: beat 4.5s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.hero-inner { position: relative; z-index: 1; padding: clamp(40px, 7vw, 90px) 0 160px; }
.hero-inner > * { max-width: 680px; }
.hero h1 em { font-style: italic; color: var(--red-d); }
.eyebrow { font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; color: var(--green-d); margin-bottom: .6em; }
.eyebrow.on-dark { color: var(--gold); }
.lede { font-family: var(--serif); font-size: clamp(1.25rem, 2.4vw, 1.6rem); color: var(--ink); font-weight: 600; }
.hero-copy { font-size: 1.15rem; color: var(--ink-2); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 30px; }
.hero-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 760px !important; }
.hero-stats li { background: rgba(255,255,255,.82); border: 1px solid rgba(232,216,196,.9); border-radius: var(--radius-s); padding: 12px 14px; backdrop-filter: blur(4px); }
.hero-stats strong { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--red-d); }
.hero-stats span { font-size: .9rem; color: var(--ink-2); }

/* sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 30px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head > div { max-width: 720px; }
.sub-title { margin-top: 2.2em; }
.sub-lede { color: var(--ink-2); font-size: 1.08rem; }
.sub-lede.on-dark { color: #F3E6D6; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(20px, 3vw, 30px); }
.fineprint { font-size: .92rem; color: var(--ink-3); }
.optional { font-weight: 400; color: var(--ink-3); font-size: .9em; }
.req { color: var(--red); }

/* mission */
.mission { background: var(--paper); }
.mission-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 34px; }
.mission .big { font-family: var(--serif); font-size: 1.35rem; line-height: 1.5; color: var(--ink); }
.evolution { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; counter-reset: evo; position: relative; }
.evolution li { position: relative; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px 18px; }
.evolution li:nth-child(1) { border-top: 6px solid var(--sky); }
.evolution li:nth-child(2) { border-top: 6px solid var(--green); }
.evolution li:nth-child(3) { border-top: 6px solid var(--gold); }
.evolution li:nth-child(4) { border-top: 6px solid var(--red); }
.evolution li:nth-child(5) { border-top: 6px solid var(--plum); }
.evo-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; margin-bottom: 8px; }
.evolution p { font-size: .97rem; color: var(--ink-2); margin: 0; }

/* weekly */
.weekly { background: linear-gradient(135deg, #2C5C39 0%, #3E7C4F 55%, #5E9E52 100%); color: #fff; }
.weekly h2 { color: #fff; }
.weekly-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.weekly-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: rgba(255,255,255,.12); box-shadow: var(--shadow-l); }
.weekly-media img { width: 100%; height: 100%; object-fit: cover; }
.weekly-body p { color: #EAF4EA; font-size: 1.1rem; }
.weekly .progress { background: rgba(255,255,255,.25); }
.weekly .progress-label { color: #fff; }

/* critters */
.critters { background: var(--cream); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip { font: inherit; font-weight: 700; border: 2px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 7px 16px; cursor: pointer; min-height: 42px; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.critter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.critter-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.critter-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-l); }
.critter-photo { position: relative; aspect-ratio: 4/3; background: var(--sand); overflow: hidden; }
.critter-photo img { width: 100%; height: 100%; object-fit: cover; }
.critter-photo .ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 4rem; }
.badge { position: absolute; top: 10px; left: 10px; background: var(--paper); color: var(--ink); font-size: .78rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; box-shadow: var(--shadow); }
.badge.adopt { background: var(--green); color: #fff; }
.badge.adopted { background: var(--plum); color: #fff; }
.badge.week { left: auto; right: 10px; background: var(--gold); }
.critter-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.critter-body h3 { margin: 0; font-size: 1.3rem; }
.critter-meta { font-size: .9rem; color: var(--ink-3); margin: 0; }
.critter-story { color: var(--ink-2); font-size: .97rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.critter-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.critter-actions .btn { flex: 1; }
.progress { height: 10px; background: var(--sand); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--red)); border-radius: inherit; }
.progress-label { font-size: .88rem; color: var(--ink-2); margin-top: 4px; font-weight: 700; }
.empty { grid-column: 1 / -1; text-align: center; background: var(--paper); border: 2px dashed var(--line); border-radius: var(--radius); padding: 40px 20px; color: var(--ink-2); }
.empty .em-icon { font-size: 2.6rem; display: block; margin-bottom: 6px; }

/* give */
.give { background: linear-gradient(180deg, var(--gold-soft), var(--cream)); }
.give-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: start; }
.ticks { list-style: none; padding: 0; margin: 0 0 18px; }
.ticks li { padding-left: 32px; position: relative; margin: 8px 0; font-weight: 600; }
.ticks li::before { content: "♥"; position: absolute; left: 4px; color: var(--red); }
.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.amt { position: relative; }
.amt input { position: absolute; opacity: 0; inset: 0; }
.amt span { display: grid; place-items: center; min-height: 52px; border: 2px solid var(--line); border-radius: var(--radius-s); font-weight: 800; font-size: 1.1rem; background: var(--paper); cursor: pointer; }
.amt input:checked + span { background: var(--red); color: #fff; border-color: var(--red); }
.amt input:focus-visible + span { box-shadow: var(--focus); }
.methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.method { position: relative; }
.method input { position: absolute; opacity: 0; inset: 0; }
.method .m-tile { display: flex; align-items: center; gap: 10px; height: 100%; min-height: 60px; padding: 8px 12px; border: 2px solid var(--line); border-radius: var(--radius-s); background: var(--paper); cursor: pointer; font-weight: 800; line-height: 1.2; }
.method .m-text { display: block; min-width: 0; }
.method .m-text small { display: block; font-weight: 600; color: var(--ink-3); font-size: .78rem; line-height: 1.25; margin-top: 2px; }
.method i { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-style: normal; font-weight: 800; font-size: .78rem; }
.method input:checked + .m-tile { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--gold-soft); }
.method input:focus-visible + .m-tile { box-shadow: var(--focus); }

/* forms */
.form fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.form legend { font-weight: 800; font-family: var(--serif); font-size: 1.1rem; margin-bottom: 8px; padding: 0; }
.field .lbl { display: block; }
.field { display: flex; flex-direction: column; gap: 5px; font-weight: 700; font-size: .95rem; margin-bottom: 12px; }
.field input, .field select, .field textarea { font: inherit; font-weight: 400; color: var(--ink); background: #fff; border: 1.5px solid #CDBBA6; border-radius: 10px; padding: 10px 12px; min-height: 46px; width: 100%; }
.field textarea { resize: vertical; }
.field input[type=file] { padding: 8px; background: var(--cream); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #1D4ED8; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; margin: 8px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--red); flex: 0 0 auto; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
.skills { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.skills legend { grid-column: 1 / -1; }
.form-status { margin: 10px 0 0; font-weight: 700; min-height: 1.2em; }
.form-status.ok { color: var(--green-d); }
.form-status.err { color: var(--red-d); }
.form h3 { margin-bottom: .3em; }

/* tales */
.tales { background: var(--paper); }
.tale-wall { columns: 3 300px; column-gap: 20px; }
.tale { break-inside: avoid; margin: 0 0 20px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tale-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }
.tale-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.tale-photos img:only-child { grid-column: 1 / -1; aspect-ratio: 4/3; }
.tale-body { padding: 16px 18px 18px; }
.tale-body h3 { font-size: 1.2rem; margin-bottom: .3em; }
.tale-story { white-space: pre-line; color: var(--ink-2); }
.tale-by { font-weight: 800; color: var(--green-d); font-size: .92rem; margin: 0; }
.tale-play { margin-top: 8px; }
.more-btn { background: none; border: 0; color: var(--red-d); font: inherit; font-weight: 800; padding: 0; cursor: pointer; text-decoration: underline; }

/* jukebox */
.jukebox { background: radial-gradient(900px 500px at 10% 0%, #4a2c25 0%, transparent 60%), #2A211C; color: #FFF4E2; }
.jukebox h2 { color: #fff; }
.jukebox-shell { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
.player { background: #1D1713; border: 2px solid #4a3c33; border-radius: var(--radius); min-height: 320px; overflow: hidden; display: flex; flex-direction: column; }
.player-empty { margin: auto; text-align: center; padding: 30px; color: #E6D6C2; }
.player-empty svg { width: 120px; margin: 0 auto 14px; }
.player .now { padding: 14px 18px; border-top: 1px solid #4a3c33; }
.player .now strong { display: block; font-family: var(--serif); font-size: 1.2rem; color: #fff; }
.player .now span { color: #D9C6B0; font-size: .95rem; }
.player .frame { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; }
.player .frame.audio { aspect-ratio: auto; padding: 28px 18px; background: #1D1713; }
.player .frame iframe, .player .frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player .frame.audio audio { width: 100%; }
.player .frame.spotify { aspect-ratio: auto; height: 352px; }
.player .frame.soundcloud { aspect-ratio: auto; height: 166px; }
.player .frame.tiktok { aspect-ratio: 9/16; max-height: 640px; }
.player .ext { padding: 26px 18px; }
.tracklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 540px; overflow: auto; }
.track-btn { width: 100%; text-align: left; font: inherit; color: #FFF4E2; background: #3A2E27; border: 2px solid transparent; border-radius: var(--radius-s); padding: 12px 14px; cursor: pointer; display: flex; gap: 12px; align-items: center; min-height: 60px; }
.track-btn:hover { background: #4a3c33; }
.track-btn[aria-current="true"] { border-color: var(--gold); background: #4a3c33; }
.track-btn .t-icon { width: 38px; height: 38px; border-radius: 50%; background: var(--red); display: grid; place-items: center; flex: 0 0 auto; color: #fff; }
.track-btn strong { display: block; }
.track-btn small { color: #D9C6B0; }
.tracklist .empty { background: transparent; border-color: #4a3c33; color: #E6D6C2; }

/* join + grants + roots */
.join { background: var(--green-soft); }
.join-grid, .grants-grid, .roots-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.help-list { padding-left: 1.2em; }
.help-list li { margin: 8px 0; }
.grants { background: var(--sky-soft); }
.focus { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 18px; }
.focus li { background: var(--paper); border: 1px solid #C9DDEA; border-radius: var(--radius-s); padding: 12px 14px; font-weight: 700; }
.focus li span { margin-right: 6px; }
.status-501 { background: var(--paper); border-left: 6px solid var(--gold); border-radius: 10px; padding: 12px 16px; font-weight: 600; }
.roots { background: var(--paper); }
.roots-list { padding-left: 1.2em; }
.roots-list li { margin: 6px 0; }
.contact-card .contact-line { display: inline-flex; gap: 10px; font-weight: 800; font-size: 1.08rem; text-decoration: none; color: var(--ink); }
.contact-card .contact-line:hover { color: var(--red-d); text-decoration: underline; }

/* footer */
.site-footer { background: var(--ink); color: #E9DCCB; padding: 56px 0 24px; }
.site-footer a { color: #FFD98A; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 30px; }
.footer-logo { width: 56px; height: 56px; object-fit: contain; margin-bottom: 10px; background: #FFF4E2; border-radius: 50%; padding: 2px; }
.footer-name { font-family: var(--serif); font-size: 1.3rem; color: #fff; font-weight: 800; margin-bottom: .2em; }
.footer-h { font-family: var(--sans); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: #FFD98A; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 6px 0; }
.site-footer .fineprint { color: #CDBDA8; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid #4a3c33; margin-top: 30px; padding-top: 18px; font-size: .9rem; }
.footer-base p { margin: 0; }

/* dialogs */
.dlg { border: 0; padding: 0; border-radius: 22px; width: min(640px, 100% - 24px); max-height: calc(100dvh - 24px); background: var(--paper); color: var(--ink); box-shadow: var(--shadow-l); }
.dlg-wide { width: min(980px, 100% - 24px); }
.dlg::backdrop { background: rgba(30,22,18,.6); backdrop-filter: blur(3px); }
.dlg-body { padding: clamp(20px, 4vw, 34px); position: relative; }
.dlg-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--sand); font-size: 1.7rem; line-height: 1; cursor: pointer; color: var(--ink); z-index: 2; }
.dlg-close:hover { background: var(--line); }
.dlg h2 { padding-right: 46px; font-size: clamp(1.5rem, 3vw, 2rem); }

/* critter page (wiki) */
.cp-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; }
.cp-gallery .main { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--sand); }
.cp-gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.cp-gallery .main .ph { display: grid; place-items: center; height: 100%; font-size: 6rem; }
.cp-thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.cp-thumbs button { padding: 0; border: 3px solid transparent; border-radius: 10px; overflow: hidden; width: 70px; height: 70px; cursor: pointer; background: none; }
.cp-thumbs button[aria-current="true"] { border-color: var(--red); }
.cp-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 16px; background: var(--cream); border-radius: var(--radius-s); padding: 14px 16px; }
.facts dt { font-weight: 800; color: var(--ink-3); }
.facts dd { margin: 0; }
.cp-section h3 { font-size: 1.1rem; margin: 1.2em 0 .3em; font-family: var(--sans); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--green-d); }
.cp-story { white-space: pre-line; }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

/* pay steps */
.pay-amount { font-family: var(--serif); font-size: 2.2rem; font-weight: 800; color: var(--red-d); margin: 0; }
.pay-box { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 16px; margin: 14px 0; }
.copy-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.copy-row:last-child { border-bottom: 0; }
.copy-row code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.05rem; font-weight: 700; background: #fff; padding: 4px 8px; border-radius: 6px; }
.pay-steps-list { padding-left: 1.3em; }
.pay-steps-list li { margin: 6px 0; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 700; z-index: 200; box-shadow: var(--shadow-l); max-width: calc(100% - 30px); }

/* high contrast */
html.hc body { background: #000; color: #fff; }
html.hc .site-header, html.hc .mission, html.hc .critters, html.hc .give, html.hc .tales, html.hc .join, html.hc .grants, html.hc .roots, html.hc .weekly, html.hc .jukebox, html.hc .card, html.hc .critter-card, html.hc .tale, html.hc .evolution li, html.hc .dlg, html.hc .hero-stats li, html.hc .focus li, html.hc .status-501, html.hc .facts, html.hc .pay-box, html.hc .empty, html.hc .player, html.hc .track-btn, html.hc .chip, html.hc .amt span, html.hc .method .m-tile { background: #000 !important; color: #fff !important; border-color: #fff !important; }
html.hc h1, html.hc h2, html.hc h3, html.hc h4, html.hc .brand-name, html.hc .lede, html.hc .mission .big, html.hc .site-nav a, html.hc .brand { color: #fff !important; }
html.hc p, html.hc li, html.hc span, html.hc small, html.hc dt, html.hc dd, html.hc label, html.hc legend { color: #fff !important; }
html.hc a { color: #FFE14D !important; }
html.hc .btn, html.hc .chip[aria-pressed="true"], html.hc .amt input:checked + span, html.hc .method input:checked + .m-tile { background: #FFE14D !important; color: #000 !important; border-color: #FFE14D !important; }
html.hc .btn *, html.hc .amt input:checked + span, html.hc .chip[aria-pressed="true"] { color: #000 !important; }
html.hc .hero-art { opacity: .25; }
html.hc .field input, html.hc .field select, html.hc .field textarea { background: #000; color: #fff; border-color: #fff; }
html.hc .eyebrow { color: #FFE14D !important; }

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

/* responsive */
@media (max-width: 1020px) {
  .evolution { grid-template-columns: repeat(2, 1fr); }
  .evolution li:last-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .nav-toggle { display: grid; place-items: center; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--cream); border-bottom: 1px solid var(--line); padding: 10px 20px 18px; box-shadow: var(--shadow); display: none; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 14px; }
  .site-nav a.btn-give { margin: 8px 0 0; }
  .mission-grid, .give-grid, .join-grid, .grants-grid, .roots-grid, .weekly-inner, .jukebox-shell, .cp-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-inner { padding-bottom: 200px; }
  .hero { min-height: 0; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .wrap { width: calc(100% - 28px); }
  .brand-sub { display: none; }
  .brand-name { font-size: 1.02rem; }
  .brand-logo { width: 44px; height: 44px; }
  .two, .three, .skills, .focus { grid-template-columns: 1fr; }
  .evolution { grid-template-columns: 1fr; }
  .amounts { grid-template-columns: repeat(3, 1fr); }
  .a11y-label { display: none; }
  .a11y-btns button { padding: 3px 10px; font-size: .8rem; }
  .dlg { width: 100%; max-height: 100dvh; border-radius: 18px 18px 0 0; margin-bottom: 0; }
}
@media print {
  .a11y-bar, .site-header, .hero-art, .jukebox, .site-footer, form { display: none !important; }
}
