/* ============================================================
   Whatcom Racquet Alliance

   Identity derived from the court itself: white walls, red lines,
   pale maple floor. Near-black ink, not navy. One grotesque
   superfamily doing all the work through weight and width, no
   serif anywhere. Institutional and club-like rather than
   editorial.

   Deliberately NOT: a serif display over a sans, a warm cream
   ground, a slash wordmark, or tiny tracked accent labels. Those
   belong to a different project and this one should not read as
   its sibling.
   ============================================================ */

:root {
  --wall:      #FBFAF8;   /* court wall white */
  --wall-2:    #F1EFEA;   /* panel */
  --wall-3:    #E4E1D9;   /* deeper panel, rules */
  --maple:     #EFE2CC;   /* floor, used once */
  --ink:       #171614;   /* near-black, warm */
  --ink-2:     #3D3A35;
  --muted:     #6E6961;
  --faint:     #97918700;
  --faint-c:   #979187;
  --rule:      #D8D4CB;
  --rule-soft: #E8E5DE;
  --line:      #C0392B;   /* court line red */
  --line-dp:   #97291E;
  --line-lt:   #FBF0EE;

  --font: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, sans-serif;

  --measure: 36rem;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --shell: 70rem;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --wall:      #131211;
    --wall-2:    #1A1917;
    --wall-3:    #23211E;
    --maple:     #2A2419;
    --ink:       #F0EDE7;
    --ink-2:     #D6D2CA;
    --muted:     #A09A90;
    --faint-c:   #7D776E;
    --rule:      #302D29;
    --rule-soft: #262421;
    --line:      #E4614C;
    --line-dp:   #F0806D;
    --line-lt:   #251814;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--wall);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 1.02rem;
  line-height: 1.62;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ---------- type: one family, hierarchy from weight and width ---------- */

h1, h2, h3 {
  color: var(--ink);
  margin: 0;
  line-height: 1.06;
  text-wrap: balance;
}

.display {
  font-size: clamp(2.15rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.022em;
  font-variation-settings: "wdth" 92;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.016em;
  font-variation-settings: "wdth" 95;
}

h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.004em; line-height: 1.3; }

p { margin: 0 0 1.05em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }
a { color: inherit; }
strong { font-weight: 700; color: var(--ink); }

/* Section markers sit ON a red rule rather than floating as tracked caps. */
.marker {
  display: block;
  border-top: 3px solid var(--line);
  padding-top: .5rem;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--ink);
  margin-bottom: 1rem;
}

.deck {
  font-size: clamp(1.05rem, 1.6vw, 1.18rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 38rem;
}

.fine { font-size: .82rem; line-height: 1.6; color: var(--faint-c); max-width: 38rem; }

/* ---------- masthead ---------- */

.masthead { border-bottom: 1px solid var(--rule); background: var(--wall); }

.masthead__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  padding-block: 1.1rem;
  flex-wrap: wrap;
}

/* Club plate: a red rule with the name in caps beneath it. */
.wordmark {
  text-decoration: none;
  display: inline-block;
  border-top: 3px solid var(--line);
  padding-top: .38rem;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .085em;
  text-transform: uppercase;
  color: var(--ink);
  font-variation-settings: "wdth" 88;
  line-height: 1.1;
}

.nav { display: flex; align-items: baseline; gap: clamp(.9rem, 2.4vw, 1.8rem); font-size: .87rem; font-weight: 500; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--muted); padding-bottom: .12rem; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--line); font-weight: 600; }

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

.btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font);
  font-size: .87rem;
  font-weight: 700;
  letter-spacing: .012em;
  text-decoration: none;
  padding: .74rem 1.35rem;
  border: 2px solid var(--line);
  background: var(--line);
  color: #fff;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--line-dp); border-color: var(--line-dp); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn--ghost:hover { background: transparent; border-color: var(--ink); }
@media (prefers-color-scheme: dark) { .btn { color: #17110F; } }

.actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }

/* ---------- sections ---------- */

.hero { padding-block: clamp(2.75rem, 6.5vw, 5rem) clamp(2rem, 4.5vw, 3.25rem); }
.hero .display { margin-bottom: 1.3rem; }
.hero .deck { margin-bottom: 2rem; }

.band { border-top: 1px solid var(--rule); padding-block: clamp(2.4rem, 5.2vw, 3.75rem); }
.band--tint { background: var(--wall-2); }
.band__head { margin-bottom: clamp(1.4rem, 3vw, 2.1rem); }

/* ---------- the ask block: maple floor panel, red rules ---------- */

.asks { background: var(--maple); padding-block: clamp(2.5rem, 5.5vw, 4rem); }
.asks h2 { color: var(--ink); }
.asks .marker { border-top-color: var(--line); color: var(--ink); }

@media (prefers-color-scheme: dark) { .asks { background: var(--wall-3); } }

.ask {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1rem, 2.6vw, 1.8rem);
  padding-block: clamp(1.3rem, 2.8vw, 1.9rem);
  border-top: 1.5px solid var(--line);
  align-items: baseline;
}

.ask__n {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 800;
  line-height: 1;
  color: var(--line);
  font-variation-settings: "wdth" 85;
}

.ask__text {
  font-size: clamp(1.08rem, 1.9vw, 1.34rem);
  font-weight: 500;
  line-height: 1.38;
  letter-spacing: -0.008em;
  color: var(--ink);
  margin: 0;
  max-width: 38rem;
}

.ask__why { font-size: .88rem; line-height: 1.6; color: var(--muted); margin-top: .7rem; max-width: 36rem; }

/* ---------- stats: heavy grotesque numerals, not serif ---------- */

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
@media (max-width: 700px) { .stats { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; } }

.stat { border-top: 3px solid var(--line); padding-top: .85rem; }

.stat__num {
  display: block;
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -0.035em;
  color: var(--ink);
  font-variation-settings: "wdth" 85;
  margin-bottom: .5rem;
}

.stat__body { font-size: .91rem; line-height: 1.55; color: var(--muted); max-width: 18rem; }
.stat__body strong { color: var(--ink); }

/* ---------- columns and lists ---------- */

.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 3.5rem); }
@media (max-width: 760px) { .cols { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; } }

.col__head {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--ink);
  padding-top: .5rem;
  border-top: 3px solid var(--ink);
  margin-bottom: 1rem;
}
.col__head--open { border-top-color: var(--line); }

.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: .78rem 0; border-bottom: 1px solid var(--rule-soft); font-size: .96rem; line-height: 1.55; }
.list li:last-child { border-bottom: 0; }
.list__src { display: block; font-size: .75rem; color: var(--faint-c); margin-top: .28rem; }

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

.prose { max-width: var(--measure); }
.prose h3 { margin: 2rem 0 .6rem; }
.prose h3:first-child { margin-top: 0; }
.prose ul { padding-left: 1.1rem; margin: 0 0 1.05em; max-width: var(--measure); }
.prose li { margin-bottom: .45em; }

.pull {
  border-left: 1px solid var(--rule);
  padding: .2rem 0 .2rem 1.3rem;
  margin: 1.7rem 0;
  font-size: clamp(1.05rem, 1.9vw, 1.24rem);
  font-weight: 500;
  line-height: 1.42;
  color: var(--ink);
  max-width: 36rem;
}

.pull cite {
  display: block;
  font-style: normal;
  font-size: .76rem;
  font-weight: 600;
  color: var(--faint-c);
  margin-top: .7rem;
}

.callout { border-top: 3px solid var(--ink); background: var(--wall-3); padding: clamp(1.2rem, 2.6vw, 1.75rem); max-width: 42rem; }
.callout .marker { border-top: 0; padding-top: 0; }
.callout p { max-width: none; }

/* ---------- record ---------- */

.record { border-top: 3px solid var(--ink); }

.entry {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  padding-block: 1.3rem;
  border-bottom: 1px solid var(--rule-soft);
}
@media (max-width: 620px) { .entry { grid-template-columns: minmax(0, 1fr); gap: .3rem; } }

.entry__date { font-size: .78rem; font-weight: 700; color: var(--line); padding-top: .3rem; font-variation-settings: "wdth" 90; }
.entry__body { max-width: 40rem; }
.entry__body p { margin-bottom: .5em; max-width: none; }
.entry__body a { color: var(--line); text-underline-offset: 3px; }

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

.form { max-width: 34rem; }
.field { margin-bottom: 1.5rem; }

.field > label, .fieldset__legend {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .45rem;
}

.field__hint { font-size: .83rem; color: var(--muted); margin: -.1rem 0 .55rem; font-weight: 400; max-width: none; }

input[type="text"], input[type="email"], select, textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--rule);
  padding: .55rem 0;
  border-radius: 0;
  transition: border-color .15s;
}

textarea { resize: vertical; min-height: 5rem; line-height: 1.5; }

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: right 8px center, right 3px center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 1.5rem;
}

input:focus, select:focus, textarea:focus { outline: none; border-bottom-color: var(--line); }
input::placeholder, textarea::placeholder { color: var(--faint-c); }

fieldset { border: 0; margin: 0 0 1.5rem; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: .45rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }

.choice span {
  display: block;
  font-size: .85rem;
  font-weight: 500;
  padding: .45rem .9rem;
  border: 2px solid var(--rule);
  color: var(--muted);
  cursor: pointer;
  transition: all .13s;
}

.choice input:checked + span { border-color: var(--line); color: var(--line); background: var(--line-lt); font-weight: 700; }
.choice input:focus-visible + span { outline: 2px solid var(--line); outline-offset: 2px; }

.check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .75rem; align-items: start; padding: 1rem; border: 2px solid var(--rule); cursor: pointer; }
.check input { margin: .2rem 0 0; width: 1rem; height: 1rem; accent-color: var(--line); }
.check__text { font-size: .89rem; line-height: 1.5; color: var(--ink-2); font-weight: 400; }
.check__text small { display: block; color: var(--faint-c); font-size: .8rem; margin-top: .2rem; }

.hp { position: absolute; left: -9999px; }
.privacy { border-top: 1px solid var(--rule); margin-top: 1.75rem; padding-top: 1.1rem; }

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

.footer { border-top: 3px solid var(--ink); padding-block: clamp(2.25rem, 4.5vw, 3rem); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(1.75rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 700px) { .footer__grid { grid-template-columns: minmax(0, 1fr); } }

.footer__nav { display: flex; flex-direction: column; gap: .5rem; font-size: .88rem; }
.footer__nav a { color: var(--muted); text-decoration: none; }
.footer__nav a:hover { color: var(--line); }

.disclaimer { font-size: .81rem; line-height: 1.65; color: var(--faint-c); max-width: 34rem; }
.disclaimer strong { color: var(--muted); font-weight: 700; }

/* ---------- misc ---------- */

.skip { position: absolute; left: -9999px; background: var(--ink); color: var(--wall); padding: .7rem 1.1rem; font-size: .85rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
.mt-lg { margin-top: clamp(1.75rem, 3.5vw, 2.5rem); }

@media (prefers-reduced-motion: reduce) { * { transition-duration: .01ms !important; animation: none !important; } }
