/* Layout: a Prineville evening. Sunset over the Ochoco rimrock in the hero, then chalk-white bands laid out like a ballfield, stitched together with baseball seams. */
:root {
  --chalk: #F5F6EF;      /* page ground, chalk white with a sage bias */
  --paper: #EAECE1;      /* alternate band, sun-bleached sage */
  --ink: #18231C;        /* text */
  --dust: #5D685F;       /* muted text */
  --line: #D3D8CA;       /* hairlines */
  --field: #1E4330;      /* juniper green */
  --on-field: #F5F6EF;
  --stitch: #B8432A;     /* rimrock rust, the one accent */
  --board: #101814;      /* scoreboard and footer, same in both themes */
  --bulb: #F0B240;       /* sunset gold / scoreboard bulbs */
  /* Hero sunset commits to one look in both themes */
  --sky-top: #24344A;
  --sky-mid: #8C4A3A;
  --sky-low: #E9A04A;
  --ridge-far: #5B4A52;
  --ridge-mid: #3A3A3C;
  --ridge-near: #1D2A22;
  --font-display: "Alfa Slab One", "Rockwell", "Georgia", serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --font-label: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.7rem;
  --step-3: clamp(1.9rem, 4.2vw, 2.6rem);
  --step-4: clamp(2.5rem, 7.5vw, 4.9rem);
  --wrap: 72rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --chalk: #0E1511; --paper: #141E18; --ink: #E9EDE4; --dust: #9CA79E;
    --line: #27352C; --field: #143021; --on-field: #EEF2E9; --stitch: #E0734F;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --chalk: #0E1511; --paper: #141E18; --ink: #E9EDE4; --dust: #9CA79E;
  --line: #27352C; --field: #143021; --on-field: #EEF2E9; --stitch: #E0734F;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--chalk);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 10; background: var(--board);
}
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { margin: 0; text-wrap: balance; line-height: 1.05; }
h2 { font-family: var(--font-display); font-weight: 400; font-size: var(--step-3); }
h3 { font-family: var(--font-label); font-weight: 700; font-size: var(--step-1); text-transform: uppercase; letter-spacing: 0.04em; }
p { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--bulb); outline-offset: 3px; }
.label {
  font-family: var(--font-label); font-weight: 600; font-size: var(--step--1);
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--stitch);
}
.muted { color: var(--dust); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font-family: var(--font-label); font-weight: 700; font-size: 1.05rem;
  text-transform: uppercase; letter-spacing: 0.08em; text-decoration: none;
  padding: 0.8em 1.3em; border-radius: 3px; border: 2px solid currentColor;
  cursor: pointer; background: none; color: inherit;
  transition: transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-solid { background: var(--stitch); border-color: var(--stitch); color: #fff; }

/* Header */
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: var(--board); color: #EEF0E9;
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.75rem; }
.wordmark { font-family: var(--font-display); font-size: 1.2rem; text-decoration: none; line-height: 1; }
.wordmark small { display: block; font-family: var(--font-label); font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.7; margin-top: 0.3rem; }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a { font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.95rem; text-decoration: none; opacity: 0.85; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; text-decoration: underline; text-decoration-color: var(--bulb); text-underline-offset: 5px; }

/* Stitched seam */
.seam { display: block; width: 100%; height: 26px; color: var(--stitch); }

section { padding-block: clamp(3.5rem, 8vw, 5.5rem); }
.band { background: var(--paper); }
.sec-head { display: flex; flex-direction: column; gap: 0.75rem; max-width: 44rem; margin-bottom: 2.25rem; }
.sec-head p { color: var(--dust); font-size: var(--step-1); line-height: 1.45; }

footer { background: var(--board); color: #B6C0B6; font-size: 0.95rem; }
footer .wrap { padding-block: 2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
footer .wordmark { color: #EEF0E9; font-size: 1rem; }
