/* Restart with Vivek — shared base styles.
   Page layout is in inline styles (from the approved mockups); this file holds
   the design tokens and the global behaviour every page needs. */

:root {
  --ink: #16161A;
  --ivory: #FAF7F2;
  --paper: #FFFFFF;
  --sand: #EDE6DC;
  --stone: #6B6760;
  --saffron: #C4561F;
  --saffron-deep: #B94E1E;
  --teal: #1E4D4A;
  --font-display: 'Newsreader', Georgia, serif;
  --font-body: 'Instrument Sans', system-ui, sans-serif;
  --font-hindi-display: 'Tiro Devanagari Hindi', Georgia, serif;
  --font-hindi-body: 'Mukta', system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--saffron-deep); }
a:hover { color: #8F3A14; }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 2px;
}

button, a { transition: background-color .15s ease, color .15s ease, border-color .15s ease; }

summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; font-weight: 400; }
details[open] > summary::after { content: "–"; }

/* Sticky, slim header */
header { position: sticky; top: 0; z-index: 50; }

/* Phone sizes: scale display type down */
@media (max-width: 720px) {
  h1 { font-size: 40px !important; line-height: 1.1 !important; }
  h2 { font-size: 30px !important; }
  section { padding-top: 64px !important; padding-bottom: 64px !important; }
  header nav[aria-label="Main"] { order: 3; width: 100%; gap: 16px !important; overflow-x: auto; flex-wrap: nowrap !important; white-space: nowrap; }
  header { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
