/* Swiss Draughts Federation, draughts.ch */

/* ------------------------------------------------------------------ tokens */
:root {
  color-scheme: light dark;

  --bg: #fbf8f3;
  --surface: #ffffff;
  --surface-2: #f4efe7;
  --text: #1b1917;
  --muted: #5d5852;
  --line: #e6dfd4;
  --line-strong: #cfc6b8;
  --accent: #d52b1e;          /* Swiss red: buttons, marks */
  --accent-hover: #b8241a;
  --accent-ink: #b42318;      /* red used for text on light backgrounds */
  --accent-soft: rgb(213 43 30 / 0.09);
  --on-accent: #ffffff;
  --header-bg: rgb(251 248 243 / 0.82);
  --glow: rgb(213 43 30 / 0.10);
  --checker: var(--accent);

  --board-frame: #1f1b19;
  --board-light: #f5ecdf;
  --board-dark: #c8271b;
  --piece-light: #fffcf6;
  --piece-dark: #1d1b1a;

  --shadow: 0 1px 2px rgb(27 25 23 / 0.04), 0 8px 24px rgb(27 25 23 / 0.06);
  --shadow-lg: 0 2px 4px rgb(27 25 23 / 0.05), 0 18px 48px rgb(27 25 23 / 0.14);

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;

  --radius: 16px;
  --maxw: 1120px;
  --gutter: 16px;
  --header-h: 64px;
}

/* Dark theme: follows the device, unless the visitor picked a theme
   (data-theme="light" | "dark" on <html>, set by main.js).
   The two blocks below must stay identical. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141312;
    --surface: #211f1d;
    --surface-2: #1a1817;
    --text: #f3efe9;
    --muted: #aaa39a;
    --line: #322f2c;
    --line-strong: #4a4642;
    --accent: #d52b1e;
    --accent-hover: #e33a2c;
    --accent-ink: #ff7a6e;
    --accent-soft: rgb(255 122 110 / 0.12);
    --header-bg: rgb(20 19 18 / 0.8);
    --glow: rgb(213 43 30 / 0.20);

    --board-frame: #0c0b0a;
    --board-light: #e9dfcf;
    --board-dark: #b9241a;

    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.25);
    --shadow-lg: 0 2px 4px rgb(0 0 0 / 0.3), 0 18px 48px rgb(0 0 0 / 0.5);
  }
}
:root[data-theme="dark"] {
  --bg: #141312;
  --surface: #211f1d;
  --surface-2: #1a1817;
  --text: #f3efe9;
  --muted: #aaa39a;
  --line: #322f2c;
  --line-strong: #4a4642;
  --accent: #d52b1e;
  --accent-hover: #e33a2c;
  --accent-ink: #ff7a6e;
  --accent-soft: rgb(255 122 110 / 0.12);
  --header-bg: rgb(20 19 18 / 0.8);
  --glow: rgb(213 43 30 / 0.20);

  --board-frame: #0c0b0a;
  --board-light: #e9dfcf;
  --board-dark: #b9241a;

  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.25);
  --shadow-lg: 0 2px 4px rgb(0 0 0 / 0.3), 0 18px 48px rgb(0 0 0 / 0.5);
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

@media (min-width: 720px) {
  :root { --gutter: 24px; --header-h: 72px; }
}
@media (min-width: 1024px) {
  :root { --gutter: 32px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
p { margin: 0; }
a { color: inherit; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  overflow-wrap: break-word;
  hyphens: auto;
  text-wrap: balance;
}

h1 { font-size: clamp(2.35rem, 1.45rem + 4vw, 4.25rem); }
h2 { font-size: clamp(1.85rem, 1.3rem + 2.4vw, 2.9rem); }
h3 {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

main:focus { outline: none; }

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

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-right: auto;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.brand img { width: 34px; height: 34px; flex: none; }
/* The name wraps onto two lines when needed (e.g. the long French name). */
.brand-name { min-width: 0; max-width: 8.5em; font-size: 0.9375rem; text-wrap: balance; }

@media (min-width: 480px) {
  .brand-name { max-width: 15em; font-size: 1rem; }
}
@media (min-width: 1200px) {
  .brand-name { max-width: none; }
}

.site-nav ul {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.site-nav a:hover { color: var(--text); background: var(--surface-2); }

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

/* pop-up menus: language (works without JS thanks to <details>) and theme */
.pop { position: relative; }
.pop summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  list-style: none;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s ease;
}
.pop summary::-webkit-details-marker { display: none; }
.pop summary:hover { border-color: var(--line-strong); }
.pop .icon { width: 18px; height: 18px; flex: none; }
.pop .chev { width: 11px; height: 11px; transition: transform 0.2s ease; }
.pop[open] .chev { transform: rotate(180deg); }

.pop-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  min-width: 190px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
}
.pop-menu a,
.pop-menu button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 0.9375rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.pop-menu a:hover,
.pop-menu button:hover { background: var(--surface-2); }
.lang-code { color: var(--muted); font-size: 0.75rem; font-weight: 650; letter-spacing: 0.06em; }
.pop-menu a[aria-current],
.pop-menu button[aria-pressed="true"] { color: var(--accent-ink); font-weight: 600; }
.pop-menu a[aria-current] .lang-code { color: inherit; }

/* theme picker: needs JS; in the header from 720px, inside the mobile menu below */
.theme-menu { display: none; }
@media (min-width: 720px) {
  .js .theme-menu { display: block; }
}
.theme-menu summary { width: 42px; padding: 0; justify-content: center; }
.theme-menu .pop-menu { min-width: 180px; }
.theme-menu .pop-menu button { justify-content: flex-start; gap: 10px; }
.theme-icons { display: flex; }
.theme-icons .icon { display: none; }
:root:not([data-theme]) .theme-icons .i-auto,
:root[data-theme="light"] .theme-icons .i-light,
:root[data-theme="dark"] .theme-icons .i-dark { display: block; }

.nav-theme { display: none; }
.nav-theme-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.segmented button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 8px 4px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
}
.segmented button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  box-shadow: var(--shadow);
}
.segmented .icon { width: 18px; height: 18px; }
@media (max-width: 719.98px) {
  .js .nav-theme {
    display: block;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }
}

/* hamburger */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.nav-toggle-bar { position: relative; }
.nav-toggle-bar::before,
.nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 959.98px) {
  /* without JS: links on their own scrollable row under the brand */
  .site-nav { order: 3; flex-basis: 100%; overflow-x: auto; padding-bottom: 8px; }

  /* with JS: collapsible panel, header always on a single row */
  .js .header-inner { flex-wrap: nowrap; }
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    overflow: visible;
  }
  .js .site-header.is-open .site-nav { display: block; }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav li + li { border-top: 1px solid var(--line); }
  .js .site-nav a {
    padding: 14px 4px;
    border-radius: 0;
    color: var(--text);
    font-size: 1.0625rem;
  }
  .js .site-nav a:hover { background: none; color: var(--accent-ink); }
}

@media (max-width: 359.98px) {
  .header-inner, .brand { gap: 8px; }
  .brand img { width: 30px; height: 30px; }
  .brand-name { font-size: 0.875rem; }
  .lang .chev { display: none; }
}

/* -------------------------------------------------------------------- hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 112px);
}
.hero::before {
  content: "";
  position: absolute;
  bottom: -10%;
  right: -20%;
  width: min(110vw, 760px);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, var(--glow), transparent);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  gap: clamp(40px, 7vw, 72px);
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: 1.15fr 0.85fr; }
}

.eyebrow,
.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--accent-ink);
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow::before,
.kicker::before {
  content: "";
  flex: none;
  width: 22px;
  height: 2px;
  background: currentColor;
}

.lead {
  max-width: 38em;
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.6;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }
@media (max-width: 559.98px) { .actions .btn { flex: 1 1 auto; } }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }

.hero-art {
  justify-self: center;
  width: min(100%, 340px);
}
@media (min-width: 720px) { .hero-art { width: min(100%, 400px); } }
@media (min-width: 1024px) { .hero-art { width: 100%; max-width: 440px; justify-self: end; } }

.board {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 40px rgb(27 25 23 / 0.18));
  transform: rotate(-2deg);
}
.board .b-frame { fill: var(--board-frame); }
.board .b-light { fill: var(--board-light); }
.board .b-dark { fill: var(--board-dark); }
.board .pc-shadow { fill: #000; opacity: 0.28; }
.board .pc-l { fill: var(--piece-light); stroke: rgb(0 0 0 / 0.16); stroke-width: 1; }
.board .pc-l-ring { fill: none; stroke: rgb(0 0 0 / 0.13); stroke-width: 1.5; }
.board .pc-d { fill: var(--piece-dark); }
.board .pc-d-ring { fill: none; stroke: rgb(255 255 255 / 0.16); stroke-width: 1.5; }
.board .pc-crown { fill: var(--accent); }

/* checkerboard divider */
.checker {
  height: 16px;
  background: repeating-conic-gradient(var(--checker) 0 25%, transparent 0 50%) 0 0 / 16px 16px;
}

/* ---------------------------------------------------------------- sections */
.section {
  padding: clamp(64px, 10vw, 120px) 0;
  scroll-margin-top: var(--header-h);
}
.section-alt { background: var(--surface-2); }

.section-head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 56px); }

.split { display: grid; gap: 24px 64px; }
.split > .section-head { margin-bottom: 0; }
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1fr; align-items: start; }
}

.prose { display: grid; gap: 18px; color: var(--muted); font-size: 1.0625rem; }
.prose p:first-child { color: var(--text); font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem); }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 24px;
  margin: clamp(48px, 7vw, 80px) 0 0;
  padding: 0;
  list-style: none;
}
.stats li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 18px;
  border-top: 2px solid var(--text);
}
.stat-value {
  color: var(--accent-ink);
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-label { color: var(--muted); }

@media (max-width: 559.98px) {
  .stats { grid-template-columns: 1fr; gap: 0; }
  .stats li {
    flex-direction: row;
    align-items: baseline;
    gap: 16px;
    padding: 14px 0;
    border-top-width: 1px;
  }
  .stats li:first-child { border-top-width: 2px; }
  .stat-value { min-width: 3.4em; font-size: 2.25rem; }
}

/* cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.clubs { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 2.5vw, 28px);
}

.card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.badge-example {
  padding: 2px 9px;
  border: 1px dashed var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 0.8125rem;
  font-weight: 600;
}

/* label/value rows at the bottom of a card (events, variants) */
.meta {
  display: grid;
  gap: 10px;
  margin: auto 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.meta div { display: flex; justify-content: space-between; gap: 12px; }
.meta dt { color: var(--muted); font-size: 0.875rem; }
.meta dd { margin: 0; font-size: 0.875rem; font-weight: 500; text-align: right; }

/* variants: compact list linking to the official rules (DraughtsGame.com) */
.section-compact { padding: clamp(48px, 7vw, 80px) 0; }
@media (min-width: 960px) {
  .section-compact .split { align-items: center; }
}
.variant-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.variant-pills a {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.variant-pills a:hover { border-color: var(--accent); color: var(--accent-ink); }
.variant-pills .board {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.rules-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
}
.rules-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* events */
.event { display: flex; flex-direction: column; }
.event h3 { margin-bottom: 20px; font-family: var(--font-serif); font-size: 1.375rem; font-weight: 600; }

/* clubs */
.club-city {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-ink);
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.club-city .icon { width: 16px; height: 16px; }
.club h3 { font-family: var(--font-serif); font-size: 1.375rem; font-weight: 600; }
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
}
.club-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
}
.club-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* contact */
.contact-cards { display: grid; gap: 16px; }
.contact-card { display: grid; gap: 6px; position: relative; }
.contact-card .card-top { margin-bottom: 0; }
.contact-label {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.contact-value {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  font-style: normal;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.contact-link {
  text-decoration: none;
  padding-right: 64px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.contact-link:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.contact-arrow {
  position: absolute;
  right: 24px;
  top: 50%;
  translate: 0 -50%;
  color: var(--accent-ink);
  font-size: 1.5rem;
  transition: translate 0.15s ease;
}
.contact-link:hover .contact-arrow { translate: 4px -50%; }

/* ------------------------------------------------------------------ footer */
.site-footer {
  padding: 48px 0 40px;
  color: var(--muted);
  font-size: 0.9375rem;
}
.footer-inner {
  display: grid;
  gap: 28px;
}
@media (min-width: 720px) {
  .footer-inner { grid-template-columns: 1fr auto; align-items: center; }
  .footer-copy { grid-column: 1 / -1; }
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 28px; height: 28px; flex: none; }
.footer-name { color: var(--text); font-weight: 650; }
.footer-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-langs a { text-decoration: none; }
.footer-langs a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.footer-langs a[aria-current] { color: var(--accent-ink); font-weight: 600; }
.footer-names {
  grid-column: 1 / -1;
  font-size: 0.8125rem;
  line-height: 1.7;
}
.footer-names .sep { color: var(--line-strong); }
.footer-copy {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}
.footer-copy a { color: var(--text); text-underline-offset: 3px; }

/* ------------------------------------------------------------ preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
