@font-face { font-family: "Big Shoulders Display"; font-weight: 800; font-display: swap; src: url("/fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-weight: 900; font-display: swap; src: url("/fonts/big-shoulders-display-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 400; font-display: swap; src: url("/fonts/archivo-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 500; font-display: swap; src: url("/fonts/archivo-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 700; font-display: swap; src: url("/fonts/archivo-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --ground: #f3ebdd; --ground-raised: #fbf6ee; --sign-pink: #ffc0cb; --ink: #231f20; --ink-muted: #5a514c;
  --on-pink: #231f20; --heart-red: #cc1229; --oxblood: #632e38; --on-oxblood: #f3ebdd; --line: #d2c4b0; --focus: #232f80;
  --font-display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-text: Archivo, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --pad: clamp(16px, 4vw, 48px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 16px/24px var(--font-text); }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad); }
.label { font: 500 12px/16px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.small { font: 500 13px/18px var(--font-text); }
.muted { color: var(--ink-muted); }
.ask { color: var(--heart-red); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Top strip + pink header, same as the rest of the site */
.strip { background: var(--ink); color: var(--ground); }
.strip .wrap { height: 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; overflow: hidden; }
.strip span { white-space: nowrap; font-size: clamp(10px, 3.2vw, 12px); }
.hero { background: var(--sign-pink); color: var(--on-pink); }
.hero .wrap { padding-top: 24px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 24px; }
.top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.logo img { height: clamp(88px, 10.5vw, 132px); width: auto; }
.logo .fallback { font: 900 32px/0.9 var(--font-display); text-transform: uppercase; text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 clamp(12px, 2vw, 28px); }
.nav a { display: inline-flex; align-items: center; min-height: 44px; font: 800 clamp(16px, 2vw, 20px)/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.call { display: inline-flex; align-items: center; min-height: 44px; }
.right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 0; }
h1 { margin: 0; font: 900 clamp(64px, 12vw, 128px)/0.86 var(--font-display); text-transform: uppercase; }
.lead { font: 500 clamp(18px, 2.2vw, 20px)/1.4 var(--font-text); max-width: 46ch; margin: 0; }

/* How it works */
.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 0 32px; margin: 32px 0 8px; }
.how li { list-style: none; display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 21px; }
.how ol { margin: 0; padding: 0; display: contents; }
.how .n { font: 500 13px/21px var(--font-mono); color: var(--ink-muted); }
.how b { font-weight: 700; }

/* Category chips */
.chips { position: sticky; top: 0; z-index: 5; background: var(--ground); display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; margin: 24px 0 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 40px; padding: 0 14px; border: 0; background: transparent; box-shadow: inset 0 0 0 2px var(--ink); font: 800 16px/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--ground); }

/* Section bars + grid */
.section { margin: 24px 0 40px; scroll-margin-top: 72px; }
.bar { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 8px 16px; background: var(--ink); color: var(--ground); }
.bar h2 { margin: 0; font: 800 22px/1 var(--font-display); letter-spacing: .04em; text-transform: uppercase; }
.bar .label { white-space: nowrap; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 44vw), 1fr)); gap: 16px 12px; margin-top: 16px; }
.tile { display: flex; flex-direction: column; gap: 6px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.tile .ph { position: relative; aspect-ratio: 1 / 1; background: #d8d0c3; overflow: hidden; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.tile:hover img { transform: scale(1.03); }
.num { position: absolute; left: 6px; top: 6px; min-width: 30px; padding: 4px 6px; background: var(--ink); color: var(--sign-pink); font: 800 18px/1 var(--font-display); text-align: center; }
.count { position: absolute; right: 6px; bottom: 6px; padding: 4px 6px; background: var(--sign-pink); color: var(--ink); font: 500 11px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.tcap { font: 500 13px/17px var(--font-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Contribute cards */
.give { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr)); gap: 24px; margin: 16px 0 56px; }
.card { background: var(--ground-raised); box-shadow: inset 0 0 0 1px var(--line); padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 14px; }
.card.pink { background: var(--sign-pink); box-shadow: none; }
.card h3 { margin: 0; font: 900 clamp(36px, 5vw, 52px)/0.9 var(--font-display); text-transform: uppercase; }
.card p { margin: 0; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field > span { font: 500 12px/16px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.field input[type=text], .field input[type=tel], .field input[type=email], .field textarea, .field select {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 0; border-radius: 0; background: #fff; box-shadow: inset 0 0 0 2px var(--ink); font-size: 16px; }
.field textarea { min-height: 96px; resize: vertical; }
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 20px; }
.check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--oxblood); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border: 0; background: var(--oxblood); color: var(--on-oxblood); font: 800 19px/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(1.12); }
.btn[disabled] { opacity: .55; cursor: progress; }
.btn.quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.status { min-height: 20px; font-size: 14px; }
.status.err { color: var(--heart-red); }
.status.ok { font-weight: 700; }
.drop { display: flex; align-items: center; gap: 12px; padding: 12px; background: #fff; box-shadow: inset 0 0 0 2px var(--ink); cursor: pointer; }
.drop img { width: 64px; height: 64px; object-fit: cover; background: #ddd; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.foot { background: var(--oxblood); color: var(--on-oxblood); }
.foot .wrap { padding-top: 48px; padding-bottom: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 32px; align-items: start; }
.foot h2 { margin: 0 0 8px; font: 800 28px/1 var(--font-display); text-transform: uppercase; }
.foot a { display: inline-flex; min-height: 36px; align-items: center; }
.foot p { margin: 0; }
.foot .deep { width: clamp(180px, 20vw, 260px); height: auto; }

/* Viewer */
.viewer { position: fixed; inset: 0; z-index: 50; background: #151112; color: var(--ground); display: grid; grid-template-rows: auto minmax(0, 1fr); }
.viewer[hidden] { display: none; }
.vbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px 8px 16px; border-bottom: 1px solid #3a3133; }
.vbar .vnum { font: 900 28px/1 var(--font-display); color: var(--sign-pink); }
.vbar .vcat { margin-left: 10px; }
.iconbtn { min-width: 44px; min-height: 44px; border: 0; background: transparent; color: var(--ground); font: 800 24px/1 var(--font-display); cursor: pointer; }
.vbody { display: grid; grid-template-columns: minmax(0, 1fr) min(420px, 38vw); min-height: 0; }
.stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 12px; touch-action: pan-y; user-select: none; }
.stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.nav-prev, .nav-next { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 64px; border: 0; background: rgba(35,31,32,.72); color: var(--ground); font: 900 30px/1 var(--font-display); cursor: pointer; }
.nav-prev { left: 8px; } .nav-next { right: 8px; }
.panel { overflow-y: auto; background: var(--ground); color: var(--ink); padding: 20px clamp(16px, 2.4vw, 28px) 28px; display: flex; flex-direction: column; gap: 14px; }
.panel h3 { margin: 0; font: 900 clamp(30px, 3.4vw, 40px)/0.95 var(--font-display); text-transform: uppercase; }
.panel .detail { margin: 0; color: var(--ink-muted); }
.says { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.says li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.says .t { white-space: pre-wrap; overflow-wrap: anywhere; }
.says .m { margin-top: 2px; font: 400 12px/16px var(--font-mono); color: var(--ink-muted); }
.says .fresh { animation: flash 1.6s ease-out; }
@keyframes flash { from { background: var(--sign-pink); } to { background: transparent; } }
.empty { color: var(--ink-muted); font-style: italic; }
.h4 { margin: 4px 0 0; font: 800 20px/1 var(--font-display); text-transform: uppercase; letter-spacing: .03em; border-bottom: 2px solid var(--ink); padding-bottom: 4px; }
.hint { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.preview-note { background: var(--ink); color: var(--sign-pink); text-align: center; padding: 6px 12px; font: 500 12px/16px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }

@media (max-width: 820px) {
  .vbody { display: block; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .stage { height: 54vh; height: 54svh; }
  .panel { overflow: visible; min-height: 46vh; }
  .strip .wrap span:last-child { display: none; }
  .nav { gap: 0 14px; }
  .nav a { font-size: 15px; }
  .nav-prev, .nav-next { width: 40px; height: 56px; }
  .top { flex-direction: column; }
  .right { align-items: flex-start; }
  .nav { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .tile img { transition: none; } .says .fresh { animation: none; } }
