/* Base: reset, body, screen-reader helpers, focus. */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-stack);
  font-size: var(--type-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

#app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Type styles */
.t-hero {
  font-size: var(--type-hero);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin: 0;
}
.t-title {
  font-size: var(--type-title);
  font-weight: 500;
  margin: 0;
}
.t-body {
  font-size: var(--type-body);
  font-weight: 400;
  margin: 0;
}
.t-meta {
  font-size: var(--type-meta);
  font-weight: 400;
  color: var(--muted);
  margin: 0;
}
.t-kicker {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0;
}
.tnum { font-variant-numeric: tabular-nums; }

/* Screen-reader only (live regions live here) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Visible focus: 2px teal outline on every interactive element */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

input, textarea, select {
  font-family: inherit;
}

::placeholder { color: var(--faint); }
