/* ============================================================
   Base — reset, document, typography defaults, utilities
   ============================================================ */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  background: var(--bg);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--fg);
}

p {
  margin: 0;
}

/* Lenis smooth scroll hooks ---------------------------- */
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}

/* Focus -------------------------------------------------- */
:focus {
  outline: none;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
/* Pill / btn focus rings — softer for rounded chips */
.btn:focus-visible,
.hero__pill:focus-visible {
  outline-offset: 4px;
}

/* Skip link --------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  background: var(--fg);
  color: var(--bg);
  padding: 8px 12px;
  border-radius: var(--r-sm);
  z-index: 100;
}

/* Make <main> a programmatic focus target for the skip link */
#main:focus {
  outline: none;
}

/* Container --------------------------------------------- */
.container {
  width: var(--rail-width);
  margin-inline: auto;
  padding: 0 var(--gutter);
}

/* Brand mark — Opus monogram (SVG) ---------------------- */
.brand-mark {
  width: 22px;
  height: 22px;
  flex: none;
  display: block;
}
.brand-mark--lg {
  width: 28px;
  height: 28px;
}
.brand-logo {
  height: 26px;
  width: auto;
  flex: none;
  display: block;
  /* SVG includes descender padding the lowercase "opus" doesn't fill,
     so the optical center sits above the geometric one. Nudge down. */
  transform: translateY(2px);
}
