/* ==========================================================================
   Wright County Time Machine: shared styles (colors, base, nav bar, footer).
   Every page on the subdomain loads this file. Map-only styles live in map.css.
   ========================================================================== */
:root {
  --ink: #16202e;
  --ink-soft: #4a5566;
  --paper: #f7f8fa;
  --panel: #ffffff;
  --line: #d8dde5;
  --flag: #f5c518;
  --flag-ink: #1b2b45;
  --navy: #1b2b45;
  --stamp: rgba(10, 14, 20, 0.62);
  --stamp-ink: #ffffff;
  --shadow: 0 6px 24px rgba(16, 24, 40, 0.18);
  --font-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --font-data: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e8ecf2; --ink-soft: #a7b1c0; --paper: #0f1622; --panel: #172131; --line: #2a3648;
    --flag: #ffd84d; --flag-ink: #111a2b; --navy: #0b1220; --stamp: rgba(5, 8, 12, 0.7);
    --stamp-ink: #ffffff; --shadow: 0 6px 24px rgba(0, 0, 0, 0.45); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #e8ecf2; --ink-soft: #a7b1c0; --paper: #0f1622; --panel: #172131; --line: #2a3648;
  --flag: #ffd84d; --flag-ink: #111a2b; --navy: #0b1220; --stamp: rgba(5, 8, 12, 0.7);
  --stamp-ink: #ffffff; --shadow: 0 6px 24px rgba(0, 0, 0, 0.45); color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body { background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 15px; min-height: 100%; }
.eyebrow { font: 500 11px var(--font-data); letter-spacing: 0.12em; text-transform: uppercase; color: var(--flag); }
a { color: inherit; }

/* One full-height "screen" holds the nav bar and the page content; the footer sits just below the fold. */
.screen { height: 100vh; height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr); }

/* ---- Nav bar (partials/nav.html) ---- */
.site-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 0; background: var(--navy); color: #fff; z-index: 1000; }
.site-title { display: grid; gap: 2px; min-width: 0; padding-bottom: 10px; }
.site-title h1 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 3.2vw, 30px); line-height: 1; letter-spacing: 0.02em; text-transform: uppercase; }
.site-title a { text-decoration: none; }
.tabs { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; align-self: stretch; align-items: flex-end; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs li { flex: none; }
.tabs a { display: block; text-decoration: none; font: 600 15px var(--font-body); color: #c9d3e2; padding: 10px 14px 11px; border-radius: 8px 8px 0 0; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a:hover, .tabs a:focus-visible { color: #fff; outline: none; background: rgba(255,255,255,0.08); }
.tabs a[aria-current="page"] { color: #fff; border-bottom-color: var(--flag); }
.tabs a.tab-main { color: var(--flag); }
.tabs a.tab-main:hover, .tabs a.tab-main:focus-visible { color: #fff; }
@media (max-width: 560px) {
  .site-nav { padding-bottom: 0; }
  .site-title { padding-bottom: 4px; }
  .tabs { width: 100%; border-top: 1px solid rgba(255,255,255,0.15); }
  .tabs a { padding: 9px 12px 10px; font-size: 14px; }
}

/* ---- Footer (partials/footer.html) ---- */
.site-footer { background: var(--navy); color: #c9d3e2; padding: 28px 16px calc(28px + env(safe-area-inset-bottom, 0px)); }
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; gap: 14px; }
.footer-visit { justify-self: start; font: 600 17px var(--font-body); color: var(--flag); text-decoration: none; }
.footer-visit:hover, .footer-visit:focus-visible { text-decoration: underline; outline: none; }
.footer-built { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 15px; line-height: 1.35; color: #e3e9f2; }
.footer-built img { height: 44px; width: auto; flex: none; }
.footer-contact { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; }
.footer-contact a { color: #fff; text-decoration: none; }
.footer-contact a:hover, .footer-contact a:focus-visible { text-decoration: underline; outline: none; }
.footer-note { margin: 0; font-size: 13px; color: #98a5b8; }
