/* =============================================================================
   Superintelligent Labs Design System — Base & Type  v2
   ============================================================================= */

*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* Text Size: --text-scale is set by text-size.js from the iPhone's Settings › Text Size (1 at the default).
   Every size is in rem, so the whole page scales with the root. */
html { font-size: calc(100% * var(--text-scale, 1)); -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; }
body {
  margin: 0; min-height: 100vh;
  background: var(--color-canvas); color: var(--color-text-body);
  font-family: var(--font-sans); font-size: var(--text-body); line-height: var(--leading-body);
  font-feature-settings: "kern", "liga";
  overflow-wrap: break-word;   /* a word longer than its line (a big title at a large Text Size) breaks instead of running off the screen */
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { -webkit-user-select: none; user-select: none; }
img, svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--color-focus-ring); outline-offset: 2px; }

/* =============================================================================
   Text styles — every text node uses exactly one.

   Role        Class          Face   Size  Weight  Use
   ----------  -------------  -----  ----  ------  -----------------------------------
   Display     .t-display     Serif  38–48 400     Event name. One per page.
   Title 1     .t-title-1     Serif  26    400     Panel titles, big amounts
   Title 2     .t-title-2     Serif  22    400     Card headings, confirmations, sheets
   Title 3     .t-title-3     Sans   17    600     Group and section titles
   Headline    .t-headline    Sans   16    600     Questions, row titles, values
   Body        .t-body        Sans   16    400     Paragraphs
   Callout     .t-callout     Sans   15    400     Secondary sentences, table cells
   Footnote    .t-footnote    Sans   13    400     Hints, meta, timestamps
   Overline    .t-overline    Sans   12    600     CAPS labels above a value or title
   Sizes are px at the default text size (tokens.css › --text-*). Nothing is smaller than
   11 (--size-11, Apple's Caption 2), and every size is in rem so it follows Text Size.
   ============================================================================= */
.t-display {
  font-family: var(--font-serif); font-size: var(--text-display); font-weight: var(--weight-regular);
  font-optical-sizing: auto; line-height: var(--leading-display); letter-spacing: var(--tracking-display);
  color: var(--theme-accent-ink);
}
.t-title-1 {
  font-family: var(--font-serif); font-size: var(--text-title-1); font-weight: var(--weight-regular);
  line-height: var(--leading-heading); letter-spacing: var(--tracking-heading); color: var(--color-text);
}
.t-title-2 {
  font-family: var(--font-serif); font-size: var(--text-title-2); font-weight: var(--weight-regular);
  line-height: var(--leading-heading); letter-spacing: var(--tracking-heading); color: var(--color-text);
}
.t-title-3  { font-size: var(--text-title-3); font-weight: var(--weight-semibold); line-height: var(--leading-heading); color: var(--color-text); }
.t-headline { font-size: var(--text-headline); font-weight: var(--weight-semibold); line-height: 1.35; color: var(--color-text); }
.t-body     { font-size: var(--text-body); line-height: var(--leading-body); color: var(--color-text-body); }
.t-callout  { font-size: var(--text-callout); line-height: var(--leading-body); color: var(--color-text-body); }
.t-footnote { font-size: var(--text-footnote); line-height: 1.45; color: var(--color-text-muted); }
.t-overline {
  font-size: var(--text-overline); font-weight: var(--weight-semibold); line-height: 1.3;
  letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--color-text-muted);
}
.t-overline.is-accent { color: var(--theme-accent-text, var(--theme-accent)); }
.t-muted   { color: var(--color-text-muted); }
.t-numeric { font-variant-numeric: lining-nums tabular-nums; }

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

/* Page-to-page navigation fades instead of flashing (where the browser supports it). */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
