/* WindWatcher support site — colors match the iOS app. No trackers, no webfonts. */
:root {
  --bg: #f4f5f7;
  --card: #ffffff;
  --ink: #16181d;
  --muted: #6b7280;
  --line: #e2e4e8;
  --wind: #2bbbad;
  --wind-dark: #1f8f85;
  --safe: #22c55e;
  --caution: #eab308;
  --high: #f97316;
  --severe: #ef4444;
  --map-1: rgb(100, 180, 255);
  --map-2: rgb(60, 200, 200);
  --map-3: rgb(80, 200, 120);
  --map-4: rgb(230, 210, 60);
  --map-5: rgb(240, 160, 50);
  --map-6: rgb(230, 70, 70);
  --header-bg: #101114;
  --header-ink: #f4f5f7;
  --radius: 14px;
  --max: 46rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101114;
    --card: #1a1c21;
    --ink: #f4f5f7;
    --muted: #9ca3af;
    --line: #2c3038;
    --wind-dark: #5ad0c6;
    --header-bg: #0b0c0e;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 1.05rem;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 20;
  background: var(--card);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 8px;
}

header.site {
  background: var(--header-bg);
  color: var(--header-ink);
}

.bar {
  max-width: calc(var(--max) + 4rem);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand img {
  height: 36px;
  width: auto;
  display: block;
}

nav.site-nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

nav.site-nav a {
  color: var(--header-ink);
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.85;
}

nav.site-nav a:hover,
nav.site-nav a[aria-current="page"] {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 20px 64px;
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 0.4rem;
}

h2 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin: 2.2rem 0 0.7rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--line);
}

h2:first-of-type { border-top: 0; padding-top: 0; }

h3 {
  font-size: 1.05rem;
  margin: 1.3rem 0 0.4rem;
}

p, li { margin: 0.5rem 0; }

.lede {
  font-size: 1.12rem;
  color: var(--muted);
  margin-bottom: 1.4rem;
}

.date { color: var(--muted); font-size: 0.95rem; margin: 0 0 1.2rem; }

a { color: var(--wind-dark); }

a:hover { text-decoration-thickness: 2px; }

.toc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 0 0 2rem;
}

.toc h2 {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border: 0;
  padding: 0;
}

.toc ol {
  margin: 0;
  padding-left: 1.2rem;
}

.toc li { margin: 0.2rem 0; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 0.8rem 0;
}

ol.steps {
  padding-left: 1.25rem;
}

ol.steps li { margin: 0.55rem 0; }

.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 10px;
  margin: 0.8rem 0 1rem;
}

.swatch {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}

.dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex: 0 0 16px;
  margin-top: 4px;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 12%);
}

.swatch strong { display: block; font-size: 0.95rem; line-height: 1.3; }
.swatch span { display: block; color: var(--muted); font-size: 0.85rem; }

details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 16px;
  margin: 0.5rem 0;
}

details summary {
  cursor: pointer;
  font-weight: 600;
  padding: 12px 0;
}

details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 8px; }

.video-slot {
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 28px 18px;
  text-align: center;
  color: var(--muted);
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.note {
  font-size: 0.95rem;
  color: var(--muted);
}

kbd {
  font-family: inherit;
  font-size: 0.85em;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 6px;
  padding: 0.05em 0.4em;
}

footer.site {
  border-top: 1px solid var(--line);
  padding: 24px 20px 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

footer.site .inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}

footer.site a { color: inherit; }

@media (max-width: 560px) {
  h1 { font-size: 1.7rem; }
  .bar { flex-wrap: wrap; }
  nav.site-nav { margin-left: 0; width: 100%; }
}
