/* ==========================================================================
   Wandering With Pride v4 — Base / Reset / Typography
   ========================================================================== */

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--parchment);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  top: -999px;
  left: var(--space-md);
  z-index: 9999;
  padding: var(--space-sm) var(--space-lg);
  background: var(--meridian);
  color: var(--cloud);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: top var(--dur-fast);
}
.skip-link:focus {
  top: var(--space-md);
}

/* ---------- Focus ---------- */
:focus-visible {
  outline: 2.5px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---------- Scrollbar styling (Webkit) ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--smoke); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: var(--radius-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-ui);
  font-weight: 700;
  line-height: 1.18;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

/* Display variant: serif on dark hero */
.display-heading {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.08;
}

p {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text-secondary);
}

p + p { margin-top: var(--space-md); }

a {
  color: var(--meridian);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--dur-fast);
}
a:hover { color: var(--ember); }

strong { font-weight: 600; color: var(--text-primary); }
em { font-style: italic; }

blockquote {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: 1.35;
  color: var(--cloud);
}

cite {
  display: block;
  font-family: var(--font-ui);
  font-style: normal;
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  margin-top: var(--space-lg);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

ul, ol {
  padding-left: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

li {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.65;
}

address { font-style: normal; line-height: 1.8; }

code {
  font-family: 'Courier New', monospace;
  font-size: 0.875em;
  background: var(--smoke);
  padding: 0.1em 0.35em;
  border-radius: var(--radius-sm);
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-xl) 0;
}

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

img {
  height: auto;
}

input, textarea, select, button {
  font: inherit;
}

table {
  border-collapse: collapse;
  width: 100%;
}

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

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

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--meridian);
  text-decoration: none;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 1.5rem;
  height: 2px;
  background: currentColor;
  flex-shrink: 0;
}

/* ---------- Pull quote ---------- */
.pull-quote {
  border-left: 3px solid var(--meridian);
  padding: var(--space-lg) var(--space-xl);
  background: var(--smoke);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.pull-quote p {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--text-primary);
  line-height: 1.5;
  font-style: italic;
}

.pull-quote cite {
  color: var(--text-muted);
  margin-top: var(--space-md);
}

/* ---------- Legal body ---------- */
.legal-body {
  max-width: var(--container-narrow);
  margin-inline: auto;
}

.legal-body h2 {
  font-size: var(--text-xl);
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.legal-body h3 {
  font-size: var(--text-lg);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.legal-body p,
.legal-body li {
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: 1.75;
}

.legal-body ul {
  margin-top: var(--space-md);
  padding-left: var(--space-xl);
}

.legal-body address {
  margin-top: var(--space-md);
  color: var(--text-secondary);
}

.legal-body a {
  color: var(--meridian);
}

/* ---------- Footnote --- */
#footnotes {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}
