/* Base styles.  The first three rules are the design system's tokens/base.css; the rest fill its known gaps
   (focus ring, dashed border) and the app's resets.  Styles live here and in the other files in this folder, never
   in style attributes: the Content Security Policy doesn't allow inline styles. */
body { margin: 0; font-family: var(--font-body); background: var(--surface-page); color: var(--text-body); }
a { color: var(--text-link); }
a:hover { color: var(--text-link-hover); }

:root {
  /* Known gaps in the design system, named here so every screen uses the same values. */
  --border-dashed: var(--paper-400);
  --focus-ring: 0 0 0 3px var(--gold-400);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { font-size: var(--type-body); line-height: var(--leading-body); min-width: 320px; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; }
.icon { flex-shrink: 0; }

:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }

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

.display { font-family: var(--font-display); font-weight: var(--weight-display); }
.muted { color: var(--text-muted); }
.stack { display: flex; flex-direction: column; }
.stack-8 { display: flex; flex-direction: column; gap: var(--space-8); }
.stack-12 { display: flex; flex-direction: column; gap: var(--space-12); }
.stack-16 { display: flex; flex-direction: column; gap: var(--space-16); }
.stack-20 { display: flex; flex-direction: column; gap: var(--space-20); }
.stack-24 { display: flex; flex-direction: column; gap: var(--space-24); }
.row { display: flex; align-items: center; gap: var(--space-12); }
.grow { flex-grow: 1; min-width: 0; }
