/* Shared by the homepage and the flasher: palette, header, page title band, footer. */
:root {
  color-scheme: light dark;
  --bg: #f7f5f0;
  --surface: #ffffff;
  --ink: #1f2933;
  --muted: #5b6671;
  --line: #d9d4c8;
  --brand: #1d4e5f;       /* deep spruce blue */
  --brand-ink: #ffffff;
  --accent: #b4571b;      /* sunset on the Bighorns */
  --link: #17607a;
  --sky-a: #1d4e5f;
  --sky-b: #e8a35d;
  --ridge-far: #3b6b78;
  --ridge-mid: #274f5c;
  --ridge-near: #16343e;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11181c;
    --surface: #182126;
    --ink: #e8ecee;
    --muted: #9aa7ae;
    --line: #2b383f;
    --brand: #5fb2c9;
    --brand-ink: #0b1519;
    --accent: #f0a15c;
    --link: #7cc6dc;
    --sky-a: #0f2630;
    --sky-b: #7a4a2a;
    --ridge-far: #24424d;
    --ridge-mid: #182f38;
    --ridge-near: #0c1a20;
  }
}

.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: var(--brand-ink); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 0; }
.wrap { max-width: 62rem; margin: 0 auto; padding: 0 1rem; }


/* header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1.5rem; padding-top: .6rem; padding-bottom: .6rem; }
.site-header .brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; letter-spacing: .01em; }
.site-header .brand svg { width: 2rem; height: 2rem; color: var(--accent); }
.site-header nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .1rem .3rem; margin: 0; padding: 0; }
.site-header nav a { display: block; padding: .4rem .7rem; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: .97rem; }
.site-header nav a:hover { background: var(--bg); }
.site-header nav a[aria-current="page"] { background: var(--brand); color: var(--brand-ink); }


/* The mountain ridgeline: the hero on the home page and the title band on every other page, including the flasher. */
.ridge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; z-index: 0; display: block; }
.ridge .far { fill: var(--ridge-far); } .ridge .mid { fill: var(--ridge-mid); } .ridge .near { fill: var(--ridge-near); }
.page-title { position: relative; overflow: hidden; color: #fff; padding: 2.4rem 0 5.6rem; background: linear-gradient(180deg, var(--sky-a) 0%, var(--sky-a) 55%, var(--sky-b) 100%); }
.page-title .wrap { position: relative; z-index: 1; }
.page-title .ridge { height: 4.6rem; }
.page-title h1 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.2; }
.page-title p { margin: .4rem 0 0; color: #eef3f5; max-width: 40rem; }


/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .92rem; padding: 1.6rem 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; }
.site-footer p { margin: 0; max-width: 34rem; }
.site-footer ul { list-style: none; display: flex; gap: 1rem; margin: 0; padding: 0; flex-wrap: wrap; }
