@font-face { font-family: "Courier Prime"; src: url("/fonts/courier-prime-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("/fonts/courier-prime-700.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }
::selection { background: #3F3F46; color: #F4F4F5; }
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { background: #1A1B1E; color-scheme: dark; overscroll-behavior: none; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  transition: background-color 1.2s ease;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #1A1B1E;
  color: #E4E4E7;
  font-family: "Courier New", "Courier Prime", Courier, monospace;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-align: center;
}
/* the thin "!" leaves the monospace line looking left heavy; nudge it to the optical center */
h1 { font-size: 4rem; font-weight: 700; padding-top: 24vh; padding-left: 0.35ch; }
p { color: #A1A1AA; font-weight: 400; font-size: 1.5rem; }
footer { margin-top: auto; padding: 48px 0 32px; }
.li, .mail { color: #A1A1AA; font-weight: 400; font-size: 14px; letter-spacing: 0.02em; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em; text-decoration-color: transparent; transition: color 300ms ease, text-decoration-color 300ms ease; }
.li:hover, .mail:hover { color: #E4E4E7; text-decoration-color: currentColor; }
.mail { color: inherit; font-size: inherit; letter-spacing: 0; }
a:focus-visible { outline: 2px solid #E4E4E7; outline-offset: 4px; border-radius: 2px; }
main, footer { position: relative; z-index: 1; }
h1, p { transition: color 1.2s ease; }
/* the fog crosses the title but thins over the email line, so the one link never looks disabled */
.shade { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 2;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(24vh + 72px), rgba(0,0,0,0.25) calc(24vh + 100px), rgba(0,0,0,0.25) calc(24vh + 140px), #000 calc(24vh + 200px));
  mask-image: linear-gradient(to bottom, #000 0, #000 calc(24vh + 72px), rgba(0,0,0,0.25) calc(24vh + 100px), rgba(0,0,0,0.25) calc(24vh + 140px), #000 calc(24vh + 200px)); }
.shade::before, .shade::after { content: ""; position: absolute; top: 0; left: 0; height: 100%; background-repeat: repeat-x; will-change: transform; }
.shade::before { width: calc(100vw + 160vh); background-image: url("/fog/far.png"); background-size: auto 100%; opacity: 0.55; animation: drift-far 60s linear infinite; animation-delay: var(--fog-far, 0s); }
.shade::after { width: calc(100vw + 120vh); background-image: url("/fog/near.png"); background-size: auto 100%; opacity: 0.3; animation: drift-near 34s linear infinite; animation-delay: var(--fog-near, 0s); }
@keyframes drift-far { from { transform: translateX(-160vh); } to { transform: translateX(0); } }
@keyframes drift-near { from { transform: translateX(-120vh); } to { transform: translateX(0); } }
/* night: a quiet dark gradient, deepest at the top */
body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(to bottom, #0E0F13 0%, #1A1B1E 55%, #24252D 100%); }
/* morning: a sky that fades in under everything, white fog, dark ink */
.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; background: radial-gradient(circle at 86% 6%, rgba(255, 250, 228, 0.25), rgba(255, 250, 228, 0) 32%), linear-gradient(to bottom, #5C8FC4 0%, #86AED6 40%, #C3D8EC 75%, #E8F0F7 100%); }
html { transition: background-color 1.2s ease; }
.shade::before, .shade::after { transition: opacity 1.2s ease, filter 1.2s ease; }
[data-sky="morning"] { background: #86AED6; color-scheme: light; }
[data-sky="morning"] body { background: transparent; color: #0B1A2E; }
[data-sky="morning"] .sky { opacity: 1; }
[data-sky="morning"] p, [data-sky="morning"] .li { color: #13263D; }
[data-sky="morning"] .li:hover, [data-sky="morning"] .mail:hover { color: #0B1A2E; }
[data-sky="morning"] a:focus-visible, [data-sky="morning"] .sky-toggle:focus-visible { outline-color: #0B1A2E; }
[data-sky="morning"] ::selection { background: #0B1A2E; color: #F4F4F5; }
[data-sky="morning"] .shade::before { filter: invert(1); opacity: 0.24; }
[data-sky="morning"] .shade::after { filter: invert(1); opacity: 0.16; }
.sky-toggle { position: fixed; top: 16px; right: 16px; z-index: 3; width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; border-radius: 4px; color: #A1A1AA; cursor: pointer; transition: color 300ms ease; }
.sky-toggle:hover { color: #E4E4E7; }
.sky-toggle:focus-visible { outline: 2px solid #E4E4E7; outline-offset: 2px; }
[data-sky="morning"] .sky-toggle { color: #0B1A2E; }
[data-sky="morning"] .sky-toggle:hover { color: #13263D; }
.sky-toggle .i-moon, [data-sky="morning"] .sky-toggle .i-sun { display: none; }
[data-sky="morning"] .sky-toggle .i-moon { display: block; }
@media (prefers-reduced-motion: reduce) { .li, .mail, .sky, html, h1, p, .sky-toggle { transition: none; } .shade { display: none; } }
  
