:root {
  --sky-sunny: #fff; --sky-cloudy: #fafafa; --sky-rainy: #e5e5e5;
  --sky-snowy: #f2f2f2; --sky-night: #111; --ink-day: #222; --ink-night: #f5f5f5;
  --space-1: 8px; --space-2: 16px; --space-3: 24px; --space-4: 40px;
  --background: var(--sky-sunny); --ink: var(--ink-day); --content-max: 560px;
  color-scheme: light; font-family: 'DM Sans', sans-serif; color: var(--ink);
  background: var(--background); -webkit-font-smoothing: antialiased;
}
:root[data-sky="cloudy"] { --background: var(--sky-cloudy); }
:root[data-sky="rainy"] { --background: var(--sky-rainy); }
:root[data-sky="snowy"] { --background: var(--sky-snowy); }
:root[data-sky="night"] { --background: var(--sky-night); --ink: var(--ink-night); color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; min-height: 100svh; background: var(--background); }
a { color: inherit; }
img { display: block; }
.intro { position: relative; z-index: 1; width: calc(100% - 32px); max-width: var(--content-max); margin: 0 auto; padding: 110px 0 64px; }
.avatar-slot { position: relative; height: 56px; width: 64px; margin-bottom: 24px; }
.avatar { width: 52.5px; height: 56px; image-rendering: pixelated; }
.avatar.hoodie { position: absolute; width: 87.5px; height: 87.5px; left: -16.4px; top: -16.6px; }
.name-line { display: flex; gap: 8px; align-items: baseline; margin-bottom: 24px; }
h1 { margin: 0; font-family: 'Pixelify Sans', monospace; font-size: 28px; font-weight: 500; line-height: 32px; }
.pronouns { font-size: 10px; line-height: 13px; font-weight: 300; }
.bio { font-size: 14px; line-height: 24px; font-weight: 400; }
.bio p { margin: 0 0 24px; }
.bio p:last-child { margin-bottom: 20px; }
.socials { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.pixel-link { text-decoration: none; min-height: 44px; display: flex; align-items: center; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; }
.pixel-link.email { width: 88px; }.pixel-link.linkedin { width: 110px; }.pixel-link.x { width: 60px; }
.button-face { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: center; gap: 8px; height: 36px; width: 100%; font-family: 'Pixelify Sans', monospace; font-size: 16px; line-height: 20px; background: transparent; translate: 0 0; transition: translate 130ms cubic-bezier(.2,.75,.25,1); }
.button-face::before { content: ''; position: absolute; left: 4px; right: 4px; bottom: -3px; height: 3px; background: var(--ink); transition: height 130ms cubic-bezier(.2,.75,.25,1), bottom 130ms cubic-bezier(.2,.75,.25,1); }
.button-edge { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 1; }
.social-icon { position: relative; width: 16px; height: 16px; z-index: 2; }
.button-face > span { position: relative; z-index: 2; }
.pixel-link:active .button-face { translate: 0 3px; }
.pixel-link:active .button-face::before { height: 0; bottom: 0; }
a:focus-visible { outline: 2px dashed var(--ink); outline-offset: 5px; }
:root[data-sky="night"] .button-edge, :root[data-sky="night"] .social-icon, :root[data-sky="night"] .weather-icon { filter: invert(1); }
.email-control { position: relative; }
.pixel-link:disabled { cursor: default; }
.email-tooltip { position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 5; padding: 9px 12px; background: var(--ink); color: var(--background); font: 14px/18px 'Pixelify Sans', monospace; white-space: nowrap; clip-path: polygon(4px 0, calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px), 0 4px, 4px 4px); }
.email-fallback { position: absolute; z-index: 5; top: calc(100% + 6px); left: 0; width: 238px; max-width: 80vw; border: 2px solid var(--ink); border-radius: 0; padding: 8px; font: 14px/20px 'DM Sans', sans-serif; background: var(--background); color: var(--ink); }
.email-tooltip[hidden], .email-fallback[hidden] { display: none; }
.email-noscript { font-size: 12px; line-height: 20px; }
.email-noscript span { user-select: all; }
.weather-footer { display: flex; align-items: flex-start; flex-wrap: wrap; column-gap: 4px; row-gap: 6px; margin-top: 20px; font-size: 10px; font-weight: 300; line-height: 14px; }
.weather-footer p { margin: 0; flex: 0 1 auto; max-width: calc(100% - 16px); }
.weather-icon { margin-top: 1px; flex: 0 0 12px; }
.weather { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.weather img { position: absolute; image-rendering: pixelated; max-width: none; }
.sun { width: 72px; height: 72px; top: 40px; right: 39px; }
.cloud { animation: cloud-drift var(--cloud-duration, 28s) ease-in-out infinite alternate; translate: 0 0; }
.precipitation { position: absolute; inset: 0; overflow: hidden; }
.moon { width: 56px; height: 64px; top: 38px; right: 39px; }
.stars { position: absolute; inset: 0; background-image: url('assets/stars.png'); background-repeat: repeat; background-size: 375px 812px; }
.banks { position: absolute; height: 60px; bottom: 0; left: 0; right: 0; background: url('assets/snow-banks.png') repeat-x bottom left / 375px 60px; }
@keyframes cloud-drift { from { translate: 0 0; } to { translate: var(--drift, 48px) -4px; } }
.paused *, .paused .precipitation { animation-play-state: paused !important; }
@media (min-width: 700px) {
  .intro { padding-top: clamp(110px, 17vh, 170px); padding-bottom: 100px; }
  h1 { font-size: 32px; line-height: 36px; }
  .bio { font-size: 16px; line-height: 28px; }
  .pronouns { font-size: 13px; line-height: 20px; font-weight: 400; }
  .weather-footer { font-size: 13px; line-height: 20px; font-weight: 400; }
  .weather-icon { width: 14px; height: 14px; flex-basis: 14px; margin-top: 3px; }
  .sun, .moon { right: max(64px, calc((100vw - 880px) / 2)); top: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .pixel-link:active .button-face { translate: none; }
}
