:root {
  --ink: #0b0e1e;
  --ink-2: #141a36;
  --line: #262d52;
  --teal: #3fe0c4;
  --violet: #7a5cff;
  --violet-text: #b6a6ff;
  --amber: #ffb84a;
  --text: #f3f1e7;
  --slate: #9aa3c0;
  --code-bg: #0d1126;
  --maxw: 1120px;
  --type-small: .875rem;
  --type-body: 1rem;
  --type-subhead: 1.25rem;
  --type-section: 2rem;
  --type-hero: 4rem;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--text); font-family: "Avenir Next", "Segoe UI", sans-serif; font-size: var(--type-body); line-height: 1.5; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--violet-text); }
h1, h2, h3 { line-height: 1.25; letter-spacing: -.025em; text-wrap: balance; }
h2 { font-size: var(--type-section); margin: 0 0 24px; }
h3 { font-size: var(--type-subhead); margin: 32px 0 16px; }
p, ul, ol { margin: 16px 0; }
ul, ol { padding-left: 24px; }
li { margin: 8px 0; }
code, pre { font-family: "Cascadia Code", Consolas, monospace; font-size: var(--type-small); }
code { background: var(--code-bg); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; }
pre { background: var(--code-bg); border: 1px solid var(--line); border-radius: 16px; padding: 24px; overflow-x: auto; line-height: 1.5; margin: 24px 0; }
pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.topbar { position: sticky; top: 0; z-index: 10; background: var(--ink); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: var(--maxw); margin: auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.topbar img { display: block; width: 176px; height: auto; }
.topbar nav { display: flex; gap: 24px; flex-wrap: wrap; font-size: var(--type-small); }
.topbar nav a { color: var(--slate); text-decoration: none; }
.topbar nav a:hover { color: var(--teal); }
main { max-width: var(--maxw); margin: auto; padding: 0 24px 80px; }
main > section { padding: 64px 0; border-bottom: 1px solid var(--line); }
.hero { text-align: center; padding: 80px 0 48px; }
.eyebrow, .step { color: var(--teal); font-size: var(--type-small); font-weight: 600; letter-spacing: .08em; }
.eyebrow { margin: 0 0 24px; }
.hero h1 { font-size: var(--type-hero); line-height: 1.125; letter-spacing: -.045em; margin: 0 0 24px; }
.accent { color: var(--teal); }
.hero .lead { font-size: var(--type-subhead); line-height: 1.6; color: var(--slate); max-width: 640px; margin: auto; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin: 32px 0 16px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 48px; padding: 12px 24px; border-radius: 999px; text-decoration: none; font-size: var(--type-body); font-weight: 600; }
.primary { color: var(--ink); background: var(--teal); }
.secondary { color: var(--text); border: 1px solid var(--line); }
.release-caption, .preview-label { font-size: var(--type-small); color: var(--slate); }
.workflow { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 64px; border: 1px solid var(--line); border-radius: 24px; background: var(--ink-2); text-align: left; overflow: hidden; }
.workflow > div { padding: 32px; }
.workflow > div + div { border-left: 1px solid var(--line); }
.workflow h3 { margin: 16px 0 8px; }
.workflow p { margin: 0; color: var(--slate); }
.preview-label { margin: 24px 0 0; }
.grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; margin: 24px 0 0; }
.card { background: var(--ink-2); border: 1px solid var(--line); border-radius: 24px; padding: 32px; }
.card h3 { margin: 0 0 16px; color: var(--text); }
.card p { margin: 16px 0 0; color: var(--slate); }
.card .meta { font-size: var(--type-small); border-top: 1px solid var(--line); margin-top: 24px; padding-top: 16px; }
.card .meta b { color: var(--text); }
.small { font-size: var(--type-small); }
.note { background: rgba(255,184,74,.07); border-left: 4px solid var(--amber); padding: 16px 24px; border-radius: 0 16px 16px 0; margin: 24px 0; }
.note p { margin: 8px 0; }
table { border-collapse: collapse; width: 100%; margin: 24px 0; font-size: var(--type-body); }
th, td { text-align: left; padding: 16px; border: 1px solid var(--line); }
th { background: var(--ink-2); color: var(--text); }
td { color: var(--slate); }
td b { color: var(--text); }
footer { border-top: 1px solid var(--line); padding: 32px 24px; text-align: center; color: var(--slate); font-size: var(--type-small); }
footer a { color: var(--slate); }
.preflight-hero { padding-top: 56px; }
.preflight-hero h1 { font-size: var(--type-section); margin: 0 0 16px; }
.preflight-hero .lead { font-size: var(--type-subhead); color: var(--slate); max-width: 72ch; }
.field-label { display: block; font-weight: 600; margin: 24px 0 8px; }
textarea { display: block; width: 100%; min-height: 320px; padding: 16px; resize: vertical; color: var(--text); background: var(--code-bg); border: 1px solid var(--slate); border-radius: 12px; font: 0.9rem/1.5 "Cascadia Code", Consolas, monospace; }
textarea:focus-visible, button:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.preflight-actions { justify-content: flex-start; }
button.button { cursor: pointer; font: inherit; }
.result-success { color: var(--teal); font-weight: 700; }
.result-error { color: #ffb4ab; font-weight: 700; }
.record-results { padding-left: 28px; }
.record-results li { padding: 10px 12px; margin: 8px 0; border-radius: 8px; overflow-wrap: anywhere; }
.record-valid { color: var(--teal); background: rgba(63,224,196,.08); }
.record-invalid { color: #ffb4ab; background: rgba(255,180,171,.08); }
/* Reading, interaction, and responsive accessibility. */
body { overflow-wrap: anywhere; }
section, main { scroll-margin-top: 128px; }
main > section > p, main > section > ul, .detail-body { max-width: 72ch; }
.hero > p { margin-left: auto; margin-right: auto; }
.topbar nav a, .topbar-inner > a, .contents a { min-height: 44px; display: inline-flex; align-items: center; }
.topbar-inner > a { flex-shrink: 0; }
.primary:hover { color: var(--ink); background: #73ecd7; }
.secondary { border-color: var(--slate); }
.secondary:hover { color: var(--text); background: var(--ink-2); }
a, summary { transition: color 150ms cubic-bezier(.4,0,.2,1), background-color 150ms cubic-bezier(.4,0,.2,1); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 20; padding: 12px 24px; background: var(--ink); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.contents { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: var(--type-small); }
.contents a { color: var(--slate); text-decoration: none; }
.contents a:hover { color: var(--teal); }
details { border-bottom: 1px solid var(--line); }
summary { padding: 24px 8px; cursor: pointer; font-size: var(--type-subhead); font-weight: 600; }
summary:hover { color: var(--teal); }
.detail-body { padding: 0 8px 24px; }
pre { overflow-wrap: normal; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a, summary { transition: none; }
}
@media (max-width: 767px) {
  :root { --type-hero: 2.75rem; }
  .topbar-inner { gap: 8px; padding: 8px 24px; }
  .topbar nav { width: 100%; justify-content: space-between; gap: 8px; }
  .hero { padding: 48px 0 32px; }
  main > section:not(.hero) { padding: 48px 0; }
  .desktop-break { display: none; }
  .workflow, .grid { grid-template-columns: minmax(0,1fr); }
  .workflow { margin-top: 40px; }
  .workflow > div { padding: 24px; }
  .workflow > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .card { padding: 24px; }
}
