:root {
  color-scheme: dark;
  --bg: #05070b;
  --ink: #fff;
  --muted: #c3d0e1;
  --blue: #78b6ff;
  --orange: #ff9c47;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; isolation: isolate; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
#field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; background: var(--bg); }
.page { max-width: 1160px; margin: auto; padding: 56px; min-height: 100svh; display: flex; align-items: center; }
main { width: 100%; }
h1 { margin: 0; font-size: clamp(80px, 9vw, 126px); font-weight: 900; letter-spacing: -.075em; line-height: .94; text-shadow: 0 2px 25px #000; }
h1 em { font-style: normal; }

/* Navigation drawer */
.menu-toggle { position: fixed; top: 28px; right: 32px; z-index: 2; border: 1px solid #64758c; background: var(--bg); color: var(--ink); padding: 12px 16px; font: 13px monospace; display: flex; align-items: center; gap: 24px; }
.menu-toggle span { color: var(--orange); font-size: 20px; }
.menu-toggle:hover, .drawer-close:hover { border-color: var(--orange); }
.drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(440px, 100%); height: 100%; max-height: 100%; max-width: 100%; padding: 28px; border: 0; border-left: 1px solid #405575; background: var(--bg); color: var(--ink); overflow-y: auto; }
.drawer[open] { animation: drawer-in .22s ease-out; }
.drawer::backdrop { background: rgb(0 0 0 / 35%); }
.drawer-open { overflow: hidden; }
.drawer-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 32px; }
.drawer-header h2 { margin: 0; font: 18px monospace; }
.drawer-close { padding: 10px 12px; border: 1px solid #64758c; color: var(--ink); background: transparent; font: 12px monospace; }
.drawer-close span { color: var(--orange); margin-left: 16px; font-size: 18px; }
.drawer-group + .drawer-group { margin-top: 32px; }
.drawer-group h3 { margin: 0 0 12px; font: 11px monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.link { display: flex; align-items: center; gap: 16px; text-decoration: none; padding: 18px 10px; border-bottom: 1px solid #405575; transition: background .18s; }
.link:hover { background: #092b56; }
.link-copy { min-width: 0; }
.link strong { display: block; font: bold 15px monospace; }
.link small { display: block; color: var(--muted); font-size: 12px; margin-top: 7px; overflow-wrap: anywhere; }
.arrow { margin-left: auto; color: var(--orange); font-size: 23px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
@media (max-width: 760px) {
  .page { padding: 24px; }
  h1 { font-size: 84px; }
  .menu-toggle { top: 20px; right: 24px; }
  .drawer { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .link { transition: none; }
  .drawer[open] { animation: none; }
}

.background-change { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; margin-top: 32px; padding: 14px 12px; border: 1px solid #64758c; background: transparent; color: var(--ink); font: 13px monospace; }
.background-change span { color: var(--orange); font-size: 21px; }
.background-change:hover { background: #092b56; border-color: var(--orange); }

#field.pixelated { image-rendering: pixelated; image-rendering: crisp-edges; }
