@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/schibsted-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/schibsted-latin-ext.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #F1F5F7;
  --ink: #10242F;
  --muted: #4F6470;
  --thread: #9FB2BE;
  --rule: #D3DDE3;
  --builder: #A86E0E;
  --operator: #1D5C86;
  --open: #17734F;
  --focus: #1D5C86;

  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 34rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-weight: 400;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; line-height: 1.1; }
p { margin: 0; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  padding: .6rem 1rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
  z-index: 10;
}
.skip:focus { top: 1rem; }

.wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header */
.top { padding: 1.25rem 0; }
.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.wordmark {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: .02em;
  text-decoration: none;
}
.wordmark-small { font-size: 1.125rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.5rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  transition: background-color .15s ease;
}
.btn:hover { background: #24404F; }
.btn-small { min-height: 2.5rem; padding: 0 1.1rem; font-size: 1rem; }
.btn.is-pending,
.btn.is-pending:hover {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
  cursor: default;
}

/* Hero */
.hero {
  display: grid;
  gap: 2.5rem;
  padding-top: clamp(1.5rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.02;
  max-width: 12.5ch;
}
.lede {
  margin-top: 1.5rem;
  max-width: var(--measure);
  font-size: 1.1875rem;
  color: var(--muted);
}
.cta { margin-top: 2rem; }
.cta-note {
  margin-top: .85rem;
  font-size: .9375rem;
  color: var(--muted);
}

.net { margin: 0; }
.net-map {
  display: block;
  width: 100%;
  height: auto;
  max-width: 34rem;
  margin-left: auto;
  overflow: visible;
}
.net-caption {
  margin-top: .75rem;
  font-size: .9375rem;
  color: var(--muted);
  max-width: 34rem;
  margin-left: auto;
}

/* Net drawing */
.thread {
  stroke: var(--thread);
  stroke-width: 1.5;
  fill: none;
}
.knot-slot { stroke-width: 2; }
.knot-slot.b { stroke: var(--builder); }
.knot-slot.o { stroke: var(--operator); }
.knot-slot.empty { fill: var(--paper); }
.knot-slot.b.filled { fill: var(--builder); }
.knot-slot.o.filled { fill: var(--operator); }
.knot-core { fill: var(--paper); stroke: var(--thread); stroke-width: 1.5; }
.knot.is-open .knot-core { fill: var(--open); stroke: var(--open); }
.knot-label, .knot-sub {
  paint-order: stroke;
  stroke: var(--paper);
  stroke-width: 6px;
  stroke-linejoin: round;
}
.knot-label {
  font-family: var(--font);
  font-size: 17px;
  font-weight: 700;
  fill: var(--ink);
}
.knot-sub {
  font-family: var(--font);
  font-size: 14px;
  fill: var(--muted);
}
.knot.is-open .knot-sub { fill: var(--open); font-weight: 700; }

/* The one orchestrated moment: threads draw in, then slots settle. */
.net-map.is-drawing .thread {
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
  animation: draw 900ms cubic-bezier(.3,.6,.2,1) forwards;
  animation-delay: var(--delay, 0ms);
}
.net-map.is-drawing .knot {
  opacity: 0;
  animation: settle 500ms ease-out forwards;
  animation-delay: var(--delay, 0ms);
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes settle { to { opacity: 1; } }

/* Sections */
.areas, .cycle, .sides, .dates, .clubs {
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
  border-top: 1px solid var(--rule);
}
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.section-head h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -.015em;
}
.section-head p { margin-top: .75rem; color: var(--muted); }

/* Area list */
.area-list { list-style: none; margin: 0; padding: 0; }
.area-list li {
  display: grid;
  grid-template-columns: 1fr;
  gap: .15rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}
.area-name { font-weight: 700; font-size: 1.125rem; }
.area-schools { color: var(--muted); font-size: .9375rem; }
.area-count { font-size: .9375rem; }
.area-list li.is-open .area-count { color: var(--open); font-weight: 700; }
.area-status {
  margin-top: 1rem;
  font-size: .9375rem;
  color: var(--muted);
}

/* Steps: a real sequence, so it is numbered */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 1.75rem;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  column-gap: 1rem;
  max-width: 44rem;
}
.steps li::before {
  content: counter(step);
  grid-row: 1 / span 2;
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--thread);
  font-variant-numeric: tabular-nums;
}
.steps h3 { font-size: 1.1875rem; font-weight: 700; }
.steps p { margin-top: .35rem; color: var(--muted); max-width: var(--measure); }

/* Builders and operators */
.side-grid { display: grid; gap: 2rem; }
.side h3 {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.375rem;
  font-weight: 800;
}
.side p { margin-top: .6rem; color: var(--muted); max-width: var(--measure); }
.swatch {
  width: .9rem;
  height: .9rem;
  border-radius: 50%;
  flex: none;
}
.side-builder .swatch { background: var(--builder); }
.side-operator .swatch { background: var(--operator); }

/* Dates */
.timeline { list-style: none; margin: 0; padding: 0; max-width: 44rem; }
.timeline li {
  display: grid;
  grid-template-columns: 1fr;
  gap: .1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}
.timeline time { font-weight: 700; }
.timeline span { color: var(--muted); }

/* Clubs */
.text-link {
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* Footer */
.foot {
  border-top: 1px solid var(--rule);
  padding: 2.5rem 0 3rem;
  font-size: .9375rem;
  color: var(--muted);
}
.foot-row { display: grid; gap: .75rem; }
.foot .wordmark { color: var(--ink); }
.foot-row p { max-width: var(--measure); }

/* Policy pages */
.doc { padding-top: clamp(1.5rem, 4vw, 3rem); padding-bottom: 4rem; }
.doc h1 {
  font-size: clamp(2.2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -.02em;
}
.doc-updated { margin-top: .75rem; color: var(--muted); font-size: .9375rem; }
.doc h1 + p, .doc-updated + p { margin-top: 1.75rem; }
.doc h2 { margin-top: 2.5rem; font-size: 1.375rem; font-weight: 800; }
.doc p, .doc li { max-width: var(--measure); }
.doc p { margin-top: .85rem; }
.doc ul { margin: .85rem 0 0; padding-left: 1.25rem; }
.doc li + li { margin-top: .4rem; }
.doc a, .foot a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.foot a { color: var(--ink); }

@media (min-width: 640px) {
  .area-list li {
    grid-template-columns: 11rem 1fr auto;
    align-items: baseline;
    gap: 1.5rem;
  }
  .timeline li {
    grid-template-columns: 14rem 1fr;
    gap: 1.5rem;
  }
  .side-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

@media (min-width: 900px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .foot-row { grid-template-columns: auto 1fr auto; align-items: baseline; gap: 2rem; }
}
