/* Sentinel-AI — reset, type scale, focus, selection, reduced motion.
   System fonts only: no @font-face, no network request, no FOIT. */

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

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

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

ul, ol { list-style: none; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}

h1 { font-size: 28px; }
h2 { font-size: 19px; }
h3 { font-size: 16px; font-weight: 600; }
h4 { font-size: 14px; font-weight: 600; letter-spacing: 0; }

@media (min-width: 900px) {
  h1 { font-size: 32px; }
  h2 { font-size: 21px; }
}

p { max-width: 68ch; }

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 3px;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  margin: 0;
}

button { cursor: pointer; }
button:disabled { cursor: not-allowed; }

svg { display: block; flex: none; }

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

/* Focus: one ring, the same everywhere, on the accent. The pointer path
   keeps the browser's default suppressed; the keyboard path is never hidden. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

::placeholder { color: var(--ink-3); opacity: 1; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

[hidden] { display: none !important; }

/* Numbers: mono, tabular, one column position. */
.num,
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "zero" 0;
  letter-spacing: -0.01em;
}

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

.skip {
  position: fixed;
  top: -100px;
  left: 12px;
  z-index: 60;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r10);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  transition: top var(--t1) var(--ease);
}
.skip:focus { top: 12px; }

.meta {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.muted { color: var(--ink-2); }
.dim { color: var(--ink-3); }

/* Motion: 120 / 180 / 240, and a hard floor for reduced motion. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
