/* Kīlauea Live: basalt and lava theme */

:root {
  --basalt-950: #0a0705;
  --basalt-900: #0d0907;
  --basalt-850: #120d0a;
  --basalt-800: #18120e;
  --basalt-700: #241b16;
  --basalt-600: #34271f;
  --line: rgba(255, 170, 120, .12);
  --text: #f4ebe3;
  --muted: #b3a196;
  --faint: #7d6c61;
  --lava: #ff5a1f;
  --lava-hot: #ffb347;
  --lava-deep: #c2280a;
  --glow: 0 0 24px rgba(255, 90, 31, .45);

  --level-normal: #3fbf6f;
  --level-advisory: #ffd23f;
  --level-watch: #ff8a1f;
  --level-warning: #ff3b30;
  --level-current: var(--level-advisory);

  --radius: 14px;
  --gutter: clamp(16px, 3vw, 32px);
  --max: 1320px;
  --display: "Space Grotesk", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--basalt-900);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--lava-hot); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; letter-spacing: -.01em; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 14px; background: var(--lava); color: #000; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 60px;
  padding: 0 var(--gutter);
  background: rgba(13, 9, 7, .78);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--display); font-size: 19px; font-weight: 500; white-space: nowrap; }
.logo strong { color: var(--lava); font-weight: 700; }
.logo-mark { width: 30px; height: 30px; filter: drop-shadow(0 0 6px rgba(255, 90, 31, .6)); }
.logo-fountain { transform-origin: 20px 18px; animation: fountain 2.4s ease-in-out infinite; }
@keyframes fountain { 0%, 100% { transform: scaleY(.85); opacity: .85; } 50% { transform: scaleY(1.1); opacity: 1; } }

.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a { padding: 6px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 14.5px; }
.site-nav a:hover { color: var(--text); background: var(--basalt-700); }

.level-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid color-mix(in srgb, var(--level-current) 50%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--level-current) 12%, transparent);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.level-pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--level-current); box-shadow: 0 0 10px var(--level-current); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* ------------------------------------------------------------------ alert banner */
.alert-banner {
  position: relative;
  z-index: 60;
  padding: 10px var(--gutter);
  background: repeating-linear-gradient(-45deg, #5c0c03 0 14px, #4a0902 14px 28px);
  color: #fff;
  font-weight: 600;
  text-align: center;
  border-bottom: 1px solid #ff3b30;
}
.alert-banner a { color: #ffd9a8; }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  min-height: min(86vh, 820px);
  display: grid;
  align-content: end;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}
.hero-media {
  position: absolute;
  inset: -4%;
  z-index: -3;
  background: radial-gradient(ellipse at 50% 80%, #4a1405 0%, var(--basalt-950) 70%) center/cover;
  background-size: cover;
  background-position: center 60%;
  animation: kenburns 40s ease-in-out infinite alternate;
  filter: saturate(1.15) contrast(1.05);
}
.hero-media.loaded { background-image: var(--hero-image); }
@keyframes kenburns { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.12) translate(-1.5%, -2%); } }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(10, 7, 5, .55) 0%, rgba(10, 7, 5, .3) 30%, rgba(10, 7, 5, .72) 58%, rgba(10, 7, 5, .9) 82%, var(--basalt-900) 100%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(255, 80, 20, .35), transparent 70%);
}
.embers { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }

.hero-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 120px var(--gutter) 40px;
}
.eyebrow { display: inline-block; margin: 0 0 14px; padding: 4px 12px; border-radius: 999px; background: rgba(10, 7, 5, .62); backdrop-filter: blur(6px); color: var(--lava-hot); text-transform: uppercase; letter-spacing: .18em; font-size: 12.5px; font-weight: 600; }
.hero h1 { font-size: clamp(44px, 8vw, 104px); font-weight: 700; letter-spacing: -.035em; text-shadow: 0 4px 40px rgba(0, 0, 0, .6); }
.lava-text {
  background: linear-gradient(100deg, #ffe0a3 0%, var(--lava-hot) 22%, var(--lava) 45%, var(--lava-deep) 60%, var(--lava-hot) 80%, #ffe0a3 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: flow 9s linear infinite;
  filter: drop-shadow(0 0 22px rgba(255, 90, 31, .45));
}
@keyframes flow { to { background-position: -220% 0; } }
.hero-question { margin: 14px 0 6px; font-family: var(--display); font-size: clamp(20px, 2.6vw, 30px); color: var(--text); }
.hero-answer { max-width: 760px; }
.answer-headline { margin: 0; font-family: var(--display); font-size: clamp(26px, 3.4vw, 42px); font-weight: 700; color: var(--level-current); text-shadow: 0 0 30px color-mix(in srgb, var(--level-current) 40%, transparent); }
.answer-detail { margin: 8px 0 4px; color: #e6d8cd; font-size: 17px; }
.answer-source { margin: 0; color: var(--muted); font-size: 13.5px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 12px; font-weight: 600; text-decoration: none; transition: transform .15s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-lava { background: linear-gradient(135deg, var(--lava-hot), var(--lava) 55%, var(--lava-deep)); color: #1b0700; box-shadow: var(--glow); }
.btn-lava:hover { color: #1b0700; box-shadow: 0 0 36px rgba(255, 90, 31, .7); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .22); color: var(--text); background: rgba(0, 0, 0, .25); backdrop-filter: blur(6px); }

.hero-scale { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 34px; }
.alert-scale { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; max-width: 560px; margin: 0; padding: 0; list-style: none; }
.alert-scale li { position: relative; padding-top: 12px; color: var(--faint); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.alert-scale li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; border-radius: 3px; background: var(--basalt-600); }
.alert-scale li[data-level="NORMAL"] { --c: var(--level-normal); }
.alert-scale li[data-level="ADVISORY"] { --c: var(--level-advisory); }
.alert-scale li[data-level="WATCH"] { --c: var(--level-watch); }
.alert-scale li[data-level="WARNING"] { --c: var(--level-warning); }
.alert-scale li.reached::before { background: var(--c); }
.alert-scale li.current { color: var(--text); }
.alert-scale li.current::before { box-shadow: 0 0 14px var(--c), 0 0 4px var(--c); animation: pulse 2.4s ease-in-out infinite; }

/* ------------------------------------------------------------------ sections */
.section { padding: 56px 0 8px; }
.section-head { margin-bottom: 22px; }
.section-head h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 700; }
.section-head h2::after { content: ""; display: block; width: 64px; height: 3px; margin-top: 12px; border-radius: 2px; background: linear-gradient(90deg, var(--lava), transparent); }
.section-sub { margin: 12px 0 0; color: var(--muted); max-width: 760px; }

.status {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* topographic contour rings centered roughly where the crater sits on the page */
.topo-bg {
  background:
    repeating-radial-gradient(ellipse at 82% 20%, transparent 0 26px, rgba(255, 140, 80, .04) 26px 27px),
    var(--basalt-900);
  background-attachment: fixed;
}

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat {
  position: relative;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--basalt-800), var(--basalt-850));
  overflow: hidden;
}
.stat::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 90, 31, .18), transparent 70%); }
.stat h3 { color: var(--muted); font-family: inherit; font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.stat-value { margin: 8px 0 2px; font-family: var(--display); font-size: 30px; font-weight: 700; }
.stat-value.small { font-size: 20px; }
.stat-note { margin: 0; color: var(--muted); font-size: 13.5px; }
.big-number { font-size: 46px; line-height: 1; background: linear-gradient(180deg, #fff1d6, var(--lava-hot) 50%, var(--lava)); -webkit-background-clip: text; background-clip: text; color: transparent; }
#statLevel .stat-value { color: var(--level-current); }

.outlook {
  margin: 18px 0 0;
  padding: 18px 22px;
  border-left: 3px solid var(--lava);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: linear-gradient(90deg, rgba(255, 90, 31, .08), transparent 70%);
}
.outlook p { margin: 0; font-size: 17px; color: #eadbd0; }
.outlook footer { margin-top: 8px; color: var(--muted); font-size: 13px; }

/* ------------------------------------------------------------------ layout */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.rail { padding-top: 56px; display: flex; flex-direction: column; gap: 24px; }

/* ------------------------------------------------------------------ webcams */
.viewer { margin: 0; }
.viewer-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 80px -30px rgba(255, 70, 10, .35), 0 0 0 1px var(--line);
}
.viewer-frame img { width: 100%; height: 100%; object-fit: contain; transition: opacity .5s; }
.viewer-frame img.fading { opacity: .35; }
.viewer-loading { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.viewer-loading span { width: 34px; height: 34px; border: 3px solid rgba(255, 255, 255, .15); border-top-color: var(--lava); border-radius: 50%; animation: spin 1s linear infinite; }
.viewer-loading.done { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.viewer figcaption .viewer-badge { align-self: center; padding: 2px 10px; border-radius: 999px; background: rgba(255, 90, 31, .16); color: var(--lava-hot); font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.refresh-ring {
  --p: 0;
  position: absolute;
  right: 12px;
  top: 12px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--lava) calc(var(--p) * 1turn), rgba(255, 255, 255, .12) 0);
  font-size: 11.5px;
  font-weight: 700;
}
.refresh-ring::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: rgba(0, 0, 0, .78); }
.refresh-ring span { position: relative; }
.viewer figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 12px 2px 0; }
.viewer figcaption strong { font-family: var(--display); font-size: 19px; }
.viewer figcaption span { color: var(--muted); font-size: 14px; }
.viewer-time { margin-left: auto; }

.cam-groups { margin-top: 26px; display: grid; gap: 22px; }
.cam-group h3 { margin-bottom: 10px; color: var(--muted); font-family: inherit; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; }
.cam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }

.cam-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--basalt-800);
  color: inherit;
  text-align: left;
  cursor: pointer;
  isolation: isolate;
}
/* animated magma border on hover / selection */
.cam-card::before {
  content: "";
  position: absolute;
  inset: -1.5px;
  z-index: -1;
  border-radius: 13.5px;
  background: conic-gradient(from var(--angle, 0deg), transparent 0 55%, var(--lava) 70%, var(--lava-hot) 80%, transparent 92%);
  opacity: 0;
  transition: opacity .3s;
  animation: orbit 3.5s linear infinite;
}
.cam-card:hover::before, .cam-card[aria-pressed="true"]::before { opacity: 1; }
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes orbit { to { --angle: 360deg; } }
.cam-thumb { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 12px 12px 0 0; overflow: hidden; background: #000; }
.cam-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.cam-card:hover .cam-thumb img { transform: scale(1.06); }
.cam-thumb .cam-id { position: absolute; left: 8px; top: 8px; padding: 1px 7px; border-radius: 6px; background: rgba(0, 0, 0, .65); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.cam-thumb .thermal-tag { left: auto; right: 8px; background: linear-gradient(90deg, #2b0057, #d4004c, #ffb000); }
.cam-card .cam-name { display: block; padding: 9px 11px 11px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; font-size: 13.5px; font-weight: 600; background: var(--basalt-800); }
.cam-unavailable { position: absolute; inset: 0; display: grid; place-items: center; color: var(--faint); font-size: 12px; }

/* ------------------------------------------------------------------ live video */
.stream-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stream { margin: 0; }
.stream-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--line); }
.stream-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.stream-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: #000 center/cover;
  cursor: pointer;
}
.stream-play::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .7)); }
.stream-play .play-icon {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 90, 31, .9);
  box-shadow: 0 0 0 0 rgba(255, 90, 31, .6);
  animation: ripple 2.2s infinite;
}
.stream-play .play-icon::before { content: ""; margin-left: 5px; border-left: 20px solid #1b0700; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
@keyframes ripple { 70% { box-shadow: 0 0 0 18px rgba(255, 90, 31, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0); } }
.stream-live { position: absolute; z-index: 1; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 6px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.stream-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ff3b30; animation: pulse 1.6s infinite; }
.stream figcaption { display: flex; justify-content: space-between; gap: 8px; padding-top: 8px; font-size: 14px; }
.stream figcaption a { font-size: 13px; }

/* ------------------------------------------------------------------ map */
.map-wrap { position: relative; }
/* The imagery service has no tiles over open ocean; match its sea color so gaps disappear. */
.volcano-map { height: 520px; border-radius: var(--radius); overflow: hidden; background: #0c2a44; box-shadow: 0 0 0 1px var(--line); }
.map-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; color: var(--muted); font-size: 13.5px; }
.lg { display: inline-block; width: 12px; height: 12px; margin-right: 6px; border-radius: 50%; vertical-align: -1px; }
.lg-crater { background: radial-gradient(circle, #ffd27a, var(--lava) 60%, var(--lava-deep)); box-shadow: 0 0 8px var(--lava); }
.lg-cam { background: #fff; border: 3px solid #1d1d1d; }
.lg-quake { background: rgba(255, 210, 63, .45); border: 1.5px solid #ffd23f; }
.crater-marker { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle, #fff3c4 0%, #ffb347 30%, var(--lava) 60%, rgba(255, 90, 31, 0) 72%); animation: craterGlow 2.6s ease-in-out infinite; }
@keyframes craterGlow { 50% { transform: scale(1.35); filter: brightness(1.3); } }
.cam-marker { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid #1d1d1d; box-shadow: 0 0 0 2px rgba(255, 255, 255, .4); }
.leaflet-container { font: inherit; background: #0c2a44; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--basalt-700); color: var(--text); }
.leaflet-popup-content { margin: 12px 14px; font-size: 13.5px; }
.leaflet-popup-content strong { font-family: var(--display); }
.leaflet-control-layers, .leaflet-bar a { background: var(--basalt-700); color: var(--text); border-color: var(--line); }
.leaflet-control-attribution { background: rgba(13, 9, 7, .75) !important; color: var(--muted); }
.leaflet-control-attribution a { color: var(--lava-hot); }

/* ------------------------------------------------------------------ charts */
.chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.chart { margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #f6f2ee; }
.chart img { width: 100%; min-height: 160px; border-radius: 6px; }
.chart figcaption { padding-top: 8px; color: #3a2a20; font-size: 13.5px; font-weight: 600; }

/* ------------------------------------------------------------------ alerts */
.alert-list { display: grid; gap: 12px; }
.alert-card {
  --c: var(--level-advisory);
  display: grid;
  grid-template-columns: 6px 1fr;
  gap: 0 16px;
  padding: 16px 18px 16px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--basalt-800);
  overflow: hidden;
}
.alert-card::before { content: ""; grid-row: span 3; background: var(--c); box-shadow: 0 0 18px var(--c); }
.alert-card h3 { font-size: 17px; }
.alert-card .alert-meta { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.alert-card .alert-body { margin: 8px 0 0; font-size: 14.5px; color: #e3d5ca; }
.alert-card.sev-normal { --c: var(--level-normal); }
.alert-card.sev-watch { --c: var(--level-watch); }
.alert-card.sev-warning { --c: var(--level-warning); }
.alert-card.sev-info { --c: #6e8bff; }
.official-links { margin-top: 22px; padding: 18px 22px; border: 1px dashed var(--line); border-radius: var(--radius); }
.official-links h3 { font-size: 16px; margin-bottom: 8px; }
.official-links ul { margin: 0; padding-left: 18px; color: var(--muted); }
.official-links li { margin: 4px 0; }

/* ------------------------------------------------------------------ guide */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 16px 32px 16px 0; font-family: var(--display); font-size: 18.5px; font-weight: 500; cursor: pointer; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; color: var(--lava); font-size: 24px; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: #e0d2c7; max-width: 780px; }
.about-kilauea { margin-top: 28px; padding: 22px 24px; border-radius: var(--radius); background: linear-gradient(140deg, rgba(255, 90, 31, .1), transparent 60%), var(--basalt-800); border: 1px solid var(--line); }
.about-kilauea h3 { font-size: 20px; margin-bottom: 8px; }
.about-kilauea p { margin: 0; color: #e0d2c7; }

/* ------------------------------------------------------------------ links */
.link-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.link-grid h3 { font-size: 16px; margin-bottom: 8px; }
.link-grid ul { margin: 0; padding: 0; list-style: none; }
.link-grid li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.link-grid a { text-decoration: none; }
.link-grid a::after { content: " ↗"; font-size: 12px; color: var(--faint); }

/* ------------------------------------------------------------------ rail / weather */
.panel { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(170deg, var(--basalt-800), var(--basalt-850)); }
.panel h2 { font-size: 19px; }
.panel-sub { margin: 4px 0 14px; color: var(--muted); font-size: 12.5px; }
.panel-foot { margin: 12px 0 0; color: var(--faint); font-size: 12px; }
.wx-now { display: flex; align-items: center; gap: 14px; }
.wx-icon { width: 58px; height: 58px; flex: none; color: var(--lava-hot); }
.wx-icon svg { width: 100%; height: 100%; }
.wx-temp { margin: 0; font-family: var(--display); font-size: 38px; font-weight: 700; line-height: 1; }
.wx-desc { margin: 4px 0 0; color: #e0d2c7; font-size: 14px; }
.wx-wind { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 12px; border-radius: 12px; background: rgba(0, 0, 0, .25); }
.compass { position: relative; width: 54px; height: 54px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: repeating-conic-gradient(rgba(255, 255, 255, .08) 0 2deg, transparent 2deg 45deg); }
.compass::before { content: "N"; position: absolute; top: 1px; left: 50%; transform: translateX(-50%); color: var(--faint); font-size: 9px; font-weight: 700; }
.compass .needle { position: absolute; left: 50%; top: 50%; width: 4px; height: 44px; margin: -22px 0 0 -2px; transform: rotate(var(--plume, 0deg)); transition: transform 1s cubic-bezier(.3, 1.4, .5, 1); }
.compass .needle::before { content: ""; position: absolute; left: -4px; top: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 18px solid var(--lava); filter: drop-shadow(0 0 4px var(--lava)); }
.compass .needle::after { content: ""; position: absolute; left: 0; bottom: 4px; width: 4px; height: 18px; border-radius: 2px; background: var(--faint); }
.wx-wind-speed { margin: 0; font-weight: 700; }
.wx-plume { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.wx-periods { margin: 14px 0 0; padding: 0; list-style: none; }
.wx-periods li { display: grid; grid-template-columns: 92px 44px 1fr; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.wx-periods .p-name { font-weight: 600; }
.wx-periods .p-temp { font-family: var(--display); font-weight: 700; color: var(--lava-hot); }
.wx-periods .p-desc { color: var(--muted); }

/* ------------------------------------------------------------------ ad slots */
/* Space is reserved up front so ads never shove content around (Core Web Vitals: CLS). */
.ad-slot { display: grid; place-items: center; margin: 32px auto; position: relative; }
.ad-slot::before { content: "Advertisement"; position: absolute; top: -18px; left: 0; color: var(--faint); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; }
.ad-slot.placeholder { border: 1px dashed rgba(255, 170, 120, .25); border-radius: 10px; background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .015) 0 10px, transparent 10px 20px); color: var(--faint); font-size: 12.5px; }
.ad-leaderboard { width: min(970px, calc(100% - 2 * var(--gutter))); min-height: 100px; }
.ad-rectangle { width: min(336px, 100%); min-height: 280px; }
.ad-inline { width: 100%; max-width: 728px; min-height: 120px; margin: 28px 0; }
.ad-skyscraper { width: 300px; min-height: 600px; margin: 0; position: sticky; top: 84px; }
.ad-slot ins { display: block; width: 100%; }

/* ------------------------------------------------------------------ episode archive (/episodes/) */
.page { max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
.header-cta { margin-left: 12px; padding: 7px 14px; font-size: 14px; }
.breadcrumbs { padding-top: 22px; color: var(--faint); font-size: 13.5px; }
.breadcrumbs a { color: var(--muted); }
.page-head { padding: 34px 0 6px; }
.page-head .eyebrow { background: rgba(255, 90, 31, .1); }
.page-head h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 700; }
.lede { max-width: 780px; margin: 16px 0 0; color: #eadbd0; font-size: 18px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; }

.ep-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.ep-table th { padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--faint); font-size: 12px; font-weight: 600; text-align: left; text-transform: uppercase; letter-spacing: .08em; }
.ep-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); color: #e0d2c7; }
.ep-table tbody tr:hover { background: var(--basalt-800); }
.ep-num a { font-family: var(--display); font-weight: 700; text-decoration: none; white-space: nowrap; }
.table-note { margin: 14px 0 0; color: var(--muted); font-size: 14px; max-width: 820px; }

.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 0; }
.fact { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(160deg, var(--basalt-800), var(--basalt-850)); }
.fact dt { color: var(--muted); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.fact dd { margin: 6px 0 0; font-family: var(--display); font-size: 20px; font-weight: 700; }
.fact dd .muted { font-family: inherit; font-size: 15px; font-weight: 400; }
.fact small { display: block; margin-top: 4px; font-family: system-ui, sans-serif; font-size: 12.5px; font-weight: 400; color: var(--faint); }

.hvo-quote { margin: 0 0 16px; padding: 16px 20px; border-left: 3px solid var(--lava); border-radius: 0 var(--radius) var(--radius) 0; background: linear-gradient(90deg, rgba(255, 90, 31, .08), transparent 80%); }
.hvo-quote figcaption { color: var(--lava-hot); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.hvo-quote blockquote { margin: 6px 0 0; }
.hvo-quote blockquote p { margin: 0; color: #eadbd0; font-size: 16.5px; }
.quote-source { margin: 6px 0 0; font-size: 13px; }

.notice-list { margin: 0; padding: 0; list-style: none; }
.notice-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.notice-list a { font-weight: 600; }
.notice-list span { display: block; margin-top: 2px; color: var(--muted); font-size: 14.5px; }

.pager { display: flex; justify-content: space-between; gap: 12px; margin: 40px 0 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pager a { font-family: var(--display); font-weight: 500; text-decoration: none; }
.credit-note { margin: 34px 0 0; color: var(--faint); font-size: 13.5px; }
.credit-note p { max-width: 860px; }

@media (max-width: 900px) {
  .header-cta { margin-left: auto; }
}
@media (max-width: 640px) {
  .ep-table thead { display: none; }
  .ep-table, .ep-table tbody { display: block; }
  .ep-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; margin-bottom: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--basalt-850); }
  .ep-table td { display: block; padding: 0; border: 0; font-size: 14.5px; }
  .ep-table td::before { content: attr(data-label); display: block; color: var(--faint); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
  .ep-table td:empty { display: none; }
  .ep-table td.ep-num { grid-column: 1 / -1; font-size: 18px; }
  .ep-table td.ep-num::before { display: none; }
  .lede { font-size: 16.5px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .fact { padding: 12px 14px; }
  .fact dt { font-size: 11px; letter-spacing: .06em; }
  .fact dd { font-size: 16.5px; }
}

/* ------------------------------------------------------------------ footer */
.site-footer { margin-top: 40px; padding: 40px var(--gutter); border-top: 1px solid var(--line); background: var(--basalt-950); color: var(--muted); font-size: 14px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1.4fr 1fr; gap: 32px; max-width: var(--max); margin: 0 auto; }
.footer-inner h2 { color: var(--text); font-size: 15px; margin-bottom: 8px; }
.footer-inner ul { margin: 0; padding: 0; list-style: none; }
.footer-inner li { margin: 4px 0; }
.footer-logo { margin: 0 0 8px; }

/* ------------------------------------------------------------------ reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.shown { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1180px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .rail { padding-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
  .ad-skyscraper { min-height: 250px; position: static; }
}
@media (max-width: 900px) {
  .site-nav { display: none; }
  .level-pill { margin-left: auto; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stream-grid { grid-template-columns: minmax(0, 1fr); }
  .chart-grid, .link-grid, .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .rail { grid-template-columns: minmax(0, 1fr); }
  .ad-skyscraper { width: min(336px, 100%); margin: 0 auto; }
}
@media (max-width: 560px) {
  .hero-inner { padding-top: 90px; }
  .cam-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .volcano-map { height: 400px; }
  .ad-leaderboard { min-height: 100px; }
  .viewer-time { margin-left: 0; }
  .alert-scale li { font-size: 10.5px; letter-spacing: .04em; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
