/* Chip And Reel — tokens & resets */
:root {
  --grey-blue: #dce5ee;
  --grey-blue-deep: #c5d2e0;
  --charcoal: #2c3238;
  --charcoal-soft: #3d454d;
  --amber: #d4920a;
  --amber-deep: #b87a08;
  --ink: #1a1e22;
  --paper: #f4f7fa;
  --white: #ffffff;
  --rule: rgba(44, 50, 56, 0.18);
  --shadow: 0 6px 18px rgba(44, 50, 56, 0.08);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --measure: 68ch;
  --container: 1120px;
  --font-display: "Libre Baskerville", "Source Serif 4", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", "Helvetica Neue", sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", ui-monospace, monospace;
  --radius: 6px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--amber-deep);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: background-size 0.25s ease;
}

a:hover,
a:focus-visible {
  background-size: 100% 1px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--charcoal);
  margin: 0 0 var(--space-4);
}

p {
  margin: 0 0 var(--space-4);
  max-width: var(--measure);
}

ul,
ol {
  margin: 0 0 var(--space-4);
  padding-left: 1.25rem;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  margin: 0 0 var(--space-2);
}

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

.hairline {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: var(--space-6) 0;
}

.numeral {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--amber);
}

.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2em 0.55em;
  border: 1px solid var(--rule);
  color: var(--charcoal);
  background: var(--white);
  border-radius: 2px;
}

.badge--accent {
  border-color: var(--amber);
  color: var(--amber-deep);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0.55rem 1.15rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--charcoal);
  outline: 1px solid var(--charcoal);
  outline-offset: 3px;
  text-decoration: none;
  background-image: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, outline-offset 0.15s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--amber);
  color: var(--ink);
  background-size: auto;
  outline-offset: 5px;
}

.btn--ghost {
  background: transparent;
  outline-color: var(--amber);
  border-color: var(--amber);
  color: var(--amber-deep);
}

.tile {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-5);
}

/* Age notice */
.age-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--charcoal);
  color: var(--white);
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.age-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  padding: var(--space-2) 0;
}

.age-bar a {
  color: #f0c36a;
  background-image: linear-gradient(#f0c36a, #f0c36a);
}

.age-bar__mark {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.08em;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.1em 0.4em;
  margin-right: var(--space-2);
}

/* Header — centered logo, links split */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) 0;
}

.nav-left,
.nav-right {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  align-items: center;
}

.nav-left {
  justify-content: flex-end;
}

.nav-right {
  justify-content: flex-start;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  background-image: none;
  color: var(--charcoal);
}

.brand img {
  width: 40px;
  height: 40px;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal);
  background-image: linear-gradient(var(--amber), var(--amber));
}

.breadcrumb {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  padding: var(--space-2) 0;
}

.breadcrumb a {
  color: var(--charcoal-soft);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--white);
  border-top: 1px solid var(--charcoal);
  box-shadow: 0 -4px 20px rgba(44, 50, 56, 0.1);
  padding: var(--space-4);
  display: none;
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner__inner {
  width: min(100%, var(--container));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.cookie-banner p {
  margin: 0;
  flex: 1 1 280px;
  font-size: 0.95rem;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* Footer two-deck */
.site-footer {
  background: var(--charcoal);
  color: #e8edf2;
  margin-top: var(--space-8);
}

.site-footer a {
  color: #f0c36a;
  background-image: linear-gradient(#f0c36a, #f0c36a);
}

.footer-deck {
  padding: var(--space-7) 0;
}

.footer-deck--links {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--space-6);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.footer-brand img {
  width: 36px;
  height: 36px;
  filter: brightness(1.2);
}

.footer-brand span {
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.footer-col h3 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: var(--space-3);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: var(--space-2);
}

.footer-deck--safety {
  background: #24292e;
  padding: var(--space-5) 0;
}

.safety-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.safety-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  text-align: center;
  text-decoration: none;
  background-image: none;
  color: #e8edf2;
  min-height: 100px;
  transition: transform 0.2s ease;
}

.safety-card img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.safety-card span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-note {
  font-size: 0.85rem;
  opacity: 0.8;
  max-width: none;
  margin-top: var(--space-4);
}

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

@media (max-width: 880px) {
  .site-header__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .nav-left,
  .nav-right {
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .safety-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-grid,
  .safety-row {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }
}

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

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