/* Windover at Hesston — shared styles */
:root {
  --bg: #e7edf0;
  --sky: #c6d7e0;
  --surface: #dae4e8;
  --surface-2: #cdd9df;
  --ink: #1b2c34;
  --muted: #52626a;
  --deep: #13222a;
  --deep-2: #1b2f38;
  --on-deep: #eef3f5;
  --on-deep-muted: #a9b9c0;
  --accent: #c33a2e;          /* the red kite on the entrance sign */
  --accent-ink: #ffffff;

  --display: "Panchang", "Arial Black", sans-serif;
  --text: "Switzer", "Helvetica Neue", Arial, sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);

  --m: clamp(20px, 2.4vw, 32px);
  --gap: clamp(120px, 14vw, 200px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--step-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.display {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.9;
  font-kerning: normal;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; z-index: 50;
  top: var(--banner-h, 0px); right: 0; left: 0;
  display: flex; justify-content: flex-end; align-items: center; gap: clamp(16px, 2.2vw, 32px);
  padding: 22px var(--m);
  font-size: 15px;
  background: transparent;
  transition: background .3s, padding .3s var(--ease);
}
.nav.scrolled { background: var(--bg); padding-top: 12px; padding-bottom: 12px; }
.nav a { text-decoration: none; color: var(--ink); transition: color .2s; white-space: nowrap; }
.nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.nav .home { margin-right: auto; font-family: var(--display); font-size: 15px; letter-spacing: -0.02em; opacity: 0; pointer-events: none; transition: opacity .3s; }
.nav.scrolled .home, .nav .home.always { opacity: 1; pointer-events: auto; }
.nav-dark .nav a { color: var(--on-deep); }
.nav-dark .nav.scrolled { background: var(--deep); }
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  background: var(--accent); color: var(--accent-ink) !important;
  padding: .7em 1.25em; border-radius: 999px;
  font-weight: 500; text-decoration: none !important;
  transition: transform .2s var(--ease), background .2s;
}
.btn:hover { background: #a92f24; transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- Reveal ---------- */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}


/* ---------- Night sky (storm mode below wins if both apply) ---------- */
.night .hero { background: #0d1823; color: var(--on-deep); }
.night .hero .mark { color: var(--on-deep); }
.night .hero-photo img { filter: brightness(.42) saturate(.55) contrast(1.1); }
.night .wind { color: var(--on-deep); }
.night .wind-label { color: var(--on-deep-muted); }
.night .nav:not(.scrolled) a:not(.btn) { color: var(--on-deep); }
.night .kite path:nth-of-type(2) { fill: #eef3f5; }
.night .kite path:nth-of-type(3) { stroke: #eef3f5; }
.sky { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.night .hero { touch-action: pan-y; }
.night .hero { cursor: grab; }
.night .hero:active { cursor: grabbing; }
.skyctl { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; max-width: 420px; }
.skyctl p { margin: 0; display: grid; }
.sky-label { font-size: 15px; color: var(--on-deep-muted); }
.sky-dir { font-weight: 500; }
.sky-btns { display: flex; gap: 8px; }
.sky-btns button {
  font: inherit; font-size: 20px; line-height: 1; cursor: pointer;
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: #22374a; color: var(--on-deep);
  transition: background .2s, transform .2s var(--ease);
}
.sky-btns button:hover { background: #2e4a62; transform: translateY(-2px); }
.sky-btns button:active { transform: scale(.94); }
.storm .sky, .storm .skyctl { display: none; }

/* ---------- Weather alert banner + storm mode ---------- */
.alert {
  position: fixed; z-index: 60; top: 0; left: 0; right: 0;
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px;
  padding: 12px var(--m); font-size: 15px; line-height: 1.4;
}
.alert p { margin: 0; flex: 1 1 260px; }
.alert-warn { background: var(--accent); color: #fff; }
.alert-watch { background: #e2a63c; color: var(--ink); }
.alert-note { background: var(--deep); color: var(--on-deep); }
.alert-link { color: inherit; font-weight: 500; text-underline-offset: 3px; }
.alert-x { all: unset; cursor: pointer; font-size: 26px; line-height: 1; padding: 0 6px; border-radius: 4px; }
.alert-x:focus-visible { outline: 2px solid currentColor; }
.alert-x:hover { transform: scale(1.15); }

.storm .hero { background: #27333c; color: var(--on-deep); }
.storm-snow .hero { background: #56656f; }
.storm .hero .mark { color: var(--on-deep); }
.storm .hero-photo img { filter: brightness(.6) contrast(1.15) saturate(.7); }
.storm .wind { color: var(--on-deep); }
.storm .wind-label { color: var(--on-deep-muted); }
.storm .nav:not(.scrolled) a:not(.btn) { color: var(--on-deep); }
.storm .kite path:nth-of-type(2) { fill: #eef3f5; }
.storm .kite path:nth-of-type(3) { stroke: #eef3f5; }
.weather { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; }
.flash { position: absolute; inset: 0; z-index: 4; background: #fff; opacity: 0; pointer-events: none; }
.flash.on { animation: bolt 1s ease-out; }
@keyframes bolt { 0% { opacity: 0; } 4% { opacity: .5; } 9% { opacity: .06; } 14% { opacity: .38; } 40%, 100% { opacity: 0; } }

/* ---------- Footer ---------- */
.foot {
  position: sticky; bottom: 0; z-index: 0;
  min-height: 100svh;
  display: grid; grid-template-rows: auto 1fr auto;
  background: var(--deep); color: var(--on-deep);
  padding: 40px var(--m) 24px;
}
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; font-size: 15px; }
.foot-cols h2 { font-family: var(--text); font-size: 15px; font-weight: 500; margin-bottom: .4em; color: var(--on-deep); }
.foot-cols ul { list-style: none; margin: 0; padding: 0; color: var(--on-deep-muted); }
.foot-cols li { margin: .25em 0; }
.foot-cols a { text-decoration: none; }
.foot-cols a:hover { color: var(--on-deep); text-decoration: underline; }
.foot-mark { margin-top: 20vh; }
.foot-mark svg { width: 100%; height: auto; display: block; fill: var(--on-deep); }
.foot-legal { font-size: var(--step-small); color: var(--on-deep-muted); margin-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
main { position: relative; z-index: 1; background: var(--bg); }

@media (max-width: 720px) {
  .foot-cols { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .nav { gap: 16px; padding: 20px var(--m); }
  .nav .hide-sm { display: none; }
}
