/* ============================================
   JG MEMBERS — Design Tokens
   3 themes: navy (default), cream, sage
   Korean-first, Pretendard, refined membership-club feel
   ============================================ */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,500;1,400&display=swap');

:root {
  /* ——— Typography ——— */
  --font-sans: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-latin: "Inter", "Pretendard", sans-serif;
  --font-serif: "Cormorant Garamond", "Pretendard", serif;
  --font-mono: ui-monospace, "SF Mono", "Menlo", monospace;

  /* ——— Spacing scale (4px base) ——— */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* ——— Radii ——— */
  --r-xs: 2px;
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 20px;
  --r-pill: 999px;

  /* ——— Shared neutral values (per-theme overrides below) ——— */
  --duration: 200ms;
  --ease: cubic-bezier(.2, 0, .2, 1);
}

/* ===========================================================
   THEME 01 — NAVY × SILVER
   Primary, formal, evening/club mood
   =========================================================== */
[data-theme="navy"] {
  --brand: #1F3252;
  --brand-deep: #14223A;
  --brand-soft: #2C4670;
  --brand-tint: #E6E9F0;

  --accent: #B8B5AC;          /* silver */
  --accent-warm: #C9A77E;     /* champagne accent for memorial */
  --accent-foil: linear-gradient(135deg, #D8D5CC 0%, #9C9892 50%, #D8D5CC 100%);

  --bg-page: #14223A;
  --bg-surface: #1F3252;
  --bg-surface-alt: #243A60;
  --bg-elevated: #2A4068;
  --bg-tint: rgba(255, 255, 255, 0.04);

  --fg-1: #F4F2EC;            /* primary text */
  --fg-2: #C9C5BB;            /* secondary */
  --fg-3: #8E8B82;            /* muted */
  --fg-4: #5D6A82;            /* hint */
  --fg-on-brand: #F4F2EC;

  --border-1: rgba(244, 242, 236, 0.10);
  --border-2: rgba(244, 242, 236, 0.18);
  --border-strong: rgba(244, 242, 236, 0.32);

  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);

  --focus-ring: rgba(184, 181, 172, 0.45);
  color-scheme: dark;
}

/* ===========================================================
   THEME 02 — CREAM × CHARCOAL
   Default / everyday, editorial book feel
   =========================================================== */
[data-theme="cream"] {
  --brand: #2A2722;
  --brand-deep: #14110D;
  --brand-soft: #4A453C;
  --brand-tint: #ECE7DC;

  --accent: #4A453C;
  --accent-warm: #8A6B45;
  --accent-foil: linear-gradient(135deg, #4A453C 0%, #2A2722 100%);

  --bg-page: #EFE9DC;
  --bg-surface: #F5F0E3;
  --bg-surface-alt: #E7E0D0;
  --bg-elevated: #FBF7EC;
  --bg-tint: rgba(42, 39, 34, 0.04);

  --fg-1: #2A2722;
  --fg-2: #5A554C;
  --fg-3: #8A8478;
  --fg-4: #B0AB9F;
  --fg-on-brand: #F5F0E3;

  --border-1: rgba(42, 39, 34, 0.10);
  --border-2: rgba(42, 39, 34, 0.18);
  --border-strong: rgba(42, 39, 34, 0.32);

  --shadow-sm: 0 1px 3px rgba(42, 39, 34, 0.06);
  --shadow-md: 0 6px 20px rgba(42, 39, 34, 0.10);
  --shadow-lg: 0 20px 50px rgba(42, 39, 34, 0.14);

  --focus-ring: rgba(42, 39, 34, 0.30);
  color-scheme: light;
}

/* ===========================================================
   THEME 03 — SAGE × ROSE GOLD
   Anniversary, celebration, special-occasion
   =========================================================== */
[data-theme="sage"] {
  --brand: #C68B73;           /* rose gold */
  --brand-deep: #9C6E58;
  --brand-soft: #D6A28C;
  --brand-tint: #F0DDD3;

  --accent: #C68B73;
  --accent-warm: #D6A28C;
  --accent-foil: linear-gradient(135deg, #E3B7A1 0%, #B07A62 50%, #E3B7A1 100%);

  --bg-page: #D5DBCF;
  --bg-surface: #DDE2D6;
  --bg-surface-alt: #CCD3C6;
  --bg-elevated: #E6EADF;
  --bg-tint: rgba(58, 70, 58, 0.04);

  --fg-1: #3A463A;
  --fg-2: #5A6757;
  --fg-3: #818D7E;
  --fg-4: #A3AEA1;
  --fg-on-brand: #FDF8F4;

  --border-1: rgba(58, 70, 58, 0.10);
  --border-2: rgba(58, 70, 58, 0.18);
  --border-strong: rgba(58, 70, 58, 0.32);

  --shadow-sm: 0 1px 3px rgba(58, 70, 58, 0.08);
  --shadow-md: 0 6px 20px rgba(58, 70, 58, 0.12);
  --shadow-lg: 0 20px 50px rgba(58, 70, 58, 0.16);

  --focus-ring: rgba(198, 139, 115, 0.40);
  color-scheme: light;
}

/* ——— Base reset ——— */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg-page);
  color: var(--fg-1);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}
button { font: inherit; color: inherit; }

/* ——— Typography utilities ——— */
.eyebrow {
  font-family: var(--font-latin);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.display {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--fg-1);
}
.h1 { font-weight: 500; font-size: 34px; line-height: 1.2; letter-spacing: -0.022em; color: var(--fg-1); }
.h2 { font-weight: 500; font-size: 24px; line-height: 1.3; letter-spacing: -0.018em; color: var(--fg-1); }
.h3 { font-weight: 600; font-size: 17px; line-height: 1.4; letter-spacing: -0.01em; color: var(--fg-1); }
.body { font-size: 15px; line-height: 1.75; color: var(--fg-2); }
.small { font-size: 13px; line-height: 1.6; color: var(--fg-3); }
.mono { font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); }
.numeric { font-family: var(--font-latin); font-feature-settings: "tnum"; }
.divider { height: 1px; background: var(--border-1); border: 0; margin: var(--s-7) 0; }
