@font-face { font-family: Anton; src: url(/fonts/anton-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Archivo; src: url(/fonts/archivo-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Archivo; src: url(/fonts/archivo-600.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: Archivo; src: url(/fonts/archivo-800.woff2) format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url(/fonts/jetbrains-mono-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --box: #24428c;       /* deeper cobalt: the owner found #1546d6 too bright */
  --box-deep: #1b3370;
  --sticker: #ef8a2e;
  --ink: #12204a;
  --paper: #fff;
  --page: #ecebe6;
  --line: #e2e5ee;
  --bad: #c2381a;
  --good: #1f7a46;
  --muted: #4a5577;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.5 Archivo, system-ui, sans-serif; }
a { color: var(--box); }
.wrap { max-width: 1080px; margin: 0 auto; }
main > .wrap { width: min(1080px, calc(100% - 32px)); }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--sticker); outline-offset: 2px; }

/* Top bar */
.top { background: var(--ink); color: #fff; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.3px; }
.brand .mark { width: 26px; height: 26px; color: var(--sticker); }
.top nav { display: flex; gap: 4px 16px; flex-wrap: wrap; }
.top nav a { color: #d6dcf0; text-decoration: none; font-size: 15px; padding: 4px 0; border-bottom: 2px solid transparent; }
.top nav a:hover, .top nav a[aria-current] { color: #fff; border-color: var(--sticker); }

/* The box */
.box { display: grid; grid-template-columns: 1.1fr 1fr; margin-top: 28px; background: var(--box); color: #fff; box-shadow: 0 1px 0 #0000001a, 0 18px 40px -24px #12204a99; }
.front { padding: 32px 32px 36px; }
.kicker { margin: 0; font-weight: 600; font-size: 15px; color: #c9d3f2; }
.front h1 { font-family: Anton, Impact, sans-serif; font-weight: 400; font-size: 64px; line-height: .98; margin: 16px 0 14px; text-transform: uppercase; letter-spacing: .3px; }
.lede { font-size: 18px; max-width: 42ch; margin: 0 0 22px; color: #eef1fb; }
.sticker { display: inline-block; background: var(--sticker); color: var(--ink); font-family: Anton, Impact, sans-serif; font-size: 21px; padding: 6px 14px; transform: rotate(-3deg); }
.plugs { display: flex; gap: 8px; margin-top: 26px; flex-wrap: wrap; }
.plug { background: transparent; color: #fff; border: 2px solid transparent; padding: 8px 8px 6px; min-width: 96px; text-align: center; font-size: 13px; font-weight: 600; }
.plug svg { width: 52px; height: 52px; display: block; margin: 0 auto 4px; }
.plug:hover { border-color: #ffffff55; }
.plug[aria-pressed="true"] { border-color: var(--sticker); background: var(--box-deep); }

.back { background: var(--paper); color: var(--ink); padding: 26px 26px 28px; display: flex; flex-direction: column; }
.back h2, .res-card h2, .why h2, .facts h2, .res-card h3 { font-family: Anton, Impact, sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: .3px; }
.back h2 { font-size: 28px; margin: 0 0 10px; }
.lbl { font-weight: 600; font-size: 15px; margin-bottom: 6px; display: block; }
textarea, input[type=text] { width: 100%; font: 13.5px/1.5 var(--mono); color: var(--ink); background: #f7f8fc; border: 2px dashed var(--box); padding: 10px 12px; border-radius: 0; }
textarea { resize: vertical; min-height: 190px; }
input[type=text] { font-family: Archivo, sans-serif; font-size: 16px; border-style: solid; }
.site-row { margin-top: 12px; }
.spec { margin-top: 12px; }
.spec-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 2px solid var(--line); font-size: 15px; }
.spec-row span { flex: none; white-space: nowrap; }
.spec-row b { text-align: right; overflow-wrap: anywhere; }
.spec-row b.bad { color: var(--bad); }
.go { display: block; width: 100%; margin-top: 16px; background: var(--ink); color: #fff; border: 0; font-weight: 800; padding: 14px; font-size: 17px; }
.go:hover { background: #000; }
.small { font-size: 14px; margin: 12px 0 0; color: var(--muted); }
.linkish { background: none; border: 0; padding: 0; color: var(--box); text-decoration: underline; font-size: 14px; }

/* Result */
.result { margin-top: 22px; }
.msg { background: var(--paper); padding: 18px 22px; margin: 0; border-left: 6px solid var(--sticker); }
.res-card { background: var(--paper); padding: 26px 28px 30px; border-top: 8px solid var(--box); }
.res-head { display: flex; gap: 14px; align-items: center; }
.res-head > svg { width: 52px; height: 52px; color: var(--box); flex: none; }
.res-head h2 { font-size: 30px; margin: 0; line-height: 1; }
.res-head p { margin: 4px 0 0; color: var(--muted); }
.res-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; margin-top: 18px; align-items: start; }
.res-get .go { margin-top: 0; }
.get { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.get .go { flex: 1 1 220px; width: auto; }
.ghost { background: var(--paper); color: var(--ink); border: 2px solid var(--ink); padding: 10px 16px; font-weight: 600; font-size: 15px; }
.ghost:hover { background: #f1f2f7; }
.banner { background: #fff1e6; border-left: 6px solid var(--sticker); padding: 10px 14px; margin: 0 0 12px; font-size: 15px; }
.bm { display: inline-flex; gap: 8px; align-items: center; background: var(--sticker); color: var(--ink); font-weight: 800; padding: 12px 18px; text-decoration: none; cursor: grab; }
.bm svg { width: 22px; height: 22px; }
.bm.nudge { animation: nudge .6s ease; }
@keyframes nudge { 25% { transform: translateY(-6px); } 60% { transform: translateY(2px); } }
@media (prefers-reduced-motion: reduce) { .bm.nudge { animation: none; } }
.res-card h3 { font-size: 22px; margin: 28px 0 8px; }
.chg-list { list-style: none; margin: 0; padding: 0; }
.chg { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 12px 0; border-bottom: 2px solid var(--line); }
.chg .tag { font-family: Anton, Impact, sans-serif; font-size: 15px; text-transform: uppercase; letter-spacing: .5px; align-self: start; padding: 2px 8px; text-align: center; color: #fff; background: var(--good); }
.chg.added .tag { background: var(--box); }
.chg.warn .tag { background: var(--bad); }
.chg.note .tag { background: #6b7286; }
.chg b { font-size: 16px; }
.chg small { color: var(--muted); font-family: var(--mono); font-size: 12.5px; margin-left: 4px; }
.chg p { margin: 4px 0 0; font-size: 15px; max-width: 70ch; }
.chg code { display: block; font: 13px/1.5 var(--mono); padding: 3px 8px; margin-top: 6px; overflow-wrap: anywhere; }
.chg code.was { background: #fbe6df; text-decoration: line-through; text-decoration-color: #c2381a88; }
.chg code.now { background: #e3f1e8; margin-top: 2px; }
.files { margin-top: 18px; border: 2px solid var(--line); }
.files summary { padding: 10px 14px; font-weight: 600; cursor: pointer; }
.file { border-top: 2px solid var(--line); }
.file-h { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; gap: 10px; }
.file-h .ghost { padding: 4px 12px; font-size: 14px; }
.file pre { margin: 0; padding: 10px 14px 14px; font: 12.5px/1.55 var(--mono); background: #f7f8fc; overflow-x: auto; max-height: 340px; }
.devs { display: flex; gap: 0; border-bottom: 2px solid var(--ink); flex-wrap: wrap; }
.dev { background: none; border: 0; padding: 8px 14px; font-weight: 600; color: var(--muted); }
.dev[aria-selected="true"] { background: var(--ink); color: #fff; }
.steps { margin: 14px 0 0; padding-left: 24px; }
.steps li { padding: 4px 0 6px; max-width: 72ch; }
.steps code, .reading code { font: 13.5px var(--mono); background: #eef0f7; padding: 1px 5px; }

/* Explainer */
.why, .facts { margin-top: 44px; padding: 0 0; }
.why h2, .facts h2 { font-size: 32px; margin: 0 0 12px; }
.why-list { margin: 0; padding: 0; list-style: none; counter-reset: w; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why-list li { counter-increment: w; border-top: 4px solid var(--ink); padding-top: 10px; font-size: 16px; }
.why-list li::before { content: counter(w); font-family: Anton, Impact, sans-serif; font-size: 34px; line-height: 1; display: block; color: var(--box); margin-bottom: 6px; }
.fact-list { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 32px; }
.fact-list li { break-inside: avoid; padding: 7px 0; border-bottom: 2px solid #d9d8d1; font-size: 15.5px; }
.type-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; }
.type-list a { display: grid; grid-template-columns: 44px 1fr; gap: 2px 12px; padding: 12px 0; border-bottom: 2px solid #d9d8d1; color: var(--ink); text-decoration: none; }
.type-list svg { grid-row: span 2; width: 40px; height: 40px; color: var(--box); }
.type-list b { font-size: 17px; }
.type-list span { font-size: 15px; color: var(--muted); }
.type-list a:hover b { text-decoration: underline; }
.reading { background: var(--paper); margin-top: 28px; padding: 28px 28px 34px; max-width: 760px; }
.reading h1 { font-family: Anton, Impact, sans-serif; font-weight: 400; text-transform: uppercase; font-size: 40px; margin: 0 0 12px; line-height: 1.05; }
.reading h2 { font-size: 20px; margin: 22px 0 6px; }
.foot { margin-top: 56px; background: var(--ink); color: #c7cee6; font-size: 14px; }
.foot-in { display: flex; justify-content: space-between; gap: 8px 20px; padding: 18px 16px; flex-wrap: wrap; }
.foot a { color: #fff; }

@media (max-width: 860px) {
  main > .box, main > .result, main > .reading { width: 100%; }
  .why, .facts { width: 100%; }
  .top nav { gap: 2px 14px; }
  .top nav a { font-size: 14px; }
  .box { grid-template-columns: 1fr; margin-top: 0; }
  .front { padding: 24px 16px 26px; }
  .front h1 { font-size: 46px; }
  .back { padding: 22px 16px 24px; }
  .res-card { padding: 20px 16px 24px; }
  .res-grid { grid-template-columns: 1fr; gap: 16px; }
  .why, .facts { padding: 0 16px; }
  .why-list { grid-template-columns: 1fr; gap: 16px; }
  .fact-list { columns: 1; }
  .type-list { grid-template-columns: 1fr; }
  .chg { grid-template-columns: 1fr; gap: 6px; }
  .chg .tag { justify-self: start; }
  .reading { padding: 22px 16px 28px; margin-top: 0; }
  .plug { min-width: 0; flex: 1 1 22%; padding: 6px 2px; font-size: 12px; }
  .plug svg { width: 40px; height: 40px; }
}
