/* ============================================================
   OBJ ROCK — Reset & Base
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  font-feature-settings: "ss01","cv11","kern";
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--motion-fast) var(--ease-standard);
}
a:hover { color: var(--purple); }

button, input, textarea, select {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  border: 0;
  background: transparent;
}

button { cursor: pointer; }

ul, ol { list-style: none; }

strong, b { font-weight: 700; }

em, i { font-style: italic; }

:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: rgba(112,36,216,.18);
  color: var(--ink);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: 1.05rem; }

p { text-wrap: pretty; }

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: var(--sp-6) 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--ink);
  color: var(--white);
  padding: .65rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  z-index: var(--z-toast);
  transition: top var(--motion-fast) var(--ease-standard);
}
.skip-link:focus { top: 1rem; color: var(--white); }

/* Visually hidden but accessible */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
