/* ============================================================
   Arsh Consumers — reset, fonts, typography, layout primitives
   ============================================================ */

/* --- Self-hosted fonts (woff2, swap) --- */
@font-face {
  font-family: "Newsreader"; font-style: normal; font-weight: 400;
  font-display: swap; src: url("../fonts/newsreader-400.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader"; font-style: normal; font-weight: 600;
  font-display: swap; src: url("../fonts/newsreader-600.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader"; font-style: italic; font-weight: 400;
  font-display: swap; src: url("../fonts/newsreader-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400;
  font-display: swap; src: url("../fonts/plex-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500;
  font-display: swap; src: url("../fonts/plex-sans-500.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600;
  font-display: swap; src: url("../fonts/plex-sans-600.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500;
  font-display: swap; src: url("../fonts/plex-mono-500.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600;
  font-display: swap; src: url("../fonts/plex-mono-600.woff2") format("woff2");
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--step-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: var(--link); text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

/* --- Typography --- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; color: var(--text); text-wrap: balance; }
h1 { font-size: var(--step-display-xl); line-height: 1.02; font-weight: 650; }
h2 { font-size: var(--step-h2); }
h3 { font-size: var(--step-h3); }
p { text-wrap: pretty; }

.display-l { font-family: var(--font-display); font-weight: 600; font-size: var(--step-display-l); line-height: 1.06; letter-spacing: -0.01em; }

.eyebrow {
  font-family: var(--font-mono); font-weight: 600; font-size: var(--step-eyebrow);
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-700);
}
.eyebrow--dark { color: var(--brass-500); }

.mono { font-family: var(--font-mono); font-size: var(--step-mono); letter-spacing: 0.02em; }
.lead { font-size: var(--step-body-l); color: var(--text-muted); max-width: 62ch; }
.muted { color: var(--text-muted); }

/* --- Layout primitives --- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--maxw-narrow); }

.section { padding-block: var(--space-9); }
.section--tight { padding-block: var(--space-8); }

.section--dark { background: var(--ink-900); color: var(--text-on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--text-on-dark); }
.section--dark .lead, .section--dark .muted { color: var(--text-on-dark-muted); }
.section--alt { background: var(--paper-100); }

.section-head { max-width: 60ch; margin-bottom: var(--space-7); }
.section-head .lead { margin-top: var(--space-4); }

.stack > * + * { margin-top: var(--space-4); }

/* --- Skip link --- */
.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 1000;
  background: var(--ink-900); color: var(--text-on-dark);
  padding: var(--space-3) var(--space-5); border-radius: var(--radius-sm);
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: var(--space-4); }

/* --- Focus visibility --- */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-sm); }
.section--dark :focus-visible { outline-color: var(--brass-500); }

/* --- Utilities --- */
.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;
}
.no-scroll { overflow: hidden; }
