@font-face {
  font-family: Departure;
  src: url('./assets/departure-mono.woff2') format('woff2');
  font-display: swap;
}
:root { color-scheme: dark; --cyan: #00e2ef; --ink: #020d19; }
* { box-sizing: border-box; }
html { min-width: 240px; background: var(--ink); }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  color: #f5f6f6;
  font-family: Departure, 'Courier New', monospace;
  -webkit-font-smoothing: none;
  position: relative;
  isolation: isolate;
}
::selection { color: var(--ink); background: var(--cyan); }
.scenery, .scrim { position: fixed; inset: 0; z-index: -2; pointer-events: none; }
.scenery picture { display: block; width: 100%; height: 100%; }
.scenery img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.scrim {
  z-index: -1;
  background: linear-gradient(120deg, rgb(1 9 18 / .24), transparent 63%);
}
.hud { height: clamp(36px, 4vw, 68px); position: absolute; inset: env(safe-area-inset-top, 0px) 0 auto; color: var(--cyan); }
.brand { position: absolute; top: 10px; left: max(3.1vw, env(safe-area-inset-left)); font-size: clamp(16px, 1.8vw, 30px); line-height: 1; }
.hud-line { position: absolute; bottom: 0; left: 0; overflow: visible; }
.hud-line path { fill: none; stroke: var(--cyan); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.window-glyphs { position: absolute; right: max(2.7vw, env(safe-area-inset-right)); top: 11px; display: flex; align-items: center; gap: clamp(18px, 2.2vw, 38px); height: clamp(12px, 1.2vw, 20px); opacity: .8; }
.window-glyphs i { width: clamp(10px, 1.15vw, 20px); height: 100%; position: relative; }
.minimize::before { content: ''; position: absolute; inset: 48% 0 auto; height: 2px; background: currentColor; }
.maximize { border: 2px solid; }
.close::before, .close::after { content: ''; width: 130%; height: 2px; background: currentColor; position: absolute; top: 50%; left: -15%; transform: rotate(45deg); }
.close::after { transform: rotate(-45deg); }
main { padding: max(17vh, 90px) max(7.4vw, env(safe-area-inset-left)) max(40px, env(safe-area-inset-bottom)); width: 100%; }
.identity { padding-left: 3.05vw; position: relative; }
.identity::before { content: ''; width: clamp(4px, .55vw, 10px); height: 1em; background: var(--cyan); position: absolute; top: .08em; left: 0; font-size: clamp(40px, 5.2vw, 100px); }
h1 { margin: 0; font-size: clamp(40px, 5.2vw, 100px); line-height: 1.05; font-weight: 400; letter-spacing: .012em; text-shadow: 2px 2px 0 #020d19; }
.subtitle { margin: .22em 0 0; color: var(--cyan); font-size: clamp(22px, 2.65vw, 50px); line-height: 1.2; letter-spacing: .02em; }
.terminal { list-style: none; margin: 2.45vw 0 0 3.05vw; padding: 0; font-size: clamp(14px, 1.65vw, 28px); line-height: 1.65; letter-spacing: .012em; text-shadow: 1px 1px 0 #020d19, 0 0 8px #020d19; }
.terminal li { display: flex; align-items: baseline; gap: .85em; }
.terminal li > :first-child { color: var(--cyan); flex: 0 0 auto; }
.cursor { display: block; width: 1.2em; height: .18em; background: var(--cyan); margin: 1.15em 0 0 3.05vw; font-size: clamp(16px, 1.65vw, 28px); }
@media (max-aspect-ratio: 1/1) {
  .scenery img { object-position: center bottom; }
  .scrim { background: linear-gradient(180deg, rgb(1 9 18 / .2), transparent 44%); }
  .hud { height: clamp(34px, 8.5vw, 64px); }
  .hud-line { height: 10px; }
  .brand { left: max(5vw, env(safe-area-inset-left)); top: 10px; font-size: clamp(16px, 4vw, 30px); }
  .window-glyphs { right: max(5vw, env(safe-area-inset-right)); gap: 5vw; top: 12px; height: clamp(11px, 2.7vw, 21px); }
  .window-glyphs i { width: clamp(11px, 2.7vw, 21px); }
  main { padding: max(12vh, 82px) max(8.8vw, env(safe-area-inset-left)) max(40px, env(safe-area-inset-bottom)); }
  .identity { padding-left: 5.7vw; }
  h1, .identity::before { font-size: clamp(23px, 9.5vw, 80px); }
  .identity::before { width: 1.35vw; }
  .subtitle { font-size: clamp(18px, 5.3vw, 43px); margin-top: .3em; }
  .terminal { margin: 4.9vw 0 0 2.7vw; font-size: clamp(12px, 3.45vw, 28px); line-height: 1.7; }
  .terminal li { gap: .8em; }
  .cursor { margin: 1.3em 0 0 2.7vw; font-size: clamp(16px, 3.8vw, 30px); }
}
@media (max-height: 470px) and (min-aspect-ratio: 1000001/1000000) {
  main { padding-top: 64px; }
  h1, .identity::before { font-size: clamp(28px, 5vw, 52px); }
  .subtitle { font-size: 22px; }
  .terminal { margin-top: 18px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
