:root {
  --bg: #f4f1ea;
  --paper: #fbfaf7;
  --ink: #111111;
  --muted: rgba(17, 17, 17, 0.58);
  --line: rgba(17, 17, 17, 0.13);
  --gold: #b28622;
  --gold-soft: rgba(194, 160, 83, 0.14);
  --silver: #a8afb7;
  --bronze: #916247;
  --graphite: #4f4f4f;
  --dark: #101010;
  --red: #bc2027;
  --container: 1180px;
  --reading: 780px;
  --gutter: clamp(1.2rem, 4vw, 4rem);
  --section-space: clamp(6rem, 12vh, 10rem);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--ink);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

.hero {
  position: relative;
  min-height: 100vh;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.62) 32%, rgba(0, 0, 0, 0.18) 68%, rgba(0, 0, 0, 0.06) 100%),
    url("nikola-cover.jpg") center center / cover no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.28) 100%);
}

.language-switch {
  position: absolute;
  top: 1.5rem;
  right: var(--gutter);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.language-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.8rem;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition:
    background 220ms var(--ease),
    color 220ms var(--ease),
    border-color 220ms var(--ease);
}

.language-switch a:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
}

.language-switch a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.92);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(100%, var(--container));
  min-height: 100vh;
  margin: 0 auto;
  padding: 8rem var(--gutter) 4rem;
  display: grid;
  align-content: end;
}

.hero__eyebrow,
.section-kicker {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero__eyebrow {
  color: rgba(255, 255, 255, 0.74);
}

h1 {
  margin-top: 1rem;
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.05em;
  max-width: 7ch;
}

.hero__slogan {
  margin-top: 2rem;
  max-width: 21ch;
  font-size: clamp(1.45rem, 2.2vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
}

.hero__subtitle {
  margin-top: 0.95rem;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

.section {
  padding: var(--section-space) var(--gutter);
}

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

.section--dark {
  background: var(--dark);
  color: #f7f5f2;
}

.section--red {
  background: var(--red);
  color: #fff9f8;
}

.container {
  width: min(100%, var(--container));
  margin: 0 auto;
}

.container--reading {
  width: min(100%, var(--reading));
}

.section-heading {
  margin-bottom: clamp(3rem, 7vh, 5rem);
}

.section-kicker {
  color: var(--muted);
}

.section--dark .section-kicker,
.section--red .section-kicker {
  color: rgba(255, 255, 255, 0.68);
}

.section-heading h2 {
  margin-top: 1rem;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  font-weight: 800;
  line-height: 0.97;
  letter-spacing: -0.05em;
  max-width: 20ch;
  text-wrap: balance;
}

.section-heading--wide h2 {
  max-width: 20ch;
}

.section-lead-image {
  margin: 0 0 clamp(2.5rem, 5vh, 4rem);
}

.section-lead-image img {
  min-height: 36vh;
  max-height: 34rem;
  object-fit: cover;
  border-radius: 30px;
}

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

.summary-item {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
}

.summary-item h3 {
  font-size: clamp(1.6rem, 2vw, 2.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.summary-item p,
.story-block p,
.story-block li,
.table-block p,
.table-block li,
td,
th {
  font-size: clamp(1rem, 0.9vw + 0.74rem, 1.16rem);
  line-height: 1.82;
  text-wrap: pretty;
}

.summary-strong {
  font-weight: 700;
}

.story-block + .story-block {
  margin-top: 3rem;
}

.story-block h3 {
  font-size: clamp(1.55rem, 2.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 1.2rem;
  text-wrap: balance;
}

.story-block ul {
  margin-top: 1rem;
  padding-left: 1.25rem;
}

.story-block li + li,
.table-block li + li {
  margin-top: 0.8rem;
}

.image-band {
  min-height: 56vh;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.image-band--player {
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.08)),
    url("nikola-grbic.jpg");
  background-position: center 22%;
}

.image-band--coach {
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),
    url("nikola-grbic-3.webp");
  background-position: center 18%;
}

.image-band--staff {
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),
    url("nikola-grbic-4.jpg");
}

.results-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.result-stat {
  padding: 1rem 1.1rem;
  background: rgba(17, 17, 17, 0.035);
}

.result-stat__label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.result-stat__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.medal-pill,
.results-legend span,
.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.medal-dot {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  display: inline-block;
}

.medal-dot--gold {
  background: #c8a24a;
}

.medal-dot--silver {
  background: #bfc3c9;
}

.medal-dot--bronze {
  background: #976248;
}

.medal-dot--graphite {
  background: #4a4a4a;
}

.results-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 3rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.table-block {
  max-width: 68rem;
}

.table-block + .table-block {
  margin-top: 3rem;
}

.table-block h3 {
  font-size: clamp(1.45rem, 2vw, 2.1rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.table-intro {
  margin-bottom: 1rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 0.95rem 1rem 0.95rem 0;
  vertical-align: top;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th:first-child,
td:first-child {
  padding-left: 10px;
}

th {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.result-badge {
  font-weight: 700;
}

.result-badge::before {
  content: "";
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  background: currentColor;
  flex: 0 0 0.72rem;
}

.result-badge--gold {
  color: var(--gold);
}

.result-badge--silver {
  color: var(--silver);
}

.result-badge--bronze {
  color: var(--bronze);
}

.result-badge--graphite {
  color: var(--graphite);
}

.is-gold td {
  background: var(--gold-soft);
  color: #8c6a1f;
  font-weight: 700;
}

.update-note {
  margin-top: 1.3rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.site-footer {
  padding: 2.5rem var(--gutter) 3rem;
  background: #ece7de;
  color: rgba(17, 17, 17, 0.78);
}

.site-footer__title,
.site-footer__copy,
.site-footer__links {
  max-width: 72rem;
}

.site-footer__title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.site-footer__copy,
.site-footer__links {
  font-size: 0.82rem;
  line-height: 1.7;
}

.site-footer__copy + .site-footer__copy {
  margin-top: 0.25rem;
}

.site-footer__links {
  margin-top: 0.9rem;
}

.site-footer a {
  color: inherit;
  text-decoration-color: rgba(17, 17, 17, 0.28);
  text-underline-offset: 0.16em;
}

.site-footer a:hover {
  text-decoration-color: currentColor;
}

.section--dark .update-note {
  color: rgba(255, 255, 255, 0.68);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 900ms var(--ease),
    transform 900ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .summary-grid,
  .results-summary {
    grid-template-columns: 1fr;
  }

  .section-heading h2 {
    max-width: 20ch;
  }

  .section-heading--wide h2 {
    max-width: 18ch;
  }

  .image-band {
    min-height: 42vh;
  }
}

@media (max-width: 720px) {
  .hero__inner,
  .section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .language-switch {
    top: 1rem;
    right: 1rem;
  }

  .summary-item h3 {
    font-size: 1.7rem;
  }

  .story-block h3 {
    font-size: 1.8rem;
  }

  .section-heading h2 {
    font-size: clamp(2rem, 10vw, 3.4rem);
    max-width: 20ch;
  }

  .section-heading--wide h2 {
    max-width: 14ch;
  }

  .image-band {
    min-height: 34vh;
  }
}
