/* Plain HTML elements: page, text, links, and form fields. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper);
  line-height: 1.45; -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: 0.6; }
a { color: var(--accent); text-underline-offset: 2px; }
h1 { font-size: 1.55rem; line-height: 1.2; margin: 0 0 var(--s2); letter-spacing: -0.01em; }
h2 { font-size: 1.05rem; margin: 0 0 var(--s2); }
h3 { font-size: 1rem; margin: 0 0 var(--s2); }
p { margin: 0 0 var(--s3); }
img { max-width: 100%; }
svg { flex-shrink: 0; }

label { display: block; font-size: var(--text-sm); font-weight: 600; margin: var(--s3) 0 6px; color: var(--ink-soft); }
input, select, textarea {
  width: 100%; border: 1px solid var(--line-strong); background: var(--raised); border-radius: var(--r-sm);
  padding: 10px 12px; min-height: var(--tap);
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 0.8; }
textarea { min-height: 180px; resize: vertical; line-height: 1.5; }
input[type="date"] { min-width: 0; }
input[type="checkbox"], input[type="radio"] {
  width: auto; min-height: 0; padding: 0;
}
input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }

:focus-visible { outline: none; box-shadow: var(--focus); }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--accent); }

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

.hidden { display: none; }

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