/* Shared look for every page of vibesbydee.com: the game's own world of dark ink, wood, parchment and gold, set in
   Cinzel (titles) and Alegreya (text), with one top bar and one footer. build_site.py adds this file, the bar and
   the footer to every page, so they always match. Page-specific layout stays in each page's own <style>.
   Only classes starting with "site-" live here, so this file can't disturb a page's own styles (the scrapbook). */
:root {
  --ink: #15110e;        /* page */
  --wood: #2a2018;       /* panels */
  --wood-deep: #1a120b;  /* bar, footer, panel shade */
  --parch: #e6d6b5;      /* story scroll */
  --parch-ink: #3a2a1c;  /* text on parchment */
  --clay: #c8703f;       /* terracotta: Greek key, titles on parchment */
  --clay-soft: #e3a57c;  /* small labels on dark */
  --gold: #d4a85a;       /* trim, titles, buttons */
  --rod: #826249;        /* scroll rods */
  --bone: #efe4d4;       /* body text */
  --muted: #a8998a;      /* secondary text */
  --line: #3a2e25;       /* hairlines */
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --body: "Alegreya", Georgia, "Times New Roman", serif;
  --ui: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
  /* The Greek key (meander) band, the site's one ornament. */
  --key: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='12' viewBox='0 0 20 12'%3E%3Cpath d='M0 11H20M1 11V1H13V8H6V4H9' fill='none' stroke='%23c8703f' stroke-width='1.5'/%3E%3C/svg%3E");
  color-scheme: dark;
}
body { margin: 0; background: var(--ink); color: var(--bone); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--wood-deep); }

/* Top bar: the studio mark on the left, the same links on every page. */
.site-bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: color-mix(in srgb, var(--wood-deep) 94%, transparent);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.site-bar::after { content: ""; display: block; height: 8px; background: var(--key) repeat-x left center; background-size: 14px 8px; opacity: .35; }
.site-bar__in { box-sizing: border-box; max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 10px 20px;
  flex-wrap: wrap; padding-block: 12px 8px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.site-brand { display: inline-flex; align-items: center; gap: 10px; font: 700 16px/1 var(--display); letter-spacing: .22em; color: var(--bone); text-decoration: none; white-space: nowrap; }
.site-brand img { width: 32px; height: 32px; display: block; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.site-nav a { font: 500 13px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--clay-soft); text-decoration: none; padding: 7px 0; border-bottom: 1px solid transparent; }
.site-nav a:hover { color: var(--gold); }
.site-nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }
.site-nav a .site-ext { font-size: 11px; margin-left: 3px; }

/* Footer: the studio mark, the trademark line and the pre-alpha note. */
.site-foot { background: var(--wood-deep); border-top: 1px solid var(--line); color: var(--muted); }
.site-foot::before { content: ""; display: block; height: 12px; background: var(--key) repeat-x left center; opacity: .35; }
.site-foot__in { box-sizing: border-box; max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 30px;
  padding-block: 30px 38px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); font: 15px/1.5 var(--ui); }
.site-foot__in .site-brand { font-size: 14px; }
.site-foot__in .site-brand img { width: 26px; height: 26px; }
.site-foot__lines { display: grid; gap: 2px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (max-width: 560px) {
  .site-brand { font-size: 14px; letter-spacing: .18em; }
  .site-nav { gap: 2px 16px; }
  .site-nav a { font-size: 12px; letter-spacing: .12em; }
}
