/* ============================================================
   METAMYTH DESIGN SYSTEM — Colors & Typography
   metamyth.quest · Another World Is Possible
   ============================================================ */

/* ── FONTS ── */
@font-face {
      font-display: swap;
  font-family: 'Pherome';
  src: url('fonts/Pherome Regular.woff2') format('woff2'), url('fonts/Pherome Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
      font-display: swap;
  font-family: 'Futura';
  src: url('fonts/Futura Regular.woff2') format('woff2'), url('fonts/Futura Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
      font-display: swap;
  font-family: 'Futura';
  src: url('fonts/Futura_Medium.woff2') format('woff2'), url('fonts/Futura_Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}

/* ── BASE TOKENS ── */
:root {
  /* --- Color Palette --- */

  /* Backgrounds */
  --color-bg-deep:       #091e14;   /* deepest black-green, used for outer voids */
  --color-bg-forest:     #0d3122;   /* primary dark forest green — main bg */
  --color-bg-mid:        #123d2a;   /* slightly lifted surface, card bg */
  --color-bg-surface:    #1a4d34;   /* elevated panels, sidebars */
  --color-bg-overlay:    rgba(9, 30, 20, 0.85); /* modal overlay */

  /* Gold — used on display headings, borders, ornaments */
  --color-gold-bright:   #d4a843;   /* primary gold title accent */
  --color-gold-warm:     #c9913a;   /* warmer gold for hover, emphasis */
  --color-gold-dim:      #8a6620;   /* muted gold, decorative elements */
  --color-gold-line:     rgba(212, 168, 67, 0.45); /* thin rule / border gold */

  /* Teal — used for body highlights, links, glow accents */
  --color-teal-glow:     #2ec4b0;   /* primary teal — glowing text highlights */
  --color-teal-bright:   #00d9c4;   /* brighter teal, hover links */
  --color-teal-dim:      #1a7d6e;   /* muted teal, subtle accents */
  --color-teal-cyan:     #35b8e0;   /* sky-cyan, logo dot, secondary accent */

  /* Neutrals / Text */
  --color-cream:         #f0e8d0;   /* primary body text, headings on dark */
  --color-ivory:         #e8ddc0;   /* slightly warm, secondary text */
  --color-mist:          #b0c4bb;   /* dimmed labels, captions, metadata */
  --color-smoke:         #607a6e;   /* disabled / placeholder text */

  /* Semantic */
  --color-fg-primary:    var(--color-cream);
  --color-fg-secondary:  var(--color-ivory);
  --color-fg-muted:      var(--color-mist);
  --color-fg-disabled:   var(--color-smoke);
  --color-fg-accent:     var(--color-teal-glow);
  --color-fg-highlight:  var(--color-gold-bright);
  --color-link:          var(--color-teal-glow);
  --color-link-hover:    var(--color-teal-bright);

  /* --- Typography Families --- */
  --font-display:  'Pherome', 'Cormorant Garamond', Georgia, serif;  /* large editorial headings */
  --font-label:    'Futura', 'Trebuchet MS', sans-serif;             /* small caps labels, metadata */
  --font-body:     'Futura', 'Trebuchet MS', sans-serif;             /* body copy (Futura at small sizes) */
  --font-italic:   'Pherome', Georgia, serif;                        /* italic callouts, drop caps */

  /* --- Type Scale --- */
  --text-2xs:   0.625rem;   /* 10px  — slide numbers, footnotes */
  --text-xs:    0.75rem;    /* 12px  — captions, footnotes */
  --text-sm:    0.875rem;   /* 14px  — body small, metadata */
  --text-base:  1rem;       /* 16px  — body default */
  --text-md:    1.125rem;   /* 18px  — body large */
  --text-lg:    1.375rem;   /* 22px  — subheadings */
  --text-xl:    1.75rem;    /* 28px  — section headers */
  --text-2xl:   2.5rem;     /* 40px  — slide headlines */
  --text-3xl:   3.5rem;     /* 56px  — hero display */
  --text-4xl:   5rem;       /* 80px  — large hero / title slides */
  --text-5xl:   7rem;       /* 112px — max display, drop caps */

  /* --- Letter Spacing --- */
  --tracking-tighter: -0.02em;
  --tracking-tight:   -0.01em;
  --tracking-normal:   0em;
  --tracking-wide:     0.08em;   /* label/small-caps */
  --tracking-wider:    0.15em;   /* nav, metadata */
  --tracking-widest:   0.25em;   /* decorative all-caps */

  /* --- Line Heights --- */
  --leading-none:    1;
  --leading-tight:   1.15;
  --leading-snug:    1.3;
  --leading-normal:  1.5;
  --leading-relaxed: 1.65;
  --leading-loose:   1.85;

  /* --- Spacing --- */
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-5:   1.25rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-10:  2.5rem;
  --space-12:  3rem;
  --space-16:  4rem;
  --space-20:  5rem;
  --space-24:  6rem;
  --space-32:  8rem;

  /* --- Radii --- */
  --radius-none:   0;
  --radius-sm:     2px;
  --radius-md:     4px;
  --radius-lg:     8px;
  --radius-xl:     12px;
  --radius-pill:   9999px;

  /* --- Borders --- */
  --border-gold:      1px solid var(--color-gold-line);
  --border-gold-dim:  1px solid rgba(212, 168, 67, 0.2);
  --border-teal:      1px solid rgba(46, 196, 176, 0.35);

  /* --- Shadows / Glows --- */
  --glow-teal:        0 0 18px rgba(46, 196, 176, 0.45);
  --glow-teal-strong: 0 0 32px rgba(46, 196, 176, 0.7);
  --glow-gold:        0 0 18px rgba(212, 168, 67, 0.45);
  --glow-gold-strong: 0 0 36px rgba(212, 168, 67, 0.6);
  --shadow-card:      0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-deep:      0 8px 48px rgba(0, 0, 0, 0.7);

  /* --- Animation --- */
  --ease-out:    cubic-bezier(0.0, 0.0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0.0, 0.2, 1);
  --duration-fast: 150ms;
  --duration-base: 280ms;
  --duration-slow: 500ms;
}

/* ── SEMANTIC TYPE STYLES ── */

/* Display / Hero headings — Pherome serif */
.t-display-xl  { font-family: var(--font-display); font-size: var(--text-4xl); line-height: var(--leading-tight); letter-spacing: var(--tracking-tight); color: var(--color-cream); }
.t-display-lg  { font-family: var(--font-display); font-size: var(--text-3xl); line-height: var(--leading-tight); letter-spacing: var(--tracking-tight); color: var(--color-cream); }
.t-display-md  { font-family: var(--font-display); font-size: var(--text-2xl); line-height: var(--leading-snug); color: var(--color-cream); }
.t-display-sm  { font-family: var(--font-display); font-size: var(--text-xl);  line-height: var(--leading-snug); color: var(--color-cream); }

/* Labels & Metadata — Futura in small caps / wide tracking */
.t-label       { font-family: var(--font-label); font-size: var(--text-xs);  letter-spacing: var(--tracking-wide);   text-transform: uppercase; color: var(--color-mist); }
.t-label-sm    { font-family: var(--font-label); font-size: var(--text-2xs); letter-spacing: var(--tracking-wider);  text-transform: uppercase; color: var(--color-mist); }
.t-nav         { font-family: var(--font-label); font-size: var(--text-xs);  letter-spacing: var(--tracking-widest); text-transform: uppercase; color: var(--color-cream); }

/* Body — Futura at smaller sizes */
.t-body-lg     { font-family: var(--font-body); font-size: var(--text-md);   line-height: var(--leading-relaxed); color: var(--color-cream); }
.t-body        { font-family: var(--font-body); font-size: var(--text-base); line-height: var(--leading-relaxed); color: var(--color-cream); }
.t-body-sm     { font-family: var(--font-body); font-size: var(--text-sm);   line-height: var(--leading-normal);  color: var(--color-ivory); }
.t-caption     { font-family: var(--font-body); font-size: var(--text-xs);   line-height: var(--leading-normal);  color: var(--color-mist); }

/* Italic callout — Pherome italic */
.t-callout     { font-family: var(--font-italic); font-style: italic; font-size: var(--text-sm); color: var(--color-mist); line-height: var(--leading-relaxed); }

/* Accent text colors */
.t-gold        { color: var(--color-gold-bright); }
.t-teal        { color: var(--color-teal-glow); }
.t-cream       { color: var(--color-cream); }
.t-muted       { color: var(--color-mist); }

/* ── GLOBAL RESET (minimal) ── */
*, *::before, *::after { box-sizing: border-box; }

body {
  background-color: var(--color-bg-forest);
  color: var(--color-fg-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  -webkit-font-smoothing: antialiased;
}

h1 { font-family: var(--font-display); font-size: var(--text-3xl); line-height: var(--leading-tight); color: var(--color-cream); margin: 0 0 var(--space-6); }
h2 { font-family: var(--font-display); font-size: var(--text-2xl); line-height: var(--leading-snug); color: var(--color-cream); margin: 0 0 var(--space-5); }
h3 { font-family: var(--font-display); font-size: var(--text-xl);  line-height: var(--leading-snug); color: var(--color-cream); margin: 0 0 var(--space-4); }
h4 { font-family: var(--font-label);   font-size: var(--text-xs);  letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--color-mist); margin: 0 0 var(--space-3); }
p  { margin: 0 0 var(--space-4); }
a  { color: var(--color-link); text-decoration: none; transition: color var(--duration-fast) var(--ease-out); }
a:hover { color: var(--color-link-hover); }

/* Gold highlight span — wraps key word in headlines */
.gold   { color: var(--color-gold-bright); }
.teal   { color: var(--color-teal-glow); }

/* Decorative rule with center diamond */
.rule-gold {
  border: none;
  height: 1px;
  background: var(--color-gold-line);
  position: relative;
  margin: var(--space-6) 0;
}
.rule-gold::after {
  content: '◆';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--color-gold-bright);
  font-size: 8px;
  background: var(--color-bg-forest);
  padding: 0 6px;
}

/* Ornamental border frame */
.frame-border {
  border: var(--border-gold);
  border-radius: var(--radius-sm);
  position: relative;
  padding: var(--space-8);
}
