@font-face{font-family:"Space Grotesk";src:url("./space-grotesk.ttf") format("truetype");font-weight:300 700;font-style:normal;font-display:swap}
@font-face{font-family:Inter;src:url("./inter.ttf") format("truetype");font-weight:400 700;font-style:normal;font-display:swap}

:root{
  --bg:#eee8d8;--surface:#e7dfcb;--raised:#ddd4be;--text:#233029;
  --muted:#596052;--faint:#706f5d;--line:#c3bdac;--accent:#b8432c;
  --accent-ink:#fff4df;--red:#ae3529;--warm:#95673c;--inkblue:#244960;
  --header:#eee8d8ed;--font:"Inter",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --display:"Space Grotesk",var(--font);--ease:cubic-bezier(.22,1,.36,1);color-scheme:light
}
:root[data-theme="dark"]{
  --bg:#1d2828;--surface:#263232;--raised:#32403d;--text:#eee4cf;
  --muted:#b8bfac;--faint:#a1a897;--line:#4a5650;--accent:#ef9875;
  --accent-ink:#202a26;--red:#f29d83;--warm:#ceb288;--inkblue:#aac0c6;--header:#1d2828ed;color-scheme:dark
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:77px}
body{margin:0;background:var(--bg);color:var(--text);font:400 15px/1.7 var(--font)}
body:has(dialog[open]){overflow:hidden}
button,input{font:inherit}
button{color:inherit;border:0;background:none;cursor:pointer}
button,a,input{-webkit-tap-highlight-color:transparent}
button:disabled{opacity:.5;cursor:not-allowed}
a{color:inherit;text-decoration:none}
button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:5px}
::selection{background:var(--accent);color:var(--accent-ink)}
svg{display:block}
p,h1,h2,h3{margin:0}
p{color:var(--muted)}
h1,h2,h3{font-family:var(--display);font-weight:600}
h2{font-size:clamp(40px,4.6vw,64px);letter-spacing:-.055em;line-height:1.04}
.shell{width:calc(100% - 144px);max-width:1272px;margin-inline:auto}
.eyebrow,kbd {font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace}

.eyebrow{font-size:10px;letter-spacing:1.5px;line-height:1.7;color:var(--muted)}

.skip-link{position:fixed;top:-100px;left:20px;padding:12px 20px;background:var(--text);color:var(--bg);z-index:100}
.skip-link:focus{top:12px}

.chapter{min-height:calc(100svh - 77px);padding-block:64px;scroll-margin-top:0}

kbd{font-size:9px;letter-spacing:.5px}

/* Opening spread: printed field, independent cutout, stationary text. */
.hero{display:grid;grid-template-columns:1.04fr 1fr;gap:0;align-items:center;padding-top:48px;padding-bottom:0}

.hero .eyebrow{display:flex;align-items:center;gap:12px;font-size:9px;margin-bottom:26px}

.hero h1{font-size:clamp(66px,7.5vw,108px);font-weight:700;line-height:.96;letter-spacing:-.068em;margin-left:-5px}

.hero-art{position:relative;width:100%;height:540px;isolation:isolate}

.scroll-cue{display:flex;align-items:center;gap:17px}

.section-side{max-width:295px}
.section-side>p {font-size:12px;line-height:1.8;max-width:300px}

.about-copy h2{font-size:clamp(38px,4.1vw,56px)}
.about-copy>p:not(.eyebrow){font-size:13px;line-height:1.9;max-width:575px;margin-top:23px}

.site-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid var(--line);padding-block:23px;font-size:8px;color:var(--faint)}
.site-footer>div{display:flex;align-items:center;gap:14px}

html[data-page="article"] [data-snap-toggle]{display:none}

@keyframes breathe{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
@keyframes orbit{to{transform:rotate(360deg)}}
@media(min-width:1000px) and (min-height:650px){
  html[data-page="home"][data-snap="on"]{scroll-snap-type:y proximity}
  .chapter{scroll-snap-align:start;scroll-snap-stop:normal}
}
@media(min-width:1600px){
  .hero-art{height:610px}.hero h1{font-size:122px}
  .chapter{padding-block:78px}
  .hero{padding-top:55px;padding-bottom:0}
}
@media(max-width:1190px){
  .shell {width:calc(100% - 112px)}
  
  .hero-art{height:460px}.hero h1{font-size:clamp(66px,7.8vw,90px)}
  
  .hero .eyebrow{font-size:8px;letter-spacing:1.1px}
  
  
  
}
@media(max-width:999px){
  .shell {width:calc(100% - 72px)}
  .chapter{min-height:auto;padding-block:65px}.hero{padding-top:45px;padding-bottom:0}
  .hero h1{font-size:clamp(58px,8.7vw,86px)}.hero-art{height:405px}
  
  
  h2{font-size:43px}.section-side{max-width:250px}
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  .about-copy h2{font-size:38px}
  .about-copy>p:not(.eyebrow){font-size:12px}
}
@media(max-width:700px){
  html{scroll-padding-top:65px}.shell {width:calc(100% - 40px)}
  
  
  
  .chapter{padding-block:55px}.hero{grid-template-columns:1fr;padding-top:35px;padding-bottom:0;position:relative}
  .hero .eyebrow{margin-bottom:22px;font-size:7px;letter-spacing:1px;gap:10px}
  .hero h1{font-size:clamp(52px,16.5vw,98px);letter-spacing:-.065em}
  
  
  .hero-art{max-width:470px;width:91%;height:auto;aspect-ratio:1;margin:26px auto 9px}
  
  
  
  
  .scroll-cue{gap:12px}
  
  h2{font-size:40px;letter-spacing:-.055em}
  .section-side{max-width:100%;margin-top:22px}
  .section-side>p {font-size:12px;max-width:350px}
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  .about-copy h2{font-size:39px}.about-copy>p:not(.eyebrow){font-size:12px}
  
  
  
  .site-footer{flex-direction:column;align-items:flex-start;gap:10px;font-size:8px;padding-block:20px}
  .site-footer>div{flex-wrap:wrap;gap:11px}
  
  
  
  
  
  
  
  
  
  
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto!important;scroll-snap-type:none!important}
  *,*:before,*:after{animation:none!important;transition-duration:.01ms!important}
  
}
html[data-motion="off"]{scroll-behavior:auto;scroll-snap-type:none!important}
html[data-motion="off"] *,html[data-motion="off"] *:before,html[data-motion="off"] *:after{animation:none!important;transition-duration:.01ms!important;scroll-behavior:auto!important}

/* Four-page interface: a cover, a short history, a project and a post. */
body { min-height: 100svh; display: flex; flex-direction: column; }
main { flex: 1; }
main:focus { outline: none; }

.site-footer { flex-shrink: 0; padding-block: 17px; font-size: 10px; min-height: 71px; }
.site-footer > div { gap: 22px; }
.site-footer a:hover { color: var(--accent); }

@media(max-width:700px) {
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  .site-footer { flex-direction: row; align-items: center; padding-block: 16px; gap: 10px; font-size: 9px; min-height: 67px; }
  .site-footer > div { gap: 15px; flex-wrap: nowrap; }
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
}
