/* Legal pages (Impressum, Datenschutz) and 404: same tokens as the main site (site.css), day and night. */
:root{
  --paper:#f7f6f2;--ink:#141414;--muted:#5d6670;--hair:#e3ded3;--brass:#b8892a;
  --display:"Instrument Serif",Georgia,"Times New Roman",serif;
  --body:"Geist",system-ui,-apple-system,"Segoe UI",sans-serif;
  --mono:"Geist Mono",ui-monospace,Menlo,monospace;
  /* sky, same colours as the street */
  --sky1:#d4f1e9;--sky2:#9fdcdc;--cloud:#ffffff
}
body.night{
  --paper:#141c2e;--ink:#e6ecf6;--muted:#8e9ab0;--hair:#2c3953;
  --sky1:#0f2f3c;--sky2:#21566a;--cloud:#2f6273
}
body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.65 var(--body);position:relative}
a{color:inherit;text-underline-offset:3px}

.top{display:flex;justify-content:space-between;align-items:center;max-width:1100px;margin:0 auto;padding:18px 20px}
.brand{font-family:var(--display);font-size:24px;text-decoration:none;letter-spacing:-.01em}
.back{font-size:14px;color:var(--muted);text-decoration:none}
.back:hover{color:var(--ink)}

.top,main{position:relative}
/* the sky sits behind the top of the page and fades into the paper */
.sky{position:absolute;inset:0 0 auto 0;height:340px;z-index:0;pointer-events:none;
  -webkit-mask-image:linear-gradient(#000 45%,transparent);mask-image:linear-gradient(#000 45%,transparent)}
.sky svg{display:block;width:100%;height:100%}
.sky .stars{fill:#fff;display:none}
.sky .sun{fill:#ffd45c}
.sky .moon circle{fill:#f6efc8}.sky .moon .crater{fill:#e4dba9}
.sky .cloud path{fill:var(--cloud);opacity:.9}
.sky .cloud{animation:drift 40s linear infinite alternate}
@keyframes drift{to{transform:translateX(40px)}}
body.night .sky .stars{display:inline}
body.night .sky .sun,body:not(.night) .sky .moon{display:none}
@media (prefers-reduced-motion:reduce){.sky .cloud{animation:none}}

main{max-width:720px;margin:0 auto;padding:44px 20px 110px}
.kicker{font:500 12px var(--mono);letter-spacing:.14em;text-transform:uppercase;color:var(--brass);margin:0 0 6px}
h1{font:400 clamp(38px,6vw,52px)/1.05 var(--display);margin:0;letter-spacing:-.01em}
.rule{height:2px;width:56px;background:var(--brass);margin:20px 0 30px;border:0}
h2{font:600 17px/1.4 var(--body);margin:32px 0 6px}
p{margin:0 0 12px}
.muted{color:var(--muted)}

/* same footer pill as the main site */
.legal{position:fixed;left:10px;bottom:calc(6px + env(safe-area-inset-bottom,0px));z-index:40;font:12px var(--body);color:#5d6b7c;background:rgba(255,255,255,.75);border-radius:999px;padding:3px 10px;display:flex;gap:6px}
.legal a{text-decoration:none}
.legal a:hover,.legal a[aria-current]{text-decoration:underline}
body.night .legal{background:rgba(20,28,46,.75);color:#c9d2e3}
@media (max-width:640px){.legal{left:auto;right:8px;font-size:11px}}
