/* variant-c · base (reset + type + links + focus) */

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

html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  font-feature-settings: "cv11", "ss01", "kern", "liga", "calt", "tnum" 0;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--step-body);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img, picture, video, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }

input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; color: inherit; font-family: inherit; }

p, h1, h2, h3, h4, h5, h6, ul, ol, figure, blockquote { margin: 0; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--text-strong);
  line-height: var(--lh-heading);
  letter-spacing: var(--tr-snug);
  font-weight: 700;
  text-wrap: balance;
  /* Soft-wrap only on whitespace for display type (no mid-word breaks in Cyrillic).
     Long URLs inside h* are a non-case for this project. */
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}

h1, .h1 { font-size: var(--step-h1); }
h2, .h2 { font-size: var(--step-h2); }
h3, .h3 { font-size: var(--step-h3); }
h4, .h4 { font-size: var(--step-h4); font-weight: 600; }

.display    { font-size: var(--step-display); font-weight: 800; letter-spacing: var(--tr-tight); line-height: var(--lh-display); }
.display-xl { font-size: var(--step-mega);    font-weight: 800; letter-spacing: var(--tr-tight); line-height: var(--lh-display); }

p { max-width: var(--measure); }

.lead {
  font-size: var(--step-lead);
  color: var(--text-soft);
  font-weight: 400;
  line-height: var(--lh-body);
  max-width: var(--measure-lead);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--step-eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tr-caption);
  color: var(--text-mute);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--hairline-strong);
  display: inline-block;
}
.eyebrow--accent { color: var(--accent-hover); }
.eyebrow--accent::before { background: var(--accent); height: 2px; }
.eyebrow--naked::before { display: none; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast) var(--ease-out);
}
a:hover { color: var(--accent-hover); }

.tnum { font-variant-numeric: tabular-nums; }

ul, ol { padding: 0; list-style: none; }

::selection { background: var(--accent); color: #fff; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

.skip-link {
  position: fixed; top: 8px; left: 8px;
  padding: 10px 16px;
  background: var(--ink-950); color: var(--paper-50);
  font-weight: 600; font-size: var(--step-body);
  border-radius: var(--r-md);
  z-index: var(--z-modal);
  transform: translateY(-200%);
  transition: transform var(--t-fast) var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  :focus-visible { outline-color: Highlight; }
}

/* Structural hairline helpers (Swiss signature) */
.rule      { border: 0; height: 1px; background: var(--hairline); margin: 0; }
.rule-top  { border-top: 1px solid var(--hairline); }
.rule-bot  { border-bottom: 1px solid var(--hairline); }
