/*
 * Gem Frame: design tokens
 * A cheeky fantasy-quest look for everyday products. Night-blue stone surfaces with faint cracks,
 * a calligraphic serif for headlines, carved small caps for labels and buttons, and gilded frames
 * with a single sapphire gem set in the top edge. Buttons glow like lit lanterns. Progress is
 * shown as XP bars and quest logs.
 *
 * Fonts (all free on Google Fonts):
 *   <link href="https://fonts.googleapis.com/css2?family=Alegreya:ital,wght@0,500;0,700;0,800;1,500&family=Cinzel:wght@600;700&family=Figtree:wght@400;500;600&display=swap" rel="stylesheet">
 */
:root {
  /* Stone: the page is always night-blue stone */
  --gf-stone: #141a28;
  --gf-stone-2: #1c2335;      /* raised panels, cards */
  --gf-stone-3: #262f46;      /* inputs, table headers, hover */
  --gf-crack: #2f3954;        /* every border and divider, and the drawn cracks */
  --gf-deep: #0c1019;         /* footer, code blocks, inset wells */

  /* Text */
  --gf-parchment: #efe6d3;    /* headlines and body */
  --gf-soft: #a9aec2;         /* leads, secondary text */
  --gf-faint: #6d7591;        /* meta, placeholders */

  /* Gold: frames, primary buttons, the lantern glow */
  --gf-gold: #e3b04b;
  --gf-gold-light: #f6d98a;
  --gf-gold-deep: #9c6b22;
  --gf-bronze: #5e3c24;       /* the inner edge of a frame, the wooden rail */

  /* The gem: one sapphire per frame, links, focus rings */
  --gf-gem: #45bde8;
  --gf-gem-deep: #1a6f9c;

  /* Game stats, only for bars, badges and quest logs */
  --gf-xp: #63c46f;
  --gf-hp: #dc5a43;
  --gf-mana: #8a78e6;

  /* Type */
  --gf-display: "Alegreya", "Iowan Old Style", Georgia, serif;
  --gf-carved: "Cinzel", "Trajan Pro", Georgia, serif;
  --gf-sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gf-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gf-text-hero: clamp(42px, 6.4vw, 80px);
  --gf-text-h2: clamp(32px, 4vw, 50px);
  --gf-text-h3: 24px;
  --gf-text-lead: 19px;
  --gf-text-body: 16px;
  --gf-text-small: 14px;
  --gf-text-label: 12px;

  /* Shape: frames are square with clipped corners, never round */
  --gf-radius: 4px;
  --gf-radius-sm: 2px;
  --gf-notch: 10px;           /* the clipped corner on frames and buttons */
  --gf-frame: 2px;            /* gold border width */

  /* Light: lantern glow on gold, deep drop under panels */
  --gf-glow: 0 0 0 1px rgba(227, 176, 75, .35), 0 6px 26px rgba(227, 176, 75, .32);
  --gf-glow-strong: 0 0 0 1px rgba(246, 217, 138, .6), 0 8px 40px rgba(227, 176, 75, .5);
  --gf-gem-glow: 0 0 12px rgba(69, 189, 232, .75);
  --gf-drop: 0 18px 40px rgba(0, 0, 0, .45);
  --gf-inset: inset 0 0 0 1px var(--gf-bronze), inset 0 2px 10px rgba(0, 0, 0, .5);

  /* Space */
  --gf-section: clamp(72px, 10vw, 120px);
  --gf-container: 1140px;
  --gf-narrow: 720px;
  --gf-gap: 24px;
}
