/* radarforecast.app — shared design system.
   Used by index, hrrr and rrfs. The legal pages still carry their own inline
   styles; they predate this file and there is no reason to churn them. */

:root {
  /* Light: pale chart paper, greenish grey — not cream. */
  --bg: #eaefed; --bg2: #dfe6e2; --panel: #f6f8f7; --line: rgba(20,40,34,0.14);
  --text: #172029; --muted: #55636f; --teal: #1f7a5c; --teal-soft: rgba(31,122,92,0.10);
  --amber: #a8641a; --amber-soft: rgba(168,100,26,0.10); --cran: #a52a3b;
  --shadow: 0 10px 30px rgba(20,40,34,0.12);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1620; --bg2: #1a2538; --panel: #17212f; --line: rgba(255,255,255,0.10);
    --text: #d7dee8; --muted: #8a96a6; --teal: #5DCAA5; --teal-soft: rgba(93,202,165,0.10);
    --amber: #FAC775; --amber-soft: rgba(250,199,117,0.08); --cran: #d0475c;
    --shadow: 0 14px 40px rgba(0,0,0,0.45);
  }
}
:root[data-theme="dark"] {
  --bg: #0f1620; --bg2: #1a2538; --panel: #17212f; --line: rgba(255,255,255,0.10);
  --text: #d7dee8; --muted: #8a96a6; --teal: #5DCAA5; --teal-soft: rgba(93,202,165,0.10);
  --amber: #FAC775; --amber-soft: rgba(250,199,117,0.08); --cran: #d0475c;
  --shadow: 0 14px 40px rgba(0,0,0,0.45);
}

* { box-sizing: border-box; }
body {
  margin: 0; background: linear-gradient(165deg, var(--bg), var(--bg2)) fixed; color: var(--text);
  font: 400 17px/1.55 "IBM Plex Sans", -apple-system, system-ui, sans-serif;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 36px 22px 64px; }
h1, h2, h3 { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.6rem, 8vw, 4.1rem); font-weight: 700; line-height: 0.95; text-transform: uppercase; }
h2 { font-size: 1.9rem; font-weight: 600; line-height: 1.05; margin-bottom: 14px; }
h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 6px; }
.eyebrow { font: 500 0.74rem/1 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal); }
p { margin: 0 0 12px; max-width: 64ch; }
p:last-child { margin-bottom: 0; }
b { font-weight: 600; }
code, .mono { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.92em; }
a { color: var(--teal); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
ul { max-width: 64ch; }
li { margin-bottom: 7px; }

/* ---- Nav ------------------------------------------------------------- */
.rf-nav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent);
          backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.rf-nav-in { max-width: 760px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 8px) 18px 8px; }
.rf-nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px;
                font-family: "Barlow Condensed", sans-serif; font-size: 1.02rem;
                letter-spacing: 0.04em; text-transform: uppercase; }
.rf-nav-links > a, .rf-menu > summary {
  color: var(--muted); text-decoration: none; padding: 7px 10px; border-radius: 8px;
  white-space: nowrap; display: inline-block;
}
.rf-nav-links > a:hover, .rf-menu > summary:hover { color: var(--text); background: var(--teal-soft); }
.rf-nav-links > a.on, .rf-menu > summary.on { color: var(--teal); background: var(--teal-soft); }

/* <details> rather than a hover menu: it opens on tap, closes on Escape and
   is reachable from the keyboard without any script. */
.rf-menu { position: relative; }
.rf-menu > summary { list-style: none; cursor: pointer; }
.rf-menu > summary::-webkit-details-marker { display: none; }
.rf-menu > summary::after { content: " \25be"; opacity: 0.7; }
.rf-menu[open] > summary { color: var(--teal); background: var(--teal-soft); }
.rf-menu-panel {
  position: absolute; left: 0; top: calc(100% + 6px); min-width: 230px; padding: 6px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); z-index: 50;
}
.rf-menu-panel a, .rf-menu-panel .soon {
  display: block; padding: 9px 11px; border-radius: 8px; text-decoration: none;
  color: var(--text); font-family: "IBM Plex Sans", sans-serif; font-size: 0.93rem;
  letter-spacing: 0; text-transform: none; line-height: 1.3;
}
.rf-menu-panel a:hover { background: var(--teal-soft); }
.rf-menu-panel small { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 2px; }
@media (max-width: 560px) { .rf-menu-panel { position: static; box-shadow: none; margin: 4px 0 2px; } }

/* ---- Header / hero --------------------------------------------------- */
.top { display: flex; align-items: center; gap: 16px; margin-bottom: 30px; }
.top img { width: 72px; height: 72px; border-radius: 17px; box-shadow: var(--shadow); }
.top .name { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.85rem;
             letter-spacing: 0.02em; text-transform: uppercase; color: var(--teal); line-height: 1; }

.hero { display: grid; gap: 16px; }
.hero .sub { font-size: 1.3rem; line-height: 1.35; max-width: 26ch; color: var(--text);
             font-family: "Barlow Condensed", sans-serif; font-weight: 500; }
.slogan { color: var(--cran); font-style: italic; font-size: 1rem; max-width: 42ch; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; min-height: 50px;
  padding: 8px 16px 8px 13px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); text-decoration: none; box-shadow: var(--shadow); cursor: default;
}
.store span { display: flex; flex-direction: column; line-height: 1.1; font-weight: 600; font-size: 1.04rem;
              font-family: "Barlow Condensed", sans-serif; }
.store small { font: 400 0.68rem/1.2 "IBM Plex Sans", sans-serif; color: var(--muted); }
.store svg { color: var(--teal); flex: none; }

/* ---- Demo video ------------------------------------------------------ */
.demo { margin: 26px 0 0; display: grid; gap: 10px; justify-items: center; }
.demo video {
  width: 100%; max-width: 330px; height: auto; display: block; border-radius: 18px;
  border: 1px solid var(--line); box-shadow: var(--shadow); background: #0f1620;
}
.demo figcaption { color: var(--muted); font-size: 0.87rem; text-align: center; max-width: 46ch; }

/* ---- Sections -------------------------------------------------------- */
section { padding: 32px 0 0; }
section + section { margin-top: 32px; border-top: 1px solid var(--line); }

/* A block of prose with a phone screenshot beside it. */
.feature { display: grid; grid-template-columns: 1fr 190px; gap: 26px; align-items: start; }
.feature.flip { grid-template-columns: 190px 1fr; }
.feature.flip .shot { order: -1; }
.shot { margin: 0; }
.shot img { width: 100%; height: auto; display: block; border-radius: 14px;
            border: 1px solid var(--line); box-shadow: var(--shadow); }
.shot figcaption { margin-top: 8px; color: var(--muted); font-size: 0.8rem; line-height: 1.35; }
@media (max-width: 620px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 18px; }
  .feature.flip .shot { order: 0; }
  .shot { max-width: 260px; }
}

/* ---- Model cards ----------------------------------------------------- */
.models { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }
.model {
  padding: 18px 18px 16px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--panel); box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.model h3 { font-size: 1.45rem; margin-bottom: 2px; }
.model .who { color: var(--muted); font-size: 0.86rem; margin-bottom: 10px; }
.model p { font-size: 0.96rem; }
.model .more { margin-top: auto; padding-top: 12px; font-weight: 600; font-size: 0.93rem;
               font-family: "Barlow Condensed", sans-serif; letter-spacing: 0.03em; text-transform: uppercase; }
.badge { display: inline-block; font: 500 0.7rem/1 "IBM Plex Mono", ui-monospace, monospace;
         letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 8px; border-radius: 6px;
         border: 1px solid var(--amber); color: var(--amber); background: var(--amber-soft); margin-left: 8px; vertical-align: 2px; }

/* ---- Spec table ------------------------------------------------------ */
.spec { width: 100%; border-collapse: collapse; margin: 6px 0 0; font-size: 0.96rem; }
.spec th, .spec td { text-align: left; padding: 11px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.spec tr:first-child th, .spec tr:first-child td { border-top: none; }
.spec th { font-weight: 600; color: var(--muted); width: 40%; font-size: 0.9rem; }
.spec td { font-variant-numeric: tabular-nums; }

/* ---- dBZ scale ------------------------------------------------------- */
.scale { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; margin: 16px 0 6px; }
.scale span { height: 26px; border-radius: 4px; }
.scale-labels { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px;
                font: 500 0.72rem/1.2 "IBM Plex Mono", ui-monospace, monospace; color: var(--muted);
                font-variant-numeric: tabular-nums; }
.scale-labels span { padding-top: 6px; }

.caution, .disclaimer { padding: 15px 17px; border-radius: 0 10px 10px 0;
                        border-left: 3px solid var(--amber); background: var(--amber-soft); }
.disclaimer { margin-top: 40px; border: 1px solid var(--amber); border-radius: 12px; }
.disclaimer b { color: var(--amber); }
.caution { margin-top: 16px; }

footer { margin-top: 28px; color: var(--muted); font-size: 0.82rem; display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a { color: var(--muted); }

@media (max-width: 520px) { .wrap { padding: 26px 16px 56px; } }
@media (prefers-reduced-motion: reduce) { .demo video { display: none; } .demo .fallback { display: block !important; } }
