:root { --ink: #181818; --paper: #fff; --muted: #9a9a9a; --grid: #e4e4e4; }
* { box-sizing: border-box; }
body {
  margin: 0; color: var(--ink); background: var(--paper);
  font: 16px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-image: radial-gradient(var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
}
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
header, main, footer { max-width: 960px; margin: 0 auto; padding: 0 24px; }
header { padding-top: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; text-decoration: none; }

/* 1-bit window */
.window { margin-top: 56px; border: 2px solid var(--ink); background: var(--paper); box-shadow: 6px 6px 0 var(--ink); }
.titlebar {
  position: relative; height: 26px; border-bottom: 2px solid var(--ink);
  background: repeating-linear-gradient(var(--ink) 0 2px, var(--paper) 2px 4px);
  background-clip: content-box; padding: 5px 4px;
}
.title { position: absolute; left: 50%; top: 3px; transform: translateX(-50%); background: var(--paper); padding: 0 10px; font-size: 13px; font-weight: 700; line-height: 18px; }
.close { position: absolute; left: 12px; top: 4px; width: 16px; height: 16px; border: 2px solid var(--ink); background: var(--paper); box-shadow: 0 0 0 3px var(--paper); }
canvas { display: block; width: 100%; aspect-ratio: 16 / 9; image-rendering: pixelated; }
.hud { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 12px; border-top: 2px solid var(--ink); font-size: 14px; font-variant-numeric: tabular-nums; }
button {
  font: inherit; font-weight: 700; color: var(--ink); background: var(--paper);
  border: 2px solid var(--ink); padding: 6px 14px; box-shadow: 3px 3px 0 var(--ink); cursor: pointer;
}
button:active { transform: translate(3px, 3px); box-shadow: none; }
.controls:not([hidden]) { display: flex; gap: 8px; }
[data-move] { min-width: 44px; touch-action: none; user-select: none; -webkit-user-select: none; }

h1 { font-size: clamp(44px, 8vw, 96px); line-height: 0.95; font-weight: 700; letter-spacing: -0.045em; margin: 72px 0 16px; max-width: 12ch; }
.sub { font-size: 19px; color: var(--muted); margin: 0; }

footer { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: 120px; padding-bottom: 40px; font-size: 14px; }
address { font-style: normal; color: var(--muted); margin-top: 6px; }

/* privacy page */
.doc { max-width: 640px; }
.doc h1 { font-size: clamp(40px, 6vw, 64px); margin-top: 72px; }
.doc h2 { font-size: 19px; margin: 40px 0 8px; }

@media (prefers-reduced-motion: reduce) { button:active { transform: none; } }
