/* ============================================================
   ORÁCULO FEMININO — Colors & Type
   Dark Luxury · Night Green · Gold · Cream
   ============================================================ */

/* Fonts ------------------------------------------------------ */
/* Cinzel — brand display, loaded from local variable .ttf      */
/* Cormorant Garamond + Inter — still via Google Fonts          */
@font-face {
  font-family: 'Cinzel';
  src: url('fonts/Cinzel-VariableFont_wght.ttf') format('truetype-variations'),
       url('fonts/Cinzel-VariableFont_wght.ttf') format('truetype');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cinzel Decorative';
  src: url('fonts/CinzelDecorative-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* ---- Core palette ------------------------------------- */
  --of-night-green:       #142223;   /* primary background */
  --of-night-green-deep:  #0B1516;   /* deeper pit / modal scrim */
  --of-night-green-soft:  #1C3031;   /* elevated card surface */
  --of-night-green-mist:  #26403F;   /* hover / border tint */

  --of-gold:              #D4AF37;   /* primary gold — matte */
  --of-gold-bright:       #E6C558;   /* hover gold */
  --of-gold-deep:         #A6861E;   /* pressed / foil shadow */
  --of-gold-leaf:         #F4DE8A;   /* highlight on curved foil */

  --of-cream:             #FDFBF7;   /* primary text on dark */
  --of-cream-dim:         #E8E2D4;   /* secondary text */
  --of-cream-muted:       #B8B0A0;   /* tertiary / captions */
  --of-cream-ghost:       #6F685C;   /* disabled */

  --of-obsidian:          #080D0E;   /* absolute black (frame, print) */
  --of-bordeaux:          #5B1B2E;   /* ritual accent (rare) */

  /* ---- Semantic backgrounds ----------------------------- */
  --bg:                   var(--of-night-green);
  --bg-deep:              var(--of-night-green-deep);
  --bg-elevated:          var(--of-night-green-soft);
  --bg-hover:             var(--of-night-green-mist);

  /* ---- Semantic foregrounds ----------------------------- */
  --fg:                   var(--of-cream);
  --fg-dim:               var(--of-cream-dim);
  --fg-muted:             var(--of-cream-muted);
  --fg-ghost:             var(--of-cream-ghost);
  --fg-accent:            var(--of-gold);
  --fg-accent-hover:      var(--of-gold-bright);

  /* ---- Borders & dividers ------------------------------- */
  --border-hairline:      rgba(212,175,55,0.18);   /* gold @ 18% */
  --border-soft:          rgba(253,251,247,0.08);
  --border-gold:          rgba(212,175,55,0.55);
  --border-gold-strong:   #D4AF37;

  /* ---- Gradients (used sparingly) ----------------------- */
  --grad-gold-foil:       linear-gradient(135deg, #A6861E 0%, #D4AF37 35%, #F4DE8A 50%, #D4AF37 65%, #A6861E 100%);
  --grad-temple:          radial-gradient(ellipse at top, #1C3031 0%, #142223 45%, #0B1516 100%);
  --grad-moonrise:        radial-gradient(circle at 50% 120%, rgba(212,175,55,0.18) 0%, rgba(212,175,55,0) 55%);
  --grad-veil:            linear-gradient(180deg, rgba(8,13,14,0) 0%, rgba(8,13,14,0.85) 100%);

  /* ---- Shadows — elevation + gold glow ------------------ */
  --shadow-xs:            0 1px 2px rgba(0,0,0,0.35);
  --shadow-sm:            0 2px 8px rgba(0,0,0,0.45);
  --shadow-md:            0 8px 24px rgba(0,0,0,0.55);
  --shadow-lg:            0 20px 60px rgba(0,0,0,0.65);
  --shadow-gold-glow:     0 0 0 1px rgba(212,175,55,0.35), 0 0 24px rgba(212,175,55,0.18);
  --shadow-gold-press:    inset 0 1px 0 rgba(244,222,138,0.35), inset 0 -1px 0 rgba(166,134,30,0.55);
  --shadow-candle:        0 0 40px 4px rgba(212,175,55,0.25);

  /* ---- Radii — restrained, never bubbly ----------------- */
  --radius-xs:   2px;
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   20px;
  --radius-arch: 999px 999px 4px 4px;  /* gothic arch top */

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

  /* ---- Typography families ------------------------------ */
  --font-display:     'Cinzel Decorative', 'Cinzel', 'Trajan Pro', 'Times New Roman', serif;
  --font-display-alt: 'Cinzel', 'Trajan Pro', 'Times New Roman', serif;
  --font-serif:       'Cormorant Garamond', 'Garamond', 'Georgia', serif;
  --font-sans:        'Inter', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-mono:        'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* ---- Type scale (semantic) ---------------------------- */
  --fs-display:  clamp(48px, 6vw, 88px);
  --fs-h1:       clamp(40px, 4vw, 64px);
  --fs-h2:       clamp(32px, 3vw, 44px);
  --fs-h3:       28px;
  --fs-h4:       22px;
  --fs-body-lg:  19px;
  --fs-body:     16px;
  --fs-small:    14px;
  --fs-caption:  12px;
  --fs-eyebrow:  11px;

  --lh-tight:    1.08;
  --lh-snug:     1.25;
  --lh-reading:  1.65;
  --lh-body:     1.55;

  --tracking-loose:  0.22em;   /* eyebrows, small caps */
  --tracking-wide:   0.08em;   /* display capitals */
  --tracking-normal: 0;
  --tracking-tight:  -0.01em;

  /* ---- Motion ------------------------------------------- */
  --ease-temple:    cubic-bezier(0.22, 0.61, 0.36, 1);     /* default — slow, stately */
  --ease-veil:      cubic-bezier(0.4, 0, 0.2, 1);          /* fades */
  --dur-fast:   160ms;
  --dur-base:   280ms;
  --dur-slow:   520ms;
  --dur-ritual: 900ms;
}

/* ============================================================
   Base
   ============================================================ */
html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--of-gold);
  color: var(--of-night-green);
}

/* ============================================================
   Typography semantics
   ============================================================ */

.of-eyebrow, [data-of="eyebrow"] {
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-loose);
  color: var(--of-gold);
}

.of-display, [data-of="display"] {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--fg);
}

.of-h1, [data-of="h1"] {
  font-family: var(--font-display-alt);
  font-weight: 500;
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.of-h2, [data-of="h2"] {
  font-family: var(--font-display-alt);
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.of-h3, [data-of="h3"] {
  font-family: var(--font-serif);
  font-weight: 500;
  font-style: italic;
  font-size: var(--fs-h3);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-normal);
}

.of-h4, [data-of="h4"] {
  font-family: var(--font-display-alt);
  font-weight: 500;
  font-size: var(--fs-h4);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.of-lede, [data-of="lede"] {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: var(--lh-reading);
  font-weight: 400;
  color: var(--fg-dim);
}

.of-quote, [data-of="quote"] {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 28px;
  line-height: 1.4;
  color: var(--of-gold);
  font-weight: 400;
}

.of-body, [data-of="body"] {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-reading);
  color: var(--fg-dim);
}

.of-caption, [data-of="caption"] {
  font-family: var(--font-sans);
  font-size: var(--fs-caption);
  letter-spacing: 0.04em;
  color: var(--fg-muted);
}

/* Gold-foil text fill (headings, numerals) */
.of-gold-foil {
  background: var(--grad-gold-foil);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

/* Ornamental divider — thin gold line with centered diamond */
.of-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--of-gold);
}
.of-divider::before,
.of-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--of-gold) 50%, transparent);
}
.of-divider-glyph {
  font-family: var(--font-display);
  letter-spacing: 0.4em;
  font-size: 12px;
}
