/* ─────────────────────────────────────────────────────────────────────────
   base.css
   Global reset, body, and typography defaults.
   ───────────────────────────────────────────────────────────────────────── */

/* ── MODERN RESET ──────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  background-color: var(--ink);
  color: var(--ivory);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: var(--leading-normal);
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Touch devices — restore default cursor */
@media (hover: none) {
  body { cursor: auto; }
  .cursor, .cursor-ring { display: none; }
}

/* ── SKIP LINK ─────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--gold);
  color: var(--ink);
  padding: var(--space-2) var(--space-4);
  font-size: var(--size-sm);
  font-weight: 500;
  z-index: var(--z-cursor);
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: var(--space-4); }

/* ── IMAGES ────────────────────────────────────────────────────────────── */
img, video {
  display: block;
  max-width: 100%;
  height: auto;
}
img { object-fit: cover; }

/* ── LINKS ─────────────────────────────────────────────────────────────── */
a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: none;
}
@media (hover: none) { a { cursor: pointer; } }

/* ── HEADINGS ──────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: var(--leading-tight);
  color: var(--ivory);
}

/* ── BODY COPY ─────────────────────────────────────────────────────────── */
p {
  line-height: var(--leading-loose);
  color: var(--ivory-dim);
}

/* ── LISTS ─────────────────────────────────────────────────────────────── */
ul, ol { list-style: none; }

/* ── BUTTONS ───────────────────────────────────────────────────────────── */
button {
  cursor: none;
  border: none;
  background: none;
  font: inherit;
}
@media (hover: none) { button { cursor: pointer; } }

/* ── FORMS ─────────────────────────────────────────────────────────────── */
input, textarea, select {
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
  outline: none;
  appearance: none;
}

/* ── FOCUS STYLES ──────────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ── HR ────────────────────────────────────────────────────────────────── */
hr {
  border: none;
  border-top: var(--border-gold-subtle);
  margin: var(--space-12) 0;
}

/* ── SELECTION ─────────────────────────────────────────────────────────── */
::selection {
  background: var(--gold-30);
  color: var(--ivory);
}

/* ── SCROLLBAR ─────────────────────────────────────────────────────────── */
::-webkit-scrollbar       { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--ink-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--stone); }
