/* ==========================================================================
   शुभ मंगल — theme.css
   Design tokens + base typography. Every colour, size and radius used in the
   other stylesheets comes from here: change the brand in ONE place.
   ========================================================================== */

:root {
  /* Brand: deep burgundy + antique gold on warm ivory */
  --maroon-900: #3b0e1b;
  --maroon-800: #4f1425;
  --maroon-700: #651a2f;
  --maroon-600: #7b1f36;   /* primary */
  --maroon-500: #9a2f4b;
  --maroon-200: #e9c3cc;
  --maroon-100: #f5e1e6;
  --maroon-50:  #fbf2f4;

  --gold-700: #85601a;
  --gold-600: #a67a23;
  --gold-500: #c0912f;     /* accent */
  --gold-300: #e5cb8e;
  --gold-100: #f8efd8;
  --gold-50:  #fcf8ee;

  /* Neutrals (warm) */
  --ink-900: #231b18;
  --ink-700: #41372f;
  --ink-500: #6b6058;
  --ink-400: #8b8077;
  --line:      #e8e0d4;
  --line-soft: #f0eae0;
  --bg:        #fbf8f3;
  --surface:   #ffffff;
  --surface-2: #faf6ef;

  /* Feedback */
  --success-700: #17613c; --success-500: #1f7a4d; --success-bg: #e7f4ec;
  --warning-700: #805000; --warning-500: #a66a00; --warning-bg: #fff4db;
  --danger-700:  #8f1f2b; --danger-500:  #b02a37; --danger-bg:  #fbeaec;
  --info-700:    #1c4b77; --info-500:    #255e91; --info-bg:    #e8f1f9;

  /* Type: no web fonts — the best installed Devanagari face on each OS */
  --font: "Noto Sans Devanagari", "Nirmala UI", "Kohinoor Devanagari", "Devanagari Sangam MN",
          "Mangal", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --fs-xs: .8125rem;
  --fs-sm: .9rem;
  --fs-base: 1rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 1.875rem;
  --fs-3xl: clamp(2rem, 1.4rem + 2.2vw, 3.1rem);

  /* Shape & depth */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --shadow-xs: 0 1px 2px rgba(35, 27, 24, .06);
  --shadow-sm: 0 2px 6px rgba(35, 27, 24, .07);
  --shadow:    0 8px 24px -8px rgba(35, 27, 24, .16);
  --shadow-lg: 0 24px 48px -20px rgba(59, 14, 27, .35);
  --ring: 0 0 0 3px rgba(192, 145, 47, .35);

  /* Layout */
  --container: 1160px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.75;            /* Devanagari matras need extra leading */
  color: var(--ink-900);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.35; color: var(--maroon-900); font-weight: 700; letter-spacing: -.005em; }
h1 { font-size: var(--fs-3xl); line-height: 1.25; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }
p  { margin: 0 0 1em; }
a  { color: var(--maroon-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--maroon-800); }
img, svg { max-width: 100%; }
img { display: block; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
small, .text-sm { font-size: var(--fs-sm); }
.text-xs { font-size: var(--fs-xs); }
.text-muted { color: var(--ink-500); }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }

:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--maroon-700); color: #fff;
  padding: 10px 16px; border-radius: var(--radius); text-decoration: none; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
[hidden], input[type="hidden"] { display: none !important; }

.stack > * + * { margin-top: var(--stack, 1rem); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-between { justify-content: space-between; }
.grow { flex: 1 1 auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
