/* Reset, typography, kiosk input suppression. */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;              /* a kiosk never scrolls the document */
  background: var(--letterbox);
}

body {
  font-family: var(--label);
  font-size: var(--t-body);
  line-height: 1.52;
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Kiosk input hygiene: no text selection, no callouts, no tap highlight,
   no double-tap zoom. Nobody is copying text off a wall panel. */
body {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--accent-lift);
  outline-offset: 4px;
}

[hidden] { display: none !important; }

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.sign {
  font-family: var(--sign);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.9;
}

.data {
  font-family: var(--data);
  font-size: var(--t-data);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.tick {
  font-family: var(--data);
  font-size: var(--t-tick);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

/* Internal scroll regions only - the page itself is fixed. */
.scroller {
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}
.scroller::-webkit-scrollbar { width: 10px; }
.scroller::-webkit-scrollbar-track { background: transparent; }
.scroller::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 0;
}
.scroller::-webkit-scrollbar-thumb:active { background: var(--accent-lift); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
  .blur-reveal { filter: none !important; opacity: 1 !important; }
  .kenburns { animation: none !important; }
}
