/* Design tokens + base shared by every page. */
:root {
  --paper: #f3ece1;
  --paper-2: #e9dfcf;
  --paper-3: #dccfba;
  --ink: #1d1613;
  --ink-soft: #5d5047;
  --ink-faint: #9a8b7d;
  --sindoor: #b4231b;
  --marigold: #e39b1b;
  --haldi: #f2c230;
  --mehendi: #6f8a3a;
  --sangeet: #8e3b6f;
  --rose: #e9b9ae;
  --maroon: #2a1013;
  --maroon-2: #3a171b;
  --gold: #b8924a;
  --line: rgba(29, 22, 19, 0.16);
  --line-light: rgba(243, 236, 225, 0.18);

  --font-serif: 'Instrument Serif', 'Times New Roman', serif;
  --font-sans: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --font-script: 'Italianno', cursive;
  --font-deva: 'Tiro Devanagari Hindi', serif;

  --text-xs: 0.75rem;
  --text-sm: clamp(0.82rem, 0.78rem + 0.15vw, 0.9rem);
  --text-base: clamp(0.95rem, 0.9rem + 0.25vw, 1.06rem);
  --text-lg: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);

  --gutter: clamp(1rem, 0.5rem + 2.5vw, 3rem);
  --section: clamp(5rem, 3rem + 8vw, 11rem);
  --radius: 999px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --dur-fast: 200ms;
  --dur: 450ms;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--sindoor);
  outline-offset: 3px;
}

::selection {
  background: var(--sindoor);
  color: var(--paper);
}

.script {
  font-family: var(--font-script);
  font-weight: 400;
  letter-spacing: 0;
}

.deva {
  font-family: var(--font-deva);
  letter-spacing: 0;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Subtle paper grain over everything */
body::after {
  content: '';
  position: fixed;
  inset: -50%;
  z-index: 100;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.link-u {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size var(--dur) var(--ease-out);
}
.link-u:hover {
  background-size: 0 1px;
  background-position: 100% 100%;
}

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