/* ============================================================
   CityScape™ Vancouver — shared site chrome (header + footer)
   Used by /, /press/ and /local-spots/. Tokens mirror press.css.
   Scoped to .site-head / .site-foot so it never touches the game.
   ============================================================ */
:root {
  --sc-cream: #F4EFE4;
  --sc-paper: #FFFCF5;
  --sc-ink: #1c2836;
  --sc-muted: #6F675A;
  --sc-blue: #1B6FC8;
  --sc-blue-deep: #155BA6;
  --sc-gold: #C8A24D;
  --sc-hairline: rgba(200, 162, 77, 0.55);
  --sc-max: 1120px;
  --sc-head-h: 64px;
}

.site-head, .site-foot { font-family: 'Barlow', system-ui, sans-serif; color: var(--sc-ink); -webkit-font-smoothing: antialiased; }
.site-head *, .site-foot * { box-sizing: border-box; }
.site-head .wrap, .site-foot .wrap { max-width: var(--sc-max); margin: 0 auto; padding: 0 24px; }

/* ── In-game: minimise the site menu ─────────────────────────
   While a game is running the header collapses to a thin strip so the board
   gets the height back. The strip is the button: full width, so it stays an
   easy target, and clicking it slides the menu back down. Nothing here applies
   outside a game — html.in-game is only set when the game screen opens. */
.site-head-toggle { display: none; }
html.in-game .site-head-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 20px; padding: 0; border: 0; background: none;
  color: var(--sc-muted); cursor: pointer;
}
html.in-game .site-head-toggle:hover { color: var(--sc-ink); background: color-mix(in srgb, var(--sc-gold) 12%, transparent); }
html.in-game .site-head-toggle svg { transition: transform .18s ease; }
html.in-game .site-head .wrap { min-height: 0; height: 0; overflow: hidden; opacity: 0; }
html.in-game.site-menu-open .site-head .wrap { height: auto; min-height: var(--sc-head-h); overflow: visible; opacity: 1; }
html.in-game.site-menu-open .site-head-toggle svg { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { html.in-game .site-head-toggle svg { transition: none; } }

/* ── Header ─────────────────────────────────────────────── */
.site-head {
  position: sticky; top: 0; z-index: 50; /* under every page modal (local-spots 1000, press lightbox 100) */
  background: color-mix(in srgb, var(--sc-paper) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--sc-hairline);
}
.site-head .wrap { display: flex; align-items: center; gap: 22px; min-height: var(--sc-head-h); }
.site-head .brand { display: flex; align-items: center; margin-right: auto; }
.site-head .brand img { display: block; height: 34px; width: auto; }
.site-head nav { display: flex; align-items: center; gap: 22px; }
.site-head nav a, .site-head nav button {
  font: 600 14px/1 'Barlow Condensed', 'Barlow', sans-serif; letter-spacing: .12em; text-transform: uppercase;
  color: var(--sc-ink); text-decoration: none; background: none; border: 0; padding: 8px 0; cursor: pointer;
  border-bottom: 2px solid transparent;
}
.site-head nav a:hover, .site-head nav button:hover { border-bottom-color: var(--sc-hairline); }
.site-head nav [aria-current="page"] { border-bottom-color: var(--sc-blue); }
.site-head .site-cta {
  font: 700 14px/1 'Barlow Condensed', 'Barlow', sans-serif; letter-spacing: .1em; text-transform: uppercase;
  color: #fff; background: var(--sc-blue); border-radius: 4px; padding: 12px 16px; text-decoration: none; white-space: nowrap;
}
.site-head .site-cta:hover { background: var(--sc-blue-deep); }
.site-head .burger {
  display: none; width: 44px; height: 44px; border: 1px solid var(--sc-hairline); border-radius: 4px; background: var(--sc-paper);
  cursor: pointer; padding: 0; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.site-head .burger span { display: block; width: 20px; height: 2px; background: var(--sc-ink); }

@media (max-width: 767px) {
  .site-head .wrap { gap: 12px; }
  .site-head .burger { display: flex; }
  .site-head .site-cta { display: none; }
  .site-head nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--sc-paper); border-bottom: 1px solid var(--sc-hairline);
    box-shadow: 0 12px 24px rgba(28, 40, 54, .08);
  }
  .site-head.open nav { display: flex; }
  .site-head nav a, .site-head nav button { padding: 16px 24px; text-align: left; border-bottom: 1px solid var(--sc-hairline); }
  .site-head.open .site-cta { display: block; margin: 12px 24px 16px; text-align: center; }
}

/* ── Footer ─────────────────────────────────────────────── */
.site-foot { background: var(--sc-paper); border-top: 1px solid var(--sc-hairline); padding: 40px 0 44px; font-size: 14.5px; color: var(--sc-muted); }
.site-foot .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.site-foot h4 { font: 600 13px/1 'Barlow Condensed', 'Barlow', sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--sc-muted); margin: 0 0 12px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin: 0 0 8px; }
.site-foot a, .site-foot button { color: var(--sc-ink); text-decoration: none; border-bottom: 1px solid var(--sc-hairline); background: none; border-top: 0; border-left: 0; border-right: 0; padding: 0; font: inherit; cursor: pointer; }
.site-foot a:hover, .site-foot button:hover { border-bottom-color: var(--sc-blue); }
.site-foot .brand img { display: block; height: 30px; width: auto; margin-bottom: 12px; }
.site-foot .fine { margin: 28px 0 0; font-size: 13px; text-wrap: pretty; }
@media (max-width: 767px) { .site-foot .cols { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { .site-head { backdrop-filter: none; } }
