/* ==========================================================================
   Camp High Hopes
   Every value below comes from the design system. Never add a raw hex here.
   ========================================================================== */

/* Fonts are self-hosted (latin subset), so no request goes to Google. */
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 800; font-display: swap; src: url("../assets/fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 900; font-display: swap; src: url("../assets/fonts/big-shoulders-display-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/dm-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: italic; font-weight: 400; font-display: swap; src: url("../assets/fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2"); }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

:root {
  /* Color: Paper theme (the screen and document look) */
  --ground:              #FFFFFF;
  --line:                #D8E3E7;
  --line-strong:         #5C8AAC;

  --ink:                 #132019;
  --ink-body:            #3C4A43;
  --ink-muted:           #5A6660;

  --trail-blue:          #1F5A85;
  --marker-yellow:       #7A5A12;
  --campfire:            #A8431A;
  --cardinal:            #B8344A;
  --pine:                #2F6B3E;
  --blueberry:           #574793;
  --on-accent:           #FFFFFF;

  --trail-blue-soft:     #3FA8CE;
  --marker-yellow-soft:  #F5C244;
  --campfire-soft:       #F28A52;
  --cardinal-soft:       #E8949F;
  --pine-soft:           #6DB47C;
  --blueberry-soft:      #9B8DD0;


  --spruce:              #0C1D17;
  --birch:               #F0EADA;
  --birch-rgb:           240, 234, 218;   /* keep in sync with --birch */
  --focus-ring:          var(--trail-blue);

  /* Each page claims a section color */
  --section:             var(--trail-blue);
  --section-soft:        var(--trail-blue-soft);
  /* Text and marks that sit ON the section color, and the section color when
     it has to be readable AS text. Yellow pages override all three. */
  --on-section:          var(--on-accent);
  --on-section-label:    var(--birch);
  --section-text:        var(--section);
  --on-section-mark:     var(--marker-yellow-soft);

  /* Columns in a tile grid; the "tiles" block sets it from the tile count */
  --cols:                1;

  /* Set per element by main.js to stagger the scroll reveal */
  --reveal-delay:        0ms;

  /* Type */
  --font-display: "Big Shoulders Display", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-body:    "Atkinson Hyperlegible", "Segoe UI", Arial, sans-serif;
  --font-mono:    "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Shape and motion */
  --rule:        2px solid var(--ink);
  --die:         0 0 0 1px rgba(19,32,25,.13), 0 7px 14px -9px rgba(19,32,25,.45);
  --die-lift:    0 18px 26px -16px rgba(19,32,25,.5);
  --spring:      cubic-bezier(.3,1.6,.5,1);
  --hl:          var(--marker-yellow-soft);   /* marker highlight color */
  --w:           100%;                        /* marker highlight width; 0% until drawn in */
  --treeline: clamp(3rem, 6vw, 4.75rem);
  --wrap-max:    80rem;

  /* Spacing */
  --space-1: 4px;  --space-2: 8px;   --space-3: 12px;  --space-4: 16px;
  --space-6: 24px; --space-8: 32px;  --space-12: 48px; --space-16: 64px;

  /* Radius */
  --radius-sm: 4px; --radius-md: 8px; --radius-pill: 999px;
}

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
[id] { scroll-margin-top: var(--space-4); }
/* the header is sticky, so anchors and keyboard focus stop below it */
html { scroll-padding-top: 5rem; }

body {
  background: var(--ground);
  color: var(--ink-body);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.53;
}

/* --------------------------------------------------------------- type --- */

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); text-wrap: balance; }

h1 { font-size: clamp(3rem, 9vw, 6.5rem); line-height: .88; font-weight: 900; text-transform: uppercase; }
/* A sentence used as the section heading (home page): body font, sentence case,
   large enough to lead the section on its own. */
h2.statement {
  font-family: var(--font-body); font-weight: 700; text-transform: none; color: var(--ink);
  font-size: clamp(1.5rem, 3.2vw, 2.125rem); line-height: 1.25; max-width: 36ch; text-wrap: balance;
}
h2.statement-wide { max-width: none; }
.statement .ln { display: block; }
h2 { font-size: clamp(2.2rem, 5vw, 4.25rem); line-height: .92; font-weight: 900; text-transform: uppercase; }
h3 { font-size: clamp(1.3rem, 2.6vw, 1.875rem); line-height: 1.08; font-weight: 800; text-transform: uppercase; }
h4 { font-size: 1.375rem; line-height: 1.18; font-weight: 800; }

p { max-width: 75ch; text-wrap: pretty; }
p + p { margin-top: var(--space-4); }

.lead { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.5; color: var(--ink-body); max-width: none; text-wrap: balance; }
.caption { font-size: .875rem; line-height: 1.43; color: var(--ink-muted); }

.label {
  font-family: var(--font-mono); font-size: .875rem; line-height: 1.3; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted);
}

a { color: var(--trail-blue); }
a:hover { color: var(--ink); }

strong { font-weight: 700; color: var(--ink); }

/* The trail-marker disc: the camp's signature detail. Used sparingly. */
.disc { display: inline-block; width: .8em; height: 1.1em; background: var(--pine); flex: none;
  -webkit-mask: url(../assets/tree.svg) center bottom / contain no-repeat; mask: url(../assets/tree.svg) center bottom / contain no-repeat; }

/* ------------------------------------------------------------ skeleton --- */

.wrap { max-width: var(--wrap-max); margin: 0 auto; padding-inline: var(--space-6); }
/* keeps the container aligned with every other section and caps the measure */
.wrap.narrow > * { max-width: 46rem; }
.wrap.narrow > .lead { max-width: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--campfire); color: var(--on-accent);
  padding: var(--space-3) var(--space-6); text-decoration: none; font-weight: 700;
}
.skip-link:focus { left: var(--space-2); top: var(--space-2); }

:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* ----------------------------------------------------------------- nav --- */

.nav { border-bottom: 1px solid var(--line); background: var(--ground); position: sticky; top: 0; z-index: 40; transition: box-shadow .3s ease, border-color .3s ease; }
.nav.scrolled { border-bottom-color: var(--line-strong); box-shadow: 0 6px 14px -8px var(--spruce); }
.nav-inner {
  max-width: var(--wrap-max); margin: 0 auto; padding: var(--space-3) var(--space-6);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-6);
}
.brand { display: flex; align-items: center; min-width: 0; }
.brand img { display: block; height: 2.75rem; width: auto; max-width: 100%; }

.nav-links { display: flex; align-items: center; gap: var(--space-1); }
/* :not(.btn) keeps this from outranking .btn and leaking ink onto a campfire fill */
.nav-links a:not(.btn) {
  color: var(--ink); text-decoration: none; font-size: .9375rem; font-weight: 700;
  white-space: nowrap; padding: var(--space-2) var(--space-3); border-radius: var(--radius-pill);
  transition: background-color .2s ease;
}
.nav-links a.btn { margin-left: var(--space-2); }
.nav-links a.btn { text-decoration: none; }
.nav-links a:not(.btn):hover { background: var(--marker-yellow-soft); }
.nav-links a:not(.btn)[aria-current="page"] { background: var(--section-soft); }

.hamburger { display: none; background: none; border: 0; padding: var(--space-2); cursor: pointer; }
.hamburger span { display: block; width: 1.5rem; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .3s ease, opacity .3s ease; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -------------------------------------------------------------- button --- */

.btn {
  display: inline-block; text-decoration: none; text-align: center; white-space: nowrap;
  font-family: var(--font-body); font-weight: 700; font-size: 1.0625rem; line-height: 1.53;
  padding: var(--space-3) var(--space-6);
  border: 2px solid var(--ink); background: var(--ink); color: var(--on-accent);
  border-radius: var(--radius-pill); cursor: pointer;
  transition: rotate .3s var(--spring), background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-secondary { background: var(--ground); color: var(--ink); border-color: var(--ink); }
/* on a full-width section band the main button flips to the band's own colors */
.band-section .btn { background: var(--on-section); border-color: var(--on-section); color: var(--section); }
.band-section .btn-secondary { background: transparent; border-color: var(--on-section); color: var(--on-section); }
@media (hover: hover) {
  .btn:hover { rotate: -3deg; background: var(--campfire); border-color: var(--campfire); color: var(--on-accent); }
  .btn-secondary:hover { background: var(--ink); border-color: var(--ink); color: var(--on-accent); }
  .band-section .btn:hover, .band-section .btn-secondary:hover { background: transparent; border-color: var(--on-section); color: var(--on-section); }
}

.btn-sm { font-size: .9375rem; padding: var(--space-2) var(--space-4); }

/* ---------------------------------------------------------------- hero --- */

.hero { padding-block: clamp(var(--space-8), 5vw, 4.5rem) clamp(var(--space-6), 3vw, var(--space-12)); }
.hero .label { display: flex; gap: var(--space-1) var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-4); }
.hero h1 { font-size: clamp(3.25rem, 10vw, 10rem); line-height: .88; max-width: 20ch; }
.hero-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--space-6) var(--space-12); align-items: end; margin-top: clamp(var(--space-6), 3vw, var(--space-12)); }
.hero .lead { margin: 0; max-width: 40ch; font-weight: 700; font-size: clamp(1.1875rem, 1.7vw, 1.5rem); color: var(--ink); }
.hero .label span + span::before { content: "\2022"; margin-right: var(--space-4); color: var(--campfire); }
.hero-btns { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* ------------------------------------------------------------ jumpbar --- */

.jumpbar { background: var(--ground); border-bottom: var(--rule); }
.jumpbar ul { list-style: none; display: flex; gap: var(--space-2); flex-wrap: wrap; padding-block: var(--space-3); }
.jumpbar a {
  display: inline-block; text-decoration: none; white-space: nowrap;
  font-size: .9375rem; font-weight: 700; color: var(--ink);
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-pill);
  transition: background-color .3s ease, color .3s ease, border-radius .3s ease;
}
.jumpbar a:hover { background: var(--section); color: var(--on-section); }

/* -------------------------------------------------------------- bands --- */

.band { padding-block: clamp(var(--space-12), 7vw, var(--space-16)); }
.band:not(.band-section) { border-top: var(--rule); }
.band-section + .band { border-top: 0; }

/* A small mono line that names a section and says one true thing about it */
.meta { display: flex; justify-content: space-between; gap: var(--space-1) var(--space-6); flex-wrap: wrap;
  font-family: var(--font-mono); font-size: .875rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: var(--space-8); }
.meta p { margin: 0; max-width: none; }
.meta p + p { margin-top: 0; }

/* A tilted pill label, in the section color unless a fill class says otherwise */
.pill { display: inline-block; font-family: var(--font-mono); font-size: .875rem; font-weight: 500; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink); background: var(--section-soft);
  padding: 5px 10px 4px; border-radius: var(--radius-pill); rotate: -2deg; margin-bottom: var(--space-4); }

/* One word of a headline on a tilted chip */
.peel { display: inline-block; background: var(--campfire-soft); color: var(--ink); padding: 0 .18em .02em;
  border-radius: .2em; box-shadow: 0 0 0 .07em var(--ground), var(--die); rotate: -2deg; margin-top: .12em; }

/* Marker highlight on a few key phrases; main.js draws it in as it scrolls into view */
mark { color: var(--ink); font-weight: 700;
  background: linear-gradient(color-mix(in srgb, var(--hl) 58%, var(--ground)), color-mix(in srgb, var(--hl) 58%, var(--ground))) no-repeat 0 88% / var(--w, 100%) 62%;
  padding: 0 .08em; transition: background-size 1.1s cubic-bezier(.6,0,.2,1); }
mark.pre { --w: 0%; }
.m-section { --hl: var(--section-soft); }
.m-yellow { --hl: var(--marker-yellow-soft); }
.m-blue   { --hl: var(--trail-blue-soft); }
.m-berry  { --hl: var(--blueberry-soft); }
.m-red    { --hl: var(--cardinal-soft); }
.m-pine   { --hl: var(--pine-soft); }
.m-fire   { --hl: var(--campfire-soft); }

/* A long section: the heading stays put on the left while the text scrolls on the right */
.story { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6) clamp(var(--space-8), 5vw, 5.5rem); }
.story + .story { margin-top: var(--space-12); padding-top: var(--space-12); border-top: 1px solid var(--line-strong); }
.story-l .pill { margin-bottom: var(--space-4); }
.story-r > :first-child { margin-top: 0; }
.big { font-family: var(--font-body); font-weight: 700; font-size: clamp(1.375rem, 2.5vw, 2.125rem); line-height: 1.25;
  letter-spacing: -.01em; color: var(--ink); max-width: 30ch; }
.body-lg { font-size: clamp(1.0625rem, 1.35vw, 1.25rem); max-width: 52ch; text-wrap: balance; }
@media (min-width: 54rem) {
  .story { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .story-l { align-self: start; position: sticky; top: 6rem; }
}

/* A photo as a tilted print */
.polaroid { margin: 0; max-width: 32rem; background: var(--ground); padding: 12px 12px 36px; border-radius: var(--radius-sm);
  box-shadow: var(--die), var(--die-lift); rotate: 2deg; transition: rotate .5s var(--spring); }
.polaroid img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
@media (hover: hover) { .polaroid:hover { rotate: -1deg; } }

/* A full-width band in the page's section color.
   Everything inside takes --on-section (white, or ink on the yellow pages);
   only .label and -soft fills differ. */
.band-section { background: var(--section); color: var(--on-section); }
.band-section h1, .band-section h2, .band-section h3, .band-section h4,
.band-section p, .band-section .lead, .band-section li, .band-section strong { color: var(--on-section); }
.band-section .label, .band-section .meta { color: var(--on-section-label); }  /* soft tokens are fills, never text */
.band-section a { color: var(--on-section); }
.band-section .disc { background: var(--on-section-mark); }
/* soft-filled cards sit inside a section band and keep ink text */
.band-section .card-soft, .band-section .card-soft h3, .band-section .card-soft p { color: var(--ink); }

.band > .wrap > .label { display: block; margin-bottom: var(--space-3); }
.band h2 + p, .band h2 + .lead { margin-top: var(--space-4); }

/* --------------------------------------------------------------- cards --- */



.card {
  background: var(--ground); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: var(--space-6);
  display: flex; flex-direction: column; align-items: flex-start;
}
.card h3 { font-size: 1.25rem; margin-bottom: var(--space-2); }
.card p { font-size: 1rem; }
.card .btn { margin-top: var(--space-6); }

/* Soft-filled cards carry ink text, per the token rules */
.card-soft { border: 0; color: var(--ink); box-shadow: var(--die); transition: rotate .45s var(--spring); }
.cards:not(.stat-cards) > .card-soft:nth-child(3n+1) { rotate: -1deg; }
.cards:not(.stat-cards) > .card-soft:nth-child(3n+2) { rotate: .8deg; }
.cards:not(.stat-cards) > .card-soft:nth-child(3n) { rotate: -.6deg; }
@media (hover: hover) { .cards:not(.stat-cards) > .card-soft:hover { rotate: 0deg; } }
.card-soft h3 { color: var(--ink); }
.card-soft p { color: var(--ink); }
.card-soft .num { font-family: var(--font-mono); font-weight: 500; font-size: .875rem; letter-spacing: .06em; text-transform: uppercase; opacity: .78; margin-bottom: var(--space-2); }
.fill-blue   { background: var(--trail-blue-soft); }
.fill-pine   { background: var(--pine-soft); }
.fill-yellow { background: var(--marker-yellow-soft); }
.fill-fire   { background: var(--campfire-soft); }
.fill-berry  { background: var(--blueberry-soft); }
.fill-red    { background: var(--cardinal-soft); }
.fill-night  { background: var(--spruce); }
.card-soft.fill-night, .card-soft.fill-night h3, .card-soft.fill-night p { color: var(--birch); }
.card-soft a:not(.btn) { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
.cal-main { display: block; font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.25rem, 4vw, 3rem); line-height: 1; color: var(--ink); }
.cal-year { display: block; margin-top: var(--space-1); font-weight: 700; font-size: .9rem; letter-spacing: .08em; color: var(--ink); }
.cal h3 { margin-top: var(--space-4); }
.card p { text-wrap: balance; }


/* ------------------------------------------------------------- tiles ---
   Tile grids always fill whole rows. The column count follows the number of
   tiles, so a row never ends with an orphan. Adding a tile changes the layout
   by itself; for a count not listed here (5, 7, 8) add a rule below. */
.cards, .people {
  --cols: 1;
  display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: var(--space-4); margin-top: var(--space-8);
}
:is(.cards, .people):has(> :only-child) { grid-template-columns: minmax(0, 22rem); }
.cards.stat-cards { --cols: 2; }          /* the four home stats: 2 x 2, then 4 across */
@media (min-width: 40rem) {
  .cards, .people { grid-auto-rows: 1fr; }   /* every tile the same height */
  :is(.cards, .people):has(> :nth-child(2):last-child),
  :is(.cards, .people):has(> :nth-child(4):last-child),
  :is(.cards, .people):has(> :nth-child(6):last-child) { --cols: 2; }
}
@media (min-width: 48rem) {
  :is(.cards, .people):has(> :nth-child(3):last-child),
  :is(.cards, .people):has(> :nth-child(9):last-child) { --cols: 3; }
}
@media (min-width: 56rem) {
  :is(.cards, .people):has(> :nth-child(6):last-child) { --cols: 3; }
}
@media (min-width: 64rem) {
  :is(.cards, .people):has(> :nth-child(4):last-child) { --cols: 4; }
}

/* home Camp section: photo on the left, the three teasers stacked beside it */
.camp-split { display: grid; gap: var(--space-8); margin-top: var(--space-8); align-items: center; }
.camp-split .cards { margin-top: 0; --cols: 1; grid-auto-rows: auto; }
@media (min-width: 56rem) { .camp-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: var(--space-12); } }
@media (max-width: 55.99rem) { .camp-split .polaroid { margin-inline: auto; } }

/* home-page teasers: the link sits at the foot of every card */
.cards-teasers .more { margin-top: auto; padding-top: var(--space-4); }
.cards-teasers .more .btn { margin-top: 0; }
.camp-split .cards-teasers { --cols: 1 !important; }

/* The four home stats are scalloped merit badges, like patches on a camp sash */
.stat-cards { gap: var(--space-6) var(--space-4); grid-template-columns: repeat(2, minmax(0, 12rem)); justify-content: center; }
@media (min-width: 40rem) { .stat-cards { grid-template-columns: repeat(4, minmax(0, 12rem)); gap: var(--space-4); } }
.stat-cards .card {
  aspect-ratio: 1; padding: 13%; align-items: center; justify-content: center; text-align: center;
  border-radius: 0; box-shadow: none; position: relative;
  -webkit-mask: url(../assets/badge.svg) center / 100% 100% no-repeat; mask: url(../assets/badge.svg) center / 100% 100% no-repeat;
}
.stat-cards .card::after { content: ""; position: absolute; inset: 8%; border: 2px dashed var(--ink); border-radius: 50%; opacity: .45; pointer-events: none; }
.stat-cards .card:nth-child(odd) { rotate: -4deg; }
.stat-cards .card:nth-child(even) { rotate: 3deg; }
@media (hover: hover) { .stat-cards .card:hover { rotate: 0deg; } }
.stat-cards .stat-num { font-size: clamp(2.25rem, 8vw, 3.75rem); }
.stat-cards .stat-label { margin-top: var(--space-1); font-size: clamp(.75rem, 2.4vw, .875rem); }



/* --------------------------------------------------------------- stats --- */

.stat-num { font-variant-numeric: tabular-nums; font-family: var(--font-display); font-weight: 900; font-size: clamp(2.5rem, 6vw, 3.75rem); line-height: .9; color: var(--ink); }
.stat-label { font-family: var(--font-mono); font-size: .875rem; line-height: 1.25; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin-top: var(--space-2); }

/* ---------------------------------------------------------- prose list --- */

.ticks { list-style: none; margin-top: var(--space-6); display: grid; gap: var(--space-3); max-width: 60ch; }
.ticks li { display: flex; gap: var(--space-3); align-items: flex-start; }
.ticks li .disc { margin-top: .3em; }

/* ----------------------------------------------------------------- faq --- */

.faq { margin-top: var(--space-8); max-width: 54rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: var(--space-6) var(--space-8) var(--space-6) 0;
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.125rem, 2.4vw, 1.375rem); color: var(--ink); text-wrap: balance;
  transition: color .3s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--section-text); }
.faq summary::after {
  content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-family: var(--font-body); font-size: 1.5rem; font-weight: 700; color: var(--marker-yellow); line-height: 1;
}
.faq details[open] summary { color: var(--section-text); }
.faq details[open] summary::after { content: '\2013'; }
.faq .answer { padding: 0 var(--space-8) var(--space-6) 0; }

.callout {
  background: var(--ground); border-left: 4px solid var(--section);
  border-radius: var(--radius-sm); box-shadow: var(--die); padding: var(--space-6);
}

/* -------------------------------------------------------------- people --- */


.person { background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-6); }
.avatar {
  width: 4.5rem; height: 4.5rem; border-radius: 50%; overflow: hidden;
  background: var(--section); color: var(--on-section);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 900; font-size: 1.5rem;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { font-size: 1.125rem; margin: var(--space-4) 0 var(--space-1); }
.person .role { font-family: var(--font-mono); font-size: .875rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.person p { font-size: 1rem; margin-top: var(--space-3); }

/* ------------------------------------------------------------ sponsors --- */

.marquee {
  overflow: hidden; margin-top: var(--space-8); padding-block: var(--space-6);
  background: var(--section-soft); border-block: var(--rule);
}
.marquee-track { display: flex; align-items: center; width: max-content; gap: var(--space-8); animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tree-sep { flex: none; display: block; width: 1.5rem; height: 2.5rem; background: var(--ink);
  -webkit-mask: url(../assets/tree.svg) center bottom / contain no-repeat; mask: url(../assets/tree.svg) center bottom / contain no-repeat; }

.logo-chip {
  flex: none; width: 13rem; height: 6.25rem; padding: var(--space-4) var(--space-6);
  background: var(--on-accent); border: var(--rule); border-radius: var(--radius-md);
  display: grid; place-items: center;
  transition: border-radius .3s ease, border-color .3s ease;
}
.logo-chip img { max-width: 100%; max-height: 4.25rem; width: auto; height: auto; object-fit: contain; }
a.logo-chip:hover, a.logo-chip:focus-visible { border-radius: 1.75rem; }

/* ---------------------------------------------------------------- form --- */

.form { margin-top: var(--space-8); max-width: 38rem; display: grid; gap: var(--space-6); }
.field { display: grid; gap: var(--space-2); }
.field label { font-family: var(--font-mono); font-size: .875rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.53; color: var(--ink);
  background: var(--ground); border: 2px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4); width: 100%;
  transition: border-color .3s ease;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-muted); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--trail-blue); outline: none; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.field textarea { min-height: 9rem; resize: vertical; }
.field select {
  appearance: none; padding-right: var(--space-12);
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-muted) 50%), linear-gradient(135deg, var(--ink-muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
}
.hp { position: absolute; left: -9999px; }
.form .btn { justify-self: start; }
.card .form { width: 100%; }

.contact-grid { display: grid; gap: var(--space-12); margin-top: var(--space-8); }
.contact-details { display: grid; gap: var(--space-6); align-content: start; }
.contact-block .label { display: block; margin-bottom: var(--space-1); }
.contact-block a, .contact-block address { font-style: normal; color: var(--ink); text-decoration: none; }
.contact-block a:hover { color: var(--trail-blue); }

/* -------------------------------------------------------------- footer --- */

.foot { position: relative; background: var(--spruce); color: var(--birch); padding-block: var(--space-16) var(--space-8); }
/* A row of the logo tree standing along the top edge of the footer */
.foot::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: var(--treeline);
  background: var(--pine); pointer-events: none;
  -webkit-mask: url(../assets/treeline.svg) left bottom / auto 100% repeat-x; mask: url(../assets/treeline.svg) left bottom / auto 100% repeat-x;
}
/* the last band leaves room for the trees to stand in */
main > :last-child { padding-bottom: calc(clamp(var(--space-12), 7vw, var(--space-16)) + var(--treeline)); }
.foot a { color: var(--birch); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot .foot-h { font-family: var(--font-mono); font-size: .875rem; line-height: 1.3; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--birch); margin-bottom: var(--space-4); }
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: var(--space-8); }
.foot ul { list-style: none; display: grid; gap: var(--space-2); }
.foot .signup { display: flex; gap: var(--space-2); margin-top: var(--space-4); flex-wrap: wrap; }
.foot .signup input { flex: 1 1 10rem; font-family: var(--font-body); font-size: 1rem; padding: var(--space-2) var(--space-3); border: 2px solid rgba(var(--birch-rgb), .42); border-radius: var(--radius-sm); background: transparent; color: var(--birch); }
.foot .signup input::placeholder { color: rgba(var(--birch-rgb), .65); }
.foot .signup input:focus { border-color: var(--birch); outline: none; }
.foot .signup button { font-family: var(--font-body); font-weight: 700; font-size: 1rem; padding: var(--space-2) var(--space-4); border: 2px solid var(--campfire-soft); background: var(--campfire-soft); color: var(--spruce); border-radius: var(--radius-pill); cursor: pointer; transition: border-radius .3s ease; }
.foot .signup button:hover { border-radius: var(--radius-sm); }
.social { display: flex; gap: var(--space-2); margin-top: var(--space-4); }
.social a { width: 2.5rem; height: 2.5rem; border: 2px solid rgba(var(--birch-rgb), .42); border-radius: var(--radius-pill); display: grid; place-items: center; transition: background-color .3s ease, color .3s ease, border-radius .3s ease; }
.social a:hover { background: var(--birch); color: var(--spruce); border-radius: var(--radius-sm); }
.social svg { width: 1.1rem; height: 1.1rem; fill: currentColor; display: block; }
.foot-base { margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid rgba(var(--birch-rgb), .2); font-size: .875rem; display: flex; gap: var(--space-4) var(--space-6); flex-wrap: wrap; justify-content: space-between; }
.nobr { white-space: nowrap; }

/* ------------------------------------------------------------ a11y/mob --- */

@media (hover: none) and (pointer: coarse) { .btn { padding-block: var(--space-4); } .btn-sm { padding-block: var(--space-3); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; width: auto; flex-wrap: wrap; }
  .marquee { overflow: visible; }
  .marquee-track { justify-content: center; }
  .marquee-dupe, .marquee-dupe + .tree-sep { display: none; }
}

@media (min-width: 56rem) {
  .contact-grid { grid-template-columns: 1fr 18rem; gap: var(--space-16); }
}

@media (max-width: 26rem) {
  /* the banner is 6:1, so it has to come down before it shoves the hamburger off-screen */
  .brand img { height: 2rem; }
}

/* Seven nav items need about 62rem; below that they collapse into a full-screen yellow menu */
@media (max-width: 62rem) {
  .hamburger { display: block; position: relative; z-index: 60; }
  .brand { position: relative; z-index: 60; }
  .nav-links {
    display: none; position: fixed; inset: 0; z-index: 50;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--marker-yellow-soft);
    padding: 5.5rem var(--space-6) var(--space-12); overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) {
    font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
    font-size: min(3.25rem, 12vw); line-height: 1.05; padding: var(--space-1) 0; border-radius: 0;
  }
  .nav-links a:not(.btn):nth-child(2n) { margin-left: var(--space-8); }
  .nav-links a:not(.btn):hover, .nav-links a:not(.btn)[aria-current="page"] { background: none; box-shadow: inset 0 -.14em 0 var(--ink); }
  .nav-links .btn { margin: var(--space-6) 0 0; }
  .nav-links .btn + .btn { margin-top: var(--space-2); }
}

@media (max-width: 48rem) {
  .wrap, .nav-inner { padding-inline: var(--space-4); }
  .hero-row { grid-template-columns: minmax(0, 1fr); }
  .hero-btns .btn { width: 100%; }
  .foot-base { flex-direction: column; }
}


/* ------------------------------------------------------------- reveal --- */
/* Content below the fold eases in as it scrolls into view. main.js adds .js and
   .reveal only when motion is allowed and the element starts off-screen, so with
   scripts off or reduced motion on, everything is simply visible. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0; transform: translateY(1rem);
    transition: opacity .6s ease, transform .6s ease;
    transition-delay: var(--reveal-delay, 0ms);
  }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media print { .js .reveal { opacity: 1; transform: none; } }

/* ------------------------------------------------- dates and signups --- */
.form-msg { margin-top: var(--space-2); font-size: .9375rem; line-height: 1.4; }
.dates-empty { margin-top: var(--space-8); }
.notify { display: grid; gap: var(--space-4); margin-top: var(--space-4); width: 100%; }
.notify .btn { justify-self: start; margin-top: 0; }
