:root {
  --bg: #f5f0e7;
  --bg-soft: #fffaf0;
  --bg-tint: rgba(10, 79, 159, 0.08);
  --bg-gradient:
    radial-gradient(circle at top left, rgba(255, 200, 69, 0.22), transparent 32rem),
    linear-gradient(180deg, #f8f3ea 0%, #edf4fb 54%, #f5f0e7 100%);
  --header-bg: rgba(245, 240, 231, 0.86);
  --card-bg: rgba(255, 250, 240, 0.84);
  --ink: #102033;
  --ink-soft: #394b61;
  --muted: #65758a;
  --blue: #0a4f9f;
  --blue-dark: #092d63;
  --accent-ink: #fff;
  --amber: #ffc845;
  --line: rgba(16, 32, 51, 0.14);
  --shadow: 0 24px 70px rgba(9, 45, 99, 0.16);
  --shadow-soft: 0 18px 48px rgba(9, 45, 99, 0.12);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0c1320;
  --bg-soft: #141d2e;
  --bg-tint: rgba(255, 200, 69, 0.06);
  --bg-gradient:
    radial-gradient(circle at top left, rgba(255, 200, 69, 0.12), transparent 30rem),
    linear-gradient(180deg, #0c1320 0%, #0f1a2c 60%, #0c1320 100%);
  --header-bg: rgba(12, 19, 32, 0.86);
  --card-bg: rgba(20, 29, 46, 0.9);
  --ink: #f2f4f8;
  --ink-soft: #c9d2e0;
  --muted: #94a3b8;
  --blue: #8fb8ff;
  --blue-dark: #1d4f9c;
  --accent-ink: #fff;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 18px 48px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1320;
    --bg-soft: #141d2e;
    --bg-tint: rgba(255, 200, 69, 0.06);
    --bg-gradient:
      radial-gradient(circle at top left, rgba(255, 200, 69, 0.12), transparent 30rem),
      linear-gradient(180deg, #0c1320 0%, #0f1a2c 60%, #0c1320 100%);
    --header-bg: rgba(12, 19, 32, 0.86);
    --card-bg: rgba(20, 29, 46, 0.9);
    --ink: #f2f4f8;
    --ink-soft: #c9d2e0;
    --muted: #94a3b8;
    --blue: #8fb8ff;
    --blue-dark: #1d4f9c;
    --accent-ink: #fff;
    --line: rgba(255, 255, 255, 0.14);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    --shadow-soft: 0 18px 48px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-gradient) var(--bg);
  color: var(--ink);
  font-family:
    Inter,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.container-narrow {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 950;
  line-height: 0.92;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 16px;
  background: var(--blue-dark);
  color: var(--amber);
  box-shadow: inset 0 -4px 0 rgba(255, 200, 69, 0.22);
}

.brand-text {
  letter-spacing: -0.04em;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-weight: 800;
}

.site-nav a,
.text-link,
.site-footer a {
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.site-nav a[aria-current="page"] {
  color: var(--blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.lang-switch a {
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
}

.lang-switch a[aria-current="true"] {
  background: var(--blue-dark);
  color: var(--accent-ink);
}

.lang-switch a:not([aria-current="true"]):hover,
.lang-switch a:not([aria-current="true"]):focus-visible {
  color: var(--ink);
}

.menu-toggle,
.theme-toggle,
.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--bg-soft);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.menu-toggle {
  display: none;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-height: 40px;
  padding: 0;
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  width: 18px;
  height: 18px;
}

.theme-toggle .icon-moon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun {
    display: none;
  }

  :root:not([data-theme="light"]) .theme-toggle .icon-moon {
    display: block;
  }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid var(--blue-dark);
  border-radius: 999px;
  background: var(--blue-dark);
  color: var(--accent-ink);
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(9, 45, 99, 0.18);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-small {
  min-height: 40px;
  padding: 0 16px;
}

.button-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.hero {
  padding: 72px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 42px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 5.2vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  overflow-wrap: break-word;
  hyphens: manual;
}

.hero-copy {
  min-width: 0;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.62rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.lead {
  max-width: 680px;
  color: var(--ink-soft);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.lead-card,
.article-card,
.match-card,
.cta-box,
.rubric-card {
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--card-bg);
  box-shadow: var(--shadow);
}

.lead-card {
  position: relative;
  overflow: hidden;
}

.lead-media,
.card-media {
  display: block;
  overflow: hidden;
  background: var(--blue-dark);
}

.lead-media img,
.card-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 50% 35%;
  transition: transform 0.35s ease;
}

.lead-card:hover .lead-media img,
.article-card:hover .card-media img {
  transform: scale(1.03);
}

.lead-media {
  border-bottom: 6px solid var(--amber);
}

.lead-card-body {
  padding: 28px;
}

.lead-card-body h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.08;
}

.lead-card-body h2 .card-link {
  text-decoration: none;
}

.lead-card-body h2 .card-link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.lead-card-body h2 .card-link:hover {
  text-decoration: underline;
}

.lead-excerpt {
  color: var(--ink-soft);
  font-size: 1rem;
}

.card-foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  align-items: baseline;
  margin-top: auto;
}

.card-source {
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.card-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--amber);
  color: #102033;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section {
  padding: 74px 0;
}

.section-tint {
  background: var(--bg-tint);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

.match-card,
.rubric-card {
  padding: 24px;
}

.article-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 24px 24px;
}

.card-body h2,
.card-body h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.card-body p:not(.eyebrow) {
  margin-bottom: 16px;
}

.cards-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cards-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cards-grid-4 .card-body h3 {
  font-size: 1.12rem;
}

.section-head .lead {
  margin: 12px 0 0;
  font-size: 1.05rem;
}

.section-head > .text-link {
  flex-shrink: 0;
  white-space: nowrap;
}

.section-flush {
  padding-top: 24px;
}

.article-card:hover,
.rubric-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.article-card .card-link {
  text-decoration: none;
}

.article-card .card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.article-card .card-link:focus-visible::after {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.article-card time,
.card-meta {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.article-card p:not(.eyebrow),
.match-card p,
.about-copy,
.cta-box p,
.site-footer p,
.rubric-card p {
  color: var(--muted);
}

.rubric-card {
  box-shadow: none;
  text-decoration: none;
}

.rubric-card h3 {
  margin-bottom: 8px;
}

.rubric-card p {
  margin: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.chip[aria-pressed="true"] {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--accent-ink);
}

.article-card[hidden] {
  display: none;
}

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

.archive-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  margin-bottom: 8px;
}

.archive-tools .chips {
  margin: 0;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 280px;
  max-width: 420px;
  padding: 0 14px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  box-shadow: var(--shadow-soft);
}

.search-box:focus-within {
  border-color: var(--blue);
  color: var(--blue);
}

.search-box svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.search-input {
  flex: 1;
  min-width: 0;
  padding: 11px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.98rem;
}

.search-input:focus {
  outline: none;
}

.search-input::-webkit-search-cancel-button {
  cursor: pointer;
}

.search-count {
  min-height: 1.4em;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.search-count:empty {
  margin-bottom: 10px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card-bg);
  box-shadow: var(--shadow-soft);
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}

.results-table th,
.results-table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.results-table th {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-tint);
}

.results-table tr:last-child td {
  border-bottom: 0;
}

.results-table td a:not(.text-link) {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}

.results-table td a:not(.text-link):hover {
  color: var(--blue);
}

.results-table .is-upcoming td {
  color: var(--ink-soft);
}

.results-table sup {
  margin-left: 2px;
  color: var(--muted);
}

.table-note {
  margin: 12px 4px 0;
}

.rubric-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.player-card .card-meta {
  display: block;
  margin-top: 12px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px 24px;
  margin: 0 0 28px;
  padding: 18px 22px;
  background: var(--bg-tint);
  border-radius: 16px;
}

.facts dt {
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts dd {
  margin: 4px 0 0;
  font-weight: 600;
}

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

.scoreline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  margin: 26px 0;
  font-weight: 950;
  text-align: center;
}

.scoreline strong {
  padding: 12px 18px;
  border-radius: 18px;
  background: var(--blue-dark);
  color: var(--amber);
  font-size: 2rem;
}

.match-grid-wide {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
}

.match-list {
  display: grid;
  gap: 18px;
}

picture {
  display: contents;
}

.topics-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  background: var(--card-bg);
}

.tag:hover {
  border-color: var(--blue);
}

.tag-count {
  font-weight: 500;
  color: var(--muted);
}

.standings-summary {
  margin: 0 0 12px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue);
}

.form-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
}

.form-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.form-w {
  background: #1f9d55;
}

.form-d {
  background: #8a8f98;
}

.form-l {
  background: #d64545;
}

.standings-table td:not(:nth-child(2)),
.standings-table th:not(:nth-child(2)) {
  text-align: center;
  width: 1%;
  white-space: nowrap;
}

.standings-table tr.is-baltika td {
  background: var(--bg-tint);
  font-weight: 600;
}

.countdown {
  display: inline-block;
  margin: 0 0 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-tint);
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.match-card-wide .scoreline {
  max-width: 520px;
  margin: 22px 0;
  text-align: left;
}

.match-card-wide .scoreline strong {
  font-size: 1.6rem;
}

.match-card .eyebrow + .scoreline {
  margin-top: 16px;
}

.takeaways {
  margin: 0 0 18px;
  padding-left: 0;
  list-style: none;
  counter-reset: takeaway;
  color: var(--ink-soft);
  display: grid;
  gap: 10px;
}

.takeaways li {
  position: relative;
  padding-left: 40px;
  counter-increment: takeaway;
}

.takeaways li::before {
  content: counter(takeaway);
  position: absolute;
  left: 0;
  top: -2px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--blue-dark);
  color: var(--amber);
  font-size: 0.85rem;
  font-weight: 900;
  line-height: 28px;
  text-align: center;
}

.article-match .takeaways {
  margin: 18px 0 8px;
  text-align: left;
}

.article-match .eyebrow {
  margin: 18px 0 10px;
}

.author {
  padding-top: 0;
}

.author-box {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--card-bg);
}

.author-photo,
.author-mark {
  width: 160px;
  height: 160px;
  border-radius: 40px;
  object-fit: cover;
}

.author-mark {
  display: grid;
  place-items: center;
  background: var(--blue-dark);
  color: var(--amber);
  font-size: 2.2rem;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.author-box h2 {
  margin-bottom: 10px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.author-box p:not(.eyebrow) {
  max-width: 62ch;
  color: var(--ink-soft);
}

.author-box .hero-actions {
  margin-top: 18px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1fr);
  gap: 48px;
}

.about-copy {
  font-size: 1.12rem;
}

.cta {
  padding: 20px 0 82px;
}

.cta-box {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(255, 200, 69, 0.42), transparent),
    var(--card-bg);
}

.page-head {
  padding: 64px 0 24px;
}

.page-head h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
}

.page-head .lead {
  margin-bottom: 0;
}

.article {
  padding: 56px 0 72px;
}

.article-head {
  margin-bottom: 36px;
}

.article-head h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  letter-spacing: -0.06em;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
  font-weight: 700;
}

.article-body {
  font-size: 1.14rem;
  color: var(--ink-soft);
}

.article-body p {
  margin-bottom: 1.35em;
}

.article-body h2 {
  margin: 2em 0 0.7em;
  color: var(--ink);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.article-body blockquote {
  margin: 1.6em 0;
  padding: 18px 24px;
  border-left: 6px solid var(--amber);
  border-radius: 0 20px 20px 0;
  background: var(--card-bg);
  color: var(--ink);
  font-weight: 700;
}

.article-body strong {
  color: var(--ink);
}

.article-body a {
  color: var(--blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.article-body figure {
  margin: 2em 0;
}

.article-body figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.article-body figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.article-note {
  margin: 32px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.article-body .eyebrow {
  margin-bottom: 14px;
}

.article-figure {
  margin: 0 0 32px;
}

.article-cover {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.article-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.85rem;
}

.article-match {
  margin: 0 0 32px;
  padding: 8px 24px 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card-bg);
  text-align: center;
}

.article-match .scoreline {
  margin: 18px 0 10px;
}

.article-match .card-meta {
  margin: 0;
}

.source-box {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 200, 69, 0.3), transparent),
    var(--card-bg);
}

.source-box p {
  margin: 0;
  max-width: 34ch;
  color: var(--ink-soft);
  font-weight: 700;
}

.article-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-weight: 700;
}

.article-footer a {
  flex: 1 1 240px;
  max-width: 48%;
}

.article-footer .align-end {
  text-align: right;
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.related {
  padding-top: 0;
}

.footer-note {
  max-width: 52ch;
  font-size: 0.9rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  background: var(--header-bg);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 860px) {
  .topbar {
    display: none;
  }

  .nav-wrap {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .header-actions {
    justify-self: end;
  }

  .header-actions .button-small {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    order: 3;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0 6px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero-grid,
  .about-grid,
  .match-grid,
  .match-grid-wide {
    grid-template-columns: 1fr;
  }

  .cards-grid,
  .cards-grid-4,
  .rubric-grid,
  .rubric-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .author-box {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 22px;
    padding: 24px;
  }

  .author-photo,
  .author-mark {
    width: 120px;
    height: 120px;
    border-radius: 30px;
  }
}

@media (max-width: 620px) {
  .container,
  .container-narrow {
    width: min(100% - 22px, 1120px);
  }

  .hero {
    padding-top: 42px;
  }

  h1 {
    font-size: clamp(2.2rem, 11.5vw, 3.2rem);
  }

  .page-head h1,
  .article-head h1 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .cards-grid,
  .cards-grid-2,
  .cards-grid-4,
  .rubric-grid,
  .rubric-grid-3,
  .scoreline,
  .author-box {
    grid-template-columns: 1fr;
  }

  .results-table th,
  .results-table td {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .match-card-wide .scoreline {
    text-align: center;
  }

  .header-actions {
    gap: 6px;
  }

  .lang-switch a {
    padding: 7px 9px;
  }

  .article-footer a {
    max-width: none;
  }

  .article-footer .align-end {
    text-align: left;
  }

  .source-box {
    padding: 20px;
  }

  .source-box .button {
    width: 100%;
  }

  .section-head,
  .cta-box,
  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .lead-card-body,
  .cta-box {
    padding: 22px;
  }
}

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

  .article-card,
  .rubric-card,
  .button {
    transition: none;
  }
}
