:root {
  --ink: #171717;
  --muted: #666666;
  --white: #ffffff;
  --line: #dedede;
  --accent: #b4232f;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, a { font: inherit; }

a { color: inherit; text-underline-offset: 3px; }

.page-shell { min-height: 100vh; overflow: hidden; }

.hero {
  position: relative;
  min-height: 530px;
  padding: 30px max(24px, calc((100vw - 1180px) / 2));
  color: var(--ink);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.topline, .hero-copy, .model-scorecard { position: relative; z-index: 1; }

.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line);
}

.home-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
}

.home-link span:first-child {
  font-size: 1rem;
  transition: transform 180ms ease;
}

.home-link:hover span:first-child,
.home-link:focus-visible span:first-child { transform: translateX(-3px); }

.home-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 6px;
}

.round-pill {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero-copy { max-width: 780px; padding-top: 74px; }

.eyebrow, .section-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, .forecast-callout strong {
  font-family: "Barlow Condensed", sans-serif;
}

h1 {
  margin: 0;
  font-size: clamp(4.3rem, 9vw, 7.7rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.77;
  text-transform: uppercase;
}

h1 span { color: var(--ink); }

.byline {
  margin: 28px 0 0;
  color: var(--accent);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.model-scorecard {
  display: flex;
  align-items: center;
  gap: 38px;
  max-width: 780px;
  margin-top: 44px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  background: var(--white);
}

.scorecard-label { max-width: 120px; margin: 0; color: var(--muted); font-size: 0.72rem; font-weight: 700; line-height: 1.4; text-transform: uppercase; }

.scorecard-metrics { display: flex; gap: 34px; }

.scorecard-metrics div { display: flex; flex-direction: column; gap: 4px; }
.scorecard-metrics strong { color: var(--ink); font-family: "Barlow Condensed", sans-serif; font-size: 1.65rem; }
.scorecard-metrics span { color: var(--muted); font-size: 0.68rem; text-transform: uppercase; }

main, footer { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.round-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  padding: 74px 0 28px;
}

h2 { margin: 0; font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 0.95; letter-spacing: -0.04em; }
.round-note { max-width: 380px; margin: 0; color: var(--muted); font-size: 0.84rem; line-height: 1.6; }

.fixture-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }

.match-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.match-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 20px;
  border-bottom: 1px solid #e7e5de;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.match-meta span { text-align: right; }
.teams { padding: 23px 22px 20px; }
.team-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 13px; }

.team-badge {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 3px solid var(--team-secondary);
  border-radius: 50%;
  color: var(--team-secondary);
  background: var(--team-primary);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.87rem;
  font-weight: 800;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.12);
}

.team-name { font-weight: 700; }
.team-name small { display: block; margin-top: 3px; color: #9199a3; font-size: 0.64rem; font-weight: 600; text-transform: uppercase; }
.probability { font-family: "Barlow Condensed", sans-serif; font-size: 1.75rem; letter-spacing: -0.02em; }

.probability-track { display: flex; height: 7px; margin: 15px 0; overflow: hidden; border-radius: 99px; background: #e4e5e2; }
.probability-track span { display: block; background: var(--bar-colour); }
.probability-track .home-share { opacity: 0.95; }
.probability-track .away-share { opacity: 0.72; }

.forecast-callout {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 3px 12px;
  padding: 18px 22px;
  color: var(--ink);
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.forecast-callout > span { grid-row: 1 / 3; align-self: center; color: var(--accent); font-size: 0.69rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.forecast-callout strong { font-size: 1.7rem; letter-spacing: -0.015em; }
.forecast-callout small { color: var(--muted); font-size: 0.7rem; }

.explanation-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border: 0;
  color: var(--ink);
  background: var(--white);
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.explanation-toggle:hover, .explanation-toggle:focus-visible { color: var(--accent); outline: none; }
.toggle-icon { font-size: 1.25rem; font-weight: 400; }
.prediction-details { padding: 0 22px 22px; border-top: 1px solid var(--line); background: var(--white); }
.details-intro { padding: 18px 0 10px; }
.details-intro p { margin: 0; font-size: 0.82rem; font-weight: 800; }
.details-intro span { color: var(--muted); font-size: 0.69rem; }

.factor-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 15px; padding: 14px 0; border-top: 1px solid #e4e2db; }
.factor-copy strong { display: block; font-size: 0.77rem; }
.factor-copy span { display: block; margin-top: 4px; color: var(--muted); font-size: 0.66rem; line-height: 1.45; }
.factor-values { display: flex; align-items: center; gap: 7px; color: #3e4a58; font-family: "Barlow Condensed", sans-serif; font-size: 1.02rem; font-weight: 700; }
.factor-values i { color: #a1a7ad; font-family: "Inter", sans-serif; font-size: 0.55rem; font-style: normal; text-transform: uppercase; }
.factor-edge { grid-column: 1 / -1; color: #9b302f; font-size: 0.62rem; font-weight: 800; text-transform: uppercase; }
.factor-impact { grid-column: 1 / -1; color: var(--ink); font-size: 0.68rem; font-weight: 700; }
.uncertainty-note { margin: 15px 0 0; padding-top: 14px; border-top: 1px solid #e4e2db; color: var(--muted); font-size: 0.66rem; line-height: 1.5; }

.empty-state { margin: 20px 0 80px; padding: 72px 30px; border: 1px solid var(--line); text-align: center; background: var(--white); }
.empty-state > span { color: var(--accent); font-size: 2.6rem; }
.empty-state h2 { margin-top: 15px; font-size: 2.4rem; }
.empty-state p { max-width: 540px; margin: 18px auto 0; color: var(--muted); line-height: 1.6; }

.indicators-section { padding: 96px 0 88px; }
.indicators-heading { max-width: 820px; }
.indicators-heading > p:last-child { margin: 20px 0 0; color: var(--muted); font-size: 0.8rem; line-height: 1.7; }
.indicator-table { margin-top: 42px; border-top: 2px solid var(--ink); }
.indicator-table-head,
.indicator-row { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 40px; }
.indicator-table-head { padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.indicator-row { align-items: center; padding: 23px 0; border-bottom: 1px solid var(--line); }
.indicator-row strong { font-size: 0.88rem; }
.indicator-row p { max-width: 680px; margin: 7px 0 0; color: var(--muted); font-size: 0.73rem; line-height: 1.55; }
.indicator-impact strong { display: block; color: var(--accent); font-family: "Barlow Condensed", sans-serif; font-size: 1.45rem; }
.indicator-impact span { display: block; margin-top: 3px; color: var(--muted); font-size: 0.66rem; line-height: 1.4; }
.indicator-notes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 50px; padding-top: 38px; }
.indicator-notes div { border-left: 3px solid var(--accent); padding-left: 18px; }
.indicator-notes strong { font-size: 0.8rem; }
.indicator-notes p { margin: 8px 0 0; color: var(--muted); font-size: 0.72rem; line-height: 1.6; }

footer { display: grid; grid-template-columns: 180px 1fr; gap: 30px 60px; padding: 38px 0 45px; border-top: 1px solid #c9c8c2; }
footer div { display: flex; flex-direction: column; gap: 5px; }
footer strong { font-family: "Barlow Condensed", sans-serif; font-size: 1.1rem; }
footer span, footer p, footer small { color: var(--muted); font-size: 0.68rem; line-height: 1.6; }
footer p { margin: 0; }
footer small { grid-column: 2; }

@media (max-width: 880px) {
  .hero { min-height: 530px; }
  .fixture-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .hero { min-height: auto; padding-bottom: 42px; }
  .topline { padding-bottom: 26px; }
  .round-pill { max-width: 190px; text-align: center; }
  .hero-copy { padding-top: 50px; }
  h1 { font-size: clamp(3.6rem, 18vw, 5.3rem); }
  .model-scorecard { align-items: flex-start; flex-direction: column; gap: 18px; }
  .scorecard-label { max-width: none; }
  .scorecard-metrics { width: 100%; justify-content: space-between; gap: 12px; }
  .round-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
  .round-heading { padding-top: 55px; }
  .match-meta { align-items: flex-start; flex-direction: column; gap: 5px; }
  .match-meta span { text-align: left; }
  .indicators-section { padding: 72px 0; }
  .indicator-table-head,
  .indicator-row { grid-template-columns: 1fr; gap: 12px; }
  .indicator-table-head span:last-child { display: none; }
  .indicator-impact { padding-top: 3px; }
  .indicator-notes { grid-template-columns: 1fr; gap: 24px; }
  footer { grid-template-columns: 1fr; }
  footer small { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
