/* ----------------------------------------------------------------------------
   PuraTrust · base
   Reset, typography, primitives
---------------------------------------------------------------------------- */

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

html {
  font-family: var(--pt-font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background: var(--pt-bg);
  color: var(--pt-ink);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 800px at 75% -10%, rgba(61, 219, 198, 0.08), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(30, 62, 112, 0.5), transparent 55%),
    var(--pt-bg);
  background-attachment: fixed;
  overflow-x: hidden;
}

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

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

input, textarea, select, button {
  font-family: inherit;
}

a {
  color: var(--pt-ink);
  text-decoration-color: rgba(255, 255, 255, 0.28);
  text-underline-offset: 3px;
  transition: text-decoration-color 240ms var(--pt-ease-standard);
}
a:hover { text-decoration-color: var(--pt-ink); }

/* Headings — Inter at -0.025em tracking, weights per modular scale ------- */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--pt-font-sans);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--pt-ink);
}

h1 { font-size: clamp(2.25rem, 4.5vw + 1rem, var(--pt-step-6)); line-height: 1.04; font-weight: 650; }
h2 { font-size: clamp(1.75rem, 2.4vw + 1rem, var(--pt-step-4)); line-height: 1.12; }
h3 { font-size: var(--pt-step-2); line-height: 1.2; }
h4 { font-size: var(--pt-step-1); line-height: 1.25; }

p { margin: 0; }

/* Editorial italic — PT Serif accent ----------------------------------- */
.serif-accent {
  font-family: var(--pt-font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--pt-mint-300);
  letter-spacing: 0;
}

/* Mono — for IDs, tickers, hashes -------------------------------------- */
.mono {
  font-family: var(--pt-font-mono);
  font-feature-settings: 'tnum' on, 'lnum' on;
  letter-spacing: 0;
}

/* Eyebrow — single rule, used everywhere ALL CAPS shows up ------------- */
.eyebrow {
  font-family: var(--pt-font-sans);
  font-size: var(--pt-step--1);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--pt-eyebrow-tracking);
  color: var(--pt-ink-muted);
}
.eyebrow .pip {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--pt-mint-500);
  margin-right: 8px;
  vertical-align: 0.12em;
  box-shadow: 0 0 0 0 rgba(61, 219, 198, 0.6);
  animation: pt-pulse 2.4s ease-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .eyebrow .pip { animation: none; }
}
@keyframes pt-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(61, 219, 198, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(61, 219, 198, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 219, 198, 0); }
}

/* Layout primitives ---------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--pt-content);
  margin: 0 auto;
  padding-left: var(--pt-6);
  padding-right: var(--pt-6);
}
.container--narrow { max-width: var(--pt-narrow); }

.section {
  padding-top: var(--pt-16);
  padding-bottom: var(--pt-16);
  position: relative;
}
@media (min-width: 720px) {
  .section { padding-top: var(--pt-20); padding-bottom: var(--pt-20); }
}

/* Visually hidden ------------------------------------------------------ */
.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;
}

/* Focus — mint ring, brand rule ---------------------------------------- */
:where(a, button, input, textarea, select):focus-visible {
  outline: none;
  box-shadow: var(--pt-focus);
  border-color: var(--pt-mint-500);
}

/* Selection ------------------------------------------------------------ */
::selection {
  background: var(--pt-mint-500);
  color: var(--pt-navy-900);
}

/* Hairline rule -------------------------------------------------------- */
.hairline {
  height: 1px;
  border: 0;
  background: var(--pt-rule);
  margin: 0;
}
