/* ===========================================================
   BASE / RESET
   =========================================================== */

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

html {
  scroll-behavior: auto; /* lenis takes over scrolling */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* overflow-x: clip on html (in index.html style) covers this; */
  /* avoid overflow:hidden here so iOS position:fixed works */
}

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

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

h1, h2, h3, h4, p, ul, ol {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }

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

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 4px;
}

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

::selection {
  background: var(--gold-300);
  color: var(--ink-900);
}

/* Custom scrollbar (webkit) — subtle, premium */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bone-200); }
::-webkit-scrollbar-thumb {
  background: var(--grey-300);
  border-radius: 10px;
  border: 2px solid var(--bone-200);
}
::-webkit-scrollbar-thumb:hover { background: var(--grey-500); }

