:root {
  color-scheme: light;
  --bg: oklch(0.975 0.009 223);
  --paper: oklch(0.995 0.003 223);
  --surface: oklch(1 0 0);
  --surface-2: oklch(0.948 0.012 223);
  --ink: oklch(0.18 0.018 235);
  --ink-soft: oklch(0.34 0.018 235);
  --muted: oklch(0.46 0.02 235);
  --line: oklch(0.84 0.014 223);
  --accent: oklch(0.69 0.18 32);
  --accent-dark: oklch(0.43 0.16 32);
  --accent-soft: oklch(0.93 0.055 32);
  --signal: oklch(0.77 0.14 178);
  --graphite: oklch(0.16 0.015 235);
  --radius: 14px;
  --container: min(1120px, calc(100% - 40px));
  --focus-ring: color-mix(in oklch, var(--accent) 58%, white);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 0% 0%, color-mix(in oklch, var(--accent-soft) 55%, transparent), transparent 28rem),
    linear-gradient(180deg, var(--bg) 0%, var(--paper) 100%);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.topbar {
  background: var(--graphite);
  color: white;
  font-size: 14px;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 0;
}

.topbar a {
  text-decoration: underline;
  text-decoration-color: color-mix(in oklch, white 40%, transparent);
  text-underline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in oklch, var(--paper) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 920;
  letter-spacing: -0.03em;
  line-height: 1;
}

.brand span:last-child {
  overflow-wrap: anywhere;
}

.brand-mark {
  width: 34px;
  height: 22px;
  position: relative;
  flex: 0 0 auto;
  border: 2px solid currentColor;
  border-radius: 4px;
  background: var(--accent);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  bottom: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.brand-mark::before {
  left: 7px;
}

.brand-mark::after {
  right: 7px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--ink-soft);
  font-size: 15px;
  white-space: nowrap;
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: color-mix(in oklch, var(--surface) 82%, transparent);
}

.lang-link {
  min-width: 34px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.lang-link.is-active {
  background: var(--ink);
  color: white;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 19px;
  border: 1px solid color-mix(in oklch, var(--accent-dark) 55%, transparent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.article-hero {
  padding: clamp(64px, 8vw, 110px) 0 clamp(42px, 6vw, 72px);
  color: white;
  background:
    linear-gradient(90deg, color-mix(in oklch, var(--graphite) 92%, transparent), color-mix(in oklch, var(--graphite) 50%, transparent)),
    url("../assets/images/hero-80s-videocassettes.png") center right / cover no-repeat;
}

.article-hero .container {
  display: grid;
  gap: 22px;
}

.kicker {
  margin: 0;
  color: color-mix(in oklch, var(--accent) 80%, white);
  font-size: 15px;
  font-weight: 850;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 12ch;
  margin-bottom: 0;
  font-size: clamp(46px, 7vw, 86px);
  line-height: 0.94;
}

.lead {
  max-width: 66ch;
  margin-bottom: 0;
  color: color-mix(in oklch, white 84%, transparent);
  font-size: clamp(18px, 2vw, 22px);
  text-wrap: pretty;
}

.article-shell {
  padding: clamp(44px, 6vw, 72px) 0;
}

.article-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: start;
}

.article-nav {
  position: sticky;
  top: 102px;
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface);
}

.article-nav strong {
  margin-bottom: 4px;
}

.article-nav a {
  color: var(--ink-soft);
  font-size: 15px;
}

.article-nav a[aria-current="page"],
.article-nav a:hover {
  color: var(--accent-dark);
  font-weight: 850;
}

.answer-stack {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--line);
}

.answer-unit {
  padding: clamp(24px, 4vw, 38px);
  background: var(--surface);
}

.answer-unit h2 {
  margin-bottom: 14px;
  font-size: clamp(27px, 3.5vw, 42px);
  line-height: 1;
}

.answer-unit p {
  max-width: 75ch;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 18px;
  text-wrap: pretty;
}

.answer-unit strong {
  color: var(--ink);
}

.cta-block {
  margin-top: 28px;
  padding: clamp(24px, 4vw, 38px);
  border-radius: var(--radius);
  background: var(--graphite);
  color: white;
}

.cta-block p {
  max-width: 68ch;
  color: color-mix(in oklch, white 78%, transparent);
}

.article-index {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--line);
}

.article-index a {
  min-height: 130px;
  display: grid;
  align-content: space-between;
  gap: 16px;
  padding: 22px;
  background: var(--surface);
}

.article-index strong {
  font-size: 21px;
  line-height: 1.05;
}

.article-index span {
  color: var(--accent-dark);
  font-weight: 850;
}

footer {
  padding: 34px 0;
  background: var(--graphite);
  color: color-mix(in oklch, white 72%, transparent);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  font-size: 14px;
}

.footer-grid a {
  color: white;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 860px) {
  .topbar .container,
  .footer-grid {
    display: grid;
    gap: 6px;
  }

  .nav {
    min-height: 68px;
  }

  .nav-links {
    display: none;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-nav {
    position: static;
  }
}

@media (max-width: 540px) {
  :root {
    --container: calc(100% - 28px);
  }

  .site-header .button {
    display: none;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(38px, 11vw, 50px);
  }
}
