:root{
  --space:#020409;
  --text:#d9e0e8; --soft:#9aa6b5; --faint:#6f7b8b;
  --accent:#8fcde4;
  --gutter:clamp(20px,5.5vw,128px);
}
*{box-sizing:border-box;margin:0;padding:0}
html{background:var(--space);color-scheme:dark}
body{background:var(--space);color:var(--text);font-family:Manrope,system-ui,"Segoe UI",sans-serif;font-weight:400;
  font-size:clamp(16px,calc(.55vw + 8px),26px);line-height:1.6;-webkit-font-smoothing:antialiased;overflow-x:hidden}
@supports (overflow:clip){body{overflow-x:clip}}
::selection{background:var(--accent);color:var(--space)}

/* ---------- hero ---------- */
.hero{position:relative;min-height:100vh;min-height:100svh;overflow:hidden;overflow:clip;display:flex;flex-direction:column}
#scene{position:absolute;left:0;top:0;width:100%;height:100%;display:block;opacity:0;transition:opacity 1.6s ease;
  -webkit-mask-image:linear-gradient(#000 78%,transparent);mask-image:linear-gradient(#000 78%,transparent)}
#scene.on{opacity:1}
@media (prefers-reduced-motion:reduce){#scene{transition:none}}

.bar{position:relative;z-index:3;display:flex;align-items:center;justify-content:flex-end;gap:1em;
  padding:clamp(20px,2.4vw,44px) var(--gutter) 0;color:var(--soft);font-size:.9em}
.platform{display:flex;align-items:center;gap:.6em;color:var(--text);font-weight:500}
.platform svg{width:1.6em;height:1.6em;flex:none;color:var(--accent)}

.copy{position:relative;z-index:2;margin:auto 0;padding:clamp(40px,6vh,120px) var(--gutter);max-width:calc(40vw + var(--gutter))}
.kicker{color:var(--accent);margin-bottom:clamp(14px,1.6vw,28px);font-weight:500}
h1{margin:0}
.logo{display:block;width:100%;max-width:34em;height:auto;overflow:visible}
.lede{margin-top:clamp(20px,2.2vw,40px);font-size:clamp(19px,1.45vw,46px);line-height:1.4;color:var(--text);max-width:22em}
.body{margin-top:.9em;color:var(--soft);max-width:27em}
.status{margin-top:clamp(24px,2.6vw,48px);display:flex;align-items:center;gap:.65em;color:var(--text);font-weight:500}
.nb{white-space:nowrap}
.status i{width:.5em;height:.5em;border-radius:50%;background:var(--accent);flex:none}

/* ---------- sections ---------- */
.work{padding:clamp(80px,10vw,220px) var(--gutter) clamp(64px,8vw,180px)}
.work h2,.close h2{font-weight:300;font-size:clamp(30px,3.1vw,100px);line-height:1.15;letter-spacing:-.02em;max-width:18em}
.steps{list-style:none;display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(32px,4vw,96px);margin-top:clamp(48px,6vw,130px)}
.steps svg{display:block;width:100%;max-width:clamp(180px,16vw,420px);height:auto;color:var(--soft)}
.steps h3{font-weight:500;font-size:clamp(20px,1.5vw,40px);line-height:1.25;margin:clamp(18px,1.8vw,36px) 0 .4em;color:var(--text)}
.steps p{color:var(--soft);max-width:24em}

.log{padding:clamp(56px,7vw,160px) var(--gutter) 0}
.log h2{font-weight:300;font-size:clamp(30px,3.1vw,100px);line-height:1.15;letter-spacing:-.02em}
/* the dev log list on the main page: one wide card per entry, newest first, the whole card one link */
.posts{list-style:none;display:grid;gap:clamp(16px,1.6vw,32px);margin-top:clamp(24px,2.6vw,56px);max-width:76em}
.post{position:relative;display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);background:#080c14;
  border:1px solid rgba(154,166,181,.18);border-radius:8px;overflow:hidden;transition:border-color .2s ease}
.post:hover,.post:focus-within{border-color:rgba(143,205,228,.5)}
.post img{display:block;width:100%;height:100%;aspect-ratio:16/10;object-fit:cover;transition:opacity .2s ease}
.post:hover img{opacity:.88}
.post .text{display:flex;flex-direction:column;justify-content:center;padding:clamp(22px,2.6vw,64px)}
.post time{color:var(--faint);font-size:.9em}
.post h3{font-weight:500;font-size:clamp(24px,2.1vw,56px);line-height:1.2;margin:.3em 0 .45em;text-wrap:balance}
.post h3 a{color:var(--text);text-decoration:none}
.post h3 a::after{content:"";position:absolute;inset:0}
.post h3 a:focus-visible{outline:none}
.post:focus-within{outline:2px solid var(--accent);outline-offset:3px}
.post p{color:var(--soft);font-size:1.05em;max-width:30em}
.post .more{margin-top:1.1em;color:var(--accent);font-weight:500}

.close{padding:clamp(72px,9vw,200px) var(--gutter) clamp(88px,11vw,240px);text-align:center}
.close h2{margin:0 auto}
.close p{margin-top:1em;color:var(--soft)}

footer{padding:28px var(--gutter) 36px;color:var(--faint);font-size:.85em}
footer button{font:inherit;color:inherit;background:none;border:0;padding:0;margin-left:1.5em;cursor:pointer;text-decoration:underline;text-underline-offset:.2em}
footer button:hover{color:var(--soft)}

/* ---------- a dev log entry's own page ---------- */
.bar.top{justify-content:space-between;padding-bottom:0}
.home{display:block;flex:none}
.home img{display:block;height:clamp(40px,3.2vw,84px);width:auto}
.bar.top .platform span{white-space:nowrap}
.entry{padding:clamp(48px,6vw,150px) var(--gutter) clamp(64px,8vw,180px)}
.entry article,.entry .back{max-width:64em;margin:0 auto}
.entry article>*{max-width:40em}
.entry article>figure,.entry article>.shots{max-width:none}
.crumb a,.back a{color:var(--accent);font-weight:500;text-decoration:none}
.crumb a:hover,.back a:hover{text-decoration:underline;text-underline-offset:.2em}
.entry time{display:block;margin-top:clamp(20px,2vw,40px);color:var(--faint);font-size:.9em}
.entry h1{font-weight:300;font-size:clamp(34px,3.4vw,110px);line-height:1.12;letter-spacing:-.02em;margin:.25em 0 .7em;text-wrap:balance}
.entry h2{font-weight:500;font-size:clamp(22px,1.7vw,46px);line-height:1.25;color:var(--text);margin:1.8em 0 .6em;text-wrap:balance}
.entry h3{font-weight:500;font-size:1.05em;color:var(--text);margin:1.6em 0 .4em}
.entry p,.entry li{color:var(--soft);text-wrap:pretty}
.entry p+p,.entry ul+p,.entry ol+p,.entry table+p{margin-top:.9em}
.entry strong{color:var(--text);font-weight:600}
.entry article a:not(.shot){color:var(--accent)}
.entry ul,.entry ol{margin:.9em 0 0 1.25em}
.entry li+li{margin-top:.35em}
.entry li::marker{color:var(--accent)}
.entry figure,.entry .shots{margin:clamp(28px,3vw,72px) 0}
.entry .shots{display:grid;gap:clamp(12px,1.2vw,28px)}
.entry .shots figure{margin:0}
.entry figure a,.entry .shot{display:block}
.entry figure img{display:block;width:100%;height:auto;border-radius:4px}
.entry figcaption{margin-top:.6em;color:var(--faint);font-size:.85em}
.specs{width:100%;border-collapse:collapse;margin:1.1em 0 0}
.specs th,.specs td{padding:.6em 0;border-bottom:1px solid rgba(154,166,181,.18);text-align:left;vertical-align:top}
.specs tr:first-child th,.specs tr:first-child td{border-top:1px solid rgba(154,166,181,.18)}
.specs th{width:38%;padding-right:1.2em;color:var(--faint);font-weight:400}
.specs td{color:var(--text)}
.entry .back{margin-top:clamp(48px,5vw,120px)}

/* ---------- analytics consent ---------- */
.consent{position:fixed;inset:0;z-index:10;display:flex;align-items:center;justify-content:center;padding:16px;
  background:rgba(2,4,9,.72);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.consent[hidden]{display:none}
.consent .card{width:100%;max-width:28em;max-height:100%;overflow-y:auto;padding:clamp(28px,2.4vw,44px) clamp(24px,2.2vw,40px);
  text-align:center;background:#080c14;border:1px solid rgba(154,166,181,.22);border-radius:8px}
.consent h2{font-weight:500;font-size:clamp(20px,1.4vw,36px);line-height:1.3;color:var(--text);text-align:left}
.consent p{margin-top:.8em;font-size:.9em;line-height:1.55;color:var(--soft);text-align:left}
.consent button{font:inherit;cursor:pointer}
.consent .yes{display:block;width:100%;margin-top:1.4em;padding:.75em 1em;border:0;border-radius:6px;
  background:var(--accent);color:var(--space);font-weight:600;font-size:1.05em}
.consent .yes:hover{background:#a9dcee}
.consent .no{margin-top:1em;padding:.2em .4em;border:0;background:none;color:var(--faint);font-size:.8em;
  text-decoration:underline;text-underline-offset:.2em}
.consent .no:hover{color:var(--soft)}

/* ---------- narrow or portrait: the satellite above, the words below ---------- */
@media (max-width:959px),(max-aspect-ratio:1/1){
  .copy{margin:auto 0 0;max-width:none;padding-top:0;padding-bottom:44px}
  .lede{font-size:clamp(19px,4.8vw,30px)}
  .steps{grid-template-columns:1fr}
  .steps svg{max-width:240px}
}
@media (max-width:719px){
  .post{grid-template-columns:1fr}
  .post img{aspect-ratio:16/9}
  .specs th{width:44%}
}
@media (max-width:420px){.bar{font-size:.82em}}
@media (max-width:359px){.bar.top .platform svg{display:none}.home img{height:34px}}
