/* ==========================================================================
   Element defaults and layout utilities.
   ========================================================================== */

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

html {
  font-family: var(--font-sans);
  color: var(--color-ink-900);
  background: var(--color-mist);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}

h1, h2, h3, h4, h5 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; }

a { color: var(--color-blue); text-decoration: none; }
a:hover { color: var(--color-blue-700); }

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

input, pre { font-family: inherit; }

pre { margin: 0; }

input[type='range'] {
  accent-color: var(--color-purple);
  width: 100%;
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--color-purple);
  outline-offset: 2px;
}

/* ---- Layout ------------------------------------------------------------ */
.page { padding-top: var(--header-h); }

.shell {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 32px 32px 64px;
}
.shell--narrow { max-width: var(--content-narrow); }

.section { background: var(--color-mist); }
.section--white { background: var(--color-white); border-bottom: 1px solid var(--color-border); }
.section--bordered { border-top: 1px solid var(--color-border); }
.section--mist { background: var(--color-mist); }
.section > .shell { padding-block: 60px; }

.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.pagehead {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.pagehead--stacked { display: block; margin-bottom: 26px; }
.pagehead--center { display: block; text-align: center; margin-bottom: 24px; }

/* ---- Type -------------------------------------------------------------- */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-ink-500);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.h-page {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 6px;
}

.h-section {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

.lede { font-size: 14px; color: var(--color-ink-700); }
.mono { font-family: var(--font-mono); }
.muted { color: var(--color-ink-300); font-size: 11px; }
.accent { color: var(--color-purple); }
.center { text-align: center; }
.right { text-align: right; }
.link { font-size: 13px; font-weight: 600; color: var(--color-blue); }

.stack { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.stack--mono { font-family: var(--font-mono); font-size: 12px; color: var(--color-blue); }

.bullets { display: flex; flex-direction: column; gap: 7px; font-size: 12.5px; line-height: 1.5; }
.bullets li { display: flex; gap: 9px; }
.bullets li::before { content: '▪'; color: var(--color-purple); flex: none; }

.is-hidden { display: none !important; }

.dot {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-pill);
  background: var(--color-ink-100);
  display: inline-block;
  flex: none;
}
.dot--success { background: var(--color-success); }
.dot--pulse { animation: daGlow 1.6s infinite; }

.caret {
  width: 6px;
  height: 13px;
  background: var(--color-purple);
  animation: daBlink 1s infinite;
  display: inline-block;
}
.blink { animation: daBlink 1s infinite; }

.icon { flex: none; }
.icon--accent { color: var(--color-purple); }
.icon--success { color: var(--color-success); }
.icon--muted { color: var(--color-ink-500); }

.error-page { padding-top: 80px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
