:root {
  --bg: #eef0e7;
  --paper: rgba(255, 255, 255, 0.93);
  --paper-strong: #ffffff;
  --ink: #10212b;
  --muted: #5f6f78;
  --border: rgba(16, 33, 43, 0.12);
  --accent: #1f7a8c;
  --accent-strong: #11515f;
  --clay: #c9582d;
  --grass: #4d8a2a;
  --hard: #2f6ea8;
  --shadow: 0 20px 50px rgba(16, 33, 43, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Source Sans 3", sans-serif;
  background:
    linear-gradient(180deg, rgba(238, 240, 231, 0.7), rgba(238, 240, 231, 0.98)),
    url("assets/images/home-bg.jpg") center top / cover fixed no-repeat;
}

a {
  color: var(--accent-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.shell {
  width: min(1180px, calc(100vw - 2rem));
  margin: 0 auto;
}

.narrow {
  width: min(900px, calc(100vw - 2rem));
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0 0.75rem;
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.brand-logo {
  width: 120px;
  height: 36px;
}

.eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

h1, h2, h3 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  line-height: 1;
}

h1 {
  font-size: clamp(2rem, 2.7vw, 3rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
  font-size: 1.7rem;
}

.pill {
  border: 1px solid var(--border);
  background: var(--paper);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
}

.nav {
  display: flex;
  gap: 0.5rem;
  padding: 0.4rem;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(8px);
}

.nav a {
  padding: 0.65rem 1rem;
  border-radius: 10px;
  font-weight: 700;
}

.nav a[aria-current="page"] {
  background: var(--ink);
  color: white;
}

.grid {
  display: grid;
  grid-template-columns: 1.8fr 0.9fr;
  gap: 1rem;
  padding-bottom: 2rem;
}

.main-column {
  display: grid;
  gap: 1rem;
}

.sidebar {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.card {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1rem;
  padding: 1.5rem;
}

.hero__copy p {
  max-width: 60ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.hero__stats {
  display: grid;
  gap: 0.75rem;
}

.hero__stats article,
.sidebar-card,
.page-intro,
.prose,
.feature-card {
  padding: 1.25rem;
}

.hero__stats article {
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(17, 81, 95, 0.08), rgba(201, 88, 45, 0.08));
  border: 1px solid var(--border);
}

.hero__stats span {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero__stats strong {
  font-size: 1.2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  font-weight: 700;
  background: white;
}

.button--primary {
  background: var(--ink);
  color: white;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1.25rem 1.25rem 0;
}

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

.table-wrap {
  overflow-x: auto;
  padding: 1rem 1.25rem 1.25rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 0.9rem 0.75rem;
  border-bottom: 1px solid rgba(16, 33, 43, 0.08);
  text-align: left;
}

.data-table th {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-card strong,
.ranking-row strong {
  display: block;
  font-size: 1.15rem;
}

.feature-list {
  margin: 0;
  padding: 0 1.25rem 1.25rem 2.4rem;
}

.ranking-list {
  display: grid;
  gap: 0.75rem;
}

.ranking-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
}

.ranking-row img,
.flag {
  width: 18px;
  height: 12px;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.rank {
  font-weight: 700;
  color: var(--muted);
}

.player-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search {
  display: grid;
  gap: 0.45rem;
  margin-top: 1rem;
}

.search input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  font: inherit;
}

.page-intro,
.prose {
  display: grid;
  gap: 1rem;
}

.footer {
  padding: 0 0 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

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

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar__meta {
    justify-content: flex-start;
  }
}
