/* Mono + Electric Blue, dark (chosen 2026-11-15) */
:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --surf: #141414;
  --text: #ededed;
  --muted: #a1a1a1;
  --accent: #4c9dff;
  --on-accent: #0a0a0a;
  --line: #262626;
  --tint: rgba(76, 157, 255, .14);
  --glow: rgba(76, 157, 255, .20);
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; position: relative; }
body::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 420px; background: radial-gradient(900px 380px at 15% -120px, var(--glow), transparent 70%); pointer-events: none; z-index: 0; }
a { color: var(--accent); }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; position: relative; z-index: 1; }

/* header */
header.site { padding: 18px 0; }
header.site .wrap { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; color: var(--text); text-decoration: none; }
.logo b { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-size: .78rem; font-weight: 800; }
nav.menu { display: flex; flex-wrap: wrap; gap: 4px; }
nav.menu a { padding: 6px 12px; border-radius: 99px; color: var(--muted); text-decoration: none; font-size: .92rem; border: 1px solid transparent; }
nav.menu a:hover { color: var(--text); }
nav.menu a[aria-current="page"] { background: var(--surf); color: var(--text); border-color: var(--line); }

/* home hero */
main.wrap { padding-top: 40px; padding-bottom: 56px; }
.hero h1 { margin: 0 0 12px; font-size: clamp(2.2rem, 6vw, 3.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { margin: 0; color: var(--muted); font-size: 1.1rem; max-width: 560px; }

/* project list */
.section-label { margin: 48px 0 12px; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.projects { display: grid; gap: 10px; }
.project { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surf); color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
a.project:hover { border-color: var(--accent); transform: translateY(-1px); }
a.project:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.project .t { font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; }
.project .t small { display: block; color: var(--muted); font-weight: 400; font-size: .9rem; margin-top: 2px; letter-spacing: 0; }
.project .meta { display: flex; align-items: center; gap: 10px; }
.project .arrow { color: var(--accent); font-weight: 700; }
.pill { border-radius: 99px; padding: 3px 10px; font-size: .75rem; font-weight: 600; color: var(--accent); background: var(--tint); white-space: nowrap; }
.date { font-family: var(--mono); font-size: .78rem; color: var(--muted); }

/* inner pages */
.crumb { font-size: .9rem; margin: 0 0 18px; color: var(--muted); }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--text); }
.page-title { margin: 0 0 8px; font-size: clamp(1.9rem, 5vw, 2.6rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.muted { color: var(--muted); }
.box { background: var(--surf); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin: 24px 0; }

/* footer */
footer.site { border-top: 1px solid var(--line); padding: 22px 0; color: var(--muted); font-size: .85rem; }

@media (max-width: 520px) {
  .project { grid-template-columns: 1fr; }
  .project .meta { justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) { a.project { transition: none; } a.project:hover { transform: none; } }

/* ---------- section pages and the competitions tracker ---------- */
main.wrap.wide, header.site .wrap, footer.site .wrap { max-width: 1080px; }
.lead { color: var(--muted); font-size: 1.05rem; max-width: 760px; margin: 0 0 20px; }
.notice { border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--surf); border-radius: 12px; padding: 12px 16px; margin: 0 0 20px; font-size: .95rem; }
.notice p { margin: 0; }
.filters { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 8px; padding: 12px 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); min-width: 0; }
.filters input, .filters select { font: inherit; font-size: .95rem; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--text); background: var(--surf); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; min-width: 0; }
.filters input:focus-visible, .filters select:focus-visible, summary:focus-visible, .match a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.count { color: var(--muted); font-size: .88rem; margin: 12px 0; }
.matches { display: grid; gap: 10px; }
.match { display: grid; grid-template-columns: 1fr 260px; gap: 8px 24px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surf); }
.match[hidden] { display: none; }
.match h3 { margin: 0; font-size: 1.08rem; letter-spacing: -.01em; }
.match .series { margin: 2px 0 8px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.chip { font-size: .72rem; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }
.chip.org { border-color: transparent; background: var(--tint); color: var(--accent); font-weight: 600; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px 18px; margin: 0; font-size: .9rem; }
.facts dt { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.facts dd { margin: 0; }
.beginner { margin: 10px 0 0; font-size: .9rem; color: var(--muted); }
.beginner b { color: var(--text); }
.match-side { font-size: .88rem; min-width: 0; }
.match-side p { margin: 0 0 8px; }
.next-label { font-size: .7rem !important; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.dates { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px; }
.dates .date { font-family: var(--mono); color: var(--text); }
.proj { font-size: .7rem; color: var(--muted); border: 1px dashed var(--line); border-radius: 99px; padding: 0 6px; }
.pill.good { color: #4ade80; background: rgba(74,222,128,.12); }
.pill.warn { color: #fbbf24; background: rgba(251,191,36,.12); }
.pill.bad { color: #f87171; background: rgba(248,113,113,.12); }
.links { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.links a { text-underline-offset: 3px; }
details summary { cursor: pointer; color: var(--muted); }
details[open] summary { margin-bottom: 6px; }
.empty { text-align: center; color: var(--muted); padding: 32px 0; }
.section-title { margin: 48px 0 8px; font-size: 1.4rem; letter-spacing: -.02em; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surf); }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
@media (max-width: 820px) {
  .filters { grid-template-columns: 1fr 1fr; position: static; }
  .filters .f-search { grid-column: 1 / -1; }
  .match { grid-template-columns: 1fr; }
}
.byline { margin: 0 0 14px; color: var(--muted); font-size: .9rem; }
.byline a { color: var(--text); text-decoration: none; font-weight: 600; }
.byline a:hover { color: var(--accent); }
.disclaimer { border: 1px solid var(--line); border-radius: 14px; background: var(--surf); padding: 6px 20px; font-size: .92rem; color: var(--muted); }
.disclaimer b { color: var(--text); }
