/* ==========================================================================
   VoiceNX mockup — base: reset, document, typography
   ========================================================================== */

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }

/* ---- Typography scale ---- */
.t-display {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 400;
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144, "SOFT" 40;
}
.t-h1 {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 500;
  line-height: var(--lh-tight);
  letter-spacing: -0.015em;
}
.t-h2 {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 500;
  line-height: var(--lh-snug);
  letter-spacing: -0.01em;
}
.t-h3 {
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: var(--lh-snug);
  letter-spacing: -0.01em;
}
.t-lead   { font-size: var(--fs-md); color: var(--ink-2); }
.t-body   { font-size: var(--fs-base); }
.t-small  { font-size: var(--fs-sm); color: var(--ink-3); }
.t-caption{ font-size: var(--fs-xs); color: var(--ink-3); }
.t-eyebrow{
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-deep);
}
.t-serif-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}

/* ---- Color helpers ---- */
.c-ink-2 { color: var(--ink-2); }
.c-ink-3 { color: var(--ink-3); }
.c-teal  { color: var(--teal-deep); }
.c-plum  { color: var(--plum); }

/* ---- Layout helpers ---- */
.stack   { display: flex; flex-direction: column; }
.row     { display: flex; align-items: center; }
.between { justify-content: space-between; }
.wrap    { flex-wrap: wrap; }
.g-1 { gap: var(--s-1); } .g-2 { gap: var(--s-2); } .g-3 { gap: var(--s-3); }
.g-4 { gap: var(--s-4); } .g-6 { gap: var(--s-6); } .g-8 { gap: var(--s-8); }
.grow { flex: 1 1 auto; min-width: 0; }

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

.mt-2 { margin-top: var(--s-2); } .mt-4 { margin-top: var(--s-4); }
.mt-6 { margin-top: var(--s-6); } .mt-8 { margin-top: var(--s-8); }

.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;
}

/* ---- Inline code (used in the foundation page copy) ---- */
code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(17, 25, 54, .06);
  color: var(--ink-2);
}
