:root {
  --bg: #000000;
  --ink: #ffffff;
  --muted: #9aa3ad;
  --faint: rgba(255, 255, 255, 0.55);
  --line: rgba(255, 255, 255, 0.12);
  --accent: #1f5f9a;
  --accent-bright: #4d8ec9;
  --accent-glow: rgba(31, 95, 154, 0.22);
  --glass: rgba(255, 255, 255, 0.06);
  --glass-edge: rgba(255, 255, 255, 0.16);
  --max: 1120px;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 12% -10%, var(--accent-glow), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(0, 0, 0, 0.55);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  gap: 24px;
}

.mark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
  color: var(--faint);
}

.nav-links a:hover {
  color: var(--ink);
}

.hero {
  padding: 36px 0 28px;
}

.kicker {
  margin: 0 0 8px;
  color: var(--accent-bright);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 5.5vw, 52px);
  line-height: 1;
  letter-spacing: -0.045em;
}

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

.bubble {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 28px 26px 24px;
  border-radius: 32px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03) 42%, rgba(31, 95, 154, 0.08));
  border: 1px solid var(--glass-edge);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 18px 50px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.bubble::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 142, 201, 0.28), transparent 70%);
  pointer-events: none;
}

.bubble:hover {
  transform: translateY(-4px);
  border-color: rgba(77, 142, 201, 0.45);
  color: inherit;
}

.bubble-label {
  color: var(--accent-bright);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.bubble h2 {
  margin: 28px 0 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.bubble p {
  margin: 0;
  margin-top: auto;
  color: var(--muted);
  font-size: 14px;
}

.toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}

.toolbar-label {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-right: 6px;
}

.chip {
  appearance: none;
  border: 1px solid var(--glass-edge);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  border-radius: 999px;
  min-height: 36px;
  padding: 0 14px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  backdrop-filter: blur(16px);
}

.chip.is-on {
  background: rgba(31, 95, 154, 0.35);
  border-color: rgba(77, 142, 201, 0.55);
}

.pin {
  color: var(--accent-bright);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bubble-meta {
  margin-top: 14px !important;
  font-size: 12px !important;
  color: var(--faint) !important;
}

.backline {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--faint);
}

.backline a:hover {
  color: var(--ink);
}

.empty {
  color: var(--muted);
  grid-column: 1 / -1;
}

.article {
  padding: 36px 0 64px;
  max-width: 720px;
}

.article .display {
  font-size: clamp(28px, 5vw, 44px);
  margin-bottom: 28px;
}

.article .kicker a:hover {
  color: var(--ink);
}

.prose {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.prose p {
  margin: 0 0 1em;
}

.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 8px 0 36px;
  color: var(--muted);
  font-size: 13px;
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.foot-nav a {
  color: var(--faint);
}

.foot-nav a:hover {
  color: var(--ink);
}

@media (max-width: 860px) {
  .wrap {
    width: min(var(--max), calc(100% - 32px));
  }

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

  .nav-links {
    gap: 14px;
  }
}

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

  .bubble {
    transition: none;
  }
}
