/* Base: font, reset, typography. Components live in their own files. */

@font-face {
  font-family: "Inter";
  src: url("/assets/inter/InterVariable-884c49a1.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/inter/InterVariable-Italic-0aa7a4b3.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

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

html {
  font-family: var(--font-sans);
  font-size: 16px;
  font-feature-settings: "cv11" 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text);
  font-size: var(--text-base);
  line-height: var(--leading-base);
}

/* Turbo's stream subscription element carries no content; keep it out of flex and grid gaps. */
turbo-cable-stream-source { display: none; }

h1, h2, h3, h4, p, ul, ol, dl, figure { margin: 0; }

h1 { font-size: var(--text-lg); line-height: var(--leading-lg); font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: var(--text-md); line-height: var(--leading-md); font-weight: 600; }
h3 { font-size: var(--text-base); line-height: var(--leading-base); font-weight: 600; }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-sm); }

small, .text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-danger { color: var(--danger); }
.numeric, table, time { font-variant-numeric: tabular-nums; }

.icon { width: 1em; height: 1em; flex: none; vertical-align: -0.125em; stroke-width: 1.75; }

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

@media print {
  body { background: #fff; color: #000; }
  .sidebar, .topbar { display: none; }
}
