/* ==========================================================================
   North Vancouver Fencing Club — Design System
   Type:  Archivo (display) / Inter (body) / IBM Plex Mono (data, utility)
   Color: paper white + graphite ink, with a single "touch red" accent
          drawn from the scoring lights — green appears only as a rare
          second light, never as a paired decorative scheme.
   Motif: the piste — a regulation 14m fencing strip, used as the page's
          structural rule. Distances below are accurate to the FIE strip.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,500;0,600;0,700;0,800;0,900;1,600&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root{
  /* color */
  --bg:        #fdfdfc;
  --bg-alt:    #f3f5f3;
  --bg-deep:   #14181a;
  --ink:       #14181a;
  --ink-soft:  #4c5559;
  --ink-faint: #8a9296;
  --line:      #dde2e1;
  --line-deep: #2a3134;
  --red:       #c1352b;
  --red-deep:  #9c2920;
  --green:     #2f7a52;
  --paper:     #ffffff;

  /* type */
  --f-display: 'Archivo', sans-serif;
  --f-body:    'Inter', sans-serif;
  --f-mono:    'IBM Plex Mono', monospace;

  /* layout */
  --max: 1180px;
  --pad: clamp(20px, 5vw, 64px);
  --radius: 3px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--f-body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; }
.wrap{ max-width:var(--max); margin:0 auto; padding-left:var(--pad); padding-right:var(--pad); }

h1,h2,h3,h4{
  font-family:var(--f-display);
  font-weight:800;
  letter-spacing:-0.01em;
  line-height:1.05;
  margin:0;
  color:var(--ink);
}
h1{ font-size:clamp(2.4rem, 5.4vw, 4.4rem); font-weight:900; letter-spacing:-0.02em; }
h2{ font-size:clamp(1.7rem, 3.4vw, 2.5rem); }
h3{ font-size:1.25rem; font-weight:700; }
p{ margin:0 0 1em; color:var(--ink-soft); }
p:last-child{ margin-bottom:0; }
strong{ color:var(--ink); font-weight:600; }

.eyebrow{
  font-family:var(--f-mono);
  font-size:0.72rem;
  font-weight:500;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--red);
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:14px;
}
.eyebrow::before{
  content:'';
  width:7px; height:7px;
  background:var(--red);
  border-radius:50%;
  flex:none;
}

.lede{ font-size:1.1rem; max-width:46ch; }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:var(--f-mono);
  font-size:0.82rem;
  font-weight:500;
  letter-spacing:0.04em;
  text-decoration:none;
  text-transform:uppercase;
  padding:13px 22px;
  border-radius:var(--radius);
  border:1px solid transparent;
  transition:transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  cursor:pointer;
  white-space:nowrap;
}
.btn:hover{ transform:translateY(-1px); }
.btn-primary{ background:var(--red); color:#fff; }
.btn-primary:hover{ background:var(--red-deep); }
.btn-ghost{ background:transparent; color:var(--ink); border-color:var(--line-deep); }
.btn-ghost:hover{ border-color:var(--ink); }
.btn-row{ display:flex; gap:14px; flex-wrap:wrap; margin-top:30px; }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(253,253,252,.92);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.site-header .wrap{
  display:flex; align-items:center; justify-content:space-between;
  height:74px;
}
.brand{ display:flex; align-items:center; gap:12px; text-decoration:none; }
.brand-logo{ height:52px; width:auto; flex:none; display:block; }
.hero-logo{ width:220px; max-width:100%; display:block; margin:auto; }

.nav{ display:flex; align-items:center; gap:2px; }
.nav a{
  font-family:var(--f-mono);
  font-size:0.78rem;
  letter-spacing:0.05em;
  text-transform:uppercase;
  text-decoration:none;
  color:var(--ink-soft);
  padding:10px 16px;
  position:relative;
}
.nav a:hover{ color:var(--ink); }
.nav a.is-active{ color:var(--ink); }
.nav a.is-active::after{
  content:'';
  position:absolute; left:16px; right:16px; bottom:6px;
  height:2px; background:var(--red);
}
.nav-cta{
  font-family:var(--f-mono);
  font-size:0.78rem;
  letter-spacing:0.04em;
  text-transform:uppercase;
  text-decoration:none;
  background:var(--ink);
  color:#fff !important;
  padding:9px 16px;
  border-radius:var(--radius);
  margin-left:10px;
}
.nav-cta:hover{ background:var(--red); }

.nav-toggle{
  display:none;
  background:none; border:none; cursor:pointer;
  width:36px; height:36px;
  flex-direction:column; align-items:center; justify-content:center; gap:5px;
}
.nav-toggle span{ width:20px; height:2px; background:var(--ink); display:block; }

@media (max-width: 880px){
  .nav{
    position:fixed; inset:74px 0 0 0;
    background:var(--bg);
    flex-direction:column;
    align-items:stretch;
    padding:10px var(--pad) 30px;
    gap:0;
    transform:translateY(-8px);
    opacity:0;
    pointer-events:none;
    transition:opacity .18s ease, transform .18s ease;
    overflow-y:auto;
  }
  .nav.is-open{ opacity:1; transform:translateY(0); pointer-events:auto; }
  .nav a{ padding:16px 4px; border-bottom:1px solid var(--line); font-size:0.95rem; }
  .nav a.is-active::after{ display:none; }
  .nav-cta{ margin:18px 4px 0; text-align:center; }
  .nav-toggle{ display:flex; }
}

/* ==========================================================================
   Piste rule — the signature element.
   An accurate cross-section of a 14m FIE fencing strip used as a
   structural divider. Real meter marks: center line (0), the en-garde
   lines (±2m), the warning lines (±5m), the end lines (±7m).
   ========================================================================== */
.piste{
  width:100%;
  display:block;
  color:var(--ink);
}
.piste .piste-bg{ fill:var(--bg-alt); }
.piste .piste-line{ stroke:var(--line-deep); }
.piste .piste-tick{ stroke:var(--ink-faint); }
.piste .piste-tick-strong{ stroke:var(--ink); }
.piste .piste-label{ font-family:var(--f-mono); font-size:10.5px; fill:var(--ink-faint); }
.piste .piste-label-strong{ fill:var(--ink-soft); font-weight:500; }
.piste .piste-center{ fill:var(--red); }
.piste .piste-zone{ fill:var(--line); }
.piste .piste-border{ fill:none; stroke:var(--line-deep); stroke-width:1.5; }

/* ==========================================================================
   Sections
   ========================================================================== */
section{ padding:88px 0; }
section.tight{ padding:56px 0; }
.section-alt{ background:var(--bg-alt); }
.section-deep{ background:var(--bg-deep); color:#fff; }
.section-deep p{ color:#aab3b6; }
.section-deep h2{ color:#fff; }

.break-notice{ background:var(--bg-deep); color:#fff; padding:48px 0; text-align:center; }
.break-notice .eyebrow{ color:var(--red); }
.break-notice h2{ color:#fff; margin-bottom:14px; }
.break-notice p{ color:#aab3b6; margin:0; font-size:1.05rem; }
.break-notice strong{ color:#fff; }

.hero{ padding:64px 0 0; }
.hero-grid{ display:grid; grid-template-columns:1.15fr 0.85fr; gap:48px; align-items:end; padding-bottom:56px; }
.hero h1{ margin:18px 0 22px; }
.hero-side{
  border-left:1px solid var(--line);
  padding-left:32px;
  display:flex; flex-direction:column; gap:22px;
  align-items:center; justify-content:center;
}
.hero-stat{ display:flex; flex-direction:column; }
.hero-stat .num{ font-family:var(--f-mono); font-size:1.9rem; font-weight:600; color:var(--ink); line-height:1; }
.hero-stat .lbl{ font-family:var(--f-mono); font-size:0.72rem; letter-spacing:0.06em; text-transform:uppercase; color:var(--ink-faint); margin-top:6px; }

@media (max-width: 880px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero-side{ border-left:none; border-top:1px solid var(--line); padding-left:0; padding-top:24px; flex-direction:row; flex-wrap:wrap; gap:28px; }
}

/* section heads */
.section-head{ display:flex; justify-content:space-between; align-items:flex-end; gap:24px; margin-bottom:44px; flex-wrap:wrap; }
.section-head .lede{ margin:0; }

/* ---------- weapon cards ---------- */
.weapon-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
.weapon-card{ background:var(--paper); padding:36px 30px; display:flex; flex-direction:column; gap:16px; }
.weapon-card .wnum{ font-family:var(--f-mono); font-size:0.75rem; color:var(--ink-faint); letter-spacing:0.05em; }
.weapon-card .wicon{ width:42px; height:64px; color:var(--ink); }
.weapon-card h3{ margin-top:4px; }
.weapon-card p{ font-size:0.94rem; }
.weapon-card .wtarget{ margin-top:auto; padding-top:14px; border-top:1px dashed var(--line); font-family:var(--f-mono); font-size:0.72rem; color:var(--ink-faint); letter-spacing:0.04em; text-transform:uppercase; }
@media (max-width: 760px){ .weapon-grid{ grid-template-columns:1fr; } }

/* ---------- schedule cards ---------- */
.sched-grid{ display:grid; grid-template-columns:repeat(2, 1fr); gap:1px; background:var(--line); border:1px solid var(--line); margin-top:8px; }
.sched-card{ background:var(--paper); padding:32px; }
.sched-day{ font-family:var(--f-mono); font-size:0.78rem; letter-spacing:0.08em; text-transform:uppercase; color:var(--red); margin-bottom:10px; }
.sched-time{ font-family:var(--f-mono); font-size:1.5rem; font-weight:500; margin-bottom:4px; }
.sched-place{ font-weight:600; color:var(--ink); margin-bottom:2px; }
.sched-addr{ font-size:0.9rem; }
@media (max-width: 700px){ .sched-grid{ grid-template-columns:1fr; } }

/* ---------- cta band ---------- */
.cta-band{ display:flex; justify-content:space-between; align-items:center; gap:24px; flex-wrap:wrap; }
.cta-band h2{ max-width:18ch; }

/* ---------- generic content blocks (about / membership / beginners) ---------- */
.content-grid{ display:grid; grid-template-columns:240px 1fr; gap:64px; align-items:start; }
.toc{ position:sticky; top:100px; display:flex; flex-direction:column; gap:2px; }
.toc a{
  font-family:var(--f-mono); font-size:0.78rem; letter-spacing:0.03em;
  text-decoration:none; color:var(--ink-faint);
  padding:8px 0 8px 14px; border-left:2px solid var(--line);
}
.toc a:hover, .toc a.is-active{ color:var(--ink); border-left-color:var(--red); }
@media (max-width: 900px){ .content-grid{ grid-template-columns:1fr; gap:36px; } .toc{ position:static; flex-direction:row; flex-wrap:wrap; gap:0 16px; } .toc a{ border-left:none; border-bottom:2px solid var(--line); padding:6px 0; } .toc a:hover,.toc a.is-active{ border-bottom-color:var(--red); } }

.article h2{ margin-bottom:14px; }
.article h2 small{ display:block; font-family:var(--f-mono); font-weight:400; font-size:0.7rem; letter-spacing:0.1em; text-transform:uppercase; color:var(--ink-faint); margin-bottom:8px; }
.article > section, .article > .block{ padding:0 0 48px; border-bottom:1px solid var(--line); margin-bottom:48px; scroll-margin-top:100px; }
.article > section:last-child, .article > .block:last-child{ border-bottom:none; margin-bottom:0; padding-bottom:0; }
.article p{ max-width:68ch; }
.article ul{ color:var(--ink-soft); padding-left:1.2em; max-width:62ch; }
.article li{ margin-bottom:6px; }

/* simple stat / fact strip */
.fact-row{ display:flex; gap:0; border:1px solid var(--line); margin:28px 0; flex-wrap:wrap; }
.fact{ flex:1 1 0; min-width:140px; padding:18px 20px; border-right:1px solid var(--line); }
.fact:last-child{ border-right:none; }
.fact .fk{ font-family:var(--f-mono); font-size:0.68rem; letter-spacing:0.07em; text-transform:uppercase; color:var(--ink-faint); margin-bottom:6px; }
.fact .fv{ font-family:var(--f-mono); font-size:1rem; font-weight:600; color:var(--ink); }

/* table-ish pricing */
.price-table{ width:100%; border-collapse:collapse; margin:18px 0 8px; }
.price-table th{ text-align:left; font-family:var(--f-mono); font-size:0.7rem; letter-spacing:0.07em; text-transform:uppercase; color:var(--ink-faint); font-weight:500; padding:10px 14px; border-bottom:1px solid var(--ink); }
.price-table td{ padding:14px; border-bottom:1px solid var(--line); font-size:0.95rem; }
.price-table td:last-child, .price-table th:last-child{ text-align:right; font-family:var(--f-mono); }
.price-table tr:hover td{ background:var(--bg-alt); }

.note-card{ background:var(--bg-alt); border-left:3px solid var(--red); padding:18px 22px; margin:24px 0; }
.note-card p{ margin:0; font-size:0.94rem; }
.note-card .nk{ font-family:var(--f-mono); font-size:0.7rem; letter-spacing:0.08em; text-transform:uppercase; color:var(--red); margin-bottom:6px; display:block; }

.link-list{ display:flex; flex-direction:column; gap:0; margin:18px 0; }
.link-list a{ display:flex; justify-content:space-between; align-items:center; text-decoration:none; padding:14px 4px; border-bottom:1px solid var(--line); color:var(--ink); font-weight:500; }
.link-list a:hover{ color:var(--red); }
.link-list a span{ font-family:var(--f-mono); font-size:0.78rem; color:var(--ink-faint); font-weight:400; }

/* map embeds */
.map-embed{ border:1px solid var(--line); width:100%; aspect-ratio:16/9; filter:grayscale(0.25) contrast(1.05); }

/* ---------- footer ---------- */
.site-footer{ background:var(--bg-deep); color:#cfd5d6; padding:64px 0 28px; }
.footer-grid{ display:grid; grid-template-columns:1.3fr 1fr 1fr; gap:48px; padding-bottom:48px; border-bottom:1px solid #283034; }
.footer-grid h4{ color:#fff; font-family:var(--f-mono); font-size:0.74rem; letter-spacing:0.08em; text-transform:uppercase; font-weight:500; margin-bottom:16px; }
.footer-grid p{ color:#9aa3a5; font-size:0.92rem; }
.footer-links{ display:flex; flex-direction:column; gap:10px; }
.footer-links a{ text-decoration:none; color:#cfd5d6; font-size:0.92rem; }
.footer-links a:hover{ color:var(--red); }
.footer-lights{ display:flex; gap:8px; align-items:center; margin-top:18px; }
.footer-lights span{ width:8px; height:8px; border-radius:50%; }
.footer-lights .l-red{ background:var(--red); }
.footer-lights .l-green{ background:var(--green); }
.footer-lights small{ font-family:var(--f-mono); font-size:0.68rem; color:#6f797c; letter-spacing:0.04em; margin-left:4px; }
.footer-bottom{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; padding-top:24px; font-family:var(--f-mono); font-size:0.74rem; color:#6f797c; }
@media (max-width: 760px){ .footer-grid{ grid-template-columns:1fr; gap:32px; } }

/* misc */
.skip-link{ position:absolute; left:-999px; top:0; background:var(--ink); color:#fff; padding:10px 16px; z-index:100; }
.skip-link:focus{ left:var(--pad); }
:focus-visible{ outline:2px solid var(--red); outline-offset:2px; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ transition-duration:0.001ms !important; animation-duration:0.001ms !important; }
}
