:root {
  --bg: #f3f7f4;
  --ink: #10241c;
  --muted: #4c645a;
  --green: #0e8f4e;
  --green-deep: #086b3a;
  --mint: #d9f5e4;
  --mint-strong: #b6ebcb;
  --yellow: #e6b000;
  --card: #ffffff;
  --line: #d7e6dc;
  --header: 4.25rem;
  --wrap: 68rem;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 20;
  padding: 0.5rem 0.8rem;
  background: white;
  color: var(--ink);
  border-radius: 0.5rem;
}

.skip:focus {
  top: 0.75rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(243, 247, 244, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(16, 36, 28, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: var(--header);
}

.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1.15rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

nav a:hover,
.wordmark:hover {
  color: var(--green-deep);
}

.hero,
.reasons,
.beat,
.pro {
  scroll-margin-top: calc(var(--header) + 0.5rem);
}

.hero {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 3vw, 2rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 21rem);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1rem;
  padding: 0.35rem 0.7rem 0.35rem 0.55rem;
  border-radius: 999px;
  background: var(--mint);
  color: var(--green-deep);
  font-size: 0.92rem;
  font-weight: 600;
}

.kicker-on-green {
  background: rgba(255, 255, 255, 0.16);
  color: white;
}

.star {
  width: 0.95rem;
  height: 0.95rem;
  fill: var(--yellow);
  flex: none;
}

h1,
h2,
h3,
.points,
.wordmark {
  font-family: var(--display);
}

h1,
h2,
h3 {
  letter-spacing: -0.045em;
  line-height: 1.02;
  font-weight: 700;
}

h1 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(3.15rem, 6.2vw, 5.15rem);
}

.lede {
  max-width: 36rem;
  margin: 1.15rem 0 0;
  font-size: clamp(1.12rem, 1.5vw, 1.28rem);
  line-height: 1.45;
  color: var(--muted);
}

.duel {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.7rem;
  max-width: 28rem;
  margin-top: 1.6rem;
}

.player {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.55rem;
  align-items: center;
  margin: 0;
  padding: 0.85rem 0.95rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  box-shadow: 0 10px 30px rgba(16, 36, 28, 0.05);
}

.player.leader {
  background: #f3fff7;
  border-color: #8ed9ad;
}

.rank {
  grid-row: 1 / span 2;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--green);
}

.name {
  font-weight: 600;
  font-size: 0.95rem;
}

.points {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}

.leader .points {
  color: var(--green-deep);
}

.gap {
  margin: 0;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.duel-note,
.platform {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.shot {
  margin: 0;
}

.shot img {
  width: min(100%, 21rem);
  margin-inline: auto;
  border-radius: 1.6rem;
  box-shadow:
    0 24px 50px rgba(16, 36, 28, 0.12),
    0 0 0 1px rgba(16, 36, 28, 0.04);
}

.reasons {
  padding-block: clamp(1.5rem, 4vw, 2.5rem) clamp(2.5rem, 6vw, 4rem);
}

.reasons h2 {
  margin: 0 0 1.1rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.reason {
  margin: 0;
  padding: 1.25rem 1.2rem 1.35rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
}

.reason-label {
  margin: 0 0 0.7rem;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 600;
}

.reason h3 {
  margin: 0;
  font-size: 1.45rem;
  max-width: 16ch;
}

.reason p:last-child {
  margin: 0.7rem 0 0;
  color: var(--muted);
}

.beat-grid {
  display: grid;
  grid-template-columns: minmax(16rem, 20rem) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4.5rem);
  padding-block: clamp(2.2rem, 5vw, 3.6rem);
}

.beat-grid-flip {
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 20rem);
}

.beat-grid-flip .shot {
  order: 2;
}

.beat-copy {
  max-width: 32rem;
}

.beat-copy h2,
.pro-panel h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.15rem);
  max-width: 14ch;
}

.beat-copy p:last-child,
.pro-panel > p {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 36rem;
}

.pro {
  padding: 0.5rem 0 clamp(3rem, 7vw, 4.5rem);
}

.pro-panel {
  padding: clamp(1.8rem, 4vw, 3rem);
  border-radius: 1.6rem;
  background:
    radial-gradient(500px 180px at 100% 0%, rgba(255, 255, 255, 0.18), transparent 60%),
    linear-gradient(145deg, #14a35c 0%, #0b7a43 70%);
  color: white;
}

.pro-panel > p,
.pro-panel .platform {
  color: rgba(255, 255, 255, 0.88);
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 1.25rem;
}

.site-footer a {
  color: var(--ink);
  text-underline-offset: 0.18em;
}

.site-footer a:hover {
  color: var(--green-deep);
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .reason-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .hero-grid,
  .beat-grid,
  .beat-grid-flip {
    grid-template-columns: 1fr;
  }

  .beat-grid-flip .shot {
    order: 0;
  }

  h1 {
    max-width: 14ch;
  }

  .shot img {
    width: min(100%, 18.5rem);
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(var(--wrap), calc(100% - 1.5rem));
  }

  nav a {
    font-size: 0.88rem;
  }

  h1 {
    font-size: clamp(2.55rem, 12vw, 3.3rem);
  }

  .duel {
    grid-template-columns: 1fr;
    max-width: 18rem;
  }

  .gap {
    justify-self: start;
  }
}

.prose {
  max-width: 40rem;
  padding-block: clamp(2rem, 5vw, 3.5rem) 4.5rem;
}

.prose h1 {
  max-width: none;
  font-size: clamp(2.4rem, 5vw, 3.5rem);
}

.prose .updated {
  margin: 0.8rem 0 0;
  color: var(--muted);
}

.prose h2 {
  margin: 2.1rem 0 0.45rem;
  max-width: none;
  font-size: 1.35rem;
}

.prose p,
.prose li {
  font-size: 1.05rem;
}

.prose p {
  margin: 0.75rem 0 0;
}

.prose ul {
  margin: 0.7rem 0 0;
  padding-left: 1.15rem;
}

.prose li + li {
  margin-top: 0.4rem;
}

.prose a {
  color: var(--green-deep);
  text-underline-offset: 0.18em;
}

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