:root {
  --white: #ffffff;
  --paper: #f7f9fc;
  --ink: #0f172a;
  --ink-soft: #334155;
  --blue: #0066ff;
  --blue-deep: #0047b3;
  --magenta: #e6007a;
  --magenta-soft: #ffe0f0;
  --blue-soft: #e8f0ff;
  --line: #d6e0f0;
  --ok: #0a7a4a;
  --warn: #b45309;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 64px;
  --space-7: 96px;
  --measure: 42rem;
  --wide: 68rem;
  --radius: 12px;
  --shadow-soft: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  --font-display: "Archivo", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", monospace;
  --age-h: 36px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--magenta);
  font-weight: 700;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 var(--space-3);
}

p {
  margin: 0 0 var(--space-3);
  max-width: 70ch;
}

ul,
ol {
  margin: 0 0 var(--space-4);
  padding: 0;
  list-style: none;
}

.list-motif > li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: var(--space-2);
}

.list-motif > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.65rem;
  height: 0.65rem;
  background: var(--magenta);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.list-num {
  counter-reset: item;
}

.list-num > li {
  counter-increment: item;
  position: relative;
  padding-left: 2.4rem;
  margin-bottom: var(--space-2);
}

.list-num > li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  display: grid;
  place-items: center;
}

button,
input,
select,
textarea {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.wrap {
  width: min(100% - 2rem, var(--wide));
  margin-inline: auto;
}

.wrap--narrow {
  width: min(100% - 2rem, var(--measure));
}

.kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--space-2);
}

.section-index {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  color: var(--blue);
  line-height: 1;
  opacity: 0.35;
  margin-bottom: var(--space-2);
}

.rule {
  width: 4rem;
  height: 3px;
  background: var(--magenta);
  border: 0;
  margin: var(--space-5) auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border: 1.5px solid var(--magenta);
  border-radius: 999px;
  color: var(--magenta);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.25rem;
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ff4da6 0%, var(--magenta) 55%, #c40068 100%);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 4px 0 #9c0054, var(--shadow-soft);
  text-decoration: none;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.btn:hover,
.btn:focus-visible {
  color: var(--white);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #9c0054, var(--shadow-soft);
}

.btn--ghost {
  background: var(--white);
  color: var(--blue);
  box-shadow: 0 4px 0 var(--line), var(--shadow-soft);
  border: 1.5px solid var(--line);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  color: var(--blue);
}

.btn--ghost:active {
  box-shadow: 0 1px 0 var(--line), var(--shadow-soft);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.tile {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

.tile__art {
  aspect-ratio: 16 / 10;
  background: var(--blue-soft);
  display: grid;
  place-items: center;
  padding: var(--space-3);
}

.tile__body {
  padding: var(--space-3) var(--space-4) var(--space-4);
}

.tile__body h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-2);
}

.duotone {
  filter: grayscale(1) contrast(1.05) brightness(1.05);
  mix-blend-mode: multiply;
  background: var(--blue);
}

.img-frame {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--blue-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.img-frame--offset {
  box-shadow: 10px 10px 0 var(--blue-soft);
}

.callout-dyk {
  border: 1.5px solid var(--blue);
  border-radius: var(--radius);
  padding: var(--space-4);
  background: linear-gradient(180deg, var(--white), var(--blue-soft));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  margin: var(--space-5) 0;
}

.callout-dyk__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--space-2);
}

.age-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--ink);
  color: var(--white);
  font-size: 0.8125rem;
  text-align: centre;
  text-align: center;
  padding: 0.55rem 1rem;
  min-height: var(--age-h);
}

.age-bar a {
  color: #ff9fd0;
}

.site-header {
  background: var(--white);
  border-bottom: 1.5px solid var(--line);
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
}

.nav-left,
.nav-right {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  align-items: center;
}

.nav-left {
  justify-content: flex-end;
}

.nav-right {
  justify-content: flex-start;
}

.site-header a {
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
}

.site-header a[aria-current="page"] {
  color: var(--magenta);
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  color: var(--ink);
}

.brand:hover,
.brand:focus-visible {
  text-decoration: none;
  color: var(--ink);
}

.brand__mark {
  width: 44px;
  height: 44px;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  line-height: 1.1;
}

.coin-badge {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.7rem 0.95rem;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12), var(--shadow-soft);
  min-width: 9.5rem;
}

.coin-badge__label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.coin-badge__value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--blue);
  font-size: 1.05rem;
}

.coin-badge__note {
  font-size: 0.68rem;
  color: var(--ink-soft);
  max-width: 11rem;
  line-height: 1.35;
}

.site-footer {
  margin-top: var(--space-7);
}

.footer-brand {
  background: var(--blue);
  color: var(--white);
  padding: var(--space-6) 0 var(--space-5);
}

.footer-brand a {
  color: #ffd0e8;
}

.footer-brand__grid {
  display: grid;
  gap: var(--space-4);
}

.footer-brand__word {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 var(--space-2);
}

.footer-brand__text {
  max-width: 40rem;
  opacity: 0.95;
}

.footer-legal {
  background: var(--ink);
  color: #cbd5e1;
  padding: var(--space-4) 0;
  font-size: 0.85rem;
}

.footer-legal a {
  color: #ff9fd0;
  font-weight: 600;
}

.footer-legal__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  justify-content: space-between;
}

.step-band {
  margin-left: clamp(0px, 4vw, 2.5rem);
}

.step-band--2 {
  margin-left: clamp(0px, 7vw, 4.5rem);
}

.step-band--3 {
  margin-left: clamp(0px, 10vw, 6.5rem);
}

.prose h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-top: var(--space-5);
}

.prose h3 {
  font-size: 1.25rem;
  margin-top: var(--space-4);
}

.heading-with-copy {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.copy-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
  opacity: 0.55;
}

.copy-link:hover,
.copy-link:focus-visible {
  opacity: 1;
}

.noscript {
  padding: var(--space-4);
  background: var(--magenta-soft);
  border: 1.5px solid var(--magenta);
  border-radius: var(--radius);
  margin: var(--space-4) 0;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 1100;
  max-width: min(24rem, calc(100vw - 2rem));
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16), var(--shadow-soft);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner p {
  font-size: 0.92rem;
  margin-bottom: var(--space-3);
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

@media (max-width: 860px) {
  .site-header__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .nav-left,
  .nav-right {
    justify-content: center;
  }

  .coin-badge {
    right: 0.65rem;
    bottom: 0.65rem;
    min-width: 0;
  }

  .step-band,
  .step-band--2,
  .step-band--3 {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
