@font-face {
  font-family: Azeret;
  src: url("assets/azeret.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root { color-scheme: dark; --ground: #071b1d; --ink: #e1f0e9; --quiet: #a2bfb9; --signal: #eab565; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--ground); }
body {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  background: var(--ground);
  color: var(--ink);
  font: 400 0.8rem/1.6 Azeret, ui-monospace, monospace;
  scrollbar-color: var(--signal) var(--ground);
  -webkit-tap-highlight-color: transparent;
}
::selection { color: var(--ground); background: var(--signal); }
.field, .still-field { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.still-field { color: #608c85; opacity: 0.6; }
header, main, footer { position: relative; z-index: 1; }
header { display: flex; justify-content: flex-end; padding: 2rem 3.5rem 0; min-height: 5rem; }
.controls { display: flex; flex-wrap: wrap; gap: 0.65rem; }
button {
  min-height: 44px;
  padding: 0.7rem 1.05rem;
  border: 1px solid #55716d;
  border-radius: 0;
  background: var(--ground);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  transition: color 160ms ease-out, background-color 160ms ease-out, border-color 160ms ease-out;
}
button:hover { border-color: var(--signal); background: var(--signal); color: var(--ground); }
button:focus-visible { outline: 2px solid var(--signal); outline-offset: 5px; }
main { flex: 1; padding: clamp(2.5rem, 7vh, 6rem) 3.5rem 13rem; pointer-events: none; }
h1 {
  margin: 0;
  font-size: clamp(3.1rem, 14.6vw, 13.5rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.intro { margin: 1.6rem 0 0 0.25rem; font-size: clamp(1.15rem, 2.1vw, 1.9rem); line-height: 1.4; letter-spacing: -0.035em; }
footer { display: flex; justify-content: space-between; align-items: end; gap: 1rem; padding: 1.5rem 3.5rem 2rem; color: var(--quiet); }
footer p { margin: 0; }
.state { color: var(--signal); font-size: 0.7rem; text-align: right; }
@media (max-width: 680px) {
  header { padding: 1.25rem 1.5rem 0; min-height: 5rem; }
  button { padding: 0.65rem 0.8rem; font-size: 0.7rem; }
  main { padding: 4rem 1.5rem 15rem; }
  h1 { font-size: clamp(2.65rem, 14.2vw, 6rem); }
  .intro { margin-top: 1.35rem; font-size: 1.15rem; }
  footer { padding: 1.5rem; align-items: start; font-size: 0.7rem; }
  footer p:first-child { max-width: 17ch; }
  .state { max-width: 12ch; font-size: 0.65rem; }
}
@media (prefers-reduced-motion: reduce) { button { transition: none; } }
