/* ===========================================================================
   AERONOVA — Base layer: reset, document defaults, brand utilities.
   Depends on tokens/*. Consumers get this via styles.css.
   =========================================================================== */

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--lh-normal);
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-body);
  color: var(--text-primary);
  background: var(--surface-base);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--dawn-peach); color: var(--violet-900); }

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

/* --- Display / heading helpers ----------------------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: var(--fw-extrabold);
  font-size: var(--text-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
  text-wrap: balance;
}
.h1 { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--text-h1); line-height: var(--lh-tight); letter-spacing: var(--ls-head); text-wrap: balance; }
.h2 { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--text-h2); line-height: var(--lh-snug); letter-spacing: var(--ls-head); text-wrap: balance; }
.h3 { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: var(--text-h3); line-height: var(--lh-snug); }
.lead { font-size: var(--text-lead); line-height: var(--lh-relaxed); color: var(--text-secondary); font-weight: var(--fw-regular); text-wrap: pretty; }

/* --- Eyebrow: wide-tracked mono label, the brand's section marker ------ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-eyebrow);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--dawn-peach);
}
.eyebrow--bare::before { display: none; }

/* --- Dawn gradient text (use sparingly: hero accent word, stats) ------- */
.text-dawn {
  background: var(--gradient-dawn);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- Layout helpers ----------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: var(--container-wide); }
.container--text { max-width: var(--container-text); }
.section { padding-block: var(--section-y); }
.stack > * + * { margin-top: var(--space-4); }

/* --- Blueprint texture: the brand's technical line-art motif ------------ */
/* White line-art (чертеж / pattern / nose) over a dark surface, low opacity */
.blueprint-bg { position: relative; isolation: isolate; }
.blueprint-bg > .blueprint-layer {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 0.5;
}

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

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