/* The header and footer every page carries, copied by hand into each page (no build step; see README). It takes its
   colours and the column width (.wrap) from each page's own stylesheet, so it sits in each game's look. */
/* The header's measures. Its full height is --site-head-px plus the top safe area (the notch, in a home-screen app);
   the games' opening pictures leave that much room for it. */
:root {
  --site-head-px: 56px;
  --crest-px: 44px;        /* the Spark & Siege crest's height, linking home */
  --game-icon-px: 24px;    /* each game tab's app icon */
  --this-game-fill: rgba(242, 193, 78, 0.08);   /* --gold, faint: the ground of the lit tab */
}

/* A solid bar: the world's crest on the left links home; on the right each game is a tab with its app icon, and the
   game whose pages these are (.this-game) is lit in gold. The crest and icons tell the world from its games, so the
   bar needs no labels. */
.site-head {
  padding-top: env(safe-area-inset-top);
  /* The hairline is drawn inside the box, so it adds nothing to the height. */
  background: var(--night); box-shadow: inset 0 -1px 0 var(--hair, var(--edge));
  font: 700 0.8125rem/1 "Alegreya Sans", "Alegreya Sans Fallback", system-ui, sans-serif;
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--site-head-px); }
.site-head a { color: var(--ink); text-decoration: none; }
.site-head .crest img { height: var(--crest-px); width: auto; }
.site-head nav { display: flex; gap: 6px; }
.site-head nav a { display: flex; align-items: center; gap: 6px; padding: 5px 10px 5px 5px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; }
.site-head nav img { width: var(--game-icon-px); height: var(--game-icon-px); border-radius: 22.37%; }   /* 22.37%: iOS's icon corner */
.site-head nav a:hover, .site-head nav a:focus-visible { color: var(--gold); }
.site-head nav a.this-game { color: var(--gold); border-color: var(--hair, var(--edge)); background: var(--this-game-fill); }

.site-foot { padding: 22px 0 max(28px, env(safe-area-inset-bottom)); color: var(--muted); font-size: 0.9rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 32px; }
.site-foot a { color: var(--ink); margin-left: 8px; text-underline-offset: 0.18em; }
.site-foot a:hover, .site-foot a:focus-visible { color: var(--gold); }
