/* ============================================================
   SIDE BY SIDE — black & white editorial, hairlines, one club.
   Sibling of the Exaryn design system.
   ============================================================ */

:root {
  --paper: #f7f5f0;
  --paper-raise: #efece4;
  --ink: #0d0d0d;
  --muted: #5c5852;
  --line: #d9d5cc;
  --win: #2e7d43;
  --loss: #b3341c;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", -apple-system, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --pad: clamp(20px, 4vw, 48px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--ink); color: var(--paper); }

.mono {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

a { color: inherit; text-decoration: none; }
em { font-style: italic; }

/* ============ HEADER ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px var(--pad);
  border-bottom: 2px solid var(--ink);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
}

.wordmark { font-family: var(--serif); font-size: 26px; line-height: 1; }
.wordmark .badge { font-size: 18px; vertical-align: 2px; }

.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a { padding: 4px 0; border-bottom: 1px solid transparent; transition: border-color 0.15s; }
.site-nav a:hover { border-color: var(--ink); }

/* ============ HERO ============ */

.hero { padding: var(--pad); border-bottom: 1px solid var(--line); }

.kicker { color: var(--muted); }
.kicker::before { content: "⚫⚪ "; letter-spacing: 0; }

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(42px, 8vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  max-width: 15ch;
  margin-top: 20px;
}

.hero-meta {
  list-style: none;
  margin-top: 36px;
  border-top: 1px solid var(--line);
  max-width: 460px;
}

.hero-meta li {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.hero-meta li span:first-child { color: var(--muted); }
.hero-meta .strong { font-weight: 700; }

/* ============ NEXT GAME ============ */

.next-game {
  background: var(--ink);
  color: var(--paper);
  padding: calc(var(--pad) * 0.9) var(--pad);
  border-bottom: 1px solid var(--line);
}

.next-game .kicker { color: color-mix(in srgb, var(--paper) 60%, transparent); }

.fixture { margin-top: 16px; }

.teams {
  font-family: var(--serif);
  font-size: clamp(30px, 5vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.fixture-meta { margin-top: 10px; color: color-mix(in srgb, var(--paper) 65%, transparent); }

.countdown { display: flex; gap: clamp(18px, 4vw, 48px); margin-top: 26px; }

.countdown span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: color-mix(in srgb, var(--paper) 55%, transparent);
  font-size: 10px;
}

.countdown b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}

/* ============ SECTIONS ============ */

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding: var(--pad);
  padding-bottom: 20px;
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.5vw, 58px);
  line-height: 1;
  letter-spacing: -0.02em;
}

.section-note { color: var(--muted); text-align: right; }

.empty { padding: 28px var(--pad); color: var(--muted); list-style: none; }

/* ============ FORM GUIDE ============ */

.form-guide { border-bottom: 1px solid var(--line); }

.form-list { list-style: none; border-top: 1px solid var(--line); }

.form-item {
  display: grid;
  grid-template-columns: 44px 110px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px var(--pad);
  border-bottom: 1px solid var(--line);
}

.form-item .dot {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--paper);
}

.form-item.win .dot { background: var(--win); }
.form-item.loss .dot { background: var(--loss); }
.form-item.draw .dot { background: var(--muted); }

.form-item .rnd { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.form-item .match { font-size: 15.5px; font-weight: 500; }
.form-item .score { font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; }

/* ============ LADDER ============ */

.ladder { border-bottom: 1px solid var(--line); }

.table-scroll { overflow-x: auto; }

#ladder-table { width: 100%; border-collapse: collapse; min-width: 560px; }

#ladder-table th {
  text-align: left;
  font-weight: 500;
  font-size: 10px;
  color: var(--muted);
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--ink);
}

#ladder-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: 14.5px; }

#ladder-table td:first-child { font-family: var(--mono); font-size: 11px; color: var(--muted); }
#ladder-table td:nth-child(n+3) { font-variant-numeric: tabular-nums; }

#ladder-table tr.finals-line td { border-bottom: 2px dashed var(--ink); }

#ladder-table tr.us td { background: var(--ink); color: var(--paper); font-weight: 600; }
#ladder-table tr.us td:first-child { color: var(--paper); }

#ladder-table th:first-child, #ladder-table td:first-child { padding-left: var(--pad); }
#ladder-table th:last-child, #ladder-table td:last-child { padding-right: var(--pad); }

/* ============ NEWS ============ */

.blurb { padding: 0 var(--pad) 20px; color: var(--muted); font-size: 15.5px; max-width: 58ch; }

.feed-list { list-style: none; border-top: 1px solid var(--line); }

.feed-item { border-bottom: 1px solid var(--line); }

.feed-item a {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 40px;
  gap: 20px;
  padding: 16px var(--pad);
  align-items: start;
  transition: background 0.15s ease;
}

.feed-item a:hover { background: var(--paper-raise); }

.feed-item .when { font-family: var(--mono); font-size: 10.5px; color: var(--muted); text-transform: uppercase; padding-top: 3px; }
.feed-item .src { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.feed-item .title { display: block; margin-top: 3px; font-size: 17px; font-weight: 500; line-height: 1.4; }
.feed-item a:hover .title { text-decoration: underline; }
.feed-item .go { font-family: var(--mono); font-size: 15px; color: var(--muted); text-align: right; padding-top: 2px; }

/* ============ FOOTER ============ */

.site-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
  padding: 30px var(--pad) 44px;
  background: var(--ink);
  color: color-mix(in srgb, var(--paper) 60%, transparent);
  font-size: 10.5px;
}

.site-footer a { color: var(--paper); }
.site-footer a:hover { text-decoration: underline; }

@media (max-width: 700px) {
  .form-item { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .form-item .rnd { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .section-note { text-align: left; }
  .feed-item a { grid-template-columns: minmax(0, 1fr) 32px; }
  .feed-item .when { grid-column: 1 / -1; padding-top: 0; }
}
