:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #161616;
  --muted: #525252;
  --rule: #8d8d8d;
  --header-height: 49px;
  --status-height: clamp(144px, 21vh, 184px);
  --app-height: 100dvh;
  --app-width: 100vw;
  --gutter: clamp(24px, 6vw, 96px);
  font-family: "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; }
html { background: var(--ink); }
body {
  display: grid;
  grid-template-rows: var(--header-height) minmax(0, 1fr) var(--status-height);
  width: var(--app-width);
  height: var(--app-height);
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  background: var(--paper);
}
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; border-radius: 0; cursor: pointer; }
a { color: inherit; text-underline-offset: 5px; }
p, h1, h2, h3 { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
[tabindex="-1"]:focus { outline: none; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 8px 16px;
  color: var(--ink);
  background: var(--paper);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.viewport-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--paper);
}
.view-panel {
  position: absolute;
  inset: 0;
  display: none;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  background: var(--paper);
}
.view-panel:target,
body:not(:has(.view-panel:target)) #start { display: grid; }

.hero {
  grid-template-columns: repeat(16, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
  padding: clamp(32px, 6vh, 64px) var(--gutter) clamp(52px, 8vh, 80px);
}

.status-band {
  z-index: 10;
  display: block;
  min-width: 0;
  height: var(--status-height);
  overflow: hidden;
  color: var(--paper);
  background: var(--ink);
  border-top: 1px solid var(--ink);
}
