/* ==========================================================================
   Core Reset & Basic Styles
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 15.4px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.mono {
  font-family: var(--font-mono);
}

/* ==========================================================================
   Pull-to-Refresh Slot (mobile, Weather tab only)
   ========================================================================== */
/* Normal-flow block that grows from 0 as you drag, pushing the cards below it down
   in real document flow — no transform/overflow-clipping needed, no background of
   its own (the empty gap it reveals is just the app's existing mesh-bg showing
   through). Icon-only, matching Chrome/iOS pull-to-refresh, no text label. */
.ptr-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--text-muted);
  pointer-events: none;
}

.ptr-slot.ready {
  color: var(--color-accent);
}

.ptr-icon {
  display: inline-block;
  font-size: 1.3rem;
  line-height: 1;
}

.ptr-icon.spinning {
  animation: spin 1s infinite linear;
}

/* ==========================================================================
   Fluid Organics Background Animation
   ========================================================================== */
.mesh-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  background: #000000;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.8;
  mix-blend-mode: screen;
  transition: background 2s ease-in-out;
}

.blob-1 {
  top: -10%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  background: var(--blob-color-1);
  animation: float-1 25s infinite alternate ease-in-out;
}

.blob-2 {
  bottom: -20%;
  right: -10%;
  width: 70vw;
  height: 70vw;
  background: var(--blob-color-2);
  animation: float-2 30s infinite alternate ease-in-out;
}

.blob-3 {
  top: 40%;
  left: 30%;
  width: 50vw;
  height: 50vw;
  background: var(--blob-color-3);
  animation: float-3 20s infinite alternate ease-in-out;
}

/* Dark mode is solid black, no colour blobs (branding decision, 2026-07-23 — not a
   bug: the `weather-cat-*` mechanism that tints these blobs by flight category, incl.
   VFR green, was only just fixed to actually apply, then deliberately hidden again for
   dark mode here). The class/watcher stays wired in 01-tokens.css/app.js for light
   theme, which uses its own flat, low-opacity blob palette independent of weather-cat.
   See CLAUDE.md -> Design tokens. */
body.dark-theme .blob {
  display: none;
}

@keyframes float-1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(20%, 15%) scale(1.15); }
}

@keyframes float-2 {
  0% { transform: translate(0, 0) scale(1.1); }
  100% { transform: translate(-15%, -20%) scale(0.9); }
}

@keyframes float-3 {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(10%, -10%) rotate(180deg); }
}

