/*
  ═══════════════════════════════════════════════════════════════════
  THE HOUSE OF FIENDS — THEME
  Every colour, font and size the site uses lives here.
  Change a value and it changes everywhere it's used, including the
  eyes, which are drawn in SVG and read these same values.

  Colours are hex (#rrggbb). Need a colour picker? Search "hex color
  picker" in any browser.
  ═══════════════════════════════════════════════════════════════════
*/

:root {
  /* ── The page ─────────────────────────────────────────────── */
  --bg: #060506;              /* the background behind everything */
  --panel-top: #120f0f;       /* pop-ups: top of their gradient */
  --panel: #0a0809;           /* pop-ups' base; also each eye's dark socket */
  --panel-edge: #0a0808;
  --card-top: #1b1615;        /* story cards with no picture */
  --card-bottom: #0b0909;
  --card-shade: #050404;      /* the dark fade at the foot of story cards */
  --border-dark: #2a2018;
  --scrollbar: #333333;
  --shadow: #000000;
  --white: #ffffff;

  /* ── Text ─────────────────────────────────────────────────── */
  --ink: #ece3d6;             /* main text */
  --ink-soft: #b9ab9b;        /* secondary text */
  --muted: #93836f;           /* quiet labels and captions (kept light enough to read: 5:1 on the page) */

  /* ── Bronze: frames, lattice, ornaments, links ───────────── */
  --bronze: #c89b6d;
  --bronze-hi: #f1cb98;       /* the bright gold of links and headings */
  --line: rgba(200, 155, 109, 0.28);   /* thin divider lines */
  /* the metallic gradient on every ring, light → dark → light */
  --metal-1: #f6d3a2;
  --metal-2: #b07a48;
  --metal-3: #4e321c;
  --metal-4: #d6a571;
  --metal-5: #7a5030;

  /* ── The hexagon ──────────────────────────────────────────── */
  --hex-1: #1b1517;           /* inside the hexagon, centre → edge */
  --hex-2: #0d0a0b;
  --hex-3: #060506;
  --lattice-edge: #7d5638;    /* the bronze edges of the black bars */
  --lattice-fill: #0a0809;
  --nebula-1: #6a4428;        /* soft clouds of colour inside the hexagon */
  --nebula-2: #3e2c3a;
  --nebula-3: #2d221c;
  --star: #f1cb98;
  --star-bright: #f6e2c4;

  /* ── Every eye: whites, lids, pupils ──────────────────────── */
  --sclera-1: #f1e9de;        /* the white of the eye, centre → corners */
  --sclera-2: #d2c3b0;
  --sclera-3: #7a6553;
  --sclera-4: #2a1f18;
  --lid: #0d0807;             /* eyelid lines */
  --lash: #d6a571;            /* the thin gold line above each lid */
  --pupil: #030202;
  --court-iris: #050505;      /* the twelve small eyes of the court */

  /* ── Smoke at the page edges (red green blue, 0–255) ─────── */
  --smoke-rgb: 199, 168, 143;

  /* ── Moonlight: used by the Essays and Rural pop-ups ─────── */
  --moonlight: #dce6f5;
  --moonlight-cool: #d6e2e8;

  /* ── Type ─────────────────────────────────────────────────── */
  --font-display: 'Grenze Gotisch', 'UnifrakturCook', serif;   /* headings */
  --font-serif: 'Grenze', Georgia, serif;                       /* body text */
  --font-body: 'Syne', system-ui, sans-serif;                   /* small capitals labels */
  --body-weight: 300;         /* 300 = light … 400 = regular … 500 = medium */
  --body-size: 20px;          /* About page body text */
  --body-size-phone: 18px;
}

/*
  ═══════════════════════════════════════════════════════════════════
  THE EYES — each has its own palette
    -accent   its colour: glow, labels, its pop-up's highlights
    -iris-1…4 its iris, from the centre outward to the dark rim
  ═══════════════════════════════════════════════════════════════════
*/

:root {
  /* R0001 · The Blind Eye — the centre, leads to About. Not of this world: pale and spectral */
  --about-accent: #bfe3dc;         /* its corona, glyph ring and aura */
  --about-halo: #e4fff8;           /* the light around its pupil, the stars in its iris, its rim */
  --about-iris-1: #f6f3e9;
  --about-iris-2: #9fc2bd;
  --about-iris-3: #2c474d;
  --about-iris-4: #060b0e;
  --about-cataract: #e6f4f1;       /* the cloud over its iris */

  /* Personal Essays — R0018 · The Vox Populi (the Moon) */
  --essays-accent: #aebdd6;
  --essays-iris-1: #c9d3df;
  --essays-iris-2: #7f8fa6;
  --essays-iris-3: #3c4657;
  --essays-iris-4: #12151b;
  --essays-moon-1: #3c3638;        /* the moon orb, lit side → shadow */
  --essays-moon-2: #161314;
  --essays-specks: #f4f7ff;        /* stars caught in its iris */
  --essays-heading: #dce6f5;       /* section headings in its pop-up: moonlight */

  /* Fantasy Fiction — R0073 · The Golden Fool */
  --fantasy-accent: #e8b450;
  --fantasy-iris-1: #f7d58a;
  --fantasy-iris-2: #c9862a;
  --fantasy-iris-3: #6e3d10;
  --fantasy-iris-4: #1d0f05;
  --fantasy-flecks: #ffe6a8;       /* gold leaf in its iris */
  --fantasy-heading: #f1d39a;      /* section headings in its pop-up */

  /* Science Fiction — R0484 · The Blue Moon */
  --scifi-accent: #7fcbe6;
  --scifi-iris-1: #d5f3ff;
  --scifi-iris-2: #5fa9c4;
  --scifi-iris-3: #1f4e60;
  --scifi-iris-4: #061419;
  --scifi-bg-top: #0b1013;
  --scifi-bg-bottom: #070909;

  /* Historical Fiction — R0044 · The Honor Guard: ornate, royal purple and gold */
  --historical-accent: #b48ce0;
  --historical-iris-1: #ead8f7;
  --historical-iris-2: #8a5cc0;
  --historical-iris-3: #3c1f5c;
  --historical-iris-4: #12081c;
  --historical-gold: #d8b46a;      /* the gold of its filigree and crest */
  --historical-heading: #e6d3f7;   /* section headings in its pop-up: pale violet, between gold lozenges */
  --historical-bg-top: #160d1f;
  --historical-bg-bottom: #0b0710;

  /* Other Fiction — R0999 · The Common Clay: dark maroon (its iris drifts between reds) */
  --other-accent: #b8475a;
  --other-text: #cc5a6e;
  --other-heading: #d86a7d;        /* section headings in its pop-up */           /* the same red, a touch lighter, for words in it (so they stay readable) */
  --other-iris-1: #eaa7b0;
  --other-iris-2: #9a2c40;
  --other-iris-3: #4a0e1c;
  --other-iris-4: #140306;
  --other-hue: 350;                /* the centre of its drifting iris colour (0 = red, 330 = crimson) */
  --other-hue-swing: 18;           /* how far either side of that it drifts */
  --other-shift-1: #7a1f30;        /* the reds its pop-up's edge cycles through */
  --other-shift-2: #b8475a;
  --other-shift-3: #5c1424;
  --other-bg-top: #160a0d;
  --other-bg-bottom: #0b0506;

  /* 'Rural' Fantasy Fiction — R0369 · The Wolf's Mother: aged bronze gone green */
  --rural-accent: #8fa565;
  --rural-iris-1: #d6d88e;
  --rural-iris-2: #8f9a3e;
  --rural-iris-3: #46501c;
  --rural-iris-4: #121608;
  --rural-feral-1: #ffd25a;        /* her iris when feral (hovered or clicked): centre … */
  --rural-feral-2: #e07a1a;
  --rural-feral-3: #7a1608;
  --rural-feral-4: #1c0402;        /* … to the dark rim */
  --rural-claws: #d9dcc0;          /* the claw marks across her ring */
  --rural-heading: #cfd59a;        /* section headings in her pop-up: pale lichen green */
  --rural-bg-top: #0b120f;
  --rural-bg-bottom: #070a08;

  /* Each eye's white of the eye, where it differs from the default above */
  --sclera-sepia-1: #eadbbf;  --sclera-sepia-2: #c9ad83;  --sclera-sepia-3: #6f5232;  --sclera-sepia-4: #2a1c10;
  --sclera-wolf-1:  #cfcaa0;  --sclera-wolf-2:  #969160;  --sclera-wolf-3:  #43432a;  --sclera-wolf-4:  #12130a;
  --sclera-void-1:  #1d3236;  --sclera-void-2:  #0f1d20;  --sclera-void-3:  #071013;  --sclera-void-4:  #020506;   /* the Blind Eye */
  --sclera-regal-1: #f2ebf2;  --sclera-regal-2: #d2c4d6;  --sclera-regal-3: #5e4a68;  --sclera-regal-4: #1a1020;
  --sclera-cool-1:  #eef1f4;  --sclera-cool-2:  #c6ccd4;  --sclera-cool-3:  #5f6672;  --sclera-cool-4:  #1c1f25;

  /* Pop-up backgrounds for the two moonlit eyes */
  --essays-bg-top: #0d0f14;
  --essays-bg-bottom: #08080b;
}

/*
  ═══════════════════════════════════════════════════════════════════
  FONTS — served from this site (assets/fonts), Latin characters only.
  To change a font, swap the file and keep the name, or change the
  --font-… lines at the top of this file.
  ═══════════════════════════════════════════════════════════════════
*/
@font-face {
  font-family: 'Grenze Gotisch';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/grenze-gotisch.woff2') format('woff2');
}
@font-face {
  font-family: 'Grenze';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/assets/fonts/grenze.woff2') format('woff2');
}
@font-face {
  font-family: 'Grenze';
  font-style: italic;
  font-weight: 300 500;
  font-display: swap;
  src: url('/assets/fonts/grenze-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/syne.woff2') format('woff2');
}
