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

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

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: var(--fs-md);
  line-height: 1.45;
  color: var(--c-on-bg);
  background:
    radial-gradient(120% 60% at 50% 0%, var(--c-bg-2), transparent 70%),
    var(--c-bg);
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
}

.app {
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: 100dvh;
  padding: calc(env(safe-area-inset-top) + var(--sp-3)) var(--sp-4) calc(env(safe-area-inset-bottom) + var(--sp-4));
}

.screen {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.screen h1:focus { outline: none; }

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.card {
  background: var(--c-surface);
  color: var(--c-ink);
  border-radius: var(--radius);
  padding: var(--sp-4);
  box-shadow: var(--shadow-sm);
}

.card__title {
  font-size: var(--fs-md);
  margin-bottom: var(--sp-2);
}

.card__title small { font-weight: 400; color: var(--c-ink-muted); }

.section-title {
  font-size: var(--fs-md);
  color: var(--c-on-bg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: var(--sp-2);
}

.topbar {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: var(--tap);
}

.topbar__title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  line-height: 1.1;
}

.topbar__text { flex: 1; min-width: 0; }

.topbar__meta {
  font-size: var(--fs-sm);
  color: var(--c-on-bg-muted);
}

.tee-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: var(--sp-2);
  vertical-align: -1px;
  border: 1px solid rgba(0, 0, 0, 0.35);
  flex: none;
}
.tee-dot--yellow { background: var(--c-tee-yellow); }
.tee-dot--white { background: var(--c-tee-white); }
.tee-dot--blue { background: var(--c-tee-blue); }

.empty {
  color: var(--c-on-bg-muted);
  text-align: center;
  padding: var(--sp-6) var(--sp-4);
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}
