/* Winning Warriors Foundation: "The Neighborhood Quilt" (2026-10-29)
   The site is pieced like a quilt neighbors made: plain solid blocks, photos and
   facts fitted edge to edge. Seams are changes of color, never lines or borders.
   Five solids, slate ink, one leaf green for actions. No tints, no gradients. */

/* ---------------------------------------------------------------- fonts */

@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/firasans-400.woff2") format("woff2"); }
@font-face { font-family: "Fira Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("../assets/fonts/firasans-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/firasans-500.woff2") format("woff2"); }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/firasans-700.woff2") format("woff2"); }

/* --------------------------------------------------------------- tokens */

:root {
  /* the five solids */
  --sky: #a9cde3;
  --sage: #b5cfa6;
  --butter: #f3dc8f;
  --rose: #ebbcab;
  --white: #fbfcfb;
  /* ink and the one action color */
  --slate: #203543;
  --leaf: #2e7b3c;
  --leaf-deep: #24632f;

  /* the page's own solid; each page sets it on <body> */
  --own: var(--sky);

  /* one block module rules every row */
  --module: clamp(150px, 12vw, 190px);
  --pad: clamp(1.5rem, 3.2vw, 3.25rem);
  --max: 1440px;

  --step-display: clamp(2.6rem, 5.4vw, 4.75rem);
  --step-h2: clamp(2rem, 3.4vw, 3rem);
  --step-h3: clamp(1.35rem, 1.8vw, 1.6rem);
  --step-fact: clamp(1.75rem, 2.8vw, 2.6rem);
  --step-body: 1.125rem;
  --step-small: 0.95rem;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

.page--sky { --own: var(--sky); }
.page--sage { --own: var(--sage); }
.page--butter { --own: var(--butter); }
.page--rose { --own: var(--rose); }

/* ----------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--slate) var(--white);
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--slate);
  font-family: "Fira Sans", "Seravek", "Avenir Next", system-ui, sans-serif;
  font-size: var(--step-body);
  line-height: 1.55;
  caret-color: var(--leaf);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--butter); color: var(--slate); }

img { display: block; max-width: 100%; }

h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }

h1, h2, h3 { font-weight: 700; line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: var(--step-display); }
h2 { font-size: var(--step-h2); }
h3 { font-size: var(--step-h3); letter-spacing: -0.01em; line-height: 1.15; }

p { max-width: 62ch; text-wrap: pretty; }

a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }

:focus-visible { outline: 3px solid var(--slate); outline-offset: 3px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--slate); color: var(--white); padding: 0.75rem 1.25rem;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* -------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: 0.85rem 1.6rem;
  font: 700 1.0625rem/1.2 "Fira Sans", system-ui, sans-serif;
  text-decoration: none; text-align: center;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.btn--leaf { background: var(--leaf); color: var(--white); }
.btn--leaf:hover { background: var(--leaf-deep); }
.btn--slate { background: var(--slate); color: var(--white); }
.btn--slate:hover { background: var(--leaf-deep); }
.btn--line { background: transparent; color: var(--slate); box-shadow: inset 0 0 0 2px var(--slate); }
.btn--line:hover { background: var(--slate); color: var(--white); }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* --------------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  transition: box-shadow 0.3s var(--ease-out);
}
.site-header.is-scrolled { box-shadow: 0 10px 24px -18px rgba(32, 53, 67, 0.45); }

.site-header__bar {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: 5.25rem; padding: 0 var(--pad);
}

.brand { display: inline-flex; align-items: center; gap: 0.85rem; text-decoration: none; }
.brand__mark { width: 48px; height: 48px; flex: none; }
.brand__word { font-weight: 700; font-size: 1.3rem; line-height: 1.05; letter-spacing: -0.01em; }
.brand__word span { display: block; font-weight: 500; font-size: 0.875rem; letter-spacing: 0.01em; margin-top: 0.2rem; }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; padding: 0; display: flex; align-items: center; gap: 0.25rem; }
.main-nav a {
  display: block; padding: 0.7rem 0.95rem; font-weight: 500; text-decoration: none;
  transition: background-color 0.25s var(--ease-out);
}
.main-nav a:hover { background: var(--own); }
.main-nav a[aria-current="page"] { background: var(--own); font-weight: 700; }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.nav-toggle {
  display: none; width: 3.25rem; height: 3.25rem; padding: 0; border: 0;
  background: var(--own); color: var(--slate); cursor: pointer;
}
.nav-toggle svg { width: 26px; height: 26px; margin: auto; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav { display: none; }

/* Six links need about 1204px on one line; the menu folds below 1240px to leave some room. */
@media (max-width: 1240px) {
  .main-nav { display: none; }
  .nav-toggle { display: grid; }
  .mobile-nav { background: var(--white); box-shadow: 0 14px 24px -18px rgba(32, 53, 67, 0.45); }
  .mobile-nav.is-open { display: block; }
  .mobile-nav ul { list-style: none; margin: 0; padding: 0.5rem 0 1rem; }
  .mobile-nav a { display: block; padding: 0.9rem var(--pad); font-size: 1.2rem; font-weight: 500; text-decoration: none; }
  .mobile-nav a[aria-current="page"] { font-weight: 700; background: var(--own); }
}

@media (max-width: 420px) {
  .site-header__bar { gap: 0.75rem; }
  .brand__mark { width: 40px; height: 40px; }
  .brand__word { font-size: 1.1rem; }
  .header-actions .btn { min-height: 3rem; padding: 0.7rem 1rem; font-size: 1rem; }
  .nav-toggle { width: 3rem; height: 3rem; }
}

/* ---------------------------------------------------------- the quilt */

/* Every row is a 12-column grid of blocks that meet edge to edge. */
.quilt {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(var(--module), auto);
}

.block {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--pad);
  background: var(--white);
}
.block--sky { background: var(--sky); }
.block--sage { background: var(--sage); }
.block--butter { background: var(--butter); }
.block--rose { background: var(--rose); }
.block--white { background: var(--white); }


/* A photo block: the photo fills the block, cropped, never framed. */
.block--photo { padding: 0; background: var(--sage); }
.block--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* The caption of a photo is its own small solid piece, pieced into a corner. */
.block--photo figcaption {
  position: absolute; left: 0; bottom: 0; z-index: 1;
  padding: 0.7rem 1.1rem; font-weight: 700; font-size: var(--step-small);
  background: var(--white);
}

/* The one quilt mark: a half-square triangle, two solids split corner to corner. */
.block--tri { padding: 0; background: var(--tri-a, var(--butter)); }
.block--tri::after {
  content: ""; position: absolute; inset: 0;
  background: var(--tri-b, var(--rose));
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.block p + p { margin-top: 1rem; }
.block h2 + p, .block h1 + p { margin-top: 1.25rem; }
.block h3 + p { margin-top: 0.75rem; }

.lede { font-size: clamp(1.15rem, 1.4vw, 1.3rem); line-height: 1.5; }

.fact { font-size: var(--step-fact); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
.fact--long { font-size: var(--step-h3); line-height: 1.15; }
.fact--fit { font-size: clamp(1.4rem, 2.2vw, 2.1rem); white-space: nowrap; }
.fact small.after { display: block; font-size: var(--step-small); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; margin: 0.5rem 0 0; }

/* --------------------------------------------------------- page heroes */

.nowrap { white-space: nowrap; }

/* Home: the foundation's three photos at the top (Shawn and Jeff, 2026-11-03). The group photo and the
   climbing wall fill the first three rows; the intro sits under them beside the paddleboards. */
.q-home-hero { grid-auto-rows: minmax(clamp(112px, 9.45vw, 150px), auto); }
.q-home-hero .group-photo { grid-column: 1 / 10; grid-row: 1 / 4; }
.q-home-hero .climb-photo { grid-column: 10 / 13; grid-row: 1 / 4; }
.q-home-hero .intro { grid-column: 1 / 8; grid-row: 4 / 7; justify-content: center; }
.q-home-hero .paddle-photo { grid-column: 8 / 13; grid-row: 4 / 7; }
.q-home-hero .intro h1 { font-size: var(--step-h2); }

/* Interior pages: the page's own solid holds the title beside a photo. */
.q-page-hero .hero { grid-column: 1 / 8; grid-row: span 3; justify-content: center; background: var(--own); }
.q-page-hero .hero-photo { grid-column: 8 / 13; grid-row: span 3; }

/* ---------------------------------------------------------- section rows */

/* A heading block beside two (or three) pieces of content. */
.q-row .head { grid-column: 1 / 5; grid-row: auto; justify-content: flex-start; }
.q-row .piece { grid-row: auto; justify-content: flex-start; }
.q-row--two .piece p, .q-pair .piece p { font-size: clamp(1.15rem, 1.4vw, 1.3rem); line-height: 1.5; }
.q-row--two .piece { grid-column: span 4; }
.q-row--three .head { grid-column: 1 / 13; grid-row: span 1; justify-content: flex-end; }
.q-row--three .piece { grid-column: span 4; }
.q-row--three .note { grid-column: 1 / 13; grid-row: span 1; justify-content: center; }
.q-pair .piece { grid-column: span 6; grid-row: auto; justify-content: flex-start; }

.piece .btn { margin-top: auto; align-self: flex-start; }
.piece p { margin-bottom: 1.75rem; }

/* The facts row: one unbroken row that scales and does not wrap until phones. */
.q-facts { grid-auto-rows: auto; }
.q-facts .fact-block { grid-column: span 3; min-height: var(--module); justify-content: flex-end; }
.q-facts dt { font-size: var(--step-fact); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
.q-facts dd { margin-top: 0.6rem; font-size: var(--step-small); font-weight: 500; line-height: 1.35; }

/* One statement across the full row, in the title size. */
.q-statement .statement { grid-column: 1 / 13; justify-content: center; }
.q-statement .statement p { max-width: 40ch; font-size: var(--step-h3); font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }

/* A heading block beside one wide piece. */
.q-row--one .piece { grid-column: 5 / 13; }

/* A small line button, for a document or form inside a piece (the camp forms and the waivers). */
.btn--small { min-height: 2.75rem; padding: 0.55rem 1rem; font-size: 0.95rem; }

/* A list of documents inside its piece: one small line button per PDF, the width of the piece. */
.doc-list { list-style: none; padding: 0; display: grid; gap: 0.5rem; margin-top: 0.9rem; }
.doc-list .btn { width: 100%; }

/* A numbered to-do list inside its piece (Send a Camper, Volunteer), with the forms a step needs
   listed under that step. */
.piece .steps-label { margin: 0.75rem 0 0; font-weight: 500; }
.steps { margin: 0.6rem 0 1.75rem; padding-left: 1.35rem; display: grid; gap: 0.65rem; line-height: 1.45; }
.steps li { padding-left: 0.2rem; }
.steps li::marker { font-weight: 700; }
.steps a:not(.btn) { font-weight: 500; }
/* The forms a step needs: small line buttons, one per row, the width of the step. */
.steps .step-forms { list-style: none; padding: 0; margin: 0.8rem 0 0.3rem; display: grid; gap: 0.5rem; }
.steps .step-forms li { padding-left: 0; }
.steps .step-forms .btn { width: 100%; }
.q-row--three .note .deadlines { font-weight: 700; }

/* An email address on its own line never runs past its block. */
.email { overflow-wrap: anywhere; font-size: clamp(1.05rem, 1.3vw, 1.2rem); font-weight: 500; }

/* Activities: a photo on the left, and on the right one block with the heading, each activity beside a
   small photo of it, and a line naming the activities with no photo yet. */
.q-activities .head { grid-column: 7 / 13; grid-row: 1; justify-content: flex-start; }
.q-activities .side-photo { grid-column: 1 / 7; grid-row: 1; }
.activity-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 2rem; }
.activity-list li { display: flex; align-items: center; gap: 0.9rem; font-weight: 500; line-height: 1.25; }
.activity-list img { width: 72px; height: 72px; flex: none; object-fit: cover; display: block; }
.activity-more { margin: 1.6rem 0 0; }
.activity-more span { font-weight: 500; }

/* Gallery: a heading block, then the photos pieced at different sizes. */
.q-gallery .head { grid-column: 1 / 5; grid-row: span 2; justify-content: flex-end; }
.q-gallery .g1 { grid-column: 5 / 9; grid-row: span 4; }
.q-gallery .g2 { grid-column: 9 / 13; grid-row: span 2; }
.q-gallery .g3 { grid-column: 1 / 5; grid-row: span 2; }
.q-gallery .g4 { grid-column: 9 / 13; grid-row: span 2; }
.q-gallery .note { grid-column: 1 / 13; grid-row: span 1; justify-content: center; }
.q-gallery .note p { font-style: italic; }

/* Closing row: a call to action on the page's own solid, a triangle at the end. */
.q-close .close { grid-column: 1 / 10; grid-row: span 2; justify-content: center; background: var(--own); }
.q-close .t-end { grid-column: 10 / 13; grid-row: span 2; }
.q-close .actions { margin-top: 1.5rem; }

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

.site-footer .quilt { grid-auto-rows: auto; }
.site-footer .block { justify-content: flex-start; min-height: calc(var(--module) * 1.4); }
.site-footer .f-brand { grid-column: 1 / 8; }
.site-footer .f-explore { grid-column: 8 / 13; }
.site-footer .f-bottom {
  grid-column: 1 / 13; min-height: 0; padding-top: 1.1rem; padding-bottom: 1.1rem;
  flex-direction: row; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem;
  font-size: var(--step-small);
}
.site-footer h2 { font-size: 1.15rem; letter-spacing: 0; margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li + li { margin-top: 0.4rem; }
.site-footer .f-brand p { margin-top: 1rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* --------------------------------------------------------------- motion */

/* The one authored moment: the opening quilt top is pieced together on load,
   each block's color laid down in turn. Content is visible without it. */
@media (prefers-reduced-motion: no-preference) {
  .q-home-hero > .block, .q-page-hero > .block {
    animation: piece-in 0.9s var(--ease-out) backwards;
  }
  .q-home-hero > .block:nth-child(2), .q-page-hero > .block:nth-child(2) { animation-delay: 0.08s; }
  .q-home-hero > .block:nth-child(3) { animation-delay: 0.16s; }
  .q-home-hero > .block:nth-child(4) { animation-delay: 0.22s; }
  .q-home-hero > .block:nth-child(5) { animation-delay: 0.28s; }
  .q-home-hero > .block:nth-child(6) { animation-delay: 0.34s; }
  .q-home-hero > .block:nth-child(7) { animation-delay: 0.40s; }
  .q-home-hero > .block:nth-child(8) { animation-delay: 0.46s; }
}
@keyframes piece-in {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0 0 0 0); }
}

/* ----------------------------------------------------------- responsive */

@media (max-width: 1100px) {
  .q-activities .head { grid-column: 1 / 13; grid-row: auto; }
  .q-activities .side-photo { grid-column: 1 / 13; grid-row: span 2; }
  .q-row .head { grid-column: 1 / 13; grid-row: span 2; justify-content: flex-end; }
  .q-row--two .piece { grid-column: span 6; }
  .q-row--one .piece { grid-column: 1 / 13; }
}

@media (max-width: 860px) {
  :root { --module: 132px; }
  .quilt { grid-template-columns: repeat(6, minmax(0, 1fr)); }

  /* Phones and tablets: the whole group photo, then the intro, then the other two photos side by side. */
  .q-home-hero .group-photo { grid-column: 1 / 7; grid-row: auto; aspect-ratio: 4080 / 1490; min-height: 0; }
  .q-home-hero .intro { grid-column: 1 / 7; grid-row: auto; padding-top: 2.75rem; padding-bottom: 2.75rem; }
  .q-home-hero .climb-photo, .q-home-hero .paddle-photo { grid-column: span 3; grid-row: span 2; }

  .q-page-hero .hero { grid-column: 1 / 7; grid-row: auto; padding-top: 2.75rem; padding-bottom: 2.75rem; }
  .q-page-hero .hero-photo { grid-column: 1 / 7; grid-row: span 2; }

  .q-row .head, .q-row--three .head { grid-column: 1 / 7; grid-row: auto; padding-top: 2.75rem; padding-bottom: 2.25rem; }
  .q-row .piece, .q-row--two .piece, .q-row--three .piece { grid-column: 1 / 7; grid-row: auto; }
  .q-row--three .note { grid-column: 1 / 7; grid-row: auto; }
  .q-statement .statement { grid-column: 1 / 7; }
  .q-pair .piece { grid-column: 1 / 7; grid-row: auto; }

  .q-facts .fact-block { grid-column: span 3; }

  .q-activities .head { grid-column: 1 / 7; padding-top: 2.75rem; padding-bottom: 2.75rem; }
  .q-activities .side-photo { grid-column: 1 / 7; }
  .activity-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .q-gallery .head { grid-column: 1 / 7; grid-row: auto; padding-top: 2.75rem; padding-bottom: 2.25rem; }
  .q-gallery .g1 { grid-column: 1 / 7; grid-row: span 3; }
  .q-gallery .g2, .q-gallery .g3, .q-gallery .g4 { grid-column: 1 / 7; grid-row: span 2; }
  .q-gallery .note { grid-column: 1 / 7; grid-row: auto; }

  .q-close .close { grid-column: 1 / 7; grid-row: auto; padding-top: 2.75rem; padding-bottom: 2.75rem; }
  .q-close .t-end { grid-column: 1 / 7; grid-row: span 1; }

  .site-footer .f-brand, .site-footer .f-explore, .site-footer .f-bottom { grid-column: 1 / 7; }
  .site-footer .block { min-height: 0; }
}

@media (max-width: 520px) {
  :root { --module: 112px; }
  .actions .btn { flex: 1 1 auto; }
  /* One activity per row on phones, so each name stays on one line beside its photo. */
  .activity-list { grid-template-columns: 1fr; gap: 0.9rem; }
  .activity-list img { width: 64px; height: 64px; }
}
