/* SPDX-License-Identifier: GPL-2.0-only */
/* Copyright (C) 2026 Mythical Legends Publishing, LLC */
/* IPRPS OS download site */

/* Fonts are served from this site (SIL Open Font License, see assets/fonts): no requests to other servers. */
@font-face { font-family: "Alegreya"; src: url("../fonts/alegreya-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url("../fonts/alegreya-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url("../fonts/alegreya-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../fonts/alegreya-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../fonts/alegreya-sans-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../fonts/alegreya-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../fonts/alegreya-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }


/* ------------------------------------------------------------------ tokens */
:root {
  --night: #121a3f;      /* page */
  --field: #0c1230;      /* deeper panels */
  --raise: #1a2350;      /* raised surfaces */
  --line: #2c3770;
  --gold: #d9b45a;
  --gold-hi: #f1d58c;
  --teal: #47bfc4;
  --ember: #e0675f;
  --text: #ebe8de;
  --mist: #b4b8d4;
  --sky-1: #26336e;
  --sky-2: #121a3f;
  --on-gold: #1d1606;

  --serif: "Alegreya", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Alegreya Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  /* type scale: 1.25 (major third) from 18px */
  --s-0: 1.125rem; --s-1: 1.406rem; --s-2: 1.758rem; --s-3: 2.197rem; --s-4: 2.747rem; --s-5: 3.6rem;
  --wrap: 1180px;
  --r-s: 6px; --r-m: 12px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --night: #eef0f7; --field: #e2e5f1; --raise: #ffffff; --line: #c9cde2;
  --gold: #8f6a14; --gold-hi: #6f5110; --teal: #17777b; --ember: #b23b33;
  --text: #1b2142; --mist: #4d5478; --sky-1: #c9d3f2; --sky-2: #eef0f7; --on-gold: #fff8e6;
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root[data-theme="auto"] {
    --night: #eef0f7; --field: #e2e5f1; --raise: #ffffff; --line: #c9cde2;
    --gold: #8f6a14; --gold-hi: #6f5110; --teal: #17777b; --ember: #b23b33;
    --text: #1b2142; --mist: #4d5478; --sky-1: #c9d3f2; --sky-2: #eef0f7; --on-gold: #fff8e6;
    color-scheme: light;
  }
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--text); font: 400 var(--s-0)/1.55 var(--sans); }
img, svg { max-width: 100%; }
a { color: var(--gold-hi); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--gold); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
h2 { font-size: var(--s-3); letter-spacing: -.01em; }
h3 { font-size: var(--s-1); }
p { margin: 0 0 1em; max-width: 68ch; }
code, kbd { font-family: var(--mono); font-size: .82em; }
code { background: var(--field); border: 1px solid var(--line); border-radius: 4px; padding: .05em .35em; }
kbd { border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 0 .35em; background: var(--raise); }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--gold); color: var(--on-gold); padding: 8px 14px; border-radius: var(--r-s); z-index: 50; }
.skip:focus { top: 12px; }

/* ------------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; font: 700 1.05rem/1 var(--sans); padding: .95em 1.4em; border-radius: var(--r-s);
  text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-gold:hover { background: var(--gold-hi); color: var(--on-gold); }
.btn-line { border-color: var(--line); color: var(--text); }
.btn-line:hover { border-color: var(--gold); color: var(--gold-hi); }
button { font: inherit; color: inherit; }

/* ------------------------------------------------------------------ header */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--night) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font: 700 1.35rem var(--serif); }
.brand b { color: var(--gold); font-weight: 800; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: var(--text); text-decoration: none; padding: 8px 12px; border-radius: var(--r-s); font-weight: 500; }
.nav a:hover { background: var(--raise); color: var(--gold-hi); }
.nav .gh { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); margin-left: 6px; }
.theme { background: none; border: 1px solid var(--line); border-radius: var(--r-s); width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; color: var(--gold-hi); }
.theme:hover { border-color: var(--gold); }
.i-moon { display: none; }
:root[data-theme="light"] .i-sun { display: none; }
:root[data-theme="light"] .i-moon { display: block; }
@media (prefers-color-scheme: light) { :root[data-theme="auto"] .i-sun { display: none; } :root[data-theme="auto"] .i-moon { display: block; } }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: var(--r-s); padding: 8px 14px; cursor: pointer; font-weight: 700; }

/* ------------------------------------------------------------------ hero */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; align-items: center; }
.release { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; font-size: 1rem; margin-bottom: 1.4em; color: var(--mist); }
.release a { font-weight: 700; color: var(--teal); text-decoration: none; border: 1px solid currentColor; border-radius: 99px; padding: 2px 12px; }
.release a:hover { color: var(--gold-hi); }
h1 { font-size: clamp(2.5rem, 5.2vw, var(--s-5)); line-height: 1.04; letter-spacing: -.02em; font-weight: 800; max-width: 15ch; margin-bottom: .45em; }
.lede { font-size: var(--s-1); line-height: 1.5; color: var(--text); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 18px; }
.fineprint { color: var(--mist); font-size: 1rem; }

.plane { margin: 0; position: relative; }
.plane svg { display: block; width: 100%; height: auto; overflow: visible; }
.plane figcaption { color: var(--mist); font-size: .98rem; font-style: italic; margin-top: 4px; padding-left: 8%; max-width: 40ch; }

/* the one orchestrated moment: the regions of the Plane light up in turn */
.regions .r, .lights circle { opacity: 0; animation: wake .9s ease-out forwards; }
.regions .r:nth-child(1) { animation-delay: .15s; } .regions .r:nth-child(2) { animation-delay: .3s; }
.regions .r:nth-child(3) { animation-delay: .45s; } .regions .r:nth-child(4) { animation-delay: .6s; }
.regions .r:nth-child(5) { animation-delay: .75s; } .regions .r:nth-child(6) { animation-delay: .9s; }
.regions .r:nth-child(7) { animation-delay: 1.05s; }
.lights circle { animation-name: flicker; animation-delay: 1.3s; animation-duration: 1.2s; }
.lights circle:nth-child(3n) { animation-delay: 1.5s; } .lights circle:nth-child(3n+1) { animation-delay: 1.7s; }
.links { stroke-dashoffset: 40; animation: flow 1.4s 1.6s ease-out forwards; opacity: 0; }
@keyframes wake { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes flicker { 0% { opacity: 0; } 40% { opacity: 1; } 55% { opacity: .4; } 100% { opacity: 1; } }
@keyframes flow { to { stroke-dashoffset: 0; opacity: .85; } }
@media (prefers-reduced-motion: reduce) {
  .regions .r, .lights circle, .links { animation: none; opacity: 1; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------------ sections */
.block { padding: 88px 0; }
.block.alt { background: var(--field); border-block: 1px solid var(--line); }
.intro { font-size: var(--s-1); color: var(--mist); max-width: 40em; margin-bottom: 2.2em; line-height: 1.45; }

/* features: wide rows with a small picture of the real thing */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 40px 0; border-top: 1px solid var(--line); }
.feature.flip .f-text { order: 2; }
.f-text h3 { font-size: var(--s-2); }
.f-text p { color: var(--text); }
.f-art { background: var(--raise); border: 1px solid var(--line); border-radius: var(--r-m); padding: 18px; font-size: .95rem; }
.win { display: flex; gap: 6px; align-items: center; margin-bottom: 14px; color: var(--mist); }
.win span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.win em { font-style: normal; margin-left: 8px; font-family: var(--serif); color: var(--gold-hi); font-size: 1.05rem; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tiles i { font-style: normal; background: var(--field); border: 1px solid var(--line); border-radius: var(--r-s); padding: 22px 8px 10px; text-align: center; font-size: .9rem; position: relative; }
.tiles i::before { content: ""; position: absolute; top: 9px; left: 50%; width: 22px; height: 6px; margin-left: -11px; border-radius: 3px; background: var(--gold); opacity: .8; }
.tiles i:nth-child(2)::before { background: var(--teal); }
.phone { max-width: 330px; justify-self: center; border-radius: 30px; padding: 12px; border-width: 2px; }
.phone .screen { background: var(--field); border-radius: 20px; padding: 16px 14px; display: grid; gap: 10px; }
.msg { margin: 0; background: var(--raise); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; line-height: 1.35; }
.msg b { display: block; color: var(--gold-hi); font-size: .85rem; }
.msg.sm { border-left: 3px solid var(--gold); }
.roll { display: flex; gap: 10px; align-items: center; background: var(--raise); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.roll > span { font: 800 1.8rem var(--serif); color: var(--gold); border: 1px solid var(--gold); border-radius: 8px; padding: 0 10px; }
.roll small { display: block; color: var(--mist); line-height: 1.3; }
.dice { display: flex; gap: 5px; }
.dice i { font-style: normal; flex: 1; text-align: center; font-weight: 700; color: var(--gold-hi); border: 1px solid var(--line); border-radius: 6px; padding: 4px 0; font-size: .85rem; }
.oracle .q { margin: 0 0 12px; color: var(--mist); font-style: italic; padding-left: 12px; border-left: 2px solid var(--teal); }
.oracle .a { margin: 0; font-family: var(--serif); font-size: 1.12rem; line-height: 1.55; }
.oracle .a b { color: var(--gold-hi); }

.also { list-style: none; padding: 40px 0 0; margin: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 40px; }
.also h3 { font-size: 1.2rem; margin-bottom: .25em; }
.also p { color: var(--mist); margin: 0; }

/* editions table */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--night); }
.compare { width: 100%; border-collapse: collapse; min-width: 720px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.compare tbody th { color: var(--mist); font-weight: 500; width: 17%; }
.compare thead th { padding-top: 22px; }
.ed-name { display: block; font: 800 var(--s-2) var(--serif); color: var(--gold-hi); }
.ed-sub { color: var(--mist); font-weight: 400; }
.compare tfoot th, .compare tfoot td { border-bottom: 0; padding-bottom: 22px; }
.compare .on { background: color-mix(in srgb, var(--gold) 9%, transparent); }
.pick { background: transparent; border: 2px solid var(--line); border-radius: var(--r-s); padding: .6em 1em; font-weight: 700; cursor: pointer; }
.pick:hover, .on .pick { border-color: var(--gold); color: var(--gold-hi); }

/* download */
.dl { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-s); padding: 4px; background: var(--field); margin-bottom: 18px; }
.seg button { background: none; border: 0; border-radius: 4px; padding: .55em 1.2em; font-weight: 700; cursor: pointer; color: var(--mist); }
.seg button[aria-checked="true"] { background: var(--gold); color: var(--on-gold); }
.dl-summary { color: var(--mist); }
.dl-files { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.file { display: grid; grid-template-columns: 1fr auto; gap: 4px 18px; align-items: center; padding: 16px 18px; border-top: 1px solid var(--line); background: var(--raise); }
.file:first-child { border-top: 0; }
.file h3 { font-size: 1.15rem; margin: 0; }
.file p { margin: 0; color: var(--mist); font-size: 1rem; }
.file .name { font-family: var(--mono); font-size: .85rem; color: var(--text); overflow-wrap: anywhere; }
.file .btn { grid-row: span 3; padding: .75em 1.1em; }
.file.main { background: color-mix(in srgb, var(--gold) 10%, var(--raise)); }
.soon { padding: 22px 18px; background: var(--raise); }
.soon h3 { margin-bottom: .3em; }
.soon p { color: var(--mist); margin: 0; }
.dl-all { font-size: 1rem; color: var(--mist); margin-top: 14px; }

.verify { border-left: 3px solid var(--teal); padding: 4px 0 4px 24px; }
.verify h3 { font-size: var(--s-1); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 14px 0 12px; }
.tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 8px 12px; cursor: pointer; font-weight: 700; color: var(--mist); margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--teal); }
.panel p { font-size: 1rem; color: var(--mist); margin-bottom: .5em; }
pre { position: relative; margin: 0; background: var(--field); border: 1px solid var(--line); border-radius: var(--r-s); padding: 14px 76px 14px 14px; overflow-x: auto; }
pre code { background: none; border: 0; padding: 0; font-size: .82rem; line-height: 1.6; white-space: pre; }
.copy { position: absolute; top: 8px; right: 8px; background: var(--raise); border: 1px solid var(--line); border-radius: 4px; font-size: .85rem; padding: 4px 10px; cursor: pointer; }
.copy:hover { border-color: var(--teal); }
.sum-line { font-size: .95rem; color: var(--mist); margin-top: 12px; overflow-wrap: anywhere; }
.sum-line code { font-size: .78rem; }

/* install steps: a real sequence, so numbered */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 0; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 64px 1fr; column-gap: 20px; padding: 26px 0; border-top: 1px solid var(--line); }
.steps > li::before { content: counter(step); grid-column: 1; grid-row: 1 / span 4; font: 800 var(--s-3)/1 var(--serif); color: var(--gold); }
.steps > li > * { grid-column: 2; min-width: 0; }   /* every part of a step in the text column, however many there are */
.steps h3 { margin-bottom: .3em; }
.steps p { margin-bottom: .6em; }
.tools { margin: 0; padding-left: 1.1em; color: var(--mist); }
.tools li { margin: .35em 0; }
.tools li::marker { color: var(--teal); }
.inline-cmd { white-space: normal; overflow-wrap: anywhere; }

/* requirements, notes */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.reqs { margin: 0; display: grid; grid-template-columns: 8.5em 1fr; }
.reqs dt { font-weight: 700; padding: 12px 0; border-top: 1px solid var(--line); }
.reqs dd { margin: 0; padding: 12px 0; border-top: 1px solid var(--line); color: var(--mist); }
.notes { padding-left: 1.1em; margin: 0 0 1.2em; }
.notes li { margin: .5em 0; }
.notes li::marker { color: var(--gold); }
.known { font-size: 1.15rem; margin-top: 1.4em; }

/* FAQ */
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 18px 36px 18px 0; font: 700 var(--s-1) var(--serif); list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font: 400 1.8rem/1 var(--sans); color: var(--gold); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--mist); padding-bottom: 8px; }

/* source */
.source { padding-top: 72px; }
.source .two { align-items: center; }
.clone { padding-right: 84px; }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding: 44px 0 36px; background: var(--field); font-size: 1rem; }
.foot-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px 40px; }
.site-foot p { color: var(--mist); margin-top: 10px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-content: start; justify-content: flex-end; }
.site-foot nav a { color: var(--text); }
.legal { grid-column: 1 / -1; font-size: .9rem; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 980px) {
  .hero-grid, .dl, .two { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 40px; }
  .plane { max-width: 620px; }
  .feature { grid-template-columns: 1fr; gap: 22px; }
  .feature.flip .f-text { order: 0; }
  .also { grid-template-columns: 1fr 1fr; }
  .verify { border-left: 0; border-top: 3px solid var(--teal); padding: 20px 0 0; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--night); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 6px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .gh { margin: 10px 0 0; border-radius: var(--r-s); justify-content: center; }
  .theme { margin-top: 10px; width: 100%; }
}
@media (max-width: 600px) {
  .block { padding: 60px 0; }
  .also { grid-template-columns: 1fr; }
  .steps > li { grid-template-columns: 40px 1fr; column-gap: 12px; }
  .reqs { grid-template-columns: 1fr; }
  .reqs dd { border-top: 0; padding-top: 0; }
  .file { grid-template-columns: 1fr; }
  .file .btn { grid-row: auto; justify-self: start; margin-top: 8px; }
  .foot-row { grid-template-columns: 1fr; }
  .site-foot nav { justify-content: flex-start; }
  .seg { display: flex; } .seg button { flex: 1; padding-inline: .5em; }
}
