/* ============================================================
   THEME — every colour, font and pattern lives here.
   Default: "Patola Palace". Switch with <html data-theme="…">
   (or ?theme=classic|garba|rann in the URL for previews).
   ============================================================ */
:root {
  /* Palette — Patola Palace, elegant edition: ivory paper, deep maroon, antique gold.
     Maroon and gold are accents only; every text colour meets WCAG AA on the paper tones. */
  --c-bg:        #f8f3ea;   /* ivory paper */
  --c-bg-2:      #f2eadb;   /* alternate section paper */
  --c-surface:   #fffdf8;   /* cards */
  --c-ink:       #2b1216;   /* body text (≈15:1 on --c-bg) */
  --c-ink-soft:  #5e4a44;   /* secondary text (≈7.5:1) */
  --c-primary:   #6e0f22;   /* deep maroon */
  --c-primary-2: #8c1a2f;   /* maroon hover / stamp */
  --c-deep:      #3a0b16;   /* darkest maroon (small surfaces only) */
  --c-on-deep:   #fbf4e6;
  --c-on-deep-soft: #e6d4b4;
  --c-gold:      #b08d4a;   /* antique gold — lines & ornaments */
  --c-gold-hi:   #d9bf8a;
  --c-gold-ink:  #7a5a12;   /* gold dark enough for small text (≈5.6:1) */
  --c-hair:      rgba(176,141,74,.45);   /* thin gold hairlines */
  --c-hair-soft: rgba(176,141,74,.22);
  --c-accent:    #2f5d4e;   /* muted emerald (Gujarati side) */
  --c-accent-2:  #b8692a;   /* muted saffron (Marwari side) */
  --c-focus:     #0b63c5;
  --c-ok:        #1d6b3a;
  --c-err:       #a3141f;
  --c-chip-on-bg:#6e0f22;   /* selected chip: white on maroon ≈ 11:1 */
  --c-chip-on-fg:#ffffff;

  /* Type */
  --f-display: "Cormorant Garamond", "Cormorant", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-body:    "EB Garamond", "Iowan Old Style", Georgia, serif;
  --f-ui:      "Mukta", "Hind Vadodara", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-gu:      "Noto Serif Gujarati", "Hind Vadodara", "Shruti", "Gujarati Sangam MN", serif;
  --f-gu-ui:   "Hind Vadodara", "Noto Serif Gujarati", "Shruti", sans-serif;
  --f-hi:      "Tiro Devanagari Hindi", "Mukta", "Kohinoor Devanagari", "Mangal", serif;

  /* Rhythm (8px grid) */
  --radius: 14px; --radius-sm: 8px;
  --space-1: .5rem; --space-2: 1rem; --space-3: 1.5rem; --space-4: 2.5rem; --space-5: 4.5rem; --space-6: 7rem;
  --maxw: 1080px; --measure: 36rem;
  --shadow: 0 1px 2px rgba(43,18,22,.04), 0 12px 32px -18px rgba(43,18,22,.22);
  --shadow-photo: 0 18px 40px -24px rgba(43,18,22,.45);

  /* Very subtle textures (theme-able) */
  --pattern-ikat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23b08d4a' stroke-opacity='.09' stroke-width='1'%3E%3Cpath d='M28 4 52 28 28 52 4 28Z'/%3E%3Cpath d='M28 16 40 28 28 40 16 28Z'/%3E%3C/g%3E%3C/svg%3E");
  --pattern-bandhani: radial-gradient(circle, rgba(176,141,74,.16) 1px, transparent 1.4px) 0 0/16px 16px;
  --border-patola: linear-gradient(90deg, transparent, var(--c-gold) 20%, var(--c-gold) 80%, transparent);
}

/* Original railway invite palette (velvet, vermilion, emerald) */
[data-theme="classic"] {
  --c-bg:#f3ebdd; --c-bg-2:#e9dcc6; --c-surface:#fbf6ec; --c-ink:#24161a; --c-ink-soft:#5a4642;
  --c-primary:#2a0a0e; --c-primary-2:#a3141f; --c-deep:#2a0a0e; --c-on-deep:#efe3d0; --c-on-deep-soft:#cdb79f;
  --c-gold:#b8955a; --c-gold-hi:#d9bd84; --c-gold-ink:#6e5326; --c-accent:#14453a; --c-accent-2:#a3141f; --c-chip-on-bg:#2a0a0e;
}
/* Garba night: indigo sky, mirror-work silver, chaniya-choli brights */
[data-theme="garba"] {
  --c-bg:#f5efe6; --c-bg-2:#e8dfd2; --c-surface:#fffaf3; --c-ink:#1c1530; --c-ink-soft:#4a4062;
  --c-primary:#2b1a6b; --c-primary-2:#c2185b; --c-deep:#140c33; --c-on-deep:#f3ecff; --c-on-deep-soft:#c9bce8;
  --c-gold:#c0a062; --c-gold-hi:#f0d48a; --c-gold-ink:#6c5418; --c-accent:#0f7c6c; --c-accent-2:#f08a00; --c-chip-on-bg:#2b1a6b;
}
/* Rann Utsav: white desert, Kutchi embroidery reds/blacks, moonlight */
[data-theme="rann"] {
  --c-bg:#fbfaf6; --c-bg-2:#eeebe2; --c-surface:#ffffff; --c-ink:#1b1b1b; --c-ink-soft:#4b4740;
  --c-primary:#1b1b1b; --c-primary-2:#b0201c; --c-deep:#101827; --c-on-deep:#f4f1e8; --c-on-deep-soft:#c8c3b6;
  --c-gold:#b08a3e; --c-gold-hi:#e0c584; --c-gold-ink:#6b5320; --c-accent:#1f6f8b; --c-accent-2:#d9731a; --c-chip-on-bg:#b0201c;
}
