html {
  scroll-behavior: smooth;
  background: var(--bg-deep);
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(4, 10, 20, 0.5), #07111f 36%, #08121f 68%, #030812),
    var(--bg-deep);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(115deg, rgba(9, 30, 56, 0.74), rgba(4, 9, 18, 0.92) 55%, rgba(21, 17, 34, 0.82)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 88px);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(119, 233, 255, 0.75);
  outline-offset: 3px;
}

#snow-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.54;
}

body > *:not(#snow-canvas):not(.storm-toggle):not(.storm-panel):not(#site-header):not(#site-footer) {
  position: relative;
  z-index: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section,
.section-bleed {
  position: relative;
  padding: 2.8rem 1rem;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 1.35rem;
}

.section-heading h2,
.content-copy h2,
.storm-core h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.95rem;
  line-height: 1.05;
}

.section-heading p,
.content-copy p,
.accuracy-panel p,
.faq-answer p,
.tool-info-card p {
  color: var(--muted);
  line-height: 1.7;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

#site-header,
#site-footer {
  position: relative;
  z-index: 40;
}

#site-header {
  min-height: 3.75rem;
  z-index: 1000 !important;
  isolation: isolate;
}

#site-footer {
  min-height: 3.5rem;
}

#site-header .topnav,
#site-header .nav-links,
#site-header .nav-links.open {
  z-index: 1000;
}

body.snowday-page #site-header {
  position: relative !important;
  z-index: 2147483000 !important;
  isolation: isolate;
}

body.snowday-page #site-header .topnav {
  z-index: 2147483000 !important;
}

body.snowday-page #site-header #primary-menu,
body.snowday-page #site-header .nav-links.open {
  z-index: 2147483001 !important;
}

.site-fallback-header,
.site-fallback-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem max(1rem, env(safe-area-inset-left)) 0.85rem max(1rem, env(safe-area-inset-right));
  background: rgba(3, 8, 18, 0.94);
  backdrop-filter: blur(16px);
}

.site-fallback-header {
  min-height: 3.75rem;
  border-bottom: 1px solid rgba(229, 241, 255, 0.12);
}

.site-fallback-footer {
  min-height: 3.5rem;
  border-top: 1px solid rgba(229, 241, 255, 0.12);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-fallback-logo,
.site-fallback-link,
.site-fallback-footer a {
  color: var(--ice);
  font-weight: 900;
  text-decoration: none;
}

.site-fallback-link {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: right;
  text-transform: uppercase;
}
