/* joshuaschweiger.me holding page. Tokens from brand/BRAND.md. Dark first, light twin. */
@font-face{font-family:Geist;src:url(/fonts/Geist-Variable.woff2) format("woff2");font-weight:100 900;font-display:swap}
@font-face{font-family:"Geist Mono";src:url(/fonts/GeistMono-Variable.woff2) format("woff2");font-weight:100 900;font-display:swap}

:root{
  --bg:#0B0B0F;--fg:#F5F5F7;--soft:#C4C4CC;--muted:#8B8B96;--dim:#52525C;
  --line:#2A2A32;--grid:#2A2A32;--stroke:#C4C4CC;--accent:#B4A0FF;
  color-scheme:dark;
}
:root[data-theme="light"]{
  --bg:#F5F5F7;--fg:#0B0B0F;--soft:#0B0B0F;--muted:#52525C;--dim:#8B8B96;
  --line:#C4C4CC;--grid:#DDDDE2;--stroke:#0B0B0F;--accent:#6A30CF;
  color-scheme:light;
}
@media (prefers-color-scheme:light){
  :root:not([data-theme="dark"]){
    --bg:#F5F5F7;--fg:#0B0B0F;--soft:#0B0B0F;--muted:#52525C;--dim:#8B8B96;
    --line:#C4C4CC;--grid:#DDDDE2;--stroke:#0B0B0F;--accent:#6A30CF;
    color-scheme:light;
  }
}

*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--fg);font-family:Geist,system-ui,sans-serif}
body{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
p,h1,dl,dd,figure{margin:0}
a{color:var(--accent);text-decoration:none;border-bottom:1px solid var(--line);transition:color .2s,border-color .2s}
a:hover,a:focus-visible{color:var(--fg);border-bottom-color:var(--accent)}
:focus-visible{outline:1px solid var(--accent);outline-offset:3px}

/* top bar */
.top{display:flex;align-items:center;justify-content:space-between;padding:16px;border-bottom:1px solid var(--line)}
.home{border:0;display:block;line-height:0}
.mark .f{fill:none;stroke:var(--stroke);stroke-width:1.5}
.mark text{font:500 12px "Geist Mono",monospace;letter-spacing:.5px;fill:var(--fg)}
.mark .s{fill:var(--accent);transition:opacity .2s}
.mark .nk{fill:none;stroke:var(--accent);stroke-width:1;stroke-dasharray:1.5 1.5;opacity:0;transition:opacity .2s}
.home:hover .s,.home:focus-visible .s{opacity:0}
.home:hover .nk,.home:focus-visible .nk{opacity:1}
.theme{width:36px;height:36px;padding:0;display:flex;align-items:center;justify-content:center;background:none;border:1px solid var(--line);border-radius:0;color:var(--stroke);cursor:pointer;transition:border-color .2s,color .2s}
.theme[hidden]{display:none}
.theme:hover{border-color:var(--accent);color:var(--accent)}
.theme svg{fill:none;stroke:currentColor;stroke-width:1.2}
.theme svg path{fill:currentColor;stroke:none}

/* hero: 4 columns on phones, 12 from 1024 px; column lines as hairlines */
.hero{flex:1;display:flex;align-items:center;padding:48px 16px 56px;
  border-bottom:1px solid var(--line)}
.cols{width:100%;max-width:1280px;margin:0 auto;display:flex;flex-direction:column;gap:40px}
.copy{display:flex;flex-direction:column;gap:24px;min-width:0}
.id{display:flex;flex-direction:column;gap:8px}
.label{font-family:"Geist Mono",monospace;font-size:12px;letter-spacing:.6px;color:var(--muted)}
.wordmark{font-size:24px;font-weight:500;letter-spacing:-.6px}
h1{font-size:36px;line-height:1.06;font-weight:600;letter-spacing:-1.1px;max-width:16ch;text-wrap:balance}
.lead{font-size:18px;line-height:1.5;max-width:40ch;color:var(--soft)}
.nw{white-space:nowrap}
.body{font-size:16px;line-height:1.6;max-width:44ch;color:var(--soft)}
.spec{display:grid;grid-template-columns:84px 1fr;row-gap:10px;column-gap:12px;font-family:"Geist Mono",monospace;font-size:12px;line-height:1.6;border-top:1px solid var(--line);padding-top:20px}
.spec dt{color:var(--muted)}
.spec dd{color:var(--soft);min-width:0}
.spec dd code{font:inherit}

/* lattice figure */
.lattice{width:100%;max-width:480px;align-self:center}
.lattice svg{display:block;width:100%;height:auto;overflow:visible}
.lattice .floor{fill:none;stroke:var(--line);stroke-width:1}
.lattice .blocks path{fill:var(--bg);stroke:var(--stroke);stroke-width:1}
.lattice .blocks .dim{stroke:var(--dim)}
.lattice .key{fill:none;stroke:var(--accent);stroke-width:1.6;stroke-dasharray:1;stroke-dashoffset:0}
.lattice .nodes circle{fill:var(--bg);stroke:var(--accent);stroke-width:1.5;transition:fill .2s}
.lattice .tags{font:400 11px "Geist Mono",monospace;fill:var(--muted)}
/* hover: draw the key path once and light the nodes, 200 ms (brand motion rule) */
.lattice:hover .key{animation:draw .2s ease-out}
.lattice:hover .nodes circle{fill:var(--accent)}
@keyframes draw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}

/* legal pages */
.legal{flex:1;width:100%;max-width:760px;padding:48px 16px 72px;display:flex;flex-direction:column;gap:14px}
.legal h2{font:400 12px "Geist Mono",monospace;letter-spacing:.6px;color:var(--muted);text-transform:uppercase;margin:16px 0 0;padding-top:16px;border-top:1px solid var(--line)}
.legal p,.legal address{font-size:16px;line-height:1.6;color:var(--soft);font-style:normal}
.ph{display:block;color:var(--muted);border:1px dashed var(--dim);padding:8px 12px;margin:8px 0;font-size:14px}

/* footer */
.foot{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 24px;padding:20px 16px}
.meta{font-family:"Geist Mono",monospace;font-size:12px;letter-spacing:.4px;color:var(--muted)}

@media (min-width:768px){
  .top{padding:20px 40px}
  .hero{padding:80px 40px;background-image:linear-gradient(to right,var(--grid) 1px,transparent 1px);background-size:calc((100% - 80px) / 8) 100%;background-position:40px 0}
  .foot{padding:24px 40px}
  .legal{padding:72px 40px 96px}
  .wordmark{font-size:30px}
  h1{font-size:48px;letter-spacing:-1.4px}
  .lead{font-size:21px}
  .body{font-size:17px}
  .spec{grid-template-columns:120px 1fr;font-size:12.5px}
}
@media (min-width:1024px){
  .top{padding:24px 80px}
  .hero{padding:96px 80px 112px;background-size:calc((100% - 160px) / 12) 100%;background-position:80px 0}
  .foot{padding:24px 80px}
  .legal{padding:88px 80px 120px}
  .cols{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:24px;align-items:center}
  .copy{grid-column:span 7;gap:28px}
  .lattice{grid-column:8 / span 5;max-width:none}
  h1{font-size:60px;line-height:1.05;letter-spacing:-1.7px}
}

@media (prefers-reduced-motion:reduce){
  *{transition:none!important;animation:none!important}
}
