:root {
  --padres-brown: #2f241f;
  --padres-gold: #ffc425;
  --padres-sand: #f5e7c8;
  --ink: #1e1713;
  --paper: #fffaf0;
  --blue: #2f5f7f;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--white);
}

.brand {
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.92rem;
  font-weight: 800;
}

nav a {
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: 86vh;
  overflow: hidden;
  color: var(--white);
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(18, 12, 9, 0.72), rgba(18, 12, 9, 0.2) 52%, rgba(18, 12, 9, 0.08)),
    linear-gradient(180deg, rgba(18, 12, 9, 0.52), rgba(18, 12, 9, 0.08) 38%, rgba(18, 12, 9, 0.16)),
    linear-gradient(0deg, rgba(18, 12, 9, 0.56), rgba(18, 12, 9, 0) 34%);
}

.hero picture,
.hero img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero picture {
  position: absolute;
  inset: 0;
}

.hero img {
  object-fit: cover;
  object-position: center 45%;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 86vh;
  width: min(920px, 100%);
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(76px, 9vh, 108px) clamp(20px, 7vw, 88px) clamp(44px, 8vh, 76px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--padres-gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 840px;
  margin: 0;
  font-size: clamp(3.2rem, 8.5vw, 7rem);
  line-height: 0.88;
}

.hero h1 {
  white-space: nowrap;
}

.hero-subtitle {
  max-width: 640px;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.section {
  padding: clamp(56px, 9vw, 104px) clamp(20px, 5vw, 64px);
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.section-light {
  background: var(--paper);
}

.section-dark {
  background: var(--padres-brown);
  color: var(--white);
}

.section-gold {
  background: var(--padres-gold);
}

.section-gold .eyebrow,
.section-light .eyebrow {
  color: var(--blue);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading .bracket-source-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 20px;
  border: 1px solid rgba(255, 196, 37, 0.46);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--padres-gold);
  font-size: 0.92rem;
  font-weight: 900;
  text-decoration: none;
}

.section-heading .bracket-source-link:hover {
  background: rgba(255, 196, 37, 0.12);
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.25rem);
  line-height: 1;
}

h3 {
  margin: 8px 0 12px;
  font-size: 1.35rem;
}

.section p {
  margin: 0;
  font-size: 1.1rem;
}

.recap-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.playoff-bracket {
  margin-bottom: clamp(30px, 5vw, 56px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 196, 37, 0.16), rgba(255, 255, 255, 0.05)),
    rgba(255, 255, 255, 0.06);
  padding: clamp(18px, 3vw, 30px);
}

.bracket-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(18px, 4vw, 40px);
  align-items: end;
  margin-bottom: 24px;
}

.bracket-intro h3 {
  max-width: 11ch;
  margin: 0;
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 0.98;
}

.bracket-intro p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  font-weight: 700;
}

.bracket-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}

.bracket-column {
  display: flex;
  min-width: 220px;
  flex-direction: column;
  gap: 12px;
}

.bracket-column h4 {
  margin: 0;
  color: var(--padres-gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.bracket-game {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(18, 12, 9, 0.38);
  padding: 10px;
}

.bracket-game.featured {
  border-color: rgba(255, 196, 37, 0.58);
  box-shadow: inset 0 0 0 1px rgba(255, 196, 37, 0.16);
}

.bracket-game > span,
.champion-card span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.73rem;
  font-weight: 900;
  text-transform: uppercase;
}

.bracket-team {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 800;
}

.bracket-team + .bracket-team {
  margin-top: 7px;
}

.bracket-team.winner {
  color: var(--white);
}

.bracket-team.winner span::after {
  color: var(--padres-gold);
  content: "  W";
  font-size: 0.72rem;
  font-weight: 900;
}

.bracket-team strong {
  color: inherit;
  font-size: 1.18rem;
}

.championship-game {
  min-height: 118px;
}

.champion-card {
  border-radius: 8px;
  background: var(--padres-gold);
  padding: 16px;
  color: var(--ink);
}

.champion-card span {
  margin-bottom: 2px;
  color: rgba(30, 23, 19, 0.62);
}

.champion-card strong {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.95;
}

.champion-card p {
  margin: 10px 0 0;
  color: rgba(30, 23, 19, 0.78);
  font-size: 0.95rem;
  font-weight: 800;
}

.recap-card {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.recap-card span {
  color: var(--padres-gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.recap-link {
  display: inline-flex;
  width: fit-content;
  margin-top: auto;
  padding-top: 18px;
  color: var(--padres-gold);
  font-weight: 900;
  text-decoration: none;
}

.recap-link:hover {
  text-decoration: underline;
}

.subpage-header {
  position: static;
  background: var(--padres-brown);
}

.subpage-header nav a {
  color: rgba(255, 255, 255, 0.86);
}

.game-hero {
  background:
    linear-gradient(135deg, rgba(47, 36, 31, 0.96), rgba(47, 36, 31, 0.78)),
    var(--padres-brown);
  color: var(--white);
  padding: clamp(54px, 8vw, 96px) clamp(20px, 5vw, 64px);
}

.game-hero-inner,
.article-inner {
  width: min(980px, 100%);
  margin: 0 auto;
}

.game-hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 0.96;
}

.game-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.game-meta span {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--padres-sand);
  font-size: 0.92rem;
  font-weight: 800;
}

.article-section {
  padding: clamp(46px, 7vw, 88px) clamp(20px, 5vw, 64px);
}

.article-card {
  border-top: 8px solid var(--padres-gold);
  background: var(--white);
  padding: clamp(28px, 5vw, 56px);
  box-shadow: 0 22px 60px rgba(47, 36, 31, 0.1);
}

.article-card,
.box-score {
  border-radius: 8px;
}

.byline {
  margin: 0 0 28px;
  color: var(--blue);
  font-size: 0.95rem;
  font-weight: 900;
}

.game-story {
  display: grid;
  gap: 20px;
}

.game-story p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.7;
}

.back-link {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.box-score {
  margin-top: clamp(36px, 6vw, 72px);
  border: 1px solid rgba(47, 36, 31, 0.14);
  background: var(--white);
  padding: clamp(22px, 4vw, 42px);
  box-shadow: 0 18px 52px rgba(47, 36, 31, 0.08);
}

.box-score-head {
  text-align: center;
}

.box-score-head h2 {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
}

.box-score-meta {
  justify-content: center;
}

.box-score-meta span {
  border-color: rgba(47, 36, 31, 0.18);
  color: var(--ink);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.stat-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.25;
}

.stat-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.stat-table th,
.stat-table td {
  border-bottom: 1px solid rgba(47, 36, 31, 0.22);
  padding: 8px 10px;
  text-align: right;
  white-space: nowrap;
}

.stat-table th:first-child,
.stat-table td:first-child {
  min-width: 190px;
  text-align: left;
}

.stat-table thead th {
  border-top: 4px solid var(--ink);
  background: rgba(47, 36, 31, 0.12);
  font-weight: 900;
  text-transform: uppercase;
}

.stat-table tfoot th,
.stat-table tfoot td {
  border-top: 3px solid var(--ink);
  border-bottom: 0;
  font-weight: 900;
}

.line-score-wrap {
  width: min(700px, 100%);
  margin: 28px auto 0;
}

.line-score {
  min-width: 560px;
  font-size: 1.15rem;
}

.line-score th:first-child {
  min-width: 110px;
}

.stats-section {
  margin-top: clamp(34px, 5vw, 56px);
}

.stats-section h3 {
  margin: 0 0 14px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  text-transform: uppercase;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 4vw, 40px);
}

.team-table {
  min-width: 0;
}

.team-table h4 {
  margin: 0;
  border-top: 4px solid var(--ink);
  background: rgba(47, 36, 31, 0.12);
  padding: 8px 10px;
  color: var(--ink);
  font-size: 1rem;
  text-transform: uppercase;
}

.team-table .stat-table thead th {
  border-top: 0;
}

.stat-notes {
  margin: 16px 0 0;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.35;
}

.site-footer {
  padding: 28px clamp(20px, 5vw, 64px);
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .hero,
  .hero-copy {
    min-height: 82vh;
  }

  .hero-copy {
    justify-content: space-between;
    padding-top: 112px;
    padding-bottom: 54px;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2.05rem, 10.5vw, 4.6rem);
  }

  .hero-subtitle {
    max-width: 34ch;
    font-size: 1.08rem;
  }

  .two-column,
  .recap-grid,
  .bracket-intro {
    grid-template-columns: 1fr;
  }

  .playoff-bracket {
    margin-right: calc(clamp(20px, 5vw, 64px) * -0.35);
    margin-left: calc(clamp(20px, 5vw, 64px) * -0.35);
  }

  .bracket-grid {
    grid-template-columns: 1fr;
    overflow-x: visible;
  }

  .bracket-column {
    min-width: 0;
  }

  .game-hero h1 {
    max-width: 100%;
  }

  .box-score {
    margin-right: calc(clamp(20px, 5vw, 64px) * -0.35);
    margin-left: calc(clamp(20px, 5vw, 64px) * -0.35);
    padding: 20px 14px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-table {
    font-size: 0.88rem;
  }

  .line-score {
    font-size: 1rem;
  }
}

@media (min-width: 761px) and (max-width: 1040px) {
  .recap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
