/* Self-hosted webfonts. Imported at the top of the cascade so every page
 * that links base.css picks up the @font-face rules without an extra
 * <link>. CSS @import resolves before the rest of base.css runs. */
@import url('./fonts.css');

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink-900);
  background: var(--surface-page);
  background-image:
    radial-gradient(circle at 0% 0%, var(--gold-50) 0%, transparent 35%),
    radial-gradient(circle at 100% 100%, var(--teal-50) 0%, transparent 40%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
a { color: var(--teal-700); text-decoration: none; }
a:hover { color: var(--teal-900); text-decoration: underline; }

/* ---------- typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--ink-900);
  margin: 0;
}
h1 { font-size: var(--fs-display-md); line-height: 1.1; }
h2 { font-size: var(--fs-display-sm); line-height: 1.15; }
h3 { font-size: var(--fs-h1); line-height: 1.25; }
h4 { font-size: var(--fs-h2); line-height: 1.3; }

.wv-display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  font-variant-numeric: lining-nums tabular-nums;
}
.wv-numeral { font-variant-numeric: tabular-nums; }
.wv-mono { font-family: var(--font-mono); font-size: 0.92em; }
.wv-gujarati { font-family: var(--font-gujarati); }

.wv-section-title {
  font-family: var(--font-display);
  font-size: var(--fs-display-sm);
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--ink-900);
  position: relative;
  padding-bottom: var(--space-3);
  margin: 0 0 var(--space-5) 0;
}
.wv-section-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 36px; height: 2px;
  background: var(--gold-500);
  border-radius: 2px;
}

.wv-eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-700);
}

.wv-muted { color: var(--ink-500); }
.wv-subtle { color: var(--ink-600); }

/* ---------- focus ring ---------- */
:where(button, a, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--teal-500);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

/* ---------- scroll ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--mist-300); border-radius: 999px; border: 2px solid var(--surface-page); }
::-webkit-scrollbar-thumb:hover { background: var(--mist-400); }

/* ---------- ornaments ---------- */
.wv-mehndi-rule {
  height: 12px;
  background-image: radial-gradient(var(--gold-500) 1px, transparent 1.6px);
  background-size: 16px 12px;
  background-position: 0 50%;
  background-repeat: repeat-x;
  opacity: 0.45;
  margin: var(--space-5) 0;
}

.wv-paisley-corner {
  position: absolute;
  top: 0; right: 0;
  width: 90px;
  height: 90px;
  pointer-events: none;
  opacity: 0.18;
  background: radial-gradient(circle at top right, var(--gold-500) 0%, transparent 60%);
}

/* ---------- accessibility helpers (phase 6.4) ---------- */
.wv-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;
}

.wv-skip-link {
  position: absolute;
  top: -40px;
  left: var(--space-3);
  z-index: 9999;
  padding: var(--space-2) var(--space-4);
  background: var(--teal-700);
  color: var(--ivory-100);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 0.15s ease;
}
.wv-skip-link:focus {
  top: var(--space-3);
}

@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;
  }
}
