/* ============================================================
   IGNYSS V2 — Base Reset & Typography
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  font-size: 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) var(--bg-void);
}

html::-webkit-scrollbar { width: 5px; }
html::-webkit-scrollbar-track { background: var(--bg-void); }
html::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
}
html::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.14); }

body {
  font-family: var(--ff-body);
  background: var(--bg-void);
  color: var(--c-body);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  overflow-x: hidden;
  min-height: 100vh;
  opacity: 1;
  transition: opacity 0.5s ease;
}

body.loaded { opacity: 1; }

/* ── Selection ─────────────────────────────────────────── */
::selection {
  background: rgba(244,115,42,0.3);
  color: #fff;
}

/* ── Typography ────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  color: var(--c-white);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); font-weight: var(--fw-extrabold); }
h2 { font-size: var(--fs-h2); font-weight: var(--fw-bold); }
h3 { font-size: var(--fs-h3); font-weight: var(--fw-bold); }
h4 { font-size: var(--fs-h4); font-weight: var(--fw-semibold); }
h5 { font-size: var(--fs-h5); font-weight: var(--fw-semibold); }

p {
  color: var(--c-body);
  max-width: 60ch;
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out-quart);
}

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

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
  background: none;
  color: inherit;
  font-size: inherit;
}

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

ul, ol { list-style: none; }

/* ── Layout ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container--narrow { max-width: var(--max-w-narrow); }
.container--wide   { max-width: var(--max-w-wide); }
.container--ultra  { max-width: var(--max-w-ultra); }

.section {
  position: relative;
  padding: var(--s-section) 0;
}

/* Full viewport height section */
.section--full {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Edge-to-edge */
.edge-to-edge {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ── Screen Reader Only ────────────────────────────────── */
.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;
}
