/* Swiss editorial study: a masthead, a numbered index, and a readable grid. */
@font-face{font-family:'Geist';src:url('/assets/fonts/geist-bold.woff2') format('woff2');font-weight:700;font-display:swap}
:root{--paper:#f4eddf;--ink:#29101f;--muted:#735647;--line:#29101f40;--burgundy:#4b2535;--burgundy-soft:#e9ddc7;--link:#4b2535}
:root[data-theme=dark]{--paper:#29101f;--ink:#f4eddf;--muted:#c7ad98;--line:#f4eddf40;--burgundy:#c5a268;--burgundy-soft:#351826;--link:#dec18b}
html{scroll-padding-top:30px}body{padding:0;font:16px/1.55 'Geist',sans-serif}.site{width:calc(100% - 80px);max-width:1440px;margin:72px auto 0}.security-banner{margin:0;padding:10px 20px;border:1px solid var(--line);background:transparent;color:var(--muted);font-size:10px;text-align:left;justify-content:flex-start}.security-banner::before,.security-banner::after{display:none}
header{position:relative;padding:26px 0 22px;border-bottom:3px solid var(--ink)}.wordmark{display:block;font:700 clamp(65px,13.8vw,200px)/.88 'Geist',sans-serif;letter-spacing:-.075em;color:var(--ink);text-decoration:none}.wordmark span{display:none}header p{margin-top:25px;font:11px/1.5 'Geist Mono',monospace;letter-spacing:.02em}
.layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:60px;padding:45px 0 64px;align-items:start}.layout>aside{position:sticky;top:24px;bottom:auto;left:auto;width:auto;max-height:calc(100vh - 48px);overflow:auto;border:0;padding:0 20px 0 0;display:block;margin:0;font-size:12px}.section-nav{counter-reset:index;margin-bottom:32px}.section-nav h2{font:10px 'Geist Mono',monospace;text-transform:uppercase;letter-spacing:.15em;margin-bottom:16px}.section-nav a{counter-increment:index;display:flex;gap:20px;margin:0;padding:7px 0;border-bottom:1px solid var(--line);text-decoration:none;font-size:13px}.section-nav a::before{content:counter(index,decimal-leading-zero);font:10px/2 'Geist Mono',monospace;color:var(--muted)}.section-nav a[aria-current=location]{font-weight:700}.sidebar-widget{margin-top:24px;padding-top:14px}.sidebar-widget h2{font:10px 'Geist Mono',monospace;text-transform:uppercase;letter-spacing:.08em}main{counter-reset:section;min-width:0}main>section:first-child{padding-bottom:35px}h1{font:400 clamp(44px,5.5vw,80px)/1.04 'Geist',sans-serif;letter-spacing:-.06em;max-width:700px;margin:0 0 28px}main>section:first-child>p{font-size:clamp(18px,2vw,24px);line-height:1.5;max-width:680px;margin:0}.about-section{counter-increment:section;display:grid;grid-template-columns:170px minmax(0,1fr);column-gap:30px;border-top:1px solid var(--ink);margin:0;padding:28px 0 36px}.about-section>h2{grid-column:1;font:12px/1.5 'Geist Mono',monospace;color:var(--muted);margin:0}.about-section>h2::before{content:counter(section,decimal-leading-zero);display:block;color:var(--burgundy);font:400 32px/1 'Geist',sans-serif;margin-bottom:18px}.about-section>:not(h2){grid-column:2;min-width:0}.about-section p{margin-bottom:15px}.project-item h3{font:400 34px/1.2 'Geist',sans-serif;letter-spacing:-1px;margin-bottom:14px}.project-item p{font-size:17px}.language-list{margin:0;gap:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.language-list li{border:0;border-bottom:1px solid var(--line);border-radius:0;background:none;color:var(--ink);padding:8px 0;font:16px 'Geist',sans-serif}.game-list{columns:2;font-size:14px;column-gap:20px}.game-list li{margin-bottom:9px}.setup-machine h3{font-size:18px}.setup-specs{grid-template-columns:80px minmax(0,1fr);font-size:13px}.setup-specs dt{font:10px/2 'Geist Mono',monospace;text-transform:uppercase}.setup-machine+.setup-machine{margin-top:20px}.contact-list{font-size:13px}.pgp-key{font-size:10px;border-radius:0;margin-top:16px}.pgp-key code{font-family:'Geist Mono',monospace}footer{padding:20px 0;border-top:3px solid var(--ink);font:10px/1.6 'Geist Mono',monospace}.theme-switch{position:absolute;top:20px;right:40px;border:1px solid var(--line);border-radius:0;background:transparent;box-shadow:none;font-size:10px}.tiny-button,.sparkle-switch{border-radius:0;box-shadow:none}.visitor-digits{box-shadow:none;background:transparent}.buttons-section{max-width:1440px;margin:0 auto;padding:24px 40px 28px;border-top:0}.right-sidebar{position:static;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:30px;width:calc(100% - 80px);max-width:1440px;margin:0 auto 50px;padding:25px 0;border:0;border-top:1px solid var(--ink);overflow:visible;font-size:12px}.right-sidebar .greeble+.greeble{margin:0;padding:0;border:0}.greeble h2{font:10px 'Geist Mono',monospace;text-transform:uppercase;letter-spacing:.06em}.paint-chips{flex-wrap:wrap}.paint-chips span{width:24px;height:36px}.custom-button:hover{box-shadow:none}#pocket-note{border-radius:0}a:hover{filter:none;text-decoration-thickness:2px}.personal-status #personal-status-text{border-color:var(--gold)}
@media(min-width:1600px){.theme-switch{right:calc((100vw - 1440px)/2)}}
@media(max-width:1000px){.site{width:calc(100% - 48px)}.layout{grid-template-columns:170px minmax(0,1fr);gap:30px}.about-section{grid-template-columns:1fr}.about-section>h2{margin-bottom:20px;display:flex;align-items:baseline;gap:15px}.about-section>h2::before{font-size:22px;margin:0}.about-section>:not(h2){grid-column:1}.right-sidebar{width:calc(100% - 48px);grid-template-columns:repeat(2,minmax(0,1fr))}.theme-switch{right:24px}header::after{display:none}}
@media(max-width:650px){.site{width:calc(100% - 32px);margin-top:62px}.layout{display:block;padding-top:25px}.layout>aside{position:static;max-height:none;overflow:visible;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;padding:0 0 30px}.section-nav{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;column-gap:25px;margin:0}.section-nav h2{grid-column:1/-1}.sidebar-widget{margin:0}.layout>aside>section{min-width:0}.wordmark{font-size:clamp(60px,16vw,100px)}header p{font-size:10px}.security-banner{font-size:9px;padding:8px 10px}h1{font-size:48px;margin-bottom:20px}main>section:first-child{border-top:3px solid var(--ink);padding-top:30px}.about-section{padding:24px 0}.right-sidebar{width:calc(100% - 32px);gap:25px 20px}.buttons-section{padding:16px}.theme-switch{right:16px}.game-list{columns:1}footer{gap:20px}.contact-list{font-size:12px}}

/* Serif display typography throughout the editorial hierarchy. */
.wordmark, h1, h2, h3, h4, h5, h6,
.section-nav h2, .sidebar-widget h2, .about-section > h2,
.project-item h3, .setup-machine h3, .greeble h2 {
  font-family: 'Geist Serif', Georgia, serif;
  font-weight: 400;
}
.wordmark { letter-spacing: -.045em; width:fit-content; max-width:100%; line-height:.78; margin-block:.05em; }
h1 { letter-spacing: -.035em; }

.link-back { display:flex; align-items:center; flex-wrap:wrap; gap:10px 16px; padding-bottom:14px; margin-bottom:8px; border-bottom:1px solid var(--line); }
.link-back p, .link-back [role=status] { margin:0; font-size:13px; }
#copy-lumi { display:block; padding:0; border:0; background:transparent; cursor:copy; }
#copy-lumi img { display:block; image-rendering:pixelated; }
#copy-lumi:focus-visible { outline:2px solid var(--link); outline-offset:4px; }
#lumi-embed { width:100%; color:var(--ink); background:var(--paper); }

.garden-overlay { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }
@media print { .garden-overlay { display: none; } }

.page-controls { position:absolute; top:20px; right:max(40px, calc((100vw - 1440px)/2)); display:flex; gap:8px; z-index:40; }
.page-controls .theme-switch { position:static; }
.page-controls [hidden] { display:none; }
@media(max-width:1000px) { .page-controls { right:24px; } }
@media(max-width:650px) { .page-controls { right:16px; } }

.cheat-code-hint{margin:10px 0 0;color:var(--muted);font:10px/1.6 'Geist Mono',monospace;letter-spacing:.02em}

.keycap-whisper{position:fixed;z-index:80;width:max-content;max-width:calc(100vw - 24px);white-space:nowrap;padding:11px 14px;border:1px solid #c5a26866;border-radius:12px;background:var(--paper);color:var(--ink);font:12px/1.6 'Geist Mono',monospace;pointer-events:none}
.keycap-whisper::after{content:'';position:absolute;left:calc(var(--tip-x,50%) - 5px);bottom:-6px;width:10px;height:10px;transform:rotate(45deg);background:var(--paper);border-right:1px solid #c5a26866;border-bottom:1px solid #c5a26866}
.keycap-whisper[data-side=below]::after{bottom:auto;top:-6px;transform:rotate(225deg)}
.keycap-whisper kbd{color:var(--burgundy);font:inherit;font-weight:700;white-space:nowrap}
.textmode-active .keycap-whisper{border-color:#c5a26866!important}

.keycap-feedback{display:inline-block;width:1em;margin-left:5px;color:#9ac8a7;font-weight:700}
.keycap-whisper kbd{display:inline-block;padding:0 3px;border-radius:3px;transition:color .055s,background-color .055s}
.keycap-whisper[data-feedback=flash] kbd{color:#5a3e24;background:#ead095}
.keycap-whisper[data-feedback=correct] kbd{color:#9ac8a7;background:#203c30}
@media(prefers-reduced-motion:reduce){.keycap-whisper kbd{transition:none}}

.cheat-code-toggle{font:inherit;color:inherit;border:0;background:none;padding:0;text-align:left;cursor:pointer;min-height:44px}
#touch-code-pad:not([hidden]){display:grid;grid-template-columns:repeat(3,minmax(44px,1fr));gap:8px;max-width:240px;margin-top:8px}
#touch-code-pad button{min-height:44px;border:1px solid var(--line);background:var(--note-paper);color:var(--ink);font:16px 'Geist Mono',monospace;touch-action:manipulation}
#touch-code-pad button:active{background:var(--button-hover)}
@media(pointer:coarse){.theme-switch,.sparkle-switch,.tiny-button{min-height:44px}.section-nav a{min-height:44px;align-items:center}}

html:not([data-theme=dark]) .keycap-feedback{color:#327049}

html:not([data-theme=dark]) :is(.theme-switch,.tiny-button,.sparkle-switch,#touch-code-pad button){border:1px solid #967657;background:#f8f2e7;color:#4b2535}
html:not([data-theme=dark]) :is(.theme-switch,.tiny-button,.sparkle-switch,#touch-code-pad button):is(:hover,:focus-visible){background:#e9ddc7;outline-color:#81465e}

.site-footer{position:relative;z-index:1;background:transparent;width:calc(100% - 80px);max-width:1440px;margin:0 auto;padding:20px 0 32px}
@media(max-width:1000px){.site-footer{width:calc(100% - 48px)}}
@media(max-width:650px){.site-footer{width:calc(100% - 32px);flex-wrap:wrap;gap:8px 20px}}

#sound-reminder{position:absolute;top:calc(100% + 9px);right:0;bottom:auto;left:auto;z-index:120;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:14px;align-items:center;width:min(410px,calc(100vw - 32px));height:auto;min-height:0;max-height:none;padding:10px 12px;margin:0;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:6px;box-shadow:0 5px 18px #16091320;font:11px/1.4 'Geist',sans-serif;overflow:visible}
#sound-reminder[hidden]{display:none}
#sound-reminder p{grid-column:1;margin:0;font-size:12px}#sound-reminder>span{grid-column:1;color:var(--muted);font-size:10px}
#sound-reminder>div{grid-column:2;grid-row:1/3;display:flex;align-items:center;gap:5px;margin:0}#sound-reminder button{font:11px 'Geist',sans-serif;min-height:36px;white-space:nowrap;cursor:pointer;border:0;border-radius:4px;padding:6px 8px;background:var(--burgundy-soft);color:var(--link)}
#sound-reminder .sound-reminder-dismiss{background:none;color:var(--muted)}#sound-reminder button:focus-visible{outline:2px solid var(--link);outline-offset:3px}
@media(max-width:420px){#sound-reminder{column-gap:8px;padding:9px 10px}#sound-reminder button{font-size:10px;padding-inline:6px}}
html.mobile-notice-open{overflow:hidden}
#mobile-notice{width:min(340px,calc(100vw - 40px));max-height:calc(100dvh - 48px);padding:28px 25px;border:0;border-radius:0;background:transparent;color:var(--ink);box-shadow:none;text-align:center}
#mobile-notice::backdrop{background:#1c111c26;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px)}
#mobile-notice p{margin:0 0 22px;font:400 24px/1.3 'Geist Serif',Georgia,serif}
#mobile-notice button{min-height:44px;padding:10px 20px;border:1px solid var(--line);border-radius:0;background:color-mix(in srgb,var(--paper) 60%,transparent);color:var(--link);font:13px 'Geist',sans-serif;cursor:pointer}
#mobile-notice button:focus-visible{outline:2px solid var(--link);outline-offset:4px}
