/* ============================================================
   PROJECT UNDERGROUND  -  Fargo-Moorhead, ND/MN
   Bold and professional. Hand-drawn brand marks used as accents,
   photographs taped in like a scrapbook. No notebook paper.
   ============================================================ */

:root {
  --ground:     #F6F5F2;
  --ground-2:   #EBE9E3;
  --ink:        #0E0E0D;
  --ink-soft:   #52514C;
  --ink-faint:  #87857E;
  --accent:     #FFC93D;
  --on-accent:  #0E0E0D;
  --invert-bg:  #0E0E0D;
  --invert-ink: #F6F5F2;
  --invert-soft:#A8A69E;
  --edge:       #D5D2C9;
  --edge-mid:   #B0ACA1;
  --edge-ink:   #0E0E0D;
  --tape:       rgba(255, 201, 61, 0.30);
  --mark-filter: none;
  --mark-filter-invert: invert(1);

  --max: 1320px;
  --gutter: clamp(1rem, 5vw, 5rem);
  --f: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground:     #121211;
    --ground-2:   #1B1B19;
    --ink:        #F4F3EF;
    --ink-soft:   #A5A39B;
    --ink-faint:  #77756E;
    --accent:     #FFC93D;
    --on-accent:  #0E0E0D;
    --invert-bg:  #F4F3EF;
    --invert-ink: #121211;
    --invert-soft:#4F4E49;
    --edge:       #2B2B28;
    --edge-mid:   #4D4C46;
    --edge-ink:   #F4F3EF;
    --tape:       rgba(255, 201, 61, 0.17);
    --mark-filter: invert(1);
    --mark-filter-invert: none;
  }
}
:root[data-theme="dark"] {
  --ground:     #121211;
  --ground-2:   #1B1B19;
  --ink:        #F4F3EF;
  --ink-soft:   #A5A39B;
  --ink-faint:  #77756E;
  --accent:     #FFC93D;
  --on-accent:  #0E0E0D;
  --invert-bg:  #F4F3EF;
  --invert-ink: #121211;
  --invert-soft:#4F4E49;
  --edge:       #2B2B28;
  --edge-mid:   #4D4C46;
  --edge-ink:   #F4F3EF;
  --tape:       rgba(255, 201, 61, 0.17);
  --mark-filter: invert(1);
  --mark-filter-invert: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--f);
  font-size: 1.02rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* clip, not hidden: keeps position:sticky working */
}

h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
:is(a, button, [tabindex]):focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---- type roles ---- */
.display {
  font-variation-settings: "wdth" 118, "wght" 850;
  text-transform: uppercase;
  letter-spacing: -0.022em;
  line-height: 0.94;
}
.sec-title {
  font-variation-settings: "wdth" 116, "wght" 820;
  text-transform: uppercase;
  letter-spacing: -0.018em;
  line-height: 0.98;
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
}
.eyebrow {
  font-variation-settings: "wdth" 100, "wght" 700;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-size: 0.7rem;
  color: var(--ink-faint);
  margin-bottom: 1.1rem;
}
.lede { font-size: clamp(1.05rem, 1.55vw, 1.25rem); color: var(--ink-soft); max-width: 60ch; line-height: 1.55; }

/* ---- marks ---- */
.crown, .sparkles, .sparkles-sm {
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: var(--mark-filter);
  pointer-events: none;
  flex-shrink: 0;
}
.crown { background-image: url("img/crown.png"); }
.sparkles { background-image: url("img/sparkles.png"); }
.sparkles-sm { background-image: url("img/sparkles2.png"); }

.underlined { position: relative; display: inline-block; padding-bottom: 0.3em; }
.underlined::after {
  content: "";
  position: absolute;
  left: -1.5%; right: -1.5%; bottom: 0;
  height: 0.22em;
  background: url("img/scribble.png") center/100% 100% no-repeat;
  filter: var(--mark-filter);
}
.circled { position: relative; display: inline-block; white-space: nowrap; }
.circled > i {
  position: absolute;
  inset: -32% -8%;
  background: url("img/ellipse.png") center/100% 100% no-repeat;
  filter: var(--mark-filter);
  pointer-events: none;
}

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-variation-settings: "wdth" 104, "wght" 750;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  font-size: 0.83rem;
  padding: 0.95rem 1.7rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid var(--edge-ink);
  background: transparent;
  color: var(--ink);
  transition: transform 0.16s cubic-bezier(0.16,1,0.3,1), background-color 0.16s ease, color 0.16s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--ink); color: var(--ground); }
.btn-accent { background: var(--accent); color: var(--on-accent); border-color: var(--on-accent); }

/* ---- nav ---- */
.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: color-mix(in srgb, var(--ground) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--edge-ink);
}
.nav-in {
  max-width: var(--max);
  margin-inline: auto;
  padding: 0 var(--gutter);
  height: 76px;
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.2vw, 2rem);
}
.nav-logo { height: 48px; width: auto; filter: var(--mark-filter); flex-shrink: 0; }
.nav-in > a:first-child { flex-shrink: 0; } /* the logo link, so a crowded menu cannot squeeze the logo */
.nav-links { display: flex; gap: clamp(0.9rem, 2vw, 2rem); margin-left: auto; }
.nav-links a {
  font-variation-settings: "wdth" 100, "wght" 650;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.74rem;
  text-decoration: none;
  color: var(--ink-soft);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); }
.nav .btn { padding: 0.68rem 1.2rem; font-size: 0.74rem; flex-shrink: 0; }
@media (max-width: 1260px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }
@media (max-width: 520px) { .nav-logo { height: 36px; } }

/* ---- taped photo slots (scrapbook) ---- */
.taped { position: relative; display: block; max-width: 100%; }
.taped::before {
  content: "";
  position: absolute;
  top: -14px; left: 50%;
  width: 118px; height: 28px;
  transform: translateX(-50%) rotate(-2.2deg);
  background: var(--tape);
  z-index: 2;
}
.taped.tape-l::before { left: 16%; transform: rotate(-7deg); }
.taped.tape-r::before { left: auto; right: 12%; transform: rotate(6deg); }
.slot {
  position: relative;
  max-width: 100%;
  background: var(--ground-2);
  border: 2px solid var(--edge);
  display: flex;
  align-items: flex-end;
  padding: 0.85rem;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
.slot::after { content: ""; position: absolute; inset: 8px; border: 1.5px dashed var(--edge); pointer-events: none; }
.slot-tag {
  position: relative; z-index: 1;
  font-variation-settings: "wdth" 100, "wght" 600;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.5;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  padding: 0.3rem 0.5rem;
}
.slot-tag b { display: block; color: var(--ink); font-variation-settings: "wdth" 100, "wght" 800; }

/* ---- hero: logo on the left, the statement on the right ---- */
.hero { padding-block: clamp(1.8rem, 4.2vw, 3.4rem) clamp(2.2rem, 5vw, 4rem); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(1.6rem, 4vw, 4rem);
  align-items: center;
}
.hero-logo { width: 100%; max-width: 620px; height: auto; display: block; filter: var(--mark-filter); }
.hero-tagline {
  font-variation-settings: "wdth" 106, "wght" 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: clamp(0.6rem, 1.05vw, 0.76rem);
  color: var(--ink-soft);
  margin-top: 1.15rem;
  max-width: 36ch;
}
.hero-land {
  font-variation-settings: "wdth" 122, "wght" 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.88;
  font-size: clamp(2.3rem, 5.9vw, 4.9rem);
  white-space: nowrap; /* the <br> sets the two lines; never let it re-wrap */
}
@media (prefers-reduced-motion: no-preference) {
  .hero-mark, .hero-say { animation: rise 0.8s cubic-bezier(0.16,1,0.3,1) both; }
  .hero-say { animation-delay: 0.1s; }
}
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-logo { max-width: 440px; }
  .hero-land { font-size: clamp(2.2rem, 10.5vw, 3.7rem); }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---- full bleed bands ---- */
.band-dark { background: var(--invert-bg); color: var(--invert-ink); }
.band-dark .lede { color: var(--invert-soft); }
.band-accent { background: var(--accent); color: var(--on-accent); }
.band-in { max-width: var(--max); margin-inline: auto; padding: clamp(3rem, 7vw, 6rem) var(--gutter); }

.vision-quote {
  font-variation-settings: "wdth" 112, "wght" 800;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  line-height: 1.04;
  font-size: clamp(1.7rem, 4.6vw, 3.4rem);
  max-width: 19ch;
  margin-bottom: 2rem;
}
.vision-body { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); }
.vision-body p { color: var(--invert-soft); max-width: 50ch; }
@media (max-width: 800px) { .vision-body { grid-template-columns: 1fr; } }

/* ---- section ---- */
.sec { padding-block: clamp(3rem, 7vw, 5.5rem); }
.sec + .sec { border-top: 2px solid var(--edge); }

/* ---- winter strip ---- */
.winter-head { display: grid; grid-template-columns: 1fr auto; gap: 1.4rem 3rem; align-items: end; margin-bottom: clamp(1.8rem, 4vw, 2.6rem); }
.winter-stat { font-variation-settings: "wdth" 122, "wght" 900; font-size: clamp(2.4rem, 7vw, 5rem); line-height: 0.88; white-space: nowrap; }
.winter-stat small { display: block; font-variation-settings: "wdth" 100, "wght" 650; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-faint); margin-top: 0.7rem; }
.months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; }
.month {
  aspect-ratio: 1 / 1.45;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0.55rem;
  border: 2px solid var(--edge-mid);
  font-variation-settings: "wdth" 100, "wght" 750;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}
.month.cold { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.months-key { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; margin-top: 1.1rem; font-size: 0.84rem; color: var(--ink-soft); }
.months-key span { display: inline-flex; align-items: center; gap: 0.5rem; }
.months-key i { width: 14px; height: 14px; border: 2px solid var(--edge-mid); flex-shrink: 0; }
.months-key i.cold { background: var(--ink); border-color: var(--ink); }
@media (max-width: 860px) { .months { grid-template-columns: repeat(6, 1fr); } .winter-head { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .months { grid-template-columns: repeat(4, 1fr); gap: 5px; }
  .month { aspect-ratio: 1 / 1.1; font-size: 0.82rem; padding-bottom: 0.5rem; }
}

/* ---- offers ---- */
.offers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: clamp(1.6rem, 3vw, 2.4rem); }
.offer {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  padding: 1.5rem 0;
  border-bottom: 2px solid var(--edge);
}
.offer:nth-child(odd) { padding-right: clamp(1rem, 3vw, 3rem); }
.offer:nth-child(even) { padding-left: clamp(1rem, 3vw, 3rem); border-left: 2px solid var(--edge); }
.offer-n { font-variation-settings: "wdth" 100, "wght" 700; font-size: 0.72rem; color: var(--ink-faint); letter-spacing: 0.1em; }
.offer h3 { font-variation-settings: "wdth" 114, "wght" 820; text-transform: uppercase; letter-spacing: -0.01em; font-size: clamp(1.1rem, 2.3vw, 1.6rem); line-height: 1.05; }
.offer p { color: var(--ink-soft); font-size: 0.92rem; margin-top: 0.35rem; }
.offer:last-child:nth-child(odd) { grid-column: 1 / -1; padding-right: 0; }
@media (max-width: 760px) {
  .offers { grid-template-columns: 1fr; }
  .offer:nth-child(even) { padding-left: 0; border-left: 0; }
  .offer:nth-child(odd) { padding-right: 0; }
}

/* ---- scrapbook ---- */
.scrapbook { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1.4rem, 3vw, 2.6rem); margin-top: clamp(2rem, 4vw, 3rem); align-items: start; }
.sb { position: relative; }
.sb-1 { grid-column: 1 / 7; }
.sb-2 { grid-column: 8 / 13; margin-top: clamp(1.5rem, 4vw, 3.5rem); }
.sb-3 { grid-column: 1 / 5; }
.sb-4 { grid-column: 5 / 9; margin-top: clamp(1rem, 2vw, 2rem); }
.sb-5 { grid-column: 9 / 13; }
.sb-1 .slot { aspect-ratio: 4/3; transform: rotate(-1.6deg); }
.sb-2 .slot { aspect-ratio: 3/4; transform: rotate(1.3deg); }
.sb-3 .slot { aspect-ratio: 3/4; transform: rotate(1.9deg); }
.sb-4 .slot { aspect-ratio: 1/1; transform: rotate(-1.2deg); }
.sb-5 .slot { aspect-ratio: 1/1; transform: rotate(2.2deg); }
.sb:hover .slot { transform: rotate(0deg) scale(1.02); }
.sb-crown { position: absolute; top: -30px; right: -14px; width: 84px; aspect-ratio: 1.35/1; transform: rotate(13deg); z-index: 3; }
@media (max-width: 860px) {
  .scrapbook { grid-template-columns: repeat(2, 1fr); }
  .sb-1, .sb-2, .sb-3, .sb-4, .sb-5 { grid-column: auto; margin-top: 0; }
  .sb-1 { grid-column: 1 / -1; }
  .sb-1 .slot { aspect-ratio: 16/10; }
}

/* ---- building / plan ---- */
.build-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.8rem, 4vw, 3.5rem); align-items: start; }
.build-story p + p { margin-top: 1rem; }
.build-story p { color: var(--ink-soft); max-width: 52ch; }
@media (max-width: 880px) { .build-grid { grid-template-columns: 1fr; } }

/* floor plans from the booklet, one level at a time */
.plans { margin-top: clamp(2.4rem, 5vw, 3.6rem); }
.plans-intro { color: var(--ink-soft); max-width: 62ch; margin-top: 1rem; }
.plan-tabs { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: clamp(1.4rem, 3vw, 2rem); }
.plan-tab { font: inherit; font-variation-settings: "wdth" 110, "wght" 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; padding: 0.8rem 1.1rem; min-height: 44px; background: transparent; color: var(--ink); border: 2px solid var(--edge-ink); cursor: pointer; }
.plan-tab small { display: block; font-variation-settings: "wdth" 100, "wght" 600; font-size: 0.66rem; letter-spacing: 0.06em; color: var(--ink-faint); margin-top: 0.15rem; }
.plan-tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.plan-tab[aria-selected="true"] small { color: var(--on-accent); }
.plan-tab:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.plan-panel { margin-top: 1.2rem; }
.plan-wrap { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.55fr); gap: clamp(1.2rem, 3vw, 2rem); align-items: start; }
.plan-img { display: block; border: 2px solid var(--edge-ink); background: #f6f6f4; padding: clamp(0.4rem, 1.2vw, 0.9rem); }
.plan-map { position: relative; }
.plan-map img { display: block; width: 100%; height: auto; }
.hot { position: absolute; padding: 0; margin: 0; background: transparent; border: 2px solid transparent; cursor: pointer; transition: background-color 0.15s ease, border-color 0.15s ease; }
.hot:hover, .hot:focus-visible { border: 2px dashed #0E0E0D; background: rgb(14 14 13 / 0.08); outline: none; }
/* black outline + yellow ring + light shade: shows on the yellow rooms as well as the white ones */
.hot[aria-pressed="true"] { border: 4px solid #0E0E0D; background: rgb(14 14 13 / 0.16); box-shadow: 0 0 0 3px #FFC93D, 0 0 0 5px #0E0E0D; z-index: 1; }
.detail { padding: clamp(1.2rem, 2.3vw, 1.7rem); background: var(--ground-2); border: 2px solid var(--edge-ink); position: sticky; top: calc(76px + env(safe-area-inset-top, 0px) + 1rem); }
.detail-kind { font-variation-settings: "wdth" 100, "wght" 700; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-faint); margin-bottom: 0.7rem; }
.detail h4 { font-variation-settings: "wdth" 114, "wght" 830; text-transform: uppercase; letter-spacing: -0.012em; font-size: clamp(1.2rem, 2.2vw, 1.55rem); line-height: 1.02; margin-bottom: 0.85rem; }
.detail p { color: var(--ink-soft); font-size: 0.93rem; }
@media (max-width: 940px) {
  .plan-wrap { grid-template-columns: 1fr; }
  .detail { position: static; }
}
.plan-hint { margin-top: 0.7rem; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint); }
.plan-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem clamp(1.6rem, 4vw, 3rem); margin-top: clamp(1.4rem, 3vw, 2rem); }
.plan-notes p { color: var(--ink-soft); font-size: 0.93rem; }
.plan-notes b { color: var(--ink); font-variation-settings: "wdth" 110, "wght" 820; text-transform: uppercase; letter-spacing: 0.02em; }
@media (max-width: 760px) { .plan-notes { grid-template-columns: 1fr; } }

/* ---- founders ---- */
.founder { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.founder + .founder { margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: clamp(2.5rem, 5vw, 4rem); border-top: 2px solid var(--edge); }
.founder:nth-child(even) .founder-media { order: 2; }
.founder:nth-child(even) { grid-template-columns: 1.2fr 0.8fr; } /* keep the photo column the narrow one on both sides */
.founder-slot { aspect-ratio: 4/5; transform: rotate(-1.4deg); }
.founder:nth-child(even) .founder-slot { transform: rotate(1.5deg); }
.founder h3 { font-variation-settings: "wdth" 118, "wght" 860; text-transform: uppercase; letter-spacing: -0.02em; font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 0.96; }
.founder .role { font-variation-settings: "wdth" 100, "wght" 700; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; color: var(--ink-faint); margin: 0.6rem 0 1.2rem; }
.founder-bio p { color: var(--ink-soft); max-width: 56ch; }
.founder-bio p + p { margin-top: 0.9rem; }
@media (max-width: 820px) {
  .founder, .founder:nth-child(even) { grid-template-columns: 1fr; } /* beat the nth-child specificity from the desktop rule */
  .founder:nth-child(even) .founder-media { order: 0; }
}

/* ---- board ---- */
.board-head { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.board-crown { width: 66px; aspect-ratio: 1.35/1; transform: rotate(-8deg); }
.people { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: clamp(1.8rem, 4vw, 2.6rem); }
.person { display: grid; grid-template-columns: clamp(210px, 26vw, 310px) 1fr; gap: clamp(1.4rem, 4vw, 3rem); align-items: start; padding: clamp(1.7rem, 3vw, 2.5rem) 0 clamp(1.5rem, 2.6vw, 2.2rem); border-top: 2px solid var(--edge-ink); }
.initials {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  margin-bottom: 1.1rem;
  font-variation-settings: "wdth" 110, "wght" 820;
  font-size: 0.9rem;
  background: var(--accent);
  color: var(--on-accent);
}
.person h3 { font-variation-settings: "wdth" 114, "wght" 830; text-transform: uppercase; letter-spacing: -0.012em; font-size: 1.15rem; line-height: 1.05; }
.person .role { font-variation-settings: "wdth" 100, "wght" 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.68rem; color: var(--ink-faint); margin: 0.4rem 0 0.8rem; }
.person p { color: var(--ink-soft); font-size: 0.9rem; }
@media (max-width: 860px) {
  .people { grid-template-columns: 1fr; }
  .person { grid-template-columns: 1fr; }
  .person-photo { max-width: 250px; }
}

/* ---- closing band ---- */
.closing { text-align: center; position: relative; }
.closing h2 { font-variation-settings: "wdth" 122, "wght" 900; text-transform: uppercase; letter-spacing: -0.03em; line-height: 0.9; font-size: clamp(2.4rem, 9vw, 7rem); }
.closing p { max-width: 48ch; margin: 1.6rem auto 2.2rem; font-size: 1.08rem; }
.closing-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
.closing .btn { border-color: var(--on-accent); color: var(--on-accent); }
.closing .btn-solid { background: var(--on-accent); color: var(--accent); }
.closing-sparkle { position: absolute; top: -8px; right: 4%; width: 62px; height: 62px; filter: var(--mark-filter-invert); }

/* ---- contact + footer ---- */
.contact { display: grid; grid-template-columns: repeat(4, max-content); justify-content: space-between; gap: clamp(1.5rem, 4vw, 3rem); }
@media (max-width: 1100px) { .contact { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; } }
.contact h4 { margin: 0 0 0.7rem; font-variation-settings: "wdth" 100, "wght" 700; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.68rem; color: var(--ink-faint); }
.contact a, .contact p { color: var(--ink); text-decoration: none; font-variation-settings: "wdth" 104, "wght" 650; font-size: clamp(0.98rem, 1.6vw, 1.15rem); display: block; word-break: break-word; }
.contact a:hover { color: var(--ink-soft); }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } }

.foot { border-top: 2px solid var(--edge-ink); padding-block: clamp(2.5rem, 5vw, 4rem) 2rem; }
.foot-logo { width: min(420px, 78vw); height: auto; filter: var(--mark-filter); margin-bottom: 1.6rem; }
.foot-row { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; justify-content: space-between; align-items: baseline; }
.foot-row a { font-variation-settings: "wdth" 100, "wght" 650; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.74rem; text-decoration: none; color: var(--ink-soft); }

/* ---- mobile menu: native <details>, needs no JavaScript ---- */
.mnav { display: none; position: relative; margin-left: auto; }
.mnav > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.95rem;
  border: 2px solid var(--edge-ink);
  font-variation-settings: "wdth" 104, "wght" 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}
.mnav > summary::-webkit-details-marker { display: none; }
.mnav > summary::marker { content: ""; }
.mnav[open] > summary { background: var(--ink); color: var(--ground); }
.mnav-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 232px;
  background: var(--ground);
  border: 2px solid var(--edge-ink);
  padding: 0.3rem;
  z-index: 70;
}
.mnav-panel a {
  display: block;
  padding: 0.85rem 0.9rem;
  text-decoration: none;
  color: var(--ink);
  font-variation-settings: "wdth" 100, "wght" 650;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.76rem;
  border-bottom: 1.5px solid var(--edge);
}
.mnav-panel a:last-child { border-bottom: 0; }

/* ---- what's on the docket ---- */
.docket-head { display: flex; flex-wrap: wrap; gap: 0.9rem 1.5rem; align-items: flex-end; justify-content: space-between; margin-bottom: clamp(1.4rem, 3vw, 2.2rem); }
.sample-flag {
  font-variation-settings: "wdth" 100, "wght" 750;
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.64rem;
  background: var(--accent); color: var(--on-accent);
  padding: 0.45rem 0.7rem;
}
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(238px, 1fr);
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.9rem;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
}
.ev {
  scroll-snap-align: start;
  border: 2px solid var(--edge);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  min-height: 196px;
}
.ev-next { border-color: var(--edge-ink); background: var(--ground-2); }
.ev-date { font-variation-settings: "wdth" 120, "wght" 880; font-size: 2rem; line-height: 0.9; letter-spacing: -0.025em; text-transform: uppercase; }
.ev-day { font-variation-settings: "wdth" 100, "wght" 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.66rem; color: var(--ink-faint); margin-top: 0.45rem; }
.ev h3 { font-variation-settings: "wdth" 110, "wght" 800; text-transform: uppercase; letter-spacing: -0.008em; font-size: 1rem; line-height: 1.1; margin-top: 0.95rem; }
.ev p.ev-copy { font-size: 0.87rem; color: var(--ink-soft); margin-top: 0.4rem; }
.ev-where { margin-top: auto; padding-top: 0.95rem; font-size: 0.72rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.08em; }
.rail-hint { margin-top: 0.7rem; font-size: 0.74rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.1em; }

@media (max-width: 1260px) { .nav-links { display: none; } .mnav { display: block; } }
@media (max-width: 460px) {
  .nav-logo { height: 32px; }
  .nav .btn { padding: 0 0.75rem; min-height: 44px; font-size: 0.68rem; }
  .mnav > summary { padding: 0 0.7rem; }
  .nav-in { gap: 0.6rem; }
}

/* nav buttons: Get involved (outline) + Donate (yellow). Tighter link gaps keep both on one row at 1280px. */
.nav-cta { display: flex; gap: 0.5rem; flex-shrink: 0; }
.nav .btn { padding: 0.68rem 1rem; }
.nav-links { gap: clamp(0.9rem, 1.6vw, 2rem); }
@media (max-width: 1260px) { .nav .btn { margin-left: 0; } }
@media (max-width: 720px) { .nav-gi { display: none; } } /* Get Involved is still in the Menu */
@media (max-width: 460px) { .nav .btn { padding: 0 0.85rem; } }
@media (max-width: 350px) { .nav-logo { height: 26px; } .nav-in { gap: 0.4rem; } .nav .btn { padding: 0 0.6rem; } .mnav > summary { padding: 0 0.5rem; } }

/* ===== multi-page additions ===== */
.nav-links a[aria-current="page"],
.mnav-panel a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }

/* booklet-style contents list on the home page */
.toc { display: grid; gap: 0; margin-top: clamp(1.6rem, 3vw, 2.4rem); }
.toc-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0 clamp(1rem, 3vw, 2.4rem);
  align-items: baseline;
  padding: clamp(1.1rem, 2.4vw, 1.7rem) 0;
  border-top: 2px solid var(--edge);
  text-decoration: none;
  color: var(--ink);
  transition: padding-left 0.18s cubic-bezier(0.16,1,0.3,1), background-color 0.18s ease;
}
.toc-item:last-child { border-bottom: 2px solid var(--edge); }
.toc-item:hover { padding-left: 0.7rem; background: var(--ground-2); }
.toc-n { font-variation-settings: "wdth" 100, "wght" 700; font-size: 0.72rem; letter-spacing: 0.1em; color: var(--ink-faint); }
.toc-item h3 { font-variation-settings: "wdth" 116, "wght" 820; text-transform: uppercase; letter-spacing: -0.015em; font-size: clamp(1.25rem, 3.2vw, 2.1rem); line-height: 1; }
.toc-item p { color: var(--ink-soft); font-size: 0.92rem; margin-top: 0.4rem; }
.toc-go { font-variation-settings: "wdth" 100, "wght" 750; font-size: 1.1rem; color: var(--ink-faint); }
.toc-item:hover .toc-go { color: var(--accent); }
@media (max-width: 620px) {
  .toc-item { grid-template-columns: auto 1fr; }
  .toc-go { display: none; }
}

/* prev / next pager at the foot of inner pages */
.pager { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; border-top: 2px solid var(--edge-ink); padding-block: 1.6rem; margin-top: clamp(2rem, 4vw, 3rem); }
.pager a { text-decoration: none; color: var(--ink); max-width: 46%; }
.pager .dir { display: block; font-variation-settings: "wdth" 100, "wght" 700; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.64rem; color: var(--ink-faint); margin-bottom: 0.3rem; }
.pager .where { font-variation-settings: "wdth" 112, "wght" 800; text-transform: uppercase; letter-spacing: -0.01em; font-size: clamp(1rem, 2.4vw, 1.3rem); line-height: 1.05; }
.pager a:hover .where { color: var(--accent); }
.pager .next { text-align: right; margin-left: auto; }
@media (max-width: 520px) { .pager a { max-width: 100%; } .pager .next { text-align: left; margin-left: 0; } }


/* ===== real photographs in the taped frames ===== */
.slot.has-photo { display: block; padding: 0; border-color: var(--edge-ink); background: var(--ground-2); }
.slot.has-photo::after { content: none; }
.slot.has-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ===== "Coming soon!" badge on empty photo frames ===== */
.slot-tag .soon {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.3rem 0.5rem;
  font-variation-settings: "wdth" 100, "wght" 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.68rem;
}
.slot:has(.soon) { align-items: center; justify-content: center; }

/* board member portraits */
.person-photo { max-width: 100%; margin-bottom: 0; }
.person-photo .slot { aspect-ratio: 4/5; transform: rotate(-1.3deg); }
.person:nth-child(2n) .person-photo .slot { transform: rotate(1.4deg); }
.person-photo .taped::before { width: 86px; height: 22px; }

/* ===== photos on the inner pages ===== */
/* one wide photo under a section's text */
.photo-wide { max-width: 980px; margin: clamp(2rem, 4.5vw, 3.2rem) auto 0; }
.photo-wide .slot { aspect-ratio: 3/2; transform: rotate(-0.9deg); }
/* three photos in a row, each with an optional caption */
.photo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.4rem, 3vw, 2.4rem); margin-top: clamp(2.2rem, 4.5vw, 3.4rem); align-items: start; }
.photo-row figure { margin: 0; }
.photo-row .slot { aspect-ratio: 4/3; transform: rotate(-1.4deg); }
.photo-row > :nth-child(2) { margin-top: clamp(0.8rem, 2vw, 1.6rem); }
.photo-row > :nth-child(2) .slot { transform: rotate(1.2deg); }
.photo-row > :nth-child(3) .slot { transform: rotate(-0.7deg); }
.photo-cap { margin-top: 0.9rem; font-variation-settings: "wdth" 100, "wght" 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.7rem; color: var(--ink-faint); }
@media (max-width: 760px) {
  .photo-row { grid-template-columns: 1fr; max-width: 520px; }
  .photo-row > :nth-child(2) { margin-top: 0; }
}

/* ===== gallery wall ===== */
.wall { columns: 3 260px; column-gap: clamp(1.4rem, 3vw, 2.4rem); margin-top: clamp(2rem, 4vw, 3rem); }
.wall figure { margin: 0 0 clamp(1.7rem, 3.4vw, 2.6rem); padding-top: 14px; break-inside: avoid; } /* top padding leaves room for the tape */
.wall .slot { transform: rotate(-1.2deg); }
.wall figure:nth-child(3n+2) .slot { transform: rotate(1.1deg); }
.wall figure:nth-child(3n) .slot { transform: rotate(-0.5deg); }
.wall .slot.has-photo img { height: auto; }
.wall a { display: block; cursor: zoom-in; }
.wall a:hover .slot, .wall a:focus-visible .slot { transform: rotate(0deg) scale(1.02); }
.wall a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.wall-credit { margin-top: 0.5rem; padding-top: 1.3rem; border-top: 2px solid var(--edge); color: var(--ink-faint); font-size: 0.9rem; }
.wall-credit a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ===== goal page ===== */
/* caution-tape notice on anything still being built */
.construction { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.1rem; margin-top: clamp(1.6rem, 3vw, 2.2rem); padding: 1.35rem 1.2rem 1.1rem; border: 2px solid var(--edge-ink); background: var(--ground-2); }
.construction::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 9px; background: repeating-linear-gradient(-45deg, var(--accent) 0 12px, var(--on-accent) 12px 24px); }
.construction p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; max-width: 60ch; }
/* goal placeholder: same dashed "empty frame" look as the photo slots */
.goal-card { margin-top: clamp(1.6rem, 3vw, 2.2rem); padding: clamp(1.4rem, 3vw, 2.2rem); border: 2px dashed var(--edge); display: grid; gap: 0.9rem; }
.goal-label { font-variation-settings: "wdth" 100, "wght" 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.7rem; color: var(--ink-faint); }
.goal-amount { font-variation-settings: "wdth" 120, "wght" 880; text-transform: uppercase; letter-spacing: -0.02em; font-size: clamp(2.4rem, 7vw, 4.4rem); line-height: 0.92; color: var(--ink-faint); }
.goal-bar { height: 24px; border: 2px solid var(--edge-ink); background: repeating-linear-gradient(-45deg, transparent 0 10px, var(--edge) 10px 20px); }
/* roadmap */
.road { list-style: none; margin: clamp(1.8rem, 4vw, 2.6rem) 0 0; padding: 0; }
.road li { display: grid; grid-template-columns: 3.4rem 1fr auto; gap: 0.5rem 1.2rem; align-items: start; padding: 1.3rem 0; border-top: 2px solid var(--edge); }
.road li:last-child { border-bottom: 2px solid var(--edge); }
.road-n { font-variation-settings: "wdth" 120, "wght" 880; font-size: 1.9rem; line-height: 1; letter-spacing: -0.02em; }
.road li:not(.is-done) .road-n { color: var(--ink-faint); }
.road h3 { font-variation-settings: "wdth" 114, "wght" 820; text-transform: uppercase; letter-spacing: -0.01em; font-size: clamp(1.05rem, 2.1vw, 1.4rem); line-height: 1.05; }
.road p { color: var(--ink-soft); font-size: 0.92rem; margin-top: 0.35rem; max-width: 55ch; }
.road-tag { font-variation-settings: "wdth" 100, "wght" 750; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.62rem; padding: 0.4rem 0.6rem; border: 2px dashed var(--edge); color: var(--ink-faint); white-space: nowrap; }
.road-tag.done { border: 2px solid var(--accent); background: var(--accent); color: var(--on-accent); }
@media (max-width: 560px) {
  .road li { grid-template-columns: 2.6rem 1fr; }
  .road-tag { grid-column: 2; justify-self: start; }
}

/* goal page: the money */
.goal-card .goal-amount.is-set { color: var(--ink); }
.goal-sub { color: var(--ink-soft); max-width: 52ch; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.5vw, 1.6rem); margin-top: clamp(1.6rem, 3vw, 2.2rem); }
.split > div { border: 2px solid var(--edge-ink); padding: clamp(1.1rem, 2.5vw, 1.6rem); }
.split .split-n { font-variation-settings: "wdth" 120, "wght" 880; font-size: clamp(1.9rem, 4.5vw, 2.8rem); line-height: 0.95; letter-spacing: -0.02em; margin-top: 0.4rem; }
.split p:last-child { color: var(--ink-soft); font-size: 0.92rem; margin-top: 0.6rem; }
.ledger-head { margin-top: clamp(2.2rem, 4.5vw, 3rem); }
.ledger { list-style: none; margin: 0.8rem 0 0; padding: 0; }
.ledger li { display: flex; align-items: baseline; gap: 0.8rem; padding: 0.85rem 0; border-top: 2px solid var(--edge); }
.ledger li span:first-child { flex: 1; color: var(--ink-soft); }
.ledger li b { font-variation-settings: "wdth" 110, "wght" 800; white-space: nowrap; }
.ledger li.total { border-top: 2px solid var(--edge-ink); border-bottom: 2px solid var(--edge-ink); }
.ledger li.total span:first-child { color: var(--ink); font-variation-settings: "wdth" 110, "wght" 800; text-transform: uppercase; letter-spacing: 0.04em; }
.ledgers { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3rem); }
.callout { margin-top: clamp(1.8rem, 3.5vw, 2.4rem); padding: clamp(1.2rem, 3vw, 1.8rem); background: var(--accent); color: var(--on-accent); }
.callout h3 { font-variation-settings: "wdth" 118, "wght" 880; text-transform: uppercase; font-size: clamp(1.3rem, 3vw, 1.9rem); line-height: 1; letter-spacing: -0.01em; }
.callout p { margin-top: 0.6rem; max-width: 60ch; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 1.6rem); margin-top: clamp(1.8rem, 3.5vw, 2.4rem); }
.stats div { border-top: 2px solid var(--edge-ink); padding-top: 0.9rem; }
.stats b { display: block; font-variation-settings: "wdth" 120, "wght" 880; font-size: clamp(2rem, 4.5vw, 2.8rem); line-height: 0.95; letter-spacing: -0.02em; }
.stats span { display: block; color: var(--ink-soft); font-size: 0.9rem; margin-top: 0.5rem; }
.fine { margin-top: 1.4rem; color: var(--ink-faint); font-size: 0.85rem; }
.road-when { font-variation-settings: "wdth" 100, "wght" 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.66rem; color: var(--ink-faint); margin-bottom: 0.35rem; }
@media (max-width: 760px) {
  .split, .ledgers, .stats { grid-template-columns: 1fr; }
}

/* full-size viewer */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgb(8 8 7 / 0.92); }
.lightbox-in { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: clamp(0.6rem, 3vw, 2.5rem); box-sizing: border-box; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border: 2px solid #f4f1ea; }
.lb-btn { position: absolute; background: rgb(14 14 13 / 0.75); color: #f4f1ea; border: 2px solid #f4f1ea; width: 48px; height: 48px; font: 800 1.3rem/1 Archivo, system-ui, sans-serif; cursor: pointer; }
.lb-btn:hover, .lb-btn:focus-visible { background: var(--accent); color: var(--on-accent); border-color: var(--accent); outline: none; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 620px) { .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; } }

/* ===== phone refinements ===== */
/* tagline: three sentences, each on its own line on phones, and Fargo-Moorhead never splits */
.hero-tagline span { white-space: nowrap; }
@media (max-width: 820px) {
  .hero-tagline span { display: block; }
  .hero-tagline { line-height: 1.75; }
}
/* the "more to come" card reads as open-ended, not as a dated event */
.ev-more { border-style: dashed; }
.ev-more .ev-date, .ev-more .ev-day { color: var(--ink-faint); }

/* menu panel: anchor to the nav bar, not the button, so it cannot run off the left edge */
.nav-in { position: relative; }
.mnav { position: static; }
.mnav-panel {
  right: var(--gutter);
  left: auto;
  min-width: 0;
  width: max-content;
  max-width: calc(100vw - (var(--gutter) * 2));
}

/* multi-paragraph board bios */
.person-text p:not(.role) + p { margin-top: 0.85rem; }

/* ===== sliding light / dark switch (sits beside the logo) ===== */
:root[data-theme="dark"]  { color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }

.theme-toggle {
  position: relative;
  flex-shrink: 0;
  width: 68px; height: 34px;
  padding: 0;
  border: 2px solid var(--edge-ink);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
}
.tt-thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 29px; height: 26px;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 0.34s cubic-bezier(0.34, 1.3, 0.5, 1);
  z-index: 1;
}
.tt-ico {
  position: absolute;
  top: 0; bottom: 0;
  width: 31px;
  display: grid; place-items: center;
  z-index: 2;
  transition: color 0.26s ease;
}
.tt-sun  { left: 1px; }
.tt-moon { right: 1px; }
.tt-ico svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }

/* thumb parks over whichever mode is active, and the icon under it flips to read against it */
:root[data-theme="light"] .tt-thumb { transform: translateX(0); }
:root[data-theme="light"] .tt-sun   { color: var(--ground); }
:root[data-theme="light"] .tt-moon  { color: var(--ink-faint); }
:root[data-theme="dark"]  .tt-thumb { transform: translateX(33px); }
:root[data-theme="dark"]  .tt-sun   { color: var(--ink-faint); }
:root[data-theme="dark"]  .tt-moon  { color: var(--ground); }

.theme-toggle:hover .tt-thumb { background: color-mix(in srgb, var(--ink) 82%, var(--accent)); }
.theme-toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) { .tt-thumb { transition: none; } }
@media (max-width: 460px) {
  .nav-in { gap: 0.5rem; }
  .theme-toggle { width: 60px; height: 30px; }
  .tt-thumb { width: 25px; height: 22px; }
  :root[data-theme="dark"] .tt-thumb { transform: translateX(29px); }
  .tt-ico { width: 27px; }
  .tt-ico svg { width: 13px; height: 13px; }
}

/* ---- sign up ---- */
.signup { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(1.6rem, 5vw, 4rem); align-items: start; }
.signup .lede { margin-top: 1.2rem; }
.signup-form { display: grid; gap: 1.2rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { display: grid; gap: 0.5rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font-variation-settings: "wdth" 100, "wght" 750; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.7rem; color: var(--ink-soft); padding: 0; }
.field legend { margin-bottom: 0.6rem; }
.field small { color: var(--ink-faint); font-variation-settings: "wdth" 100, "wght" 600; letter-spacing: 0.06em; margin-left: 0.4rem; }
.field input, .field textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--ground); border: 2px solid var(--edge-mid); border-radius: 0; padding: 0.8rem 0.9rem; min-height: 48px; width: 100%; box-sizing: border-box; }
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--edge-ink); }
.field input[aria-invalid="true"] { border-color: #C2410C; }
.chips { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; padding: 0.55rem 0.95rem; border: 2px solid var(--edge-mid); font-variation-settings: "wdth" 104, "wght" 700; font-size: 0.86rem; color: var(--ink-soft); transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
.chip span::before { content: "+"; font-variation-settings: "wdth" 100, "wght" 800; }
.chip:hover span { border-color: var(--edge-ink); color: var(--ink); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chip input:checked + span::before { content: "\2713"; }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.2rem; }
.signup-actions .btn { min-height: 52px; font-family: inherit; }
.signup-actions .btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.signup-status { font-size: 0.9rem; color: var(--ink-soft); }
.signup-status.is-error { color: var(--ink); font-variation-settings: "wdth" 100, "wght" 700; }
.signup-status.is-error::before { content: "! "; color: #C2410C; }
.signup-done { border: 2px solid var(--edge-ink); background: var(--ground-2); padding: clamp(1.4rem, 3vw, 2.2rem); }
.signup-done:focus { outline: none; }
.signup-done h3 { font-variation-settings: "wdth" 120, "wght" 880; text-transform: uppercase; letter-spacing: -0.02em; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 0.95; }
.signup-done p { color: var(--ink-soft); margin-top: 0.8rem; max-width: 46ch; }
@media (max-width: 860px) { .signup { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

/* docket: the next date gets a tag, past dates step back */

.ev-tag { display: inline-block; margin-left: 0.5rem; vertical-align: 0.05em; font-variation-settings: "wdth" 100, "wght" 750; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.6rem; background: var(--accent); color: var(--on-accent); padding: 0.35rem 0.55rem; }
.ev-past .ev-date { color: var(--ink-faint); }

/* ---- founder bios: Read more ---- */
.bio-more summary { list-style: none; display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; margin-top: 0.4rem; cursor: pointer; font-variation-settings: "wdth" 104, "wght" 780; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.76rem; color: var(--ink); border-bottom: 3px solid var(--accent); }
.bio-more summary::-webkit-details-marker { display: none; }
.bio-more summary::after { content: "\2193"; }
.bio-more[open] summary::after { content: "\2191"; }
.bio-more .rm-less, .bio-more[open] .rm-more { display: none; }
.bio-more[open] .rm-less { display: inline; }
.bio-more p { margin-top: 0.9rem; }

/* ---- home: flip the switch ---- */
.flip { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.1rem; }
.flip-switch { position: relative; flex-shrink: 0; width: 76px; height: 40px; padding: 0; border: 2px solid var(--edge-ink); background: var(--ground-2); cursor: pointer; }
.flip-thumb { position: absolute; top: 4px; left: 4px; width: 28px; height: 28px; background: var(--ink); transition: transform 0.28s cubic-bezier(0.16,1,0.3,1), background-color 0.2s ease; }
.flip-switch[aria-checked="true"] { background: var(--accent); border-color: var(--accent); }
.flip-switch[aria-checked="true"] .flip-thumb { transform: translateX(36px); background: var(--on-accent); }
.flip-label { display: grid; gap: 0.2rem; cursor: pointer; }
.flip-label small { font-variation-settings: "wdth" 100, "wght" 700; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.64rem; color: var(--ink-faint); }
.flip-label b { font-variation-settings: "wdth" 110, "wght" 820; text-transform: uppercase; letter-spacing: 0.02em; font-size: 0.95rem; }
.month { transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease; transition-delay: calc(var(--i, 0) * 45ms); }
.months.is-indoor .month { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.months-key i.lit { background: var(--accent); border-color: var(--accent); }
.winter-stat .ws-n { display: inline-block; }
.winter-stat.pop .ws-n { animation: ws-pop 0.45s cubic-bezier(0.16,1,0.3,1); }
@keyframes ws-pop { 0% { transform: scale(0.6); opacity: 0; } 100% { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .month, .flip-thumb { transition: none; }
  .winter-stat.pop .ws-n { animation: none; }
}

/* ---- goal: tappable breakdown ---- */
.give { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.4rem; margin-top: clamp(1.6rem, 3vw, 2.2rem); }
.give p { color: var(--ink-soft); font-size: 0.9rem; max-width: 44ch; }
.tax-note { margin-top: 1rem; max-width: 70ch; font-size: 0.78rem; line-height: 1.5; color: var(--ink-faint); }
.closing p.tax-note { margin: 1.6rem auto 0; max-width: 62ch; font-size: 0.78rem; color: var(--on-accent); opacity: 0.8; }
.ledger-hint { color: var(--ink-faint); font-variation-settings: "wdth" 100, "wght" 600; letter-spacing: 0.08em; margin-left: 0.6rem; }
.breakdown { margin-top: 1rem; }
.bd-groups { display: flex; gap: 2px; margin-bottom: 0.5rem; }
.bd-groups span { flex-basis: 0; min-width: 0; border-top: 2px solid var(--edge-ink); padding-top: 0.45rem; font-variation-settings: "wdth" 100, "wght" 750; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.66rem; color: var(--ink-soft); }
.bd-groups span + span { text-align: right; }
.bd-bar { display: flex; gap: 2px; height: 52px; }
.bd-seg { flex-basis: 0; min-width: 4px; padding: 0; border: 0; background: var(--edge-mid); color: var(--ink); cursor: pointer; container-type: inline-size; transition: background-color 0.15s ease; font: inherit; }
.bd-seg:first-child { border-radius: 4px 0 0 4px; }
.bd-seg:last-child { border-radius: 0 4px 4px 0; }
.bd-seg:hover { background: var(--ink-faint); }
.bd-seg[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.bd-seg span { font-variation-settings: "wdth" 104, "wght" 800; font-size: 0.8rem; white-space: nowrap; }
@container (max-width: 52px) { .bd-seg span { display: none; } }
.ledger-tap li { display: block; padding: 0; }
.ledger-tap li.total { display: flex; padding: 0.85rem 0; }
.bd-row { display: flex; align-items: center; gap: 0.8rem; width: 100%; padding: 0.85rem 0; min-height: 48px; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.bd-row > span:nth-child(2) { flex: 1; color: var(--ink-soft); }
.bd-row b { font-variation-settings: "wdth" 110, "wght" 800; white-space: nowrap; }
.bd-row:hover > span:nth-child(2), .bd-row[aria-expanded="true"] > span:nth-child(2) { color: var(--ink); }
.ledger-tap .bd-row .bd-sw { flex: 0 0 14px; width: 14px; height: 14px; background: var(--edge-mid); border-radius: 2px; }
.ledger-tap .bd-row[aria-expanded="true"] .bd-sw { background: var(--accent); }
.bd-more { color: var(--ink-soft); font-size: 0.93rem; padding: 0 0 1rem calc(14px + 0.8rem); max-width: 64ch; }
.bd-more b { color: var(--ink); font-variation-settings: "wdth" 110, "wght" 820; }
