
:root {
  color-scheme: light;
  --bg: #f3efe6;
  --bg-elev: #fffdf8;
  --ink: #1c1914;
  --muted: #5c564c;
  --line: #ddd4c4;
  --link: #0c3d6e;
  --accent: #0e3b32;
  --accent-ink: #f6f3ea;
  --gold: #8a5a12;
  --poster: #10241f;
  --poster-ink: #f4efe4;
  --shadow: 0 1px 0 rgba(28, 25, 20, .04);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #101411;
    --bg-elev: #1a211c;
    --ink: #f2eee6;
    --muted: #b7b0a4;
    --line: #314038;
    --link: #9ecbff;
    --accent: #8fd0bf;
    --accent-ink: #10211c;
    --gold: #e6c27a;
    --poster: #0c1814;
    --poster-ink: #f4efe4;
    --shadow: none;
  }
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101411;
  --bg-elev: #1a211c;
  --ink: #f2eee6;
  --muted: #b7b0a4;
  --line: #314038;
  --link: #9ecbff;
  --accent: #8fd0bf;
  --accent-ink: #10211c;
  --gold: #e6c27a;
  --poster: #0c1814;
  --poster-ink: #f4efe4;
  --shadow: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; font: 18px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--link); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--bg-elev); color: var(--ink); padding: .5rem; }
.skip:focus { left: .5rem; z-index: 2; }
header.site, main, footer { width: min(72rem, calc(100% - 2rem)); margin-inline: auto; }
header.site { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; justify-content: space-between; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.brand { display: flex; gap: .6rem; align-items: center; color: inherit; text-decoration: none; font-weight: 650; }
.brand img { border-radius: 8px; }
.brand small { font-weight: 450; color: var(--muted); }
nav { display: flex; flex-wrap: wrap; gap: .35rem .9rem; }
nav a { text-decoration: none; }
nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .2em; }
button.theme { font: inherit; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: .3rem .75rem; cursor: pointer; }
main { padding: 1.75rem 0 3rem; }
h1 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 1rem; max-width: min(18ch, 100%); }
h2 { font-size: 1.45rem; line-height: 1.25; margin: 2rem 0 .6rem; }
h3 { font-size: 1.05rem; margin: 0 0 .4rem; }
p, li { max-width: 68ch; }
.lede { font-size: 1.2rem; max-width: 42rem; }
ul.facts, ul.agents { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1.25rem 0; list-style: none; max-width: none; }
ul.facts li, ul.agents li { max-width: none; border: 1px solid var(--line); background: var(--bg-elev); border-radius: 999px; padding: .35rem .8rem; box-shadow: var(--shadow); }
ul.agents li { font-weight: 650; }
.cta { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.25rem 0 .4rem; }
.button { display: inline-block; background: var(--accent); color: var(--accent-ink); text-decoration: none; padding: .7rem 1.15rem; border-radius: 999px; font-weight: 650; }
.button.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.button:hover { text-decoration: none; filter: brightness(1.08); }
.fine { color: var(--muted); font-size: .95rem; }
.demo { margin: 1.5rem 0 0; max-width: 52rem; }
.poster { background: var(--poster); color: var(--poster-ink); border-radius: 16px; min-height: 22rem; display: flex; flex-direction: column; border: 1px solid var(--line); overflow: hidden; }
.chrome { display: flex; gap: .4rem; align-items: center; padding: .7rem .9rem; background: rgba(255,255,255,.04); }
.chrome span { width: .7rem; height: .7rem; border-radius: 50%; background: #c4554a; }
.chrome span:nth-child(2) { background: #d6a13a; }
.chrome span:nth-child(3) { background: #3f8f62; }
.chrome b { margin-left: .4rem; font-weight: 600; font-size: .95rem; }
.stage { flex: 1; display: grid; place-items: center; text-align: center; padding: 2rem 1rem 2.5rem; }
.stage p { margin: .8rem 0 0; letter-spacing: .04em; text-transform: uppercase; font-size: .85rem; color: var(--poster-ink); max-width: none; }
.play { width: 4.5rem; height: 4.5rem; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; }
.play::before { content: ""; border-style: solid; border-width: .7rem 0 .7rem 1.15rem; border-color: transparent transparent transparent var(--poster-ink); margin-left: .25rem; }
figcaption { color: var(--muted); font-size: .95rem; margin-top: .5rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; margin-top: .5rem; }
.card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem 1.1rem; box-shadow: var(--shadow); }
.card p { max-width: none; }
.banner { border: 1px solid var(--gold); background: var(--bg-elev); padding: .8rem 1rem; border-radius: 12px; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
pre { background: var(--bg-elev); border: 1px solid var(--line); padding: .8rem 1rem; overflow: auto; max-width: 68ch; border-radius: 10px; }
table { border-collapse: collapse; width: min(100%, 68ch); }
th, td { border-bottom: 1px solid var(--line); text-align: left; padding: .4rem .6rem .4rem 0; vertical-align: top; }
.crumbs { color: var(--muted); margin-bottom: .5rem; }
footer { border-top: 1px solid var(--line); padding: 1.5rem 0 3rem; color: var(--muted); font-size: .95rem; }
footer p, footer nav { max-width: 72ch; }
footer nav { margin-bottom: .8rem; }
