:root {
  --ink: #08080E;
  --ink-2: #101019;
  --line: #22222E;
  --paper: #F2F1EE;
  --muted: #8E8B99;
  --purple: #8B6BB8;
  --purple-deep: #5B3F88;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Newsreader", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --wrap: 68rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }

a { color: var(--purple); }
a:focus-visible,
button:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }

/* ---- masthead ---- */

.masthead {
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 0;
}
.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: inherit; }
.brand .mark { width: 52px; height: 52px; display: block; flex: none; }
.brand span {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-style: italic;
}
.nav { display: flex; gap: 1.5rem; }
.nav a {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--paper);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--purple); }

/* ---- ridge divider ---- */

.ridge { display: block; width: 100%; height: 28px; color: var(--purple-deep); }

/* ---- hero ---- */

.hero { padding: 4rem 0 2.5rem; }
.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple);
  margin: 0 0 1rem;
}
.hero h1 {
  font-family: var(--display);
  font-style: italic;
  text-transform: uppercase;
  font-weight: 700;
  font-size: clamp(2.75rem, 9vw, 5.5rem);
  line-height: 0.94;
  letter-spacing: 0.01em;
  margin: 0 0 1.25rem;
}
.hero p { max-width: 46ch; color: var(--muted); font-size: 1.1875rem; margin: 0; }

/* ---- next game strip ---- */

.next-game {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--ink-2);
  padding: 1.5rem;
  margin: 2.5rem 0 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
.next-game h2 {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
  font-weight: 400;
}
.matchup {
  font-family: var(--display);
  text-transform: uppercase;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  line-height: 1.1;
  margin: 0;
}
.meta-row { display: flex; flex-wrap: wrap; gap: 1.5rem; font-family: var(--mono); font-size: 0.8125rem; color: var(--muted); }
.meta-row b { color: var(--paper); font-weight: 500; }

/* ---- article list ---- */

.section-head {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  margin: 3.5rem 0 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.posts { list-style: none; margin: 0; padding: 0; }
.posts li { border-bottom: 1px solid var(--line); }
.post-link {
  display: grid;
  gap: 0.5rem;
  padding: 2rem 0;
  text-decoration: none;
  color: inherit;
}
.post-link:hover h3 { color: var(--purple); }
.post-tags { display: flex; flex-wrap: wrap; gap: 1rem; font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.elev { color: var(--purple); }
.post-link h3 {
  font-family: var(--display);
  text-transform: uppercase;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  line-height: 1.08;
  margin: 0;
  transition: color 0.15s ease;
}
.post-link p { margin: 0; color: var(--muted); max-width: 62ch; }

/* ---- article page ---- */

.article { padding: 3.5rem 0 1rem; }
.article-head { max-width: 44rem; }
.article h1 {
  font-family: var(--display);
  text-transform: uppercase;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2.25rem, 7vw, 3.75rem);
  line-height: 1;
  margin: 0.75rem 0 1rem;
}
.dek { font-size: 1.25rem; color: var(--muted); margin: 0 0 1.5rem; max-width: 50ch; }
.byline {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.article-body { max-width: 38rem; padding: 2.5rem 0 4rem; font-size: 1.1875rem; }
.article-body p { margin: 0 0 1.5rem; }
.article-body h2 {
  font-family: var(--display);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 1.75rem;
  margin: 3rem 0 1rem;
}
.article-body blockquote {
  margin: 2.5rem 0;
  padding-left: 1.5rem;
  border-left: 3px solid var(--purple-deep);
  font-size: 1.375rem;
  line-height: 1.45;
  color: var(--paper);
}
.pullstat {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 0;
  margin: 2.5rem 0;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.8;
}
.pullstat b { color: var(--purple); font-weight: 500; }

/* ---- footer ---- */

.foot {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 4rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--purple); }

@media (min-width: 46rem) {
  .next-game { grid-template-columns: auto 1fr; align-items: center; column-gap: 2.5rem; }
  .next-game h2 { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---- standings page ---- */

.standings-head { padding: 3.5rem 0 2rem; }
.page-title {
  font-family: var(--display);
  text-transform: uppercase;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  line-height: 1;
  margin: 0.5rem 0 0.75rem;
}
.page-sub { color: var(--muted); margin: 0; }

.tabs {
  display: flex;
  gap: 1.75rem;
  overflow-x: auto;
  padding: 0 0 0.875rem;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none;
  position: relative;
  background: none;
  border: 0;
  padding: 0 0 0.5rem;
  margin: 0;
  cursor: pointer;
  color: var(--muted);
  font-family: var(--display);
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.125rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.18s ease;
}
.tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.9rem;
  height: 3px;
  background: var(--purple);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.tab:hover { color: var(--paper); }
.tab[aria-selected="true"] { color: var(--paper); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.standings {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
}
table.standings th {
  text-align: left;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.6875rem;
  color: var(--muted);
  padding: 0 0.75rem 0.75rem 0;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.standings td {
  padding: 0.875rem 0.75rem 0.875rem 0;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.standings .team {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--paper);
}
table.standings .num { color: var(--paper); }
table.standings .next { color: var(--purple); }
table.standings .next.tbd { color: var(--muted); opacity: 0.6; }

.table-note {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1.5rem 0 3rem;
}

/* ---- weekend ticker ---- */

body { padding-bottom: 2.75rem; }

.ticker {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 2.75rem;
  display: flex;
  align-items: stretch;
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.75rem;
  z-index: 50;
}
.tk-label {
  flex: none;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  background: var(--purple-deep);
  color: var(--paper);
  font-family: var(--display);
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}
.tk-track {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.tk-scroll {
  display: inline-flex;
  white-space: nowrap;
  animation: tk-move 90s linear infinite;
}
.ticker:hover .tk-scroll { animation-play-state: paused; }
.tk-item { display: inline-flex; align-items: center; padding: 0 1.75rem; color: var(--muted); }
.tk-item b { color: var(--paper); font-weight: 500; }
.tk-item em { color: var(--purple); font-style: normal; }
.tk-sep { padding: 0 0.6rem; opacity: 0.5; }

@keyframes tk-move {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .tk-scroll { animation: none; }
  .tk-track { overflow-x: auto; }
}
.tk-label.tk-live { background: #B23A3A; }
.tk-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #E05252;
  margin-right: 0.6rem;
  animation: tk-pulse 1.4s ease-in-out infinite;
}
@keyframes tk-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .tk-dot { animation: none; } }
