@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; src: url("/assets/fonts/archivo-latin-wdth-normal.woff2") format("woff2"); }
/* bitcub.io — shared styles. No build step. */
:root {
  --paper: #ffffff;
  --paper-2: #eef0f2;
  --ink: #13203a;
  --ink-soft: #3d4a63;
  --line: #cfd4dc;
  --white: #ffffff;
  --court: #2b5fae;     /* WBB Manager */
  --pitch: #1f7a4d;     /* Drill Coach */
  --bib: #e0a810;       /* U8 Squad */
  --bib-ink: #6b4d00;
  --circuit: #6b4fbb;   /* BitCub Clubs */
  --accent: var(--ink);
  --radius-l: 4px;
  --radius-s: 3px;
  --max: 1120px;
  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::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-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.product-hero :focus-visible, .site-footer :focus-visible, .kit:focus-visible { outline-color: var(--white); }
.theme-u8 .product-hero :focus-visible, .kit.on-light:focus-visible { outline-color: var(--ink); }

/* Headings: condensed and heavy, like a club programme */
h1, h2, h3 {
  font-family: var(--font-display);
  font-stretch: 75%;
  line-height: 1;
  letter-spacing: 0;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.8rem, 8vw, 5.6rem); font-weight: 800; line-height: 0.92; text-transform: uppercase; }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; }
h3 { font-size: 1.45rem; font-weight: 700; font-stretch: 85%; }
p { margin: 0 0 1em; max-width: 68ch; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 58ch; }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--white); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-stretch: 80%; font-size: 1.5rem; }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; gap: 4px 18px; flex-wrap: wrap; font-size: 0.98rem; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--accent); }

/* Sections */
section { padding: clamp(48px, 8vw, 96px) 0; }
section + section { border-top: 1px solid var(--line); }
.section-head { margin-bottom: 36px; }

/* Home masthead: a scarf stripe in the four product colours over a heavy rule */
.masthead {
  border-top: 12px solid var(--ink);
  border-image: linear-gradient(90deg, var(--court) 0 25%, var(--pitch) 25% 50%, var(--bib) 50% 75%, var(--circuit) 75% 100%) 1;
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
}
.masthead h1 { max-width: 14ch; }
.masthead + section { border-top: 4px solid var(--ink); }

/* Products as a team sheet: a solid kit-colour block per product */
.sheet { margin-top: 36px; border-top: 4px solid var(--ink); border-bottom: 4px solid var(--ink); }
.sheet-row { display: grid; grid-template-columns: minmax(220px, 0.85fr) 1.15fr; }
.sheet-row + .sheet-row { border-top: 2px solid var(--ink); }
.kit {
  display: flex; align-items: flex-end;
  background: var(--kit); color: var(--kit-ink);
  padding: 28px 24px 24px; min-height: 180px;
  text-decoration: none;
  font-family: var(--font-display); font-weight: 800; font-stretch: 70%;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 0.92; text-transform: uppercase;
}
.kit span { max-width: 11ch; }
.kit:hover span { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 6px; }
.sheet-body { padding: 24px 0 24px 32px; }
.sheet-line { font-family: var(--font-display); font-stretch: 85%; font-weight: 700; font-size: 1.45rem; line-height: 1.15; margin-bottom: 0.5em; }
.sheet-meta { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 0; }
.sheet-meta b { color: var(--ink); }
@media (max-width: 760px) {
  .sheet-row { grid-template-columns: 1fr; }
  .kit { min-height: 0; padding: 20px 16px; }
  .sheet-body { padding: 20px 0 24px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 1rem/1 var(--font-body);
  padding: 14px 22px; border-radius: var(--radius-s); text-decoration: none;
  background: var(--accent); color: var(--white); border: 2px solid var(--accent);
}
.btn:hover { filter: brightness(1.12); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Product page hero */
.product-hero { background: var(--accent); color: var(--white); padding: clamp(48px, 8vw, 96px) 0; border-bottom: 4px solid var(--ink); }
.product-hero .lede { color: rgba(255,255,255,0.86); }
.product-hero .btn { background: var(--white); color: var(--accent); border-color: var(--white); }
.product-hero .btn.ghost { background: transparent; color: var(--white); }
.product-hero .meta { font-size: 0.98rem; color: rgba(255,255,255,0.8); margin-top: 20px; }
.theme-wbb { --accent: var(--court); }
.theme-drill { --accent: var(--pitch); }
.theme-u8 { --accent: var(--ink); }
.theme-u8 .product-hero { background: var(--bib); color: var(--ink); }
.theme-u8 .product-hero .lede, .theme-u8 .product-hero .meta { color: var(--ink); }
.theme-u8 .product-hero .btn { background: var(--ink); color: var(--white); border-color: var(--ink); }
.theme-u8 .product-hero .btn.ghost { background: transparent; color: var(--ink); }
.theme-clubs { --accent: var(--circuit); }

.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* Feature lists: two-column definition-style layout */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 36px 48px; }
.feature h3 { padding-top: 14px; border-top: 3px solid var(--accent); }
.feature p:last-child, .feature ul:last-child { margin-bottom: 0; }
.feature ul { margin: 0; padding-left: 1.1em; }
.feature li { margin-bottom: 0.35em; }

.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 24px; } }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 28px; }
.panel.tint { background: var(--paper-2); border-color: transparent; }

/* WBB points calculator illustration */
.points-card { background: var(--white); color: var(--ink); border-radius: var(--radius-l); padding: 24px; border: 2px solid var(--ink); }
.points-card table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.points-card td { padding: 7px 0; border-bottom: 1px solid var(--paper-2); }
.points-card td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.points-card .total td { border-bottom: none; padding-top: 14px; font-size: 1.15rem; }
.points-card .ok { color: var(--pitch); }
.points-card .caption { font-size: 0.85rem; color: var(--ink-soft); margin: 12px 0 0; }

.rules { width: 100%; border-collapse: collapse; }
.rules th, .rules td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.rules th { font-weight: 400; color: var(--ink-soft); padding-right: 16px; }
.rules td { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }

/* U8 fairness illustration */
.fair-card { background: var(--white); border-radius: var(--radius-l); padding: 24px; border: 2px solid var(--ink); }
.fair-row { display: grid; grid-template-columns: 5.5em 1fr 3.2em; gap: 12px; align-items: center; padding: 6px 0; font-size: 0.98rem; }
.fair-track { height: 12px; border-radius: 6px; background: var(--paper-2); overflow: hidden; }
.fair-track span { display: block; height: 100%; background: var(--ink); border-radius: 6px; }
.fair-row b { text-align: right; font-variant-numeric: tabular-nums; }
.fair-card .caption { font-size: 0.85rem; color: var(--ink-soft); margin: 12px 0 0; }

.formula { font-family: var(--font-display); font-stretch: 85%; font-size: clamp(1.3rem, 2.6vw, 1.8rem); font-weight: 650; letter-spacing: -0.01em; padding: 20px 24px; border-radius: var(--radius-s); background: var(--paper-2); display: inline-block; margin: 8px 0 20px; }

/* Drill phase strip */
.phase-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.phase-strip figure { margin: 0; background: #2a8a5a; border-radius: var(--radius-s); padding: 8px; }
.phase-strip figcaption { color: var(--white); font-size: 0.85rem; margin-top: 6px; text-align: center; }

/* Open source note */
.oss { display: flex; gap: 16px; align-items: flex-start; }
.oss svg { flex: none; width: 28px; height: 28px; margin-top: 4px; }

/* Placeholder links the owner must fill in (see README) */
a[data-todo] { outline: 2px dashed transparent; }

/* Footer */
.site-footer { background: var(--ink); color: #c8d1e4; padding: 48px 0 40px; font-size: 0.95rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font-size: 1.15rem; font-stretch: 85%; color: var(--white); margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: #e6ebf5; }
.site-footer .small { max-width: none; margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.15); font-size: 0.88rem; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* Screenshot rows (figures remove themselves if the image is missing) */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 28px; }
.shots figure { margin: 0; }
.shots img { width: auto; max-width: 100%; height: auto; max-height: 560px; border: 2px solid var(--ink); background: var(--white); }
.shots figcaption { font-size: 0.95rem; color: var(--ink-soft); margin-top: 8px; }
.screens:not(:has(figure)) { display: none; }
.shots.two-up { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.split ul { padding-left: 1.1em; margin: 0; }
.split li { margin-bottom: 0.5em; }
