/* Reset + base — kept intentionally small and readable. */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

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

body {
  min-height: 100dvh;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

button, input, select, textarea { font: inherit; color: inherit; }

button {
  border: 0;
  background: none;
  cursor: pointer;
}

a { color: var(--c-accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: var(--lh-tight); font-weight: var(--fw-bold); }

ul, ol { list-style: none; padding: 0; }

/* Visible, consistent keyboard focus everywhere. */
:focus-visible {
  outline: 2px solid var(--c-focus);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* Skip link — appears on keyboard focus only. */
.skip-link {
  position: fixed;
  top: var(--sp-3);
  left: var(--sp-3);
  transform: translateY(-150%);
  padding: var(--sp-2) var(--sp-4);
  background: var(--c-ink);
  color: #fff;
  border-radius: var(--r-sm);
  z-index: 100;
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus { transform: translateY(0); text-decoration: none; }

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

/* Ensure [hidden] always hides, even on flex/grid elements. */
[hidden] { display: none !important; }
