/* ==========================================================================
   AARTI & SONU — THEME
   Design tokens (colour, type, spacing, motion) and base element styles.
   Light theme = warm ivory editorial. Dark theme = candle-lit studio:
   near-black with champagne-gold as the lead accent and burgundy depth.
   ========================================================================== */

/* ---------- Shared tokens ---------- */
:root {
  --font-display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-display: clamp(2.85rem, 1.55rem + 5.4vw, 6.6rem);
  --fs-h1: clamp(2.55rem, 1.65rem + 3.9vw, 5.4rem);
  --fs-h2: clamp(2.15rem, 1.55rem + 2.5vw, 3.9rem);
  --fs-h3: clamp(1.45rem, 1.25rem + .8vw, 1.95rem);
  --fs-lead: clamp(1.02rem, .96rem + .32vw, 1.2rem);
  --fs-body: 1rem;
  --fs-small: .875rem;
  --fs-label: .72rem;

  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --radius-arch: 999px 999px var(--radius-sm) var(--radius-sm);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur-fast: 180ms;
  --dur: 320ms;
  --dur-slow: 520ms;

  --container: 1320px;
  --container-narrow: 880px;
  --gutter: clamp(1.25rem, 4.2vw, 3rem);
  --section-y: clamp(4.25rem, 2.6rem + 5.2vw, 8rem);
  --header-h: 72px;
}

/* ---------- Light theme (default) ---------- */
:root,
[data-theme="light"] {
  color-scheme: light;

  --bg-primary: #f7f1e8;
  --bg-secondary: #efe5d7;
  --bg-tertiary: #e7d9c6;
  --surface: #fffcf7;
  --surface-2: #fbf6ee;

  --text-primary: #1e1916;
  --text-secondary: #5a5049;
  --text-muted: #857a70;

  --accent: #7b2d3b;             /* burgundy */
  --accent-hover: #63222e;
  --accent-contrast: #fff8f0;
  --accent-soft: #eddcd6;
  --gold: #a07c49;               /* champagne gold — details only */
  --gold-soft: #e3d1b3;

  --border: rgba(30, 25, 22, .12);
  --border-strong: rgba(30, 25, 22, .3);

  --shadow-sm: 0 1px 2px rgba(70, 45, 30, .06), 0 6px 18px -8px rgba(70, 45, 30, .12);
  --shadow: 0 30px 60px -30px rgba(70, 40, 30, .35);
  --shadow-lift: 0 34px 60px -28px rgba(80, 35, 35, .42);

  --header-bg: rgba(247, 241, 232, .84);
  --glow-1: rgba(214, 170, 150, .38);
  --glow-2: rgba(227, 209, 179, .55);
  --selection: #ead3cc;

  /* "Ink" surfaces: deep sections (bridal feature, academy hero, footer) */
  --ink-bg: #1f1715;
  --ink-bg-2: #2a1e1b;
  --ink-text: #f4ebde;
  --ink-muted: #bfb0a1;
  --ink-accent: #d6b889;
  --ink-border: rgba(244, 235, 222, .14);

  --overlay-bottom: linear-gradient(180deg, rgba(24, 16, 14, 0) 38%, rgba(24, 16, 14, .82) 100%);
}

/* ---------- Dark theme ---------- */
[data-theme="dark"] {
  color-scheme: dark;

  --bg-primary: #100e0d;
  --bg-secondary: #171312;
  --bg-tertiary: #1e1917;
  --surface: #1b1716;
  --surface-2: #211c1a;

  --text-primary: #f2e9dc;
  --text-secondary: #b9ad9f;
  --text-muted: #8a7f75;

  --accent: #d4b27c;             /* champagne gold leads in the dark */
  --accent-hover: #e4c794;
  --accent-contrast: #17110d;
  --accent-soft: rgba(212, 178, 124, .13);
  --gold: #d4b27c;
  --gold-soft: rgba(212, 178, 124, .32);

  --border: rgba(242, 233, 220, .1);
  --border-strong: rgba(242, 233, 220, .26);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 20px -10px rgba(0, 0, 0, .6);
  --shadow: 0 34px 70px -30px rgba(0, 0, 0, .8);
  --shadow-lift: 0 36px 70px -26px rgba(0, 0, 0, .85), 0 0 0 1px rgba(212, 178, 124, .18);

  --header-bg: rgba(16, 14, 13, .8);
  --glow-1: rgba(128, 38, 56, .38);
  --glow-2: rgba(212, 178, 124, .12);
  --selection: rgba(212, 178, 124, .3);

  /* In the dark theme "ink" sections turn deep burgundy instead of black */
  --ink-bg: #25131a;
  --ink-bg-2: #301a21;
  --ink-text: #f6ecdf;
  --ink-muted: #cdb7ad;
  --ink-accent: #e0c18e;
  --ink-border: rgba(246, 236, 223, .14);

  --overlay-bottom: linear-gradient(180deg, rgba(10, 7, 7, 0) 30%, rgba(10, 7, 7, .88) 100%);
}

/* No-JS fallback: follow the operating system preference */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg-primary: #100e0d; --bg-secondary: #171312; --bg-tertiary: #1e1917;
    --surface: #1b1716; --surface-2: #211c1a;
    --text-primary: #f2e9dc; --text-secondary: #b9ad9f; --text-muted: #8a7f75;
    --accent: #d4b27c; --accent-hover: #e4c794; --accent-contrast: #17110d;
    --accent-soft: rgba(212, 178, 124, .13); --gold: #d4b27c; --gold-soft: rgba(212, 178, 124, .32);
    --border: rgba(242, 233, 220, .1); --border-strong: rgba(242, 233, 220, .26);
    --header-bg: rgba(16, 14, 13, .8); --glow-1: rgba(128, 38, 56, .38); --glow-2: rgba(212, 178, 124, .12);
    --ink-bg: #25131a; --ink-bg-2: #301a21; --ink-accent: #e0c18e;
  }
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }
::selection { background: var(--selection); color: var(--text-primary); }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.012em;
  text-wrap: balance;
}
h3 { line-height: 1.15; }
p { margin: 0; text-wrap: pretty; }

/* Editorial italic accent inside headings */
h1 em, h2 em, h3 em, .display em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

/* ---------- Focus & accessibility ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  top: .75rem; left: .75rem;
  z-index: 200;
  padding: .75rem 1.1rem;
  background: var(--text-primary);
  color: var(--bg-primary);
  border-radius: var(--radius-sm);
  transform: translateY(-150%);
  transition: transform var(--dur-fast) var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------- Typography helpers ---------- */
.display {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.02em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: currentColor;
  opacity: .55;
}
.eyebrow--plain::before { display: none; }
.eyebrow .sep { color: var(--gold); letter-spacing: 0; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 36rem;
}

.label {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
}

/* ---------- Icons ---------- */
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--fill { fill: currentColor; stroke: none; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text-primary);
  --btn-border: var(--border-strong);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  min-height: 3.25rem;
  padding: .9rem 1.65rem;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur-fast) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.btn .icon { width: 1.1rem; height: 1.1rem; transition: transform var(--dur) var(--ease-out); }
.btn:hover .icon--arrow { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }

.btn-primary {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-contrast);
  --btn-border: var(--accent);
}
.btn-primary:hover { --btn-bg: var(--accent-hover); --btn-border: var(--accent-hover); box-shadow: 0 14px 30px -14px var(--accent); }

.btn-outline:hover { --btn-border: var(--text-primary); --btn-bg: var(--text-primary); --btn-fg: var(--bg-primary); }

.btn-light {
  --btn-bg: #f6ede1;
  --btn-fg: #1e1916;
  --btn-border: #f6ede1;
}
.btn-light:hover { --btn-bg: #fff; --btn-border: #fff; }

.btn-ghost-light {
  --btn-fg: #f6ede1;
  --btn-border: rgba(246, 237, 225, .45);
}
.btn-ghost-light:hover { --btn-bg: rgba(246, 237, 225, .12); --btn-border: #f6ede1; }

.btn-sm { min-height: 2.6rem; padding: .6rem 1.2rem; font-size: .7rem; }
.btn-block { width: 100%; }

/* Underlined text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding-block: .35rem;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-primary);
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size var(--dur) var(--ease), color var(--dur-fast) var(--ease);
}
.link-arrow .icon { width: 1rem; height: 1rem; transition: transform var(--dur) var(--ease-out); }
.link-arrow:hover { color: var(--accent); background-size: 40% 1px; }
.link-arrow:hover .icon { transform: translateX(4px); }
