/* ==========================================================================
   themes/mythforged.css — the public pages' look (MF-068, Don 2026-11-16)
   --------------------------------------------------------------------------
   "More in line with the style of modernmythology.net: hamburger menu, black
   background and white lettering."

   Worn by the launch page (signed out), About, Bios and Contact Us:
   app/views/site.py sets page_theme = "mythforged", so base.html loads this file
   after app.css and puts data-theme="mythforged" on <html>. The app's own pages
   (campaigns, sheets, Admin) never load it.

   Like every theme it only redefines app.css's variables and restyles existing
   classes, all scoped to [data-theme="mythforged"]. Its lettering is the three
   faces modernmythology.net uses (section 0); the colours are pure black and white.
   ========================================================================== */

/* ---------- 0. Fonts ------------------------------------------------------- */
/* The three faces modernmythology.net uses, from the Fontsource packages (latin subset, woff2), served from our
   own static/fonts because the Content-Security-Policy allows only 'self'. Licences sit beside the files:
   OFL-im-fell-english.txt, OFL-space-grotesk.txt (SIL Open Font License 1.1), APACHE-syncopate.txt (Apache 2.0). */
@font-face { font-family: "IM Fell English"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../../fonts/im-fell-english-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IM Fell English"; font-weight: 400; font-style: italic; font-display: swap;
  src: url("../../fonts/im-fell-english-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Syncopate"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../../fonts/syncopate-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../../fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); }

/* ---------- 1. Tokens (app.css section 1, redefined) ---------------------- */
[data-theme="mythforged"] {
  --bg: #000000;          /* page: black                          */
  --surface: #000000;     /* cards and bars sit flat on the page  */
  --surface-2: #1c1c1c;   /* hover                                */
  --ink: #ffffff;         /* lettering: white                     */
  --ink-muted: #c4c4c4;   /* secondary text (11:1 on black)       */
  --accent: #ffffff;      /* the main button and marks: white     */
  --accent-ink: #000000;  /* text on a white button               */
  --line: #3a3a3a;        /* hairlines                            */
  /* (Don 2026-11-16) "match the font in modernmythology.net as much as possible". Read from that site's own
     stylesheet in a browser: headings and the site title are Syncopate 700 in capitals; text and the menu are
     IM Fell English; buttons are Space Grotesk 500 in capitals. The same three faces are used here, self-hosted
     (section 0). Each stack ends in a device font of the same kind in case a file fails to load. */
  --font-body: "IM Fell English", Georgia, "Times New Roman", serif;
  --font-head: "Syncopate", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-button: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

/* ---------- 2. Base --------------------------------------------------------- */
/* Sizes and spacing follow the reference: text 16px with a little letter-spacing, headings small, tight and in
   capitals (Syncopate is a very wide face, so headings are smaller than the app's and may wrap). */
[data-theme="mythforged"] body { background: var(--bg); color: var(--ink); font-family: var(--font-body); letter-spacing: .01em; }
[data-theme="mythforged"] input, [data-theme="mythforged"] textarea, [data-theme="mythforged"] select { font-family: inherit; }
[data-theme="mythforged"] h1, [data-theme="mythforged"] h2, [data-theme="mythforged"] h3 {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: -.02em;
}
[data-theme="mythforged"] h1, [data-theme="mythforged"] .hero h1 { font-size: 1.35rem; }
[data-theme="mythforged"] h2 { font-size: 1rem; }
[data-theme="mythforged"] .brand { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: -.02em; font-size: 1rem; }
[data-theme="mythforged"] a { color: var(--ink); }
[data-theme="mythforged"] .btn, [data-theme="mythforged"] button {
  font-family: var(--font-button); font-weight: 500; text-transform: uppercase; letter-spacing: normal;
}
[data-theme="mythforged"] .btn { color: var(--ink); border-color: var(--ink); background: transparent; }
[data-theme="mythforged"] .btn-primary { background: var(--ink); color: var(--accent-ink); }
[data-theme="mythforged"] .btn:hover, [data-theme="mythforged"] .btn:focus-visible { background: var(--surface-2); }
[data-theme="mythforged"] .btn-primary:hover, [data-theme="mythforged"] .btn-primary:focus-visible { background: var(--ink-muted); }
[data-theme="mythforged"] .badge { font-family: var(--font-button); text-transform: none; }
[data-theme="mythforged"] :focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* The launch card has no box: content sits straight on the black page. */
[data-theme="mythforged"] .launch { border-color: transparent; }

/* ---------- 3. Hamburger menu at every width -------------------------------- */
/* app.css turns the menu into an inline row from 768px. Here it stays behind the ☰ button on wide screens
   too, as a panel under the right end of the top bar (app.js already toggles .open at any width). */
@media (min-width: 768px) {
  [data-theme="mythforged"] .menu-toggle { display: inline-block; }
  [data-theme="mythforged"] .full-menu {
    display: none; position: absolute; left: auto; right: 0; top: 100%; flex-direction: column; gap: 0;
    min-width: 240px; background: var(--surface); border: 1px solid var(--line); border-top: 0;
  }
  [data-theme="mythforged"] .full-menu.open { display: flex; }
  [data-theme="mythforged"] .full-menu a, [data-theme="mythforged"] .full-menu .disabled {
    border-top: 1px solid var(--line); padding: 0 var(--gap);
  }
}
[data-theme="mythforged"] .full-menu a { font-size: 1.05rem; }      /* the reference's menu: IM Fell English, as typed */
[data-theme="mythforged"] .full-menu .active { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 4. (MF-069) Heading links and banners --------------------------- */
[data-theme="mythforged"] .head-links a { font-size: 1rem; }
[data-theme="mythforged"] .banner { background: #0d0d0d; }
/* On a picture the button is solid, so it reads on any image: white for a game that is open, black for "coming soon". */
[data-theme="mythforged"] .banner-button { background: #000000; }
[data-theme="mythforged"] .banner-button.btn-primary { background: var(--ink); }
