/* ============================================================
   Global base styles — Velvet Quill Publishing
   ============================================================ */

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

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

body {
  background-color: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--claret);
  text-underline-offset: 3px;
  text-decoration: underline;
}

a:hover {
  opacity: 0.75;
}

/* ── Layout helpers ── */

.vq-container {
  max-width: var(--width-content);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.vq-reading {
  max-width: var(--width-reading);
}

/* ── Typography ── */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
}

h2 {
  font-size: var(--size-h2);
  line-height: var(--lh-h2);
}

h3 {
  font-size: var(--size-h3);
  line-height: var(--lh-h3);
}

p + p {
  margin-top: var(--sp-3);
}

/* ── Label (small caps) ── */

.vq-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--size-label);
  line-height: 1;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  font-variant-numeric: oldstyle-nums;
  color: var(--claret);
  margin-bottom: var(--sp-2);
}

/* ── Meta text ── */

.vq-meta {
  font-family: var(--font-body);
  font-size: var(--size-meta);
  line-height: var(--lh-meta);
  letter-spacing: var(--ls-meta);
  text-transform: uppercase;
  color: var(--claret);
}

/* ── Hairline rule ── */

.vq-rule {
  display: block;
  width: var(--rule-w);
  height: var(--rule-h);
  background-color: var(--rule-color);
  border: none;
  margin: 0; /* positioned by context */
}

/* ── Section spacing ── */

.vq-section {
  padding-block: var(--section-pad);
}

/* ── Reduced motion ── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
