@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800;900&family=IBM+Plex+Mono:wght@500;600&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --ink: #1b1727;
  --dim: #625d6e;
  --dark: #1b1429;
  --border: #dfdbe5;
  --canvas: #f5f2f8;
  --paper: #fff;
  --violet: #613eb5;
  --lime: #dcf884;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --display: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  --sans: Inter, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 1rem/1.58 var(--sans); }
a { color: var(--violet); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #946af2; outline-offset: 4px; }
button, select { font: inherit; }
button { cursor: pointer; }
.wrap { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; left: 16px; z-index: 15; top: 12px; padding: 8px 12px; transform: translateY(-160%); background: var(--paper); }
.skip:focus { transform: none; }
.site-header { background: #181122; color: white; border-bottom: 1px solid #443652; }
.site-header .wrap { display: flex; gap: 28px; min-height: 70px; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; white-space: nowrap; }
.brand strong { display: block; font: 800 1.65rem/.9 var(--display); letter-spacing: .035em; }
.brand small { display: block; margin-top: 4px; color: #c2b7d0; font: 500 .62rem var(--mono); text-transform: uppercase; letter-spacing: .12em; }
.mark { display: grid; place-items: center; width: 35px; height: 35px; background: var(--lime); color: #221934; clip-path: polygon(0 0, 100% 0, 100% 76%, 76% 100%, 0 100%); font: 800 1.45rem var(--display); }
.nav { display: flex; gap: clamp(12px, 2.5vw, 30px); align-items: center; }
.nav a { padding: 6px 0; color: #e4dcee; font-size: .88rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.nav a[aria-current], .nav a:hover { color: var(--lime); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 45px; padding: 9px 16px; border: 1px solid transparent; border-radius: 6px; text-decoration: none; font-size: .85rem; font-weight: 800; }
.button:hover { text-decoration: none; filter: brightness(.96); }
.button.primary { color: #201c28; background: var(--lime); }
.button.dark { color: white; background: #302044; }
.button.outline { color: inherit; border-color: #655774; }
.button.light { color: var(--ink); border-color: var(--border); background: var(--paper); }
.play { min-height: 36px; padding: 6px 12px; color: var(--lime); border-color: #6c7753; }
.hero { position: relative; overflow: hidden; isolation: isolate; color: #fff; background: radial-gradient(ellipse at 76% 55%, #39244f 0%, #231931 42%, #1b1429 80%); }
.hero::before { content: ''; position: absolute; z-index: -1; inset: 0; background: radial-gradient(circle, #a58fc147 1px, transparent 1.5px) 0 0 / 18px 18px; mask-image: linear-gradient(105deg, transparent 33%, black 85%); pointer-events: none; }
.hero .wrap { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: clamp(20px, 5vw, 66px); padding-block: 56px 65px; }
.kicker { display: flex; align-items: center; gap: 9px; color: inherit; margin: 0 0 16px; font: 600 .72rem/1.3 var(--mono); letter-spacing: .105em; text-transform: uppercase; }
.kicker::before { content: ''; width: 8px; height: 8px; background: currentColor; transform: rotate(45deg); margin: 0 2px; }
.hero .kicker { color: var(--lime); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--display); font-weight: 800; }
.hero h1 { font-size: clamp(4.2rem, 8.2vw, 7.8rem); line-height: .81; letter-spacing: -.022em; margin: 0 0 23px; text-transform: uppercase; }
.hero h1 span { display: block; color: #caaff9; font-size: .69em; margin-top: .13em; }
.hero .lede { font-size: clamp(.93rem, 1.6vw, 1.08rem); color: #e4dbee; max-width: 45ch; margin-bottom: 23px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cover { position: relative; margin: 0; background: #171222; box-shadow: 8px 8px 0 #a67ce63b; border: 1px solid #8067a0; }
.cover img { width: 100%; height: auto; display: block; }
.cover figcaption { padding: 9px 12px; border-top: 1px solid #8067a0; color: #dfd1ec; font: 500 .67rem/1.35 var(--mono); }
.cover figcaption a { color: inherit; }
.launch-line { background: #eae1f5; color: #452c67; border-bottom: 1px solid #dcd0eb; }
.launch-line .wrap { display: flex; gap: 6px 16px; flex-wrap: wrap; align-items: center; padding-block: 12px; font-size: .83rem; }
.launch-line b { font-family: var(--mono); font-size: .7rem; letter-spacing: .075em; text-transform: uppercase; }
.launch-line a { margin-left: auto; font-weight: 700; }
.content { padding-block: 44px 58px; }
.grid { display: grid; gap: 24px; grid-template-columns: minmax(0,1fr) minmax(250px,.42fr); align-items: start; }
.flow { display: grid; gap: 20px; min-width: 0; }
.heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 14px; }
.heading h2, .panel h2 { margin: 0; font-size: clamp(1.9rem, 4.8vw, 2.6rem); line-height: 1; }
.heading p { margin: 0; color: var(--dim); font-size: .8rem; }
.deck { margin: 0 0 14px; color: var(--dim); font-size: .91rem; }
.codes { border: 1px solid var(--border); border-radius: 9px; background: var(--paper); overflow: hidden; }
.code { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 15px 17px; position: relative; }
.code + .code { border-top: 1px solid var(--border); }
.code-title { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 9px; }
.code code { overflow-wrap: anywhere; font: 600 .95rem/1.5 var(--mono); }
.code p { margin: 5px 0 0; color: var(--dim); font-size: .83rem; }
.code-source { display: inline-block; margin-top: 5px; font-size: .75rem; }
.tag { padding: 3px 6px; border-radius: 4px; background: #eff7dc; color: #3e5620; white-space: nowrap; font: 600 .63rem/1.2 var(--mono); text-transform: uppercase; }
.tag.limit { background: #fff0d7; color: #704805; }
.tag.closed { background: #ede9f1; color: #51495c; }
.copy { min-width: 63px; min-height: 40px; border: 1px solid #d9cce9; border-radius: 5px; color: #462e72; background: #f4eefb; font: 600 .72rem var(--mono); }
.copy:hover { background: #e9dbfa; }
[hidden] { display: none !important; }
.copy-status { grid-column: 1/-1; }
.copy-status:empty { display: none; }
.panel { min-width: 0; padding: 20px 22px; background: var(--paper); border: 1px solid var(--border); border-radius: 9px; }
.panel:target { outline: 2px solid #aa87ed; }
.panel.ink { background: #281d39; color: #fefbff; border-color: #281d39; }
.panel.ink p { color: #e4d9ed; }
.panel.ink a { color: var(--lime); }
.panel h2 + p, .panel h2 + ol, .panel h2 + ul { margin-top: 12px; }
.panel p, .panel li, .panel dd { font-size: .91rem; }
.panel p:last-child, .panel ul:last-child, .panel ol:last-child { margin-bottom: 0; }
.panel h3 { margin: 18px 0 5px; font-size: 1rem; }
.panel ul, .panel ol { padding-left: 1.35em; }
.panel li + li { margin-top: 8px; }
.panel .kicker { color: #68439d; margin-bottom: 8px; }
.panel.ink .kicker { color: #d0afff; }
.text-link { display: inline-block; font-size: .87rem; font-weight: 750; }
.quicksteps { counter-reset: steps; list-style: none; padding-left: 0 !important; }
.quicksteps li { display: flex; align-items: baseline; gap: 10px; }
.quicksteps li::before { counter-increment: steps; content: counter(steps, decimal-leading-zero); color: #c7a6f6; font: 500 .75rem var(--mono); }
.read-next { margin-top: 34px; }
.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.card { display: block; border: 1px solid var(--border); border-top: 3px solid #9873d5; border-radius: 6px; background: var(--paper); color: var(--ink); text-decoration: none; padding: 17px; }
.card:hover { border-color: #9873d5; }
.card b { display: block; font: 800 1.55rem/1 var(--display); }
.card p { color: var(--dim); margin: 8px 0 0; font-size: .84rem; }
.subhead { color: #fff; background: #251a36; }
.subhead .wrap { padding-block: 36px 42px; }
.subhead .kicker { color: var(--lime); }
.subhead h1 { margin: 0; font-size: clamp(2.9rem, 7vw, 5.3rem); line-height: .94; }
.subhead .lede { color: #e8dcf0; max-width: 67ch; margin: 13px 0 0; }
.prose { max-width: 850px; }
.note { padding: 12px 14px; border-left: 3px solid #956ed2; border-radius: 3px; background: #eee5f7; color: #4b3662; font-size: .85rem; }
.diagnostic label { display: block; font-size: .84rem; font-weight: 700; margin-bottom: 4px; }
.diagnostic select { width: 100%; margin-bottom: 9px; padding: 8px; border: 1px solid #bdb2ce; border-radius: 5px; color: var(--ink); background: #fff; }
.diagnostic-result { margin-top: 10px; }
.diagnostic-result:empty { display: none; }
.site-footer { border-top: 1px solid var(--border); background: #ede8f2; color: #514960; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; padding-block: 21px; font-size: .77rem; }
.site-footer p { margin: 0; }
.site-footer a { font-weight: 700; }
@media (max-width: 780px) {
  .wrap { width: min(100% - 36px, 620px); }
  .site-header .wrap { flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; padding-block: 11px; }
  .nav { order: 3; width: 100%; gap: 14px; overflow-x: auto; }
  .hero .wrap { grid-template-columns: 1fr; padding-block: 35px 39px; gap: 25px; }
  .hero h1 { font-size: clamp(4.15rem, 13vw, 6rem); }
  .grid { grid-template-columns: 1fr; }
  .content { padding-block: 30px 45px; }
  .launch-line a { margin-left: 0; }
}
@media (max-width: 450px) {
  .cards { grid-template-columns: 1fr; gap: 9px; }
  .nav a { font-size: .77rem; }
  .nav { gap: 12px; }
  .panel { padding: 16px; }
  .code { padding: 12px; }
  .code code { font-size: .83rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
