@font-face{font-family:"Bricolage";src:url(/fonts/display.woff2) format("woff2");font-weight:200 800;font-display:swap}
@font-face{font-family:"Instrument";src:url(/fonts/body.woff2) format("woff2");font-weight:400 700;font-display:swap}

:root{
  --bg:oklch(15% .012 255);
  --surface:oklch(19.5% .014 255);
  --line:oklch(29% .014 255);
  --text:oklch(95% .005 255);
  --muted:oklch(75% .012 255);
  --accent:oklch(85% .14 200);
  --accent-ink:oklch(16% .02 230);
  --ease:cubic-bezier(.16,1,.3,1);
  --pad:clamp(1.25rem,5vw,3rem);
  --max:68rem;
  color-scheme:dark;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scrollbar-color:var(--line) var(--bg);-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font:400 1.0625rem/1.65 "Instrument",system-ui,sans-serif;min-height:100dvh;display:flex;flex-direction:column;-webkit-font-smoothing:antialiased}
::selection{background:var(--accent);color:var(--accent-ink)}
::-webkit-scrollbar{width:12px}
::-webkit-scrollbar-thumb{background:var(--line);border-radius:8px;border:3px solid var(--bg)}
img{max-width:100%;height:auto;display:block}
a{color:var(--accent);text-underline-offset:.2em;text-decoration-thickness:1px}
a:hover{text-decoration-thickness:2px}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:4px}
.skip{position:absolute;left:-999px;top:.5rem;background:var(--accent);color:var(--accent-ink);padding:.5rem .9rem;border-radius:8px;z-index:10}
.skip:focus{left:.75rem}

h1,h2,h3{font-family:"Bricolage",system-ui,sans-serif;line-height:1.08;margin:0;text-wrap:balance;letter-spacing:-.02em}
h1{font-size:clamp(2.5rem,7vw,4.75rem);font-weight:700}
h2{font-size:clamp(1.6rem,3.4vw,2.25rem);font-weight:650}
p{margin:0;text-wrap:pretty}

.wrap{width:100%;max-width:var(--max);margin-inline:auto;padding-inline:var(--pad)}

header.site{border-bottom:1px solid var(--line)}
header.site .wrap{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:4.25rem}
.brand{display:flex;align-items:center;gap:.65rem;font:650 1.05rem "Bricolage",sans-serif;color:var(--text);text-decoration:none;letter-spacing:-.01em}
.brand .mark{width:1.6rem;height:1.6rem;border-radius:.45rem;background:var(--accent);display:grid;place-items:center;color:var(--accent-ink)}
.brand .mark svg{width:1rem;height:1rem}
nav.site{display:flex;gap:.25rem}
nav.site a{color:var(--muted);text-decoration:none;padding:.5rem .8rem;border-radius:.6rem;font-size:.95rem;transition:color .2s,background .2s}
nav.site a:hover,nav.site a[aria-current="page"]{color:var(--text);background:var(--surface)}

main{flex:1}
.hero{padding-block:clamp(3.5rem,10vw,7rem) clamp(3rem,7vw,5rem)}
.hero h1{max-width:15ch}
.hero p.lead{margin-top:1.5rem;max-width:34rem;color:var(--muted);font-size:1.2rem}
.actions{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:2rem}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;font:600 1rem "Instrument",sans-serif;padding:.8rem 1.35rem;border-radius:.75rem;text-decoration:none;border:1px solid transparent;transition:transform .25s var(--ease),background .2s,border-color .2s;min-height:2.9rem}
.btn:active{transform:translateY(1px)}
.btn.primary{background:var(--accent);color:var(--accent-ink)}
.btn.primary:hover{background:oklch(90% .13 200)}
.btn.ghost{border-color:var(--line);color:var(--text)}
.btn.ghost:hover{border-color:var(--muted);background:var(--surface)}
.btn svg{width:1.1rem;height:1.1rem}

.feature{padding-block:clamp(2.5rem,6vw,4.5rem);border-top:1px solid var(--line)}
.feature-grid{display:grid;gap:clamp(1.75rem,4vw,3.5rem);grid-template-columns:1.25fr 1fr;align-items:center}
.shot{border-radius:1rem;overflow:hidden;border:1px solid var(--line);box-shadow:0 18px 40px -18px oklch(5% .02 255/.7);background:var(--surface)}
.shot img{width:100%;aspect-ratio:1200/630;object-fit:cover}
.feature h2{margin-bottom:.35rem}
.tagline{color:var(--accent);font-weight:600;margin-bottom:1rem}
.feature p.desc{color:var(--muted);max-width:32rem}
dl.facts{display:grid;grid-template-columns:auto 1fr;gap:.55rem 1.25rem;margin:1.5rem 0 0;font-size:.97rem}
dl.facts dt{color:var(--muted)}
dl.facts dd{margin:0}

.more{padding-block:clamp(2.5rem,6vw,4rem);border-top:1px solid var(--line)}
.more p{color:var(--muted);margin-top:.6rem;max-width:34rem}
.more a{font-weight:600}

footer.site{border-top:1px solid var(--line);padding-block:2rem;color:var(--muted);font-size:.93rem}
footer.site .wrap{display:flex;flex-wrap:wrap;gap:.75rem 1.5rem;justify-content:space-between}
footer.site nav{display:flex;flex-wrap:wrap;gap:.25rem 1.25rem}
footer.site a{color:var(--muted)}
footer.site a:hover{color:var(--text)}

.crumb{padding-top:1.75rem;font-size:.93rem}
.crumb a{color:var(--muted);text-decoration:none}
.crumb a:hover{color:var(--text)}
.project-head{padding-block:1.5rem 0;display:grid;gap:1.25rem}
.project-head .title{display:flex;align-items:center;gap:1rem}
.project-head .icon{width:4rem;height:4rem;border-radius:1rem;border:1px solid var(--line)}
.project-head p.lead{color:var(--muted);font-size:1.15rem;max-width:40rem}
.project-body{display:grid;gap:clamp(2rem,5vw,4rem);grid-template-columns:1.6fr 1fr;padding-bottom:clamp(3rem,7vw,5rem);margin-top:clamp(2rem,4vw,3rem)}
.project-body section+section{margin-top:2.25rem}
.project-body h2{font-size:1.5rem;margin-bottom:.8rem}
.project-body p,.project-body li{color:var(--muted)}
.project-body ul{margin:0;padding-left:1.15rem;display:grid;gap:.55rem}
.project-body li::marker{color:var(--accent)}
.project-body strong{color:var(--text);font-weight:600}
aside.side{align-self:start;border:1px solid var(--line);border-radius:1rem;padding:1.5rem;background:var(--surface);display:grid;gap:1.25rem}
.note{font-size:.93rem;color:var(--muted)}

.doc{padding-block:clamp(2.5rem,7vw,4.5rem) clamp(3rem,7vw,5rem);max-width:46rem}
.doc h1{font-size:clamp(2.1rem,5vw,3rem)}
.doc .meta{color:var(--muted);margin-top:.75rem}
.doc h2{font-size:1.35rem;margin:2.5rem 0 .7rem}
.doc p,.doc li{color:oklch(86% .008 255)}
.doc p+p,.doc ul+p{margin-top:.9rem}
.doc ul{margin:.7rem 0 0;padding-left:1.2rem;display:grid;gap:.45rem}
.doc li::marker{color:var(--muted)}

.rise{animation:rise .7s var(--ease) both}
@keyframes rise{from{transform:translateY(14px)}to{transform:none}}

@media (max-width:52rem){
  .feature-grid,.project-body{grid-template-columns:1fr}
  nav.site a{padding:.5rem .6rem}
}
@media (max-width:30rem){
  .brand .full{display:none}
  .actions .btn{flex:1 1 100%}
}
@media (prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important}
  html{scroll-behavior:auto}
}
