:root {
  --surface-1: #fcfcfb;
  --page-plane: #f9f9f7;
  --text-primary: #0b0b0b;
  --text-secondary: #52514e;
  --muted: #898781;
  --gridline: #e1e0d9;
  --baseline: #c3c2b7;
  --border: rgba(11, 11, 11, 0.10);
  --delta-good: #006300;
  --delta-bad: #d03b3b;
  --accent: #c2410c;
  --card-bg: #ffffff;

  --brand: #ea580c;
  --brand-ink: #c2410c;
  --brand-dark: #14110d;
  --brand-dark-2: #241a12;
  --brand-contrast: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface-1: #1a1a19;
    --page-plane: #0d0d0d;
    --text-primary: #ffffff;
    --text-secondary: #c3c2b7;
    --muted: #898781;
    --gridline: #2c2c2a;
    --baseline: #383835;
    --border: rgba(255, 255, 255, 0.10);
    --delta-good: #0ca30c;
    --delta-bad: #e66767;
    --accent: #fb8b24;
    --card-bg: #1a1a19;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--page-plane);
  color: var(--text-primary);
  line-height: 1.55;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header: a dark "scoreboard" bar, same in light and dark theme */
header.site-header {
  background: linear-gradient(180deg, var(--brand-dark-2), var(--brand-dark));
  border-bottom: 3px solid var(--brand);
}

.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  max-width: 960px;
  margin: 0 auto;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.3rem;
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--brand-contrast);
}
.brand:hover { text-decoration: none; opacity: 0.9; }
.brand img { display: block; border-radius: 7px; }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
}
nav.main-nav a:hover {
  color: var(--brand-contrast);
  border-bottom-color: var(--brand);
  text-decoration: none;
}

main { padding: 0 0 4rem; }

/* Hero: dark court-side gradient with a faint basketball court ring */
.hero {
  position: relative;
  overflow: hidden;
  padding: 3rem 1.25rem 2.25rem;
  margin: 0 0 2.5rem;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: calc(50vw - 50% + 1.25rem);
  padding-right: calc(50vw - 50% + 1.25rem);
  background: radial-gradient(ellipse 900px 420px at 85% -10%, rgba(234, 88, 12, 0.35), transparent 60%),
              linear-gradient(160deg, var(--brand-dark), #1c140d 70%);
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  right: -90px;
  top: 50%;
  transform: translateY(-50%);
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.035) inset;
  background:
    linear-gradient(rgba(255,255,255,0.07), rgba(255,255,255,0.07)) center / 100% 2px no-repeat,
    linear-gradient(rgba(255,255,255,0.07), rgba(255,255,255,0.07)) center / 2px 100% no-repeat;
  pointer-events: none;
}

.hero .wrap-inner { max-width: 960px; margin: 0 auto; position: relative; }

.hero .eyebrow {
  display: inline-block;
  color: var(--brand);
  background: rgba(234, 88, 12, 0.15);
  border: 1px solid rgba(234, 88, 12, 0.4);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

.hero h1 {
  font-size: 2.3rem;
  margin: 0 0 0.6rem;
  letter-spacing: -0.02em;
  font-style: italic;
  font-weight: 800;
}

.hero p,
.hero .standings-meta { color: rgba(255, 255, 255, 0.72); margin: 0; max-width: 60ch; }

.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-top: 3px solid var(--brand);
  border-radius: 8px;
  padding: 1.1rem 1.25rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.card .date {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.card h3 { margin: 0.4rem 0 0.4rem; font-size: 1.08rem; }
.card h3 a { color: var(--text-primary); }
.card p { color: var(--text-secondary); margin: 0; font-size: 0.92rem; }

h2.section-title {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 1.1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--gridline);
}

article.post .post-header { margin-bottom: 1.5rem; }
article.post h1 { font-size: 1.8rem; margin: 0 0 0.3rem; letter-spacing: -0.01em; font-style: italic; }
article.post .date { color: var(--muted); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
article.post img { max-width: 100%; border-radius: 8px; margin: 1rem 0; }
article.post .content p { margin: 0 0 1rem; }
article.post .content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.92rem;
}
article.post .content table th,
article.post .content table td {
  border-bottom: 1px solid var(--gridline);
  padding: 0.5rem 0.6rem;
  text-align: left;
  font-variant-numeric: tabular-nums;
}

table.standings {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--surface-1);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 0 var(--border);
}

table.standings thead tr {
  background: var(--brand-dark);
}

table.standings th {
  text-align: left;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.7rem 0.7rem;
}

table.standings td {
  padding: 0.6rem 0.7rem;
  border-bottom: 1px solid var(--gridline);
  font-variant-numeric: tabular-nums;
}

table.standings tr:nth-child(even) td { background: rgba(137, 135, 129, 0.06); }
table.standings tbody tr:hover td { background: rgba(234, 88, 12, 0.08); }

table.standings tbody tr:first-child td {
  background: rgba(234, 88, 12, 0.12);
  font-weight: 700;
}

table.standings .rank { color: var(--muted); width: 2.5em; font-weight: 800; }
table.standings tbody tr:first-child .rank { color: var(--brand-ink); }
table.standings .team { font-weight: 600; }
table.standings .pts { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
table.standings .delta { text-align: right; font-size: 0.85rem; font-weight: 700; }
table.standings .delta.up { color: var(--delta-good); }
table.standings .delta.down { color: var(--delta-bad); }

.standings-meta {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

.history-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.history-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.1rem 1.25rem 1.3rem;
}

.history-season {
  font-weight: 800;
  font-size: 1.05rem;
  font-style: italic;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
}

.podium {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.podium li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
}

.podium .medal {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  flex: none;
  display: inline-flex;
}

.podium .podium-team { flex: 1; font-weight: 600; font-size: 0.92rem; }
.podium .podium-pts { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 0.88rem; color: var(--muted); }

.podium .rank-1 { background: rgba(234, 173, 12, 0.12); }
.podium .rank-1 .medal { background: #e0ad1c; }
.podium .rank-2 .medal { background: #b7bec7; }
.podium .rank-3 .medal { background: #c47a3d; }

footer.site-footer {
  background: var(--brand-dark);
  border-top: 3px solid var(--brand);
  padding: 1.75rem 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
  margin-top: 3rem;
}
