/* The main menu's look (menu.html), one concern per file.
   stage    the hall behind everything, the shade over it, the fades
   front    the front layer: how its parts fade in, where the column sits
   brand    the name top left, the ways back to the site top right
   hero     Continue (or New game): the big word, the journey, the next step
   list     the small words under it
   foot     the small print and who made it
   panel    what takes the column's place: Load, Options, a new game
   credits  the roll
   The warm gold is the braziers'; the cold is the moon's. */

@import url("./stage.css");
@import url("./front.css");
@import url("./brand.css");
@import url("./hero.css");
@import url("./list.css");
@import url("./foot.css");
@import url("./panel.css");
@import url("./credits.css");

:root {
  --gold: #f2c46e;
  --gold-hot: #f6e6c2;
  --gold-rgb: 242, 196, 110;
  --cream: #f6e6c2;
  --ink: #f4eadb;
  --ink-2: rgba(244, 234, 219, .76);
  --ink-3: rgba(244, 234, 219, .6);
  --ink-4: rgba(244, 234, 219, .42);
  --night: #0a0807;
  --name: "Cinzel", Georgia, serif;
  --read: "Crimson Pro", Georgia, serif;
  --plain: "Hanken Grotesk", system-ui, sans-serif;
  --shadow: 0 1px 3px rgba(0, 0, 0, .85), 0 0 16px rgba(0, 0, 0, .5);
  --ease: cubic-bezier(.2, .8, .2, 1);

  /* The design is drawn at 1440 by 900. One unit of --s is a pixel of that
     drawing, scaled to the window (and held from growing past 1.4 on a big
     screen); sizes that must stay readable take a floor beside it. */
  --s: min(100vw / 1440, 100vh / 900, 1.4px);
  --left: max(24px, calc(80 * var(--s)));
  --top: max(28px, calc(60 * var(--s)));
  --column-top: max(calc(var(--top) + 96px), calc(188 * var(--s)));
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body { width: 100%; height: 100%; overflow: hidden; background: var(--night); color: var(--ink); }
body { font: 18px/1.5 var(--plain); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 1px solid rgba(var(--gold-rgb), .7); outline-offset: 4px; }
::selection { background: var(--gold); color: var(--night); }

@media (max-width: 900px) {
  :root { --s: .5px; --left: 24px; --top: 22px; }
}
