:root {
  color-scheme: dark;
  --field: oklch(.14 .009 47);
  --ink: oklch(.94 .008 47);
  --muted: oklch(.73 .015 47);
  --rule: oklch(.34 .02 47);
  --accent: oklch(.8 .16 55);
  --paper: oklch(.95 .014 55);
  --focus: oklch(.85 .12 225);
  --max: 1220px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--field); color: var(--ink); font: 1rem/1.65 "Atkinson Hyperlegible", system-ui, sans-serif; overflow-wrap: break-word; }
a { color: inherit; text-underline-offset: .25em; }
a, input, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
img { display: block; max-width: 100%; }
main, .site-header, .site-footer { width: min(var(--max), calc(100% - 3rem)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 10; top: 1rem; left: 1rem; padding: .8rem 1rem; background: var(--accent); color: var(--field); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-family: "Rajdhani", system-ui, sans-serif; font-size: 1.8rem; font-weight: 700; line-height: 1; }
.brand img { width: 44px; height: 44px; object-fit: contain; border-radius: 3px; }
.site-nav { display: flex; gap: clamp(.75rem, 3vw, 2.5rem); align-items: center; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 700; color: var(--muted); }
.site-nav a:last-child { color: var(--accent); }
.site-nav a:hover, .source-link:hover { color: var(--ink); }
.site-nav a span { margin-left: .4rem; }
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding: clamp(3rem, 6vw, 5rem) 0 3.5rem; }
.eyebrow { color: var(--accent); font-weight: 700; margin: 0 0 1.1rem; }
h1, h2, h3, .button, .print-label, .print-edition { font-family: "Rajdhani", system-ui, sans-serif; }
h1 { margin: 0; font-size: clamp(3.4rem, 6.1vw, 5.6rem); line-height: .99; letter-spacing: -.045em; }
h1 span { color: var(--accent); }
h2 { font-size: clamp(2rem, 3.5vw, 3.1rem); line-height: 1.12; margin: 0; }
h3 { font-size: 1.6rem; line-height: 1.2; }
.hero-lede { font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 43ch; margin: 1.65rem 0 0; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.6rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 2rem; min-height: 50px; padding: .75rem 1.3rem; border-radius: 3px; text-decoration: none; font-size: 1.15rem; font-weight: 700; background: var(--accent); color: var(--field); transition: transform 180ms cubic-bezier(.22,1,.36,1); }
.button:hover { transform: translateY(-3px); }
.source-link { min-height: 44px; display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--muted); }
.release-note { color: var(--muted); font-size: .88rem; margin-top: 1.3rem; }
.signature-stage { --print: oklch(.79 .14 47); --print-ink: oklch(.25 .05 36); min-width: 0; padding-inline: 1.15rem; display: flex; flex-direction: column; }
.signature-stage:has(input[value="frost"]:checked) { --print: oklch(.82 .1 230); --print-ink: oklch(.23 .04 240); }
.signature-stage:has(input[value="ember"]:checked) { --print: oklch(.68 .18 30); --print-ink: oklch(.25 .05 30); }
.signature-art { margin: 0; }
.signature-print { position: relative; aspect-ratio: 1/1.09; color: var(--print-ink); background: var(--print); transform: rotate(3deg); box-shadow: 12px 18px 0 oklch(.23 .018 47); overflow: hidden; border: 3px solid var(--print); transition: background-color 350ms ease, color 350ms ease, transform 500ms cubic-bezier(.22,1,.36,1); }
.signature-stage:hover .signature-print { transform: rotate(0); }
.signature-symbol { display: block; width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.symbol-face { fill: currentColor; }
.symbol-shadow { fill: currentColor; opacity: .18; }
.symbol-brackets { opacity: .55; }
.print-label, .print-edition { position: absolute; left: 1.5rem; font-weight: 700; font-size: 1rem; }
.print-label { top: 1.15rem; color: var(--ink); text-shadow: 0 1px 3px var(--field); }
.print-edition { bottom: 1.2rem; font-size: .85rem; color: var(--ink); text-shadow: 0 1px 3px var(--field); }
.print-wordmark { position: absolute; bottom: 1.1rem; right: 1.4rem; color: var(--ink); font: 700 1.2rem/1 "Rajdhani", system-ui, sans-serif; text-shadow: 0 1px 3px var(--field); }

.signature-art figcaption { color: var(--muted); font-size: .86rem; margin-top: 2rem; }
.signature-art figcaption span { font-size: .77rem; }
.palette-picker { order: 1; border: 0; padding: 0; margin: 1.1rem 0 0; display: flex; gap: 1.2rem; flex-wrap: wrap; }
.palette-picker legend { font-size: .85rem; font-weight: 700; margin-bottom: .35rem; padding: 0; }
.palette-picker label { display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; min-height: 44px; font-size: .85rem; }
.palette-picker input { appearance: none; width: 20px; height: 20px; border: 1px solid var(--muted); border-radius: 50%; margin: 0; background: oklch(.79 .14 47); }
.palette-picker input[value="frost"] { background: oklch(.82 .1 230); }
.palette-picker input[value="ember"] { background: oklch(.68 .18 30); }
.palette-picker input:checked { box-shadow: inset 0 0 0 4px var(--field); }
.palette-picker input:checked + span { color: var(--ink); text-decoration: underline; text-underline-offset: .3em; }
.foundation-line { display: flex; flex-wrap: wrap; gap: .6rem 2rem; padding: 1.5rem 0; border-block: 1px solid var(--rule); color: var(--muted); font-size: .92rem; }
.community-section { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(4rem, 8vw, 7.5rem); }
.community-copy { max-width: 60ch; color: var(--muted); }
.community-copy > p { margin: 0 0 1.5rem; font-size: 1.12rem; }
.community-link { color: var(--accent); font-weight: 700; font-size: 1.15rem; }
#install { margin-top: 1.8rem; font-size: .9rem; }
#install p { margin: 0; }
#install a { color: var(--ink); }
.detail-intro { margin: 0 0 1.25rem; color: var(--muted); }
.detail-section { border-top: 1px solid var(--rule); scroll-margin-top: 1.5rem; }
.detail-section:last-child { border-bottom: 1px solid var(--rule); }
summary { position: relative; cursor: pointer; list-style: none; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 1.5rem; padding: 1.5rem 3rem 1.5rem 0; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: .4rem; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 2rem; font-weight: 400; }
details[open] > summary::after { content: "−"; }
summary h2 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); }
summary > span { color: var(--muted); font-size: .9rem; }
summary:hover h2 { color: var(--accent); }
.detail-body { padding: 0 0 2rem; color: var(--muted); }
.detail-body > p, .plan-list { max-width: 68ch; }
.detail-body > p:first-child { margin-top: 0; }
.plan-list { display: grid; gap: 1.6rem; padding-top: .8rem; }
.plan-list h3 { color: var(--ink); margin: 0 0 .5rem; }
.plan-list p { margin: 0; }
.proof-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.5rem; align-items: start; }
.proof-panel { margin: 0; }
.proof-panel-large { grid-row: span 2; }
.proof-panel img { width: 100%; height: auto; }
.proof-panel figcaption { padding-top: .6rem; font-size: .9rem; }
.historical-label { display: block; font-size: .8rem; }
.foundations { padding: clamp(3rem, 6vw, 5rem) 0; max-width: 70ch; color: var(--muted); }
.foundations h2 { font-size: 1.5rem; color: var(--ink); }
.foundations p { margin-bottom: 0; }
.foundations a { color: var(--ink); }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 1.5rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: .9rem; }
.footer-wordmark { color: var(--accent); font-family: "Rajdhani", system-ui, sans-serif; font-size: 1.65rem; font-weight: 700; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 3rem; padding-top: 2rem; }
  h1 { font-size: clamp(3.3rem, 9vw, 5.4rem); }
  .signature-stage { width: min(100% - 1rem, 510px); justify-self: center; }
  .community-section { grid-template-columns: 1fr; gap: 2rem; }
  .community-copy { max-width: 65ch; }
}
@media (max-width: 560px) {
  main, .site-header, .site-footer { width: calc(100% - 2rem); }
  .site-header { gap: .75rem; flex-wrap: wrap; padding-block: 1rem; }
  .brand img { width: 36px; height: 36px; }
  .site-nav { gap: 1.1rem; font-size: .86rem; }
  h1 { font-size: clamp(2.9rem, 11.5vw, 4rem); }
  .hero { gap: 2.5rem; }
  .hero-actions { gap: .7rem 1.2rem; }
  .hero-lede { font-size: 1.1rem; }
  .signature-print { box-shadow: 7px 12px 0 oklch(.23 .018 47); }
  .print-label, .print-edition { left: 1rem; }
  .print-wordmark { right: 1rem; font-size: 1rem; }
  .print-edition { font-size: .73rem; }
  .foundation-line { gap: .5rem 1.25rem; font-size: .85rem; }
  summary { grid-template-columns: 1fr; gap: .35rem; }
  .proof-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
