/* ============================================================================
   Casa Digital Corners — STRICT Brand Tokens
   ONLY allowed colors:
     - Desert: #DDCAB2
     - Brown:  #7A4A1D
     - Ivory:  #F1ECE4
     - Gradient Gold: #E7AA51, #FFE499, #8D5A1B, #E7AA51, #AC7031
   NO other colors anywhere (no blue, green, red, gray, pure white, or black).
   ============================================================================ */

:root {
  /* Core Brand Palette */
  --brand-desert: #DDCAB2;
  --brand-brown: #7A4A1D;
  --brand-ivory: #F1ECE4;

  /* Gradient Gold Stops */
  --gold-1: #E7AA51;
  --gold-2: #FFE499;
  --gold-3: #8D5A1B;
  --gold-4: #E7AA51;
  --gold-5: #AC7031;

  /* Brand Gradients */
  --gradient-gold: linear-gradient(
    135deg,
    var(--gold-1) 0%,
    var(--gold-2) 28%,
    var(--gold-3) 55%,
    var(--gold-4) 78%,
    var(--gold-5) 100%
  );
  --gradient-gold-button: linear-gradient(
    135deg,
    var(--gold-2) 0%,
    var(--gold-1) 100%
  );
  --gradient-gold-button-hover: linear-gradient(
    135deg,
    var(--gold-2) 0%,
    var(--gold-5) 100%
  );

  /* Semantic Surface & Text Tokens (Light Mode — Default) */
  --bg-page: var(--brand-ivory);
  --bg-surface: var(--brand-ivory);
  --bg-subtle: var(--brand-desert);
  --bg-contrast: var(--brand-brown);

  --text-primary: var(--brand-brown);
  --text-muted: rgba(122, 74, 29, 0.78);
  --text-on-dark: var(--brand-ivory);
  --text-on-dark-muted: rgba(241, 236, 228, 0.82);

  --border-subtle: rgba(122, 74, 29, 0.22);
  --border-strong: rgba(122, 74, 29, 0.55);
  --shadow-soft: 0 10px 30px rgba(122, 74, 29, 0.10);
  --shadow-lift: 0 18px 36px rgba(122, 74, 29, 0.16);
  --backdrop-modal: rgba(122, 74, 29, 0.56);

  /* Brand Typography */
  --font-title: 'Permanent Marker', cursive;
  --font-body: 'Livvic', sans-serif;
  --font-accent: 'Covered By Your Grace', cursive;

  /* Spacing & Radii */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --container-max: 1120px;
  --container-narrow: 720px;

  /* Motion */
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 180ms;
  --duration-med: 340ms;
  --duration-slow: 640ms;
}

/* Optional Brand Dark Mode: Brown background + Ivory text */
[data-theme="dark"] {
  --bg-page: var(--brand-brown);
  --bg-surface: rgba(241, 236, 228, 0.06);
  --bg-subtle: rgba(221, 202, 178, 0.14);
  --bg-contrast: var(--brand-desert);

  --text-primary: var(--brand-ivory);
  --text-muted: rgba(241, 236, 228, 0.82);
  --text-on-dark: var(--brand-brown);
  --text-on-dark-muted: rgba(122, 74, 29, 0.82);

  --border-subtle: rgba(241, 236, 228, 0.24);
  --border-strong: rgba(255, 228, 153, 0.55);
  --shadow-soft: 0 10px 30px rgba(122, 74, 29, 0.35);
  --shadow-lift: 0 18px 36px rgba(122, 74, 29, 0.45);
  --backdrop-modal: rgba(122, 74, 29, 0.78);
}
