:root {
  --night: #07111f;
  --panel: #0c1a2a;
  --panel-2: #102338;
  --paper: #f3f6f2;
  --ink: #132235;
  --muted: #657487;
  --line: #cfd8d3;
  --green: #9cff57;
  --green-dark: #287a35;
  --cyan: #54d6d0;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { background: var(--night); scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.6 Arial, Helvetica, sans-serif; }
a { color: inherit; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; padding: .7rem 1rem; color: #000; background: var(--green); }

.site-header { position: sticky; top: 0; z-index: 10; color: #fff; background: rgba(7,17,31,.96); border-bottom: 1px solid rgba(156,255,87,.22); backdrop-filter: blur(12px); }
.nav { width: min(var(--max), calc(100% - 2rem)); min-height: 64px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: flex; align-items: center; gap: .75rem; color: #fff; text-decoration: none; font-weight: 900; letter-spacing: -.04em; }
.brand-screen { display: grid; grid-template-columns: repeat(3, 4px); gap: 3px; padding: 6px; border: 2px solid #d7e3ee; border-radius: 3px; box-shadow: 3px 3px 0 var(--green-dark); }
.brand-screen i { width: 4px; height: 4px; background: var(--green); }
.nav-links { display: flex; align-items: center; gap: 1.25rem; font-size: .9rem; }
.nav-links a { color: #c8d4df; text-decoration: none; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--green); }
.nav-label { padding: .28rem .55rem; border: 1px solid #496177; border-radius: 3px; font: 700 .73rem/1 monospace; text-transform: uppercase; letter-spacing: .07em; }

.masthead { color: #fff; background: var(--night); }
.masthead-inner { width: min(var(--max), calc(100% - 2rem)); margin: auto; padding: 5rem 0 3.4rem; display: grid; grid-template-columns: 1.2fr .8fr; gap: 4rem; align-items: end; }
.kicker { margin: 0 0 1rem; color: var(--green); font: 800 .78rem/1.2 monospace; text-transform: uppercase; letter-spacing: .12em; }
.masthead h1 { max-width: 760px; margin: 0; font-size: clamp(3rem, 7vw, 6.8rem); line-height: .9; letter-spacing: -.07em; }
.masthead h1 span { color: var(--green); }
.masthead-copy { padding-left: 1.3rem; border-left: 2px solid var(--green); color: #b8c7d4; font-size: 1.06rem; }
.masthead-copy strong { color: #fff; }

.platforms { width: min(var(--max), calc(100% - 2rem)); margin: -1px auto 0; padding-bottom: 5rem; display: grid; grid-template-columns: repeat(4, 1fr); }
.platform { min-height: 245px; padding: 1.4rem; color: #fff; background: var(--panel); border: 1px solid #24394d; text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; transition: background .16s, transform .16s; }
.platform:hover, .platform:focus-visible { background: var(--panel-2); transform: translateY(-4px); }
.platform-code { color: var(--green); font: 700 .75rem/1 monospace; letter-spacing: .08em; }
.platform h2 { margin: 2.8rem 0 .65rem; font-size: 1.55rem; line-height: 1.06; letter-spacing: -.04em; }
.platform p { margin: 0; color: #9babb9; font-size: .88rem; }
.platform-arrow { margin-top: 1.2rem; color: var(--cyan); font: 700 1rem monospace; }

.section { width: min(var(--max), calc(100% - 2rem)); margin: auto; padding: 5rem 0; }
.section-head { display: grid; grid-template-columns: 1fr .65fr; gap: 3rem; align-items: end; margin-bottom: 2.1rem; }
.section-head h2 { margin: 0; font-size: clamp(2.25rem, 5vw, 4.6rem); line-height: .95; letter-spacing: -.06em; }
.section-head p { margin: 0; color: var(--muted); }
.entries { border-top: 2px solid var(--ink); }
.entry { display: grid; grid-template-columns: 120px 1.15fr 1fr 30px; gap: 1.3rem; align-items: center; min-height: 105px; border-bottom: 1px solid var(--line); text-decoration: none; }
.entry:hover h3, .entry:focus-visible h3 { color: var(--green-dark); }
.entry-os { font: 700 .73rem/1.3 monospace; text-transform: uppercase; letter-spacing: .06em; color: var(--green-dark); }
.entry h3 { margin: 0; font-size: 1.25rem; line-height: 1.15; }
.entry p { margin: 0; color: var(--muted); font-size: .9rem; }
.entry-mark { font-family: monospace; }

.principles { color: #fff; background: var(--night); }
.principles .section { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; padding: 0; background: #24394d; }
.principle { min-height: 245px; padding: 2rem; background: var(--night); }
.principle b { color: var(--green); font: 800 .74rem/1 monospace; letter-spacing: .1em; }
.principle h3 { margin: 2.5rem 0 .8rem; font-size: 1.55rem; letter-spacing: -.04em; }
.principle p { margin: 0; color: #aabac8; font-size: .92rem; }

.archive-hero { color: #fff; background: var(--night); }
.archive-hero-inner { width: min(var(--max), calc(100% - 2rem)); margin: auto; padding: 5rem 0 4rem; }
.crumbs { margin: 0 0 2.6rem; color: #8da0b1; font-size: .82rem; }
.crumbs a { color: #c6d4df; }
.archive-hero h1 { max-width: 850px; margin: 0; font-size: clamp(3rem, 7vw, 6.4rem); line-height: .9; letter-spacing: -.067em; }
.archive-hero .lead { max-width: 650px; margin: 1.6rem 0 0; color: #b5c4d0; font-size: 1.08rem; }

.record { width: min(940px, calc(100% - 2rem)); margin: auto; padding: 4rem 0 6rem; display: grid; grid-template-columns: 190px minmax(0, 650px); gap: 4rem; }
.record-meta { font: 700 .76rem/1.6 monospace; text-transform: uppercase; color: var(--muted); }
.status { display: inline-block; margin-bottom: 1rem; padding: .35rem .55rem; color: #0a3614; background: #c8ff9e; border: 1px solid #8ccf59; border-radius: 2px; }
.prose { font-size: 1.06rem; }
.prose h2 { margin: 2.7rem 0 1rem; font-size: clamp(1.8rem, 3.5vw, 2.7rem); line-height: 1.02; letter-spacing: -.045em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 2rem 0 .6rem; font-size: 1.3rem; }
.prose p { margin: 0 0 1.2rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: .5rem 0; }
.notice { margin: 2rem 0; padding: 1.25rem 1.4rem; color: #dce7ef; background: var(--panel); border-left: 5px solid var(--green); }
.facts { width: 100%; margin: 1.8rem 0; border-collapse: collapse; font-size: .92rem; }
.facts th, .facts td { padding: .8rem .7rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.facts th { width: 34%; font-family: monospace; text-transform: uppercase; }
.related { margin-top: 3.3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.related-grid a { padding: 1rem; color: #dbe7ef; background: var(--panel); text-decoration: none; font-weight: 700; line-height: 1.2; }
.related-grid a:hover { color: var(--green); }

.site-footer { color: #9fb0bd; background: #040b13; border-top: 1px solid #203447; }
.footer-inner { width: min(var(--max), calc(100% - 2rem)); margin: auto; padding: 3rem 0; display: grid; grid-template-columns: 1.3fr .7fr; gap: 3rem; }
.footer-inner strong { color: #fff; }
.footer-inner p { max-width: 58ch; margin: .7rem 0 0; font-size: .85rem; }
.footer-links { display: flex; justify-content: flex-end; align-items: start; gap: 1rem; flex-wrap: wrap; font-size: .85rem; }

@media (max-width: 880px) {
  .masthead-inner, .section-head, .record { grid-template-columns: 1fr; gap: 1.6rem; }
  .platforms { grid-template-columns: 1fr 1fr; }
  .entry { grid-template-columns: 100px 1fr 28px; padding: .9rem 0; }
  .entry p { display: none; }
  .record-meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
}

@media (max-width: 580px) {
  .nav-links a:not(.nav-label) { display: none; }
  .masthead-inner { padding: 4rem 0 2.5rem; }
  .platforms { grid-template-columns: 1fr; padding-bottom: 3.5rem; }
  .platform { min-height: 190px; }
  .principles .section, .related-grid, .footer-inner { grid-template-columns: 1fr; }
  .principle { min-height: 200px; }
  .entry { grid-template-columns: 80px 1fr 22px; }
  .footer-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .platform { transition: none; } }
