/* ==========================================================================
   MaticPayu - Video Game History Archive
   Dark, layered, phosphor-accented. Built around a chronological rail rather
   than a grid of boxes.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  --ink-900: #05060a;
  --ink-800: #07080d;
  --ink-700: #0a0c13;
  --ink-600: #0e1119;
  --ink-500: #141824;
  --ink-400: #1c2130;

  --line-soft: rgba(255, 255, 255, 0.07);
  --line-mid: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);

  --text: #e9edf6;
  --text-dim: #a7b0c4;
  --text-faint: #7a839a;

  --accent: #45d9ff;
  --accent-deep: #1aa5cc;
  --accent-alt: #b76bff;
  --accent-warm: #ffb43a;

  --cat-arcade: #ff4d6d;
  --cat-home-consoles: #45d9ff;
  --cat-handheld-systems: #57e39b;
  --cat-personal-computers: #ffb43a;
  --cat-mobile-gaming: #ff8a3d;
  --cat-online-gaming: #6f8bff;
  --cat-virtual-reality: #b76bff;
  --cat-cloud-gaming: #7de0ff;
  --cat-game-development: #ffe066;
  --cat-business-and-industry: #a3b1c9;
  --cat-technology: #2fd4c9;
  --cat-cultural-milestones: #ff5ce1;

  --entry-accent: var(--accent);

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --shell: 1280px;
  --gutter: clamp(1.1rem, 4vw, 3rem);
  --radius: 14px;
  --radius-sm: 8px;

  --shadow-panel: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 18px 40px -24px rgba(0, 0, 0, 0.9);
  --shadow-lift: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 30px 60px -28px rgba(0, 0, 0, 0.95);

  --ease: cubic-bezier(0.22, 0.68, 0.28, 1);
  --dur: 260ms;
}

html[data-motion="reduced"] {
  --dur: 1ms;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--ink-900);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html[data-motion="reduced"] {
  scroll-behavior: auto;
}

html[data-motion="reduced"] *,
html[data-motion="reduced"] *::before,
html[data-motion="reduced"] *::after {
  animation-duration: 1ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 1ms !important;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
  line-height: 1.68;
  color: var(--text);
  background: var(--ink-800);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  line-height: 1.14;
  letter-spacing: -0.018em;
  font-weight: 640;
  text-wrap: balance;
}

p {
  margin: 0 0 1.05em;
  text-wrap: pretty;
}

a {
  color: var(--accent);
  text-decoration-color: rgba(69, 217, 255, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color var(--dur) var(--ease), text-decoration-color var(--dur) var(--ease);
}

a:hover {
  color: #8ee9ff;
  text-decoration-color: currentColor;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  margin: 0 0 1.05em;
  padding-left: 1.1rem;
}

kbd {
  font-family: var(--font-mono);
  font-size: 0.78em;
  padding: 0.15em 0.45em;
  border-radius: 5px;
  border: 1px solid var(--line-mid);
  background: var(--ink-500);
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection {
  background: rgba(69, 217, 255, 0.28);
  color: #fff;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  background: var(--accent);
  color: #04121a;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: top var(--dur) var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

/* --------------------------------------------------------------------------
   2. Atmosphere
   -------------------------------------------------------------------------- */

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.atmosphere__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}

.atmosphere__glow--one {
  width: 60vw;
  height: 60vw;
  max-width: 900px;
  max-height: 900px;
  top: -22vw;
  left: -14vw;
  background: radial-gradient(circle, rgba(26, 165, 204, 0.42), transparent 68%);
}

.atmosphere__glow--two {
  width: 52vw;
  height: 52vw;
  max-width: 760px;
  max-height: 760px;
  top: 18vh;
  right: -18vw;
  background: radial-gradient(circle, rgba(140, 82, 255, 0.3), transparent 70%);
}

.atmosphere__grid {
  position: absolute;
  inset: -10% -10% 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 5%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 5%, transparent 72%);
}

.atmosphere__scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.022) 0 1px,
    transparent 1px 3px
  );
  opacity: 0.6;
}

/* --------------------------------------------------------------------------
   3. Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(5, 6, 10, 0.95), rgba(5, 6, 10, 0.78));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0.7rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.28rem;
  text-decoration: none;
  color: var(--text);
  margin-right: auto;
}

.brand__logo {
  display: block;
  width: auto;
  height: clamp(26px, 2.4vw, 31px);
  filter: drop-shadow(0 0 18px rgba(112, 186, 96, 0.28));
  transition: filter var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.brand:hover .brand__logo {
  filter: drop-shadow(0 0 22px rgba(112, 186, 96, 0.45));
  transform: translateY(-1px);
}

.brand__tagline {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding-left: 0.15rem;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ink-500);
  border: 1px solid var(--line-mid);
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
}

.menu-toggle__bars {
  width: 15px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  position: relative;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars {
  border-bottom-color: transparent;
  transform: translateY(2px) rotate(0deg);
}

.site-nav {
  display: none;
  width: 100%;
  flex-direction: column;
  gap: 0.9rem;
  padding: 0.9rem 0 0.4rem;
}

.site-nav.is-open {
  display: flex;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.site-nav__list a,
.site-nav__trigger {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.95rem;
  font: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.site-nav__list a:hover,
.site-nav__trigger:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.site-nav__list a[aria-current="page"] {
  color: var(--accent);
  background: rgba(69, 217, 255, 0.09);
}

.site-nav__submenu {
  list-style: none;
  margin: 0.15rem 0 0.3rem 0.6rem;
  padding: 0 0 0 0.6rem;
  border-left: 1px solid var(--line-soft);
  display: none;
}

.site-nav__group.is-open .site-nav__submenu {
  display: block;
}

.header-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.header-search__label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  width: 100%;
}

.header-search__input {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line-mid);
  background: var(--ink-700);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
}

.header-search__input::placeholder {
  color: var(--text-faint);
}

.header-search__submit {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(69, 217, 255, 0.4);
  background: rgba(69, 217, 255, 0.12);
  color: var(--accent);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dur) var(--ease);
}

.header-search__submit:hover {
  background: rgba(69, 217, 255, 0.22);
}

.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line-mid);
  background: transparent;
  color: var(--text-dim);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.motion-toggle:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.motion-toggle__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.motion-toggle[aria-pressed="true"] .motion-toggle__dot {
  background: var(--text-faint);
  box-shadow: none;
}

@media (min-width: 62rem) {
  .menu-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    width: auto;
    padding: 0;
  }

  .site-nav__list {
    flex-direction: row;
    align-items: center;
    gap: 0.1rem;
  }

  .site-nav__list a,
  .site-nav__trigger {
    padding: 0.45rem 0.65rem;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .site-nav__group {
    position: relative;
  }

  .site-nav__submenu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 15rem;
    margin: 0;
    padding: 0.4rem;
    border: 1px solid var(--line-mid);
    border-left: 1px solid var(--line-mid);
    border-radius: var(--radius);
    background: rgba(10, 12, 19, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-lift);
    z-index: 30;
  }

  .header-search__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .header-search__input {
    flex: 0 1 11rem;
  }

  .motion-toggle span[data-motion-label] {
    display: none;
  }

  .motion-toggle {
    padding: 0.45rem 0.6rem;
  }
}

@media (min-width: 78rem) {
  .motion-toggle span[data-motion-label] {
    display: inline;
  }
}

/* --------------------------------------------------------------------------
   4. Shell
   -------------------------------------------------------------------------- */

.main {
  position: relative;
  z-index: 1;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter) 5rem;
}

.breadcrumbs {
  padding: 1.4rem 0 0;
  font-size: 0.82rem;
}

.breadcrumbs__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  margin: 0;
  padding: 0;
  color: var(--text-faint);
}

.breadcrumbs__item + .breadcrumbs__item::before {
  content: "/";
  margin-right: 0.55rem;
  color: rgba(255, 255, 255, 0.22);
}

.breadcrumbs__item a {
  color: var(--text-dim);
  text-decoration: none;
}

.breadcrumbs__item a:hover {
  color: var(--accent);
}

.breadcrumbs__item [aria-current] {
  color: var(--text);
}

.pagehead {
  padding: 2.4rem 0 1.6rem;
  max-width: 56rem;
}

.pagehead__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.pagehead__title {
  font-size: clamp(1.9rem, 1.2rem + 3.4vw, 3.35rem);
  margin-bottom: 0.7rem;
}

.pagehead__lede {
  font-size: clamp(1.03rem, 0.99rem + 0.3vw, 1.2rem);
  color: var(--text-dim);
  max-width: 46rem;
  margin-bottom: 0;
}

.pagehead__meta {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-faint);
}

.section {
  padding: 3.2rem 0 0;
}

.section__header {
  max-width: 46rem;
  margin-bottom: 1.8rem;
}

.section__title {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.95rem);
  margin-bottom: 0.55rem;
}

.section__lede {
  color: var(--text-dim);
  margin-bottom: 0;
}

.section__footer {
  margin-top: 1.6rem;
}

/* --------------------------------------------------------------------------
   5. Buttons and chips
   -------------------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--line-mid);
  background: var(--ink-500);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease),
    border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.button:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  color: var(--text);
}

.button--primary {
  border-color: transparent;
  background: linear-gradient(135deg, #5fe0ff, #2fa9d6 55%, #7d5bff);
  color: #04121a;
  box-shadow: 0 0 0 1px rgba(69, 217, 255, 0.35), 0 18px 40px -22px rgba(69, 217, 255, 0.85);
}

.button--primary:hover {
  color: #04121a;
  box-shadow: 0 0 0 1px rgba(69, 217, 255, 0.5), 0 22px 48px -20px rgba(69, 217, 255, 0.95);
}

.button--ghost {
  background: transparent;
}

.button--quiet {
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.86rem;
  padding: 0.55rem 1rem;
  font-weight: 560;
}

.button--large {
  padding: 0.9rem 1.7rem;
  font-size: 1rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line-mid);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-dim);
  font-size: 0.76rem;
  font-weight: 560;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.chip:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.chip--category {
  border-color: color-mix(in srgb, var(--entry-accent) 42%, transparent);
  background: color-mix(in srgb, var(--entry-accent) 12%, transparent);
  color: color-mix(in srgb, var(--entry-accent) 78%, white);
}

.chip--category::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--entry-accent);
  box-shadow: 0 0 8px var(--entry-accent);
}

.chip--category:hover {
  color: color-mix(in srgb, var(--entry-accent) 55%, white);
}

.chip--small {
  font-size: 0.66rem;
  padding: 0.12rem 0.55rem;
}

.linkrow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.linkrow a {
  display: inline-block;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
  font-size: 0.87rem;
  text-decoration: none;
}

.linkrow a:hover {
  color: var(--accent);
  border-color: rgba(69, 217, 255, 0.4);
}

.plainlist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.plainlist a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.92rem;
}

.plainlist a:hover {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  margin: 0 calc(var(--gutter) * -1);
  padding: clamp(2.6rem, 6vw, 5.5rem) var(--gutter) 0;
  min-height: min(88vh, 44rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero__art {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 74% 68%;
  opacity: 0.9;
  mask-image: linear-gradient(100deg, transparent 4%, #000 42%, #000 88%, rgba(0, 0, 0, 0.45) 100%);
  -webkit-mask-image: linear-gradient(100deg, transparent 4%, #000 42%, #000 88%, rgba(0, 0, 0, 0.45) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 66% 90% at 6% 40%, rgba(5, 6, 10, 0.95), rgba(5, 6, 10, 0.42) 52%, transparent 76%),
    linear-gradient(0deg, var(--ink-800) 1%, transparent 26%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 42rem;
  padding-bottom: clamp(3rem, 8vw, 6rem);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0.4rem 0.9rem 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line-mid);
  background: rgba(10, 12, 19, 0.7);
  margin-bottom: 1.5rem;
}

.hero__eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 3.2s var(--ease) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero__title {
  font-size: clamp(2.3rem, 1.1rem + 6.2vw, 4.6rem);
  line-height: 1.06;
  letter-spacing: -0.032em;
  /* The gradient is clipped to the glyphs, so the box needs room for descenders. */
  padding-bottom: 0.14em;
  margin-bottom: 0.85rem;
  background: linear-gradient(170deg, #ffffff 12%, #cfe4f2 52%, #7fa8c4 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lede {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.28rem);
  color: var(--text-dim);
  max-width: 38rem;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2.6rem;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line-soft);
}

.hero__stats > div {
  padding: 0.9rem 1.1rem;
  background: rgba(10, 12, 19, 0.82);
}

.hero__stats dt {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.25rem;
}

.hero__stats dd {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 660;
  letter-spacing: -0.02em;
}

.hero__spine {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(0.35rem, 1.6vw, 1.1rem);
  height: 58px;
  padding-bottom: 0;
  border-bottom: 1px solid var(--line-mid);
}

.hero__tick {
  flex: 0 1 clamp(20px, 4vw, 54px);
  height: calc(3px + (var(--tick-weight) * 0.34px));
  max-height: 42px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 55%, transparent), rgba(69, 217, 255, 0.02));
  box-shadow: 0 0 12px -4px color-mix(in srgb, var(--accent) 45%, transparent);
  opacity: 0.62;
}

.hero__tick:nth-child(even) {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-alt) 48%, transparent), rgba(183, 107, 255, 0.02));
  box-shadow: 0 0 12px -4px color-mix(in srgb, var(--accent-alt) 40%, transparent);
}

@media (min-width: 50rem) {
  .hero__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------------------
   7. Homepage sections
   -------------------------------------------------------------------------- */

.eras {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.era--wide {
  grid-column: span 1;
}

.era__link {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  height: 100%;
  padding: 1.2rem 1.3rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.era__link::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
  opacity: 0.55;
}

.era__link:hover {
  transform: translateY(-3px);
  border-color: rgba(69, 217, 255, 0.32);
  box-shadow: var(--shadow-lift);
}

.era__range {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.era__label {
  font-size: 1.22rem;
  font-weight: 660;
  letter-spacing: -0.02em;
}

.era__kicker {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.55;
}

.era__count {
  margin-top: auto;
  padding-top: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

@media (min-width: 62rem) {
  .eras {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .era--wide {
    grid-column: span 2;
  }
}

.turning {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line-soft);
}

.turning__item {
  display: flex;
}

.turning__link {
  display: flex;
  flex: 1;
  gap: 1.2rem;
  align-items: flex-start;
  padding: 1.4rem 1.4rem;
  background: rgba(10, 12, 19, 0.82);
  text-decoration: none;
  color: var(--text);
  position: relative;
  transition: background var(--dur) var(--ease);
}

.turning__link:hover {
  background: rgba(20, 24, 36, 0.95);
}

.turning__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--entry-accent);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

.turning__link:hover::before {
  opacity: 1;
}

.turning__year {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: color-mix(in srgb, var(--entry-accent) 62%, white);
  line-height: 1;
  min-width: 4.6ch;
  text-shadow: 0 0 26px color-mix(in srgb, var(--entry-accent) 45%, transparent);
}

.turning__body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.turning__category {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.turning__title {
  font-size: 1.1rem;
  font-weight: 620;
  letter-spacing: -0.016em;
  line-height: 1.3;
}

.turning__summary {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.55;
}

@media (min-width: 55rem) {
  .turning {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.themes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.theme-panel a {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 13rem;
  padding: 1.3rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.008) 60%);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.theme-panel a::after {
  content: "";
  position: absolute;
  right: -30%;
  bottom: -45%;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(34px);
  opacity: 0.45;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.theme-panel a:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.theme-panel a:hover::after {
  opacity: 0.72;
  transform: scale(1.08);
}

.theme-panel--arcade-games a::after { background: radial-gradient(circle, var(--cat-arcade), transparent 70%); }
.theme-panel--home-consoles a::after { background: radial-gradient(circle, var(--cat-home-consoles), transparent 70%); }
.theme-panel--handheld-gaming a::after { background: radial-gradient(circle, var(--cat-handheld-systems), transparent 70%); }
.theme-panel--pc-gaming a::after { background: radial-gradient(circle, var(--cat-personal-computers), transparent 70%); }
.theme-panel--online-gaming a::after { background: radial-gradient(circle, var(--cat-online-gaming), transparent 70%); }

.theme-panel h3 {
  position: relative;
  z-index: 1;
  font-size: 1.16rem;
  margin-bottom: 0.5rem;
}

.theme-panel p {
  position: relative;
  z-index: 1;
  color: var(--text-dim);
  font-size: 0.89rem;
  line-height: 1.55;
}

.theme-panel__cue {
  position: relative;
  z-index: 1;
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.catgrid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
}

.catgrid__item a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "dot label count" ". blurb blurb";
  gap: 0.2rem 0.6rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.022);
  text-decoration: none;
  color: var(--text);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.catgrid__item a:hover {
  border-color: color-mix(in srgb, var(--entry-accent) 45%, transparent);
  background: color-mix(in srgb, var(--entry-accent) 7%, transparent);
}

.catgrid__dot {
  grid-area: dot;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--entry-accent);
  box-shadow: 0 0 12px var(--entry-accent);
}

.catgrid__label {
  grid-area: label;
  font-weight: 600;
  font-size: 0.96rem;
}

.catgrid__count {
  grid-area: count;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-faint);
}

.catgrid__blurb {
  grid-area: blurb;
  color: var(--text-faint);
  font-size: 0.82rem;
  line-height: 1.45;
}

.method {
  display: grid;
  gap: 2rem;
  padding: 1.8rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.008));
}

.method__points {
  list-style: none;
  margin: 1.4rem 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}

.method__points h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
  color: var(--text);
}

.method__points p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.92rem;
}

.method__points li {
  padding-left: 1rem;
  border-left: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
}

.method__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0;
}

.method__bookends h3 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.9rem;
}

.bookend {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.1rem;
  margin-bottom: 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  background: rgba(5, 6, 10, 0.6);
  text-decoration: none;
  color: var(--text);
  transition: border-color var(--dur) var(--ease);
}

.bookend:hover {
  border-color: rgba(69, 217, 255, 0.4);
}

.bookend__tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.bookend__year {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.1;
}

.bookend__title {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.4;
}

@media (min-width: 62rem) {
  .method {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    padding: 2.4rem;
  }

  .method__points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------------------
   8. Timeline layout
   -------------------------------------------------------------------------- */

.timeline-layout {
  display: grid;
  gap: 1.8rem;
  padding-top: 0.6rem;
}

.timeline-layout__side {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

@media (min-width: 68rem) {
  .timeline-layout {
    grid-template-columns: 15.5rem minmax(0, 1fr);
    gap: 2.6rem;
    align-items: start;
  }

  .timeline-layout__side {
    position: sticky;
    top: 5.2rem;
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
    padding-right: 0.4rem;
    scrollbar-width: thin;
  }
}

/* Position indicator ------------------------------------------------------ */

.position {
  padding: 1.1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: rgba(10, 12, 19, 0.7);
}

.position__heading,
.jumpnav__heading {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.8rem;
}

.position__bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.position__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-alt));
  transition: width 120ms linear;
}

.position__readout {
  margin: 0.55rem 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}

.position__scale {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 74px;
}

.position__step {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
}

.position__step a {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  position: relative;
}

.position__gauge {
  display: block;
  width: 100%;
  height: var(--gauge, 6px);
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 75%, transparent), rgba(69, 217, 255, 0.1));
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
  transform-origin: bottom;
}

.position__step:hover .position__gauge {
  transform: scaleY(1.08);
  background: linear-gradient(180deg, var(--accent), rgba(69, 217, 255, 0.2));
}

.position__step.is-active .position__gauge {
  background: linear-gradient(180deg, var(--accent-warm), rgba(255, 180, 58, 0.16));
  box-shadow: 0 0 16px -2px rgba(255, 180, 58, 0.7);
}

.position__step.is-empty .position__gauge {
  background: rgba(255, 255, 255, 0.1);
}

.position__label,
.position__value {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.position__note {
  margin: 0.8rem 0 0;
  font-size: 0.74rem;
  color: var(--text-faint);
  line-height: 1.45;
}

.jumpnav {
  padding: 1.1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: rgba(10, 12, 19, 0.55);
}

.jumpnav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.jumpnav a {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.4rem 0.5rem;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.88rem;
}

.jumpnav a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.jumpnav a span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-faint);
}

/* Controls ---------------------------------------------------------------- */

.controls {
  padding: 1.3rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01));
  margin-bottom: 2rem;
}

.controls__heading {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1rem;
}

.controls__search {
  margin-bottom: 1rem;
}

.controls__search label,
.field label,
.notfound__search label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.35rem;
}

.controls__search input,
.field select,
.notfound__searchrow input {
  width: 100%;
  padding: 0.62rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-mid);
  background: var(--ink-700);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-faint) 50%),
    linear-gradient(135deg, var(--text-faint) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.2rem;
}

.controls__search input:focus,
.field select:focus {
  border-color: rgba(69, 217, 255, 0.5);
}

.controls__grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}

.controls__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.1rem;
}

.viewswitch {
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 0.25rem;
  margin: 0;
  display: inline-flex;
  gap: 0.2rem;
  background: rgba(5, 6, 10, 0.5);
}

.viewswitch legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.viewswitch__option {
  position: relative;
  cursor: pointer;
}

.viewswitch__option input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.viewswitch__option span {
  display: block;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  font-size: 0.84rem;
  color: var(--text-dim);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.viewswitch__option input:checked + span {
  background: rgba(69, 217, 255, 0.16);
  color: var(--accent);
}

.viewswitch__option input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.controls__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.controls__count {
  margin: 1.1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.9rem;
  color: var(--text-dim);
}

.controls__count strong {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--accent);
}

.controls__criteria {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.85rem;
  color: var(--text-faint);
}

.shortcuts {
  margin-top: 0.9rem;
  font-size: 0.85rem;
}

.shortcuts summary {
  cursor: pointer;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.shortcuts summary:hover {
  color: var(--accent);
}

.shortcuts__list {
  margin: 0.8rem 0 0;
  display: grid;
  gap: 0.45rem;
}

.shortcuts__list > div {
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
}

.shortcuts__list dt {
  min-width: 5.5rem;
}

.shortcuts__list dd {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   9. The rail and its entries
   -------------------------------------------------------------------------- */

.timeline {
  position: relative;
  padding-left: 3.6rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 1.15rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(69, 217, 255, 0.35) 6%,
    rgba(183, 107, 255, 0.28) 60%,
    transparent
  );
}

.timeline__marker {
  position: relative;
  margin: 2.4rem 0 1.2rem -3.6rem;
  padding: 0;
  font-size: 1rem;
}

.timeline__marker:first-child {
  margin-top: 0;
}

.timeline__marker a,
.timeline__marker--static {
  display: inline-flex;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0.45rem 1rem 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line-mid);
  background: rgba(10, 12, 19, 0.9);
  text-decoration: none;
  color: var(--text);
}

.timeline__marker a:hover {
  border-color: rgba(69, 217, 255, 0.45);
}

.timeline__marker-range {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.timeline__marker-label {
  font-size: 0.88rem;
  color: var(--text-dim);
  font-weight: 500;
}

.entry {
  position: relative;
  margin-bottom: 0.9rem;
  scroll-margin-top: 6rem;
}

.entry:focus {
  outline: none;
}

.entry__rail {
  position: absolute;
  left: -3.6rem;
  top: 1.35rem;
  width: 3.6rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.entry__node {
  position: relative;
  z-index: 2;
  width: 11px;
  height: 11px;
  margin-left: calc(1.15rem - 5px);
  border-radius: 50%;
  background: var(--entry-accent);
  box-shadow: 0 0 0 3px var(--ink-800), 0 0 16px color-mix(in srgb, var(--entry-accent) 70%, transparent);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.entry__stamp {
  position: absolute;
  left: 0;
  top: 1.4rem;
  width: 3.2rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.02em;
  color: var(--text-faint);
  text-align: left;
}

.entry__panel {
  position: relative;
  padding: 1.15rem 1.3rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  border-left: 1px solid color-mix(in srgb, var(--entry-accent) 30%, transparent);
  background: linear-gradient(
    120deg,
    color-mix(in srgb, var(--entry-accent) 5%, rgba(255, 255, 255, 0.028)),
    rgba(255, 255, 255, 0.012) 55%
  );
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.entry:hover .entry__panel,
.entry:focus-within .entry__panel {
  transform: translateX(3px);
  border-color: color-mix(in srgb, var(--entry-accent) 42%, transparent);
  box-shadow: var(--shadow-lift);
}

.entry:hover .entry__node {
  transform: scale(1.25);
  box-shadow: 0 0 0 3px var(--ink-800), 0 0 26px color-mix(in srgb, var(--entry-accent) 90%, transparent);
}

.entry.is-cursor .entry__panel {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(69, 217, 255, 0.35), var(--shadow-lift);
}

.entry__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.entry__date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.01em;
}

.entry__precision {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 0.1rem 0.45rem;
  border: 1px dashed var(--line-mid);
  border-radius: 999px;
}

.entry__title {
  font-size: clamp(1.08rem, 1rem + 0.35vw, 1.28rem);
  margin-bottom: 0.45rem;
  letter-spacing: -0.018em;
}

.entry__title a {
  color: var(--text);
  text-decoration: none;
}

.entry__title a:hover {
  color: color-mix(in srgb, var(--entry-accent) 55%, white);
}

.entry__summary {
  color: var(--text-dim);
  margin-bottom: 0.75rem;
  font-size: 0.96rem;
}

.entry__more {
  border-top: 1px solid var(--line-soft);
  padding-top: 0.6rem;
}

.entry__summary-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-faint);
  list-style: none;
}

.entry__summary-toggle::-webkit-details-marker {
  display: none;
}

.entry__summary-toggle::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid currentColor;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transition: transform var(--dur) var(--ease);
}

.entry__more[open] .entry__summary-toggle::before {
  transform: rotate(90deg);
}

.entry__summary-toggle:hover {
  color: var(--accent);
}

.entry__more[open] .entry__summary-toggle-open,
.entry__more:not([open]) .entry__summary-toggle-close {
  display: none;
}

.entry__expanded {
  padding-top: 0.9rem;
  animation: reveal var(--dur) var(--ease);
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

.factlist {
  margin: 0 0 1rem;
  display: grid;
  gap: 0.5rem;
}

.factlist__row {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 0.4rem 0.9rem;
  align-items: baseline;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.factlist__row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.factlist dt {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.factlist dd {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.factlist dd a {
  color: var(--text);
  text-decoration-color: rgba(255, 255, 255, 0.22);
}

.factlist dd a:hover {
  color: var(--accent);
}

.factlist--stacked .factlist__row {
  grid-template-columns: 1fr;
  gap: 0.15rem;
}

.entry__why {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--entry-accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--entry-accent) 22%, transparent);
  margin-bottom: 0.9rem;
}

.entry__why h4 {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--entry-accent) 75%, white);
  margin-bottom: 0.4rem;
}

.entry__why p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.entry__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin: 0;
}

.entry__sourcecount {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

@media (max-width: 34rem) {
  .timeline {
    padding-left: 1.9rem;
  }

  .timeline::before {
    left: 0.42rem;
  }

  .timeline__marker {
    margin-left: -1.9rem;
  }

  .entry__rail {
    left: -1.9rem;
    width: 1.9rem;
  }

  .entry__node {
    margin-left: 0;
    width: 9px;
    height: 9px;
  }

  .entry__stamp {
    display: none;
  }

  .factlist__row {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
}

/* --------------------------------------------------------------------------
   10. Empty state and pager
   -------------------------------------------------------------------------- */

.empty {
  padding: 2.2rem 1.6rem;
  border-radius: var(--radius);
  border: 1px dashed var(--line-mid);
  background: rgba(255, 255, 255, 0.018);
  text-align: center;
}

.empty h2 {
  font-size: 1.2rem;
}

.empty p {
  color: var(--text-dim);
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
}

.empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin-bottom: 0;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-soft);
}

.pager__step {
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--line-mid);
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.88rem;
}

.pager__step:hover {
  color: var(--accent);
  border-color: rgba(69, 217, 255, 0.4);
}

.pager__step.is-disabled {
  opacity: 0.35;
}

.pager__list {
  list-style: none;
  display: flex;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.pager__list a,
.pager__list .is-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-decoration: none;
  color: var(--text-dim);
}

.pager__list a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.pager__list .is-current {
  background: rgba(69, 217, 255, 0.16);
  color: var(--accent);
  border: 1px solid rgba(69, 217, 255, 0.4);
}

.pager__gap {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-faint);
  padding: 0 0.2rem;
}

/* --------------------------------------------------------------------------
   11. Decade essay blocks
   -------------------------------------------------------------------------- */

.periodstep {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.7rem;
  margin-top: 1.9rem;
}

.periodstep__link {
  flex: 1 1 12rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.025);
  text-decoration: none;
  color: var(--text);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.periodstep__link:hover {
  border-color: rgba(69, 217, 255, 0.4);
  transform: translateY(-2px);
}

.periodstep__link.is-disabled {
  opacity: 0.4;
}

.periodstep__link--next {
  text-align: right;
}

.periodstep__cue {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.periodstep__label {
  font-weight: 600;
  font-size: 0.98rem;
}

.periodstep__all {
  display: inline-flex;
  align-items: center;
  padding: 0 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.86rem;
  white-space: nowrap;
}

.periodstep__all:hover {
  color: var(--accent);
}

.periodstep--foot {
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-soft);
}

.essay {
  padding: 2rem 0 1rem;
  max-width: 62rem;
}

.essay__heading {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.essay__body {
  columns: 1;
  font-size: 1.04rem;
}

.essay__body p:first-child::first-letter {
  float: left;
  font-size: 3.2rem;
  line-height: 0.86;
  padding: 0.1em 0.12em 0 0;
  font-weight: 700;
  color: var(--accent);
}

.essay--compact .essay__body p:first-child::first-letter {
  float: none;
  font-size: inherit;
  padding: 0;
  font-weight: inherit;
  color: inherit;
}

.threads {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line-soft);
}

.thread {
  padding: 1.2rem 1.3rem;
  background: rgba(10, 12, 19, 0.75);
}

.thread h3 {
  font-size: 0.98rem;
  margin-bottom: 0.4rem;
  color: var(--accent);
}

.thread p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.92rem;
}

.watchfor {
  margin-top: 1.6rem;
  padding: 1.1rem 1.3rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: rgba(255, 180, 58, 0.05);
}

.watchfor h3 {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-bottom: 0.7rem;
}

.watchfor ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.watchfor li {
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 180, 58, 0.28);
  font-size: 0.83rem;
  color: var(--text-dim);
}

.takeaway {
  margin-top: 2.6rem;
  padding: 1.5rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--accent);
  background: linear-gradient(120deg, rgba(69, 217, 255, 0.07), transparent 65%);
}

.takeaway h2 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.takeaway p {
  margin: 0;
  color: var(--text-dim);
}

@media (min-width: 62rem) {
  .essay__body {
    columns: 2;
    column-gap: 2.8rem;
  }

  .threads {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------------------
   12. Entry page
   -------------------------------------------------------------------------- */

.record {
  padding-top: 2rem;
}

.record__head {
  max-width: 52rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line-soft);
}

.record__eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.record__date {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 0.7rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: color-mix(in srgb, var(--entry-accent) 65%, white);
  letter-spacing: 0.02em;
}

.record__precision {
  font-size: 0.64rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 0.12rem 0.5rem;
  border: 1px dashed var(--line-mid);
  border-radius: 999px;
}

.record__title {
  font-size: clamp(1.75rem, 1.15rem + 3vw, 3rem);
  margin-bottom: 1rem;
}

.record__summary {
  font-size: clamp(1.06rem, 1rem + 0.4vw, 1.25rem);
  color: var(--text-dim);
  max-width: 44rem;
}

.record__datenote {
  font-size: 0.9rem;
  color: var(--text-faint);
  padding-left: 0.9rem;
  border-left: 2px solid var(--line-mid);
}

.record__position {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin: 1.4rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

.record__positionbar {
  flex: 1 1 8rem;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
  max-width: 18rem;
}

.record__positionbar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--entry-accent), transparent);
}

.record__layout {
  display: grid;
  gap: 2.4rem;
  padding-top: 2.2rem;
}

.record__section {
  max-width: 44rem;
  margin-bottom: 2.2rem;
}

.record__section h2 {
  font-size: 1.22rem;
  margin-bottom: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line-soft);
}

.record__section p {
  font-size: 1.04rem;
}

.record__section--accent {
  padding: 1.4rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--entry-accent) 25%, transparent);
  background: color-mix(in srgb, var(--entry-accent) 7%, transparent);
  max-width: 46rem;
}

.record__section--accent h2 {
  border-bottom-color: color-mix(in srgb, var(--entry-accent) 25%, transparent);
  color: color-mix(in srgb, var(--entry-accent) 72%, white);
}

.record__section--accent p {
  margin-bottom: 0;
}

.sources {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
  counter-reset: source;
  display: grid;
  gap: 0.7rem;
}

.sources__item {
  counter-increment: source;
  position: relative;
  padding: 0.7rem 0.9rem 0.7rem 2.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.02);
}

.sources__item::before {
  content: counter(source);
  position: absolute;
  left: 0.85rem;
  top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
}

.sources--plain {
  counter-reset: none;
}

.sources--plain .sources__item {
  padding-left: 0.9rem;
}

.sources--plain .sources__item::before {
  content: none;
}

.sources__title {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
}

.sources__meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.82rem;
  color: var(--text-faint);
}

.record__sourcenote,
.record__reviewed {
  font-size: 0.85rem;
  color: var(--text-faint);
  max-width: 44rem;
}

.record__reviewed {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line-mid);
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.record__aside {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.factcard {
  padding: 1.2rem 1.3rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01));
}

.factcard--quiet {
  background: rgba(255, 255, 255, 0.02);
}

.factcard__heading {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.9rem;
}

.factcard p {
  font-size: 0.9rem;
  color: var(--text-dim);
}

.factcard p:last-child {
  margin-bottom: 0;
}

@media (min-width: 68rem) {
  .record__layout {
    grid-template-columns: minmax(0, 1fr) 19rem;
    gap: 3.2rem;
  }

  .record__aside {
    position: sticky;
    top: 5.4rem;
  }
}

.recordnav {
  display: grid;
  gap: 0.8rem;
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-soft);
}

.recordnav__link {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.022);
  text-decoration: none;
  color: var(--text);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.recordnav__link:hover {
  border-color: rgba(69, 217, 255, 0.4);
  transform: translateY(-2px);
}

.recordnav__link--next {
  text-align: right;
}

.recordnav__cue {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.recordnav__year {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--accent);
}

.recordnav__title {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.4;
}

@media (min-width: 46rem) {
  .recordnav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.relatedlist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.relatedlist a {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  height: 100%;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  border-left: 2px solid color-mix(in srgb, var(--entry-accent) 45%, transparent);
  background: rgba(255, 255, 255, 0.022);
  text-decoration: none;
  color: var(--text);
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.relatedlist a:hover {
  background: color-mix(in srgb, var(--entry-accent) 8%, transparent);
  transform: translateY(-2px);
}

.relatedlist__year {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--entry-accent) 68%, white);
}

.relatedlist__title {
  font-size: 0.95rem;
  font-weight: 570;
  line-height: 1.35;
}

.relatedlist__category {
  margin-top: auto;
  padding-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* --------------------------------------------------------------------------
   13. Article pages
   -------------------------------------------------------------------------- */

.article-layout {
  display: grid;
  gap: 2.4rem;
  padding-top: 1.4rem;
}

.article {
  max-width: 46rem;
}

.article__section {
  margin-bottom: 2.4rem;
}

.article h2 {
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);
  margin-bottom: 0.75rem;
  padding-top: 0.4rem;
}

.article p {
  font-size: 1.04rem;
}

.article--prose h2 {
  margin-top: 2.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line-soft);
}

.article--prose h2:first-child {
  margin-top: 0;
}

.prose-list {
  margin: 0 0 1.3rem;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.prose-list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--text-dim);
}

.prose-list li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--accent);
  transform: rotate(45deg);
  opacity: 0.8;
}

.prose-definitions {
  margin: 0 0 1.4rem;
  display: grid;
  gap: 0.9rem;
}

.prose-definitions dt {
  font-weight: 640;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.prose-definitions dd {
  margin: 0;
  color: var(--text-dim);
  padding-left: 0.9rem;
  border-left: 2px solid var(--line-soft);
}

.callout {
  margin: 1.4rem 0;
  padding: 1.1rem 1.3rem;
  border-radius: var(--radius);
  border: 1px solid rgba(69, 217, 255, 0.25);
  background: rgba(69, 217, 255, 0.06);
}

.callout p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text-dim);
}

.article-aside {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.toc {
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: rgba(10, 12, 19, 0.6);
}

.toc__heading {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.7rem;
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
  display: flex;
  gap: 0.55rem;
  font-size: 0.88rem;
}

.toc li::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-faint);
  padding-top: 0.15em;
}

.toc a {
  color: var(--text-dim);
  text-decoration: none;
}

.toc a:hover {
  color: var(--accent);
}

.minitimeline {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.minitimeline a {
  display: flex;
  gap: 0.7rem;
  align-items: baseline;
  padding: 0.4rem 0.5rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-dim);
  border-left: 2px solid color-mix(in srgb, var(--entry-accent) 45%, transparent);
}

.minitimeline a:hover {
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
}

.minitimeline__year {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: color-mix(in srgb, var(--entry-accent) 70%, white);
  flex: none;
}

.minitimeline__title {
  font-size: 0.85rem;
  line-height: 1.35;
}

@media (min-width: 68rem) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 19rem;
    gap: 3.2rem;
    align-items: start;
  }

  .article-aside {
    position: sticky;
    top: 5.4rem;
  }
}

/* --------------------------------------------------------------------------
   14. Platform index and glossary
   -------------------------------------------------------------------------- */

.platformlist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line-soft);
}

.platformlist__item {
  display: flex;
}

.platformlist a {
  display: flex;
  flex: 1;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 1.2rem 1.3rem;
  background: rgba(10, 12, 19, 0.8);
  text-decoration: none;
  color: var(--text);
  transition: background var(--dur) var(--ease);
}

.platformlist a:hover {
  background: rgba(24, 29, 43, 0.95);
}

.platformlist__count {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  color: var(--accent);
  min-width: 3ch;
  text-align: right;
  line-height: 1.2;
}

.platformlist__label {
  display: block;
  font-size: 1.08rem;
  font-weight: 620;
  margin-bottom: 0.2rem;
}

.platformlist__lede {
  display: block;
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.55;
}

@media (min-width: 55rem) {
  .platformlist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* An odd number of categories would otherwise leave a hole in the grid. */
  .platformlist__item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

.alphabet {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 1.6rem 0 2.2rem;
  padding: 0.8rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: rgba(10, 12, 19, 0.6);
  position: sticky;
  top: 4.4rem;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.alphabet a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--text-dim);
  border: 1px solid transparent;
}

.alphabet a:hover {
  color: var(--accent);
  border-color: rgba(69, 217, 255, 0.35);
  background: rgba(69, 217, 255, 0.08);
}

.glossary__group {
  margin-bottom: 2.4rem;
}

.glossary__letter {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line-soft);
  scroll-margin-top: 8rem;
}

.glossary__list {
  margin: 0;
  display: grid;
  gap: 0.8rem;
}

.glossary__entry {
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.02);
  scroll-margin-top: 8rem;
}

.glossary__entry dt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.03rem;
  font-weight: 640;
  margin-bottom: 0.4rem;
}

.glossary__entry dd {
  margin: 0;
}

.glossary__entry dd p {
  color: var(--text-dim);
  font-size: 0.96rem;
  margin-bottom: 0.4rem;
}

.glossary__seealso {
  font-size: 0.83rem;
  color: var(--text-faint);
  margin-bottom: 0;
}

@media (min-width: 62rem) {
  .glossary__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------------------
   15. Not found
   -------------------------------------------------------------------------- */

.notfound {
  padding: 3rem 0 0;
  max-width: 60rem;
}

.notfound__code {
  font-family: var(--font-mono);
  font-size: clamp(4rem, 2rem + 12vw, 9rem);
  line-height: 0.9;
  margin: 0 0 1rem;
  letter-spacing: -0.05em;
  background: linear-gradient(160deg, rgba(69, 217, 255, 0.85), rgba(183, 107, 255, 0.25));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.notfound__title {
  font-size: clamp(1.6rem, 1.1rem + 2.4vw, 2.5rem);
}

.notfound__lede {
  color: var(--text-dim);
  max-width: 42rem;
  font-size: 1.06rem;
}

.notfound__search {
  margin: 2rem 0 2.6rem;
  max-width: 32rem;
}

.notfound__searchrow {
  display: flex;
  gap: 0.6rem;
}

.notfound__routes {
  display: grid;
  gap: 2rem;
  padding: 1.8rem 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.notfound__routes h2 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.9rem;
}

.notfound__decades {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.notfound__decades a {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--text-dim);
}

.notfound__decades a:hover {
  color: var(--accent);
  border-color: rgba(69, 217, 255, 0.4);
}

.notfound__suggestions {
  padding-top: 2rem;
}

.notfound__suggestions h2 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

@media (min-width: 50rem) {
  .notfound__routes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 4rem;
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(5, 6, 10, 0.4), rgba(5, 6, 10, 0.95));
}

.site-footer__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 3rem var(--gutter) 2rem;
  display: grid;
  gap: 2rem;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 0.6rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.site-footer__leaf {
  width: auto;
  height: 42px;
  opacity: 0.9;
}

.site-footer__brand span {
  display: block;
  flex-basis: 100%;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 0.2rem;
}

.site-footer__blurb {
  color: var(--text-dim);
  font-size: 0.92rem;
}

.site-footer__independence {
  font-size: 0.82rem;
  color: var(--text-faint);
  line-height: 1.6;
  padding-left: 0.9rem;
  border-left: 2px solid var(--line-soft);
  margin-bottom: 0;
}

.site-footer__heading {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.8rem;
}

.site-footer__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.site-footer__nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
}

.site-footer__nav a:hover {
  color: var(--accent);
}

.site-footer__base {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 1.3rem var(--gutter) 2.4rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  font-size: 0.8rem;
  color: var(--text-faint);
}

.site-footer__base p {
  margin: 0;
}

@media (min-width: 55rem) {
  .site-footer__inner {
    grid-template-columns: minmax(0, 1.7fr) repeat(4, minmax(0, 1fr));
    gap: 2.6rem;
  }
}

/* --------------------------------------------------------------------------
   17. Print
   -------------------------------------------------------------------------- */

@media print {
  .atmosphere,
  .site-header,
  .site-footer__nav,
  .controls,
  .position,
  .jumpnav,
  .pager,
  .recordnav,
  .skip-link {
    display: none !important;
  }

  body {
    background: #fff;
    color: #111;
  }

  a {
    color: #111;
  }

  .entry__panel,
  .factcard,
  .record__section--accent {
    border: 1px solid #ccc;
    background: none;
  }
}
