:root {
  color-scheme: light;
  --paper: #f5f5f2;
  --white: #fff;
  --ink: #1c201e;
  --muted: #686e6a;
  --line: #dedfdb;
  --soft: #eceeeb;
  --dark: #252927;
  --dark-muted: #c9ceca;
  --accent: #6d7d73;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid #536b5b; outline-offset: 4px; }
.skip-link { position: absolute; z-index: 10; top: 8px; left: 8px; padding: 10px 14px; transform: translateY(-150%); background: var(--ink); color: #fff; }
.skip-link:focus { transform: translateY(0); }
.wrap { width: min(var(--wrap), calc(100% - 56px)); margin: 0 auto; }
.nav { height: 75px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { font-size: 14px; font-weight: 700; letter-spacing: -.03em; line-height: 1.25; }
.brand small { display: block; margin-top: 4px; color: var(--muted); font: 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.navlinks { display: flex; gap: 25px; color: #505a54; font-size: 12px; }
.navlinks a { min-height: 44px; display: inline-flex; align-items: center; }
.navlinks a:hover, .back:hover { color: #000; }
.hero { padding: 84px 0 82px; display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 55px; }
.eyebrow, .tag, .section-tag { color: #59655e; font: 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.hero h1 { max-width: 720px; margin: 22px 0 19px; font-size: clamp(46px, 6vw, 74px); line-height: 1.01; letter-spacing: -.055em; font-weight: 590; }
.mobile-break { display: none; }
.hero h1 em { color: var(--accent); font-style: normal; }
.lead { max-width: 660px; margin: 0; color: #4d5851; font-size: 17px; line-height: 1.7; }
.actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 27px; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 0 15px; border: 1px solid var(--ink); font-size: 13px; font-weight: 620; transition: transform .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button.dark { color: #fff; background: var(--ink); }
.summary { border-top: 1px solid #aeb5af; padding-top: 20px; }
.summary .state { color: #53655a; font: 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.summary p { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.stack span { padding: 5px 8px; border: 1px solid #d0d4d0; color: #4f5b53; font: 10px var(--mono); }
.section { padding: 74px 0; border-top: 1px solid var(--line); }
.section h2 { max-width: 700px; margin: 11px 0 16px; font-size: clamp(34px, 4vw, 52px); line-height: 1.05; letter-spacing: -.06em; font-weight: 570; }
.section-intro { max-width: 700px; margin: 0; color: var(--muted); font-size: 15px; }
.flow { display: flex; align-items: stretch; gap: 8px; margin: 31px 0 0; padding: 0; list-style: none; }
.flow-step { flex: 1; min-height: 105px; display: flex; flex-direction: column; justify-content: space-between; padding: 14px; border: 1px solid #cdd2cd; background: var(--white); }
.flow-step:not(:last-child)::after { content: "→"; position: absolute; }
.flow-step { position: relative; }
.flow-step:not(:last-child)::after { right: -16px; top: 50%; z-index: 1; transform: translateY(-50%); color: #59655e; font: 14px var(--mono); }
.flow-step b { font: 10px var(--mono); color: #59655e; }
.flow-step span { font-size: 13px; font-weight: 610; line-height: 1.35; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; margin-top: 34px; }
.plain-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid #cdd2cd; }
.plain-list li { padding: 13px 0; border-bottom: 1px solid #cdd2cd; color: #4d5851; font-size: 14px; }
.plain-list strong { color: var(--ink); font-weight: 620; }
.code-panel { margin: 0; padding: 22px; background: var(--dark); color: #edf0ec; font: 13px/1.8 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.code-panel .comment { color: #aeb9b0; }
.callout { display: grid; grid-template-columns: 1fr 1fr; gap: 35px; align-items: center; margin-top: 30px; padding: 23px; background: var(--soft); }
.callout strong { display: block; margin-bottom: 6px; font-size: 14px; }
.callout p { margin: 0; color: var(--muted); font-size: 13px; }
.callout .inline-link { display: inline-flex; min-height: 44px; align-items: center; color: var(--ink); font-weight: 650; text-decoration: underline; text-underline-offset: 4px; }
.app-frame { margin-top: 30px; padding: 22px; background: var(--dark); color: #eef0ec; }
.process-figure { margin: 30px 0 0; }
.process-figure img { display: block; width: 100%; height: auto; }
.process-figure figcaption { padding-top: 10px; color: var(--muted); font-size: 13px; }
.app-top { display: flex; justify-content: space-between; border-bottom: 1px solid #ffffff2b; padding-bottom: 15px; color: #b9c2bb; font: 10px var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.app-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 23px; padding-top: 22px; }
.episode-card { padding: 17px; background: #ffffff0c; border: 1px solid #ffffff25; }
.episode-card small { color: #b9c2bb; font: 9px var(--mono); text-transform: uppercase; }
.episode-card h3 { margin: 14px 0 4px; font-size: 19px; line-height: 1.15; letter-spacing: -.04em; }
.episode-card p { margin: 0; color: #b9c2bb; font-size: 11px; }
.candidate-list { display: grid; gap: 7px; }
.candidate { display: flex; justify-content: space-between; gap: 12px; padding: 11px 13px; border: 1px solid #ffffff25; font-size: 11px; }
.candidate span:last-child { color: #b9c2bb; font: 9px var(--mono); text-transform: uppercase; }
.dark-section { background: var(--dark); color: #f2f3ef; }
.dark-section a:focus-visible { outline-color: #f5f5f2; }
.dark-section .section-tag { color: #c1c8c2; }
.dark-section .section-intro, .dark-section .plain-list li { color: var(--dark-muted); }
.dark-section .plain-list { border-color: #ffffff3b; }
.dark-section .plain-list li { border-color: #ffffff3b; }
.dark-section .plain-list strong { color: #fff; }
.footer { padding: 22px 0 28px; color: var(--muted); font: 12px var(--mono); }
.footer-line { display: flex; justify-content: space-between; gap: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.footer-line a { min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 1000px) {
  .process-figure { display: none; }
  .flow { display: grid; grid-template-columns: 1fr 1fr; }
  .flow-step:not(:last-child)::after { content: none; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 38px); }
  .hero { grid-template-columns: 1fr; gap: 28px; padding: 58px 0 62px; }
  .navlinks { gap: 14px; }
  .cols { grid-template-columns: 1fr; gap: 25px; }
}
@media (max-width: 520px) {
  .nav { height: 65px; }
  .navlinks a:not(:first-child) { display: none; }
  .hero h1 { font-size: 34px; line-height: 1.05; max-width: 100%; overflow-wrap: anywhere; }
  .mobile-break { display: block; }
  .lead, .summary .state, .summary p, .section h2, .section-intro, .plain-list li, .callout p { overflow-wrap: anywhere; }
  .lead { font-size: 14px; }
  .actions { flex-direction: column; }
  .button { width: 100%; }
  .section { padding: 57px 0; }
  .flow { grid-template-columns: 1fr; }
  .flow-step { min-height: 75px; }
  .callout, .app-grid { grid-template-columns: 1fr; }
  .footer-line { flex-direction: column; }
}
@media (max-width: 380px) {
  .navlinks a:not(:first-child) { display: none; }
  .brand small { font-size: 9px; letter-spacing: .06em; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; } }
