/*
  Base: resets, HTML elements, typography roles and buttons.
  Loads after tokens.css.
*/

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
/* On iOS Safari, overflow-x on body does not stop sideways swiping, so main clips as well:
   the tilted band below the hero deliberately sticks out a few pixels on both sides. */
main { overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent-solid); color: var(--on-accent); }

.skip-link {
  position: absolute; inset-inline-start: 16px; top: -100px;
  padding: 10px 14px; background: var(--accent-solid); color: var(--on-accent);
  border-radius: 999px; z-index: 100; font-weight: 600;
}
.skip-link:focus { top: 16px; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* Type roles */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text);
  white-space: nowrap;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; background: currentColor; border-radius: 1px; }
.eyebrow--muted { color: var(--text-tertiary); }
.display {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.02em; line-height: 1.14; /* room for the comma below Ș/Ț and the accent on Î */
}
.h2 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
.lead { font-size: 18px; line-height: 1.6; color: var(--text-secondary); max-width: 56ch; }
.link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--text);
  transition-property: color, gap; transition-duration: 150ms; transition-timing-function: var(--ease);
}
.link svg { width: 16px; height: 16px; stroke-width: 2; }
.link:hover { color: var(--accent-text); gap: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding-inline: 24px; border-radius: 999px;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  transition-property: transform, background-color, border-color, color;
  transition-duration: 150ms; transition-timing-function: var(--ease);
}
.btn:active { transform: scale(0.96); }
.btn svg { width: 18px; height: 18px; stroke-width: 2; flex: none; }
.btn--primary { background: var(--accent-solid); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-solid-hover); }
.btn--ghost { border: 1px solid var(--border-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); }
.btn--dark { background: var(--n-0); color: var(--n-12); } /* primitive: stays black with white text in both themes */
.btn--dark:hover { background: var(--n-2); }
.btn--sm { height: 40px; padding-inline: 18px; font-size: 14px; }
