/**
 * ============================================================================
 * FILE: main-styles.css
 * SECTION: All Styling (CSS)
 * ============================================================================
 * 
 * WHAT THIS FILE DOES:
 * Contains ALL the CSS styling for both pages (index.html and forecast.html).
 * This controls how everything looks - colors, spacing, fonts, layout.
 * 
 * DESIGN SYSTEM:
 * Stripe-inspired clean SaaS design
 * - Professional, trustworthy, data-forward
 * - High contrast, generous whitespace, subtle gradients
 * 
 * FILE ORGANIZATION:
 * 
 * 1. Design Tokens (CSS Variables)
 *    - Colors (--text, --surface, --border, etc.)
 *    - Spacing (--space-1, --space-2, etc.)
 *    - Typography (--font-family, --text-*, etc.)
 *    - Located in :root section
 * 
 * 2. Base Styles
 *    - CSS reset
 *    - Typography (headings, body text)
 *    - Body styles
 * 
 * 3. Layout Components
 *    - Topbar (navigation bar)
 *    - Shell (main container)
 *    - Hero (page header)
 *    - Grid layouts
 * 
 * 4. UI Components
 *    - Buttons (segmented controls, location/elevation buttons)
 *    - Cards (glance cards, forecast tiles, current card)
 *    - Panels (sections with headers)
 *    - Loading/error states
 * 
 * 5. Page-Specific Styles
 *    - Forecast page specific styles
 *    - Conditions page specific styles
 * 
 * 6. Responsive Breakpoints
 *    - Mobile, tablet, desktop layouts
 * 
 * WHEN TO EDIT THIS FILE:
 * ✓ Changing colors → Edit CSS variables in :root section
 * ✓ Changing spacing → Edit --space-* variables
 * ✓ Changing fonts → Edit --font-* and --text-* variables
 * ✓ Changing component styles → Find the component class and modify
 * ✓ Adding new styles → Add new CSS rules
 * ✓ Changing layout → Modify grid/flexbox properties
 * 
 * QUICK REFERENCE:
 *    Colors: Look for --text, --surface, --border variables
 *    Spacing: Look for --space-1 through --space-6
 *    Components: Look for class names like .panel, .card, .button
 */

/* ============================================================================
   RESET & BASE
   ============================================================================ */

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

/* ============================================================================
   DESIGN TOKENS (CSS Custom Properties)
   ============================================================================ */

:root {
  /* Base */
  --bg: #ffffff;
  --bg-subtle: #fafbfc;
  --surface: #ffffff;
  --surface-elevated: #ffffff;
  
  /* Text */
  --text: #0a2540;
  --text-secondary: #425466;
  --text-muted: #8898aa;
  --text-disabled: #cbd5e0;
  
  /* Accent (Stripe blue-purple) */
  --accent: #635bff;
  --accent-hover: #5851e9;
  --accent-light: #f0f0ff;
  
  /* Borders & shadows */
  --border: #e3e8ef;
  --border-subtle: #f1f5f9;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.12);
  
  /* Status */
  --success: #00d97e;
  --success-bg: #e6faf2;
  --warning: #ffb020;
  --warning-bg: #fff8e6;
  --danger: #df1c41;
  --danger-bg: #ffe6eb;
  
  /* Radius */
  --radius: 8px;
  --radius-lg: 12px;
  
  /* Spacing (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  
  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "Monaco", "Consolas", "Liberation Mono", "Courier New", monospace;
  
  /* Font sizes */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 20px;
  --text-xl: 28px;
  --text-2xl: 36px;
}

/* ============================================================================
   BASE STYLES
   ============================================================================ */

html,
body {
  height: 100%;
  margin: 0;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "liga" 1, "kern" 1;
  padding-top: 64px; /* Account for fixed header */
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: var(--space-3);
  top: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transform: translateY(-160%);
  transition: transform 160ms ease;
  z-index: 999;
  font-weight: 600;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* ============================================================================
   LAYOUT COMPONENTS
   ============================================================================ */

/* Top navigation bar */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.topbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.topbar__nav {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  transition: background 150ms ease;
}

.brand:hover {
  background: var(--bg-subtle);
}

.brand__mark {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 5px;
}

.brand__name {
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: -0.01em;
  color: var(--text);
}

.topbar__link {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: var(--text-sm);
  transition: all 150ms ease;
}

.topbar__link:hover {
  border-color: var(--border);
  background: var(--bg-subtle);
  color: var(--text);
}

.topbar__link[aria-current="page"] {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}

/* Tab buttons (replacing topbar links for combined page) */
.tab-button {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: var(--text-sm);
  background: transparent;
  cursor: pointer;
  transition: all 150ms ease;
  font-family: inherit;
}

.tab-button:hover {
  border-color: var(--border);
  background: var(--bg-subtle);
  color: var(--text);
}

.tab-button.active,
.tab-button[aria-current="page"] {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}

/* Tab content */
.tab-content {
  display: grid;
  gap: var(--space-6);
}

.tab-content.hidden {
  display: none;
}

/* Main content container */
.shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-4) var(--space-12);
  display: grid;
  gap: var(--space-6);
}

/* Page hero section (title, location, metadata) */
.hero {
  padding: var(--space-2) 0;
}

.hero__kicker {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.hero__title {
  margin: 0 0 var(--space-3);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(var(--text-xl), 4vw, var(--text-2xl));
  line-height: 1.1;
  color: var(--text);
}

.hero__meta {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  align-items: baseline;
}

.hero__meta-strong {
  font-weight: 700;
  color: var(--text);
}

.hero__meta-muted {
  color: var(--text-muted);
  font-weight: 600;
}

.hero__dot {
  color: var(--text-muted);
}

/* Location/elevation selector controls */
.controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  padding: var(--space-4);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  border-radius: var(--radius-lg);
}

.control {
  display: grid;
  gap: var(--space-2);
}

.control__label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: clip;
}

.segmented__btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: var(--space-2) var(--space-3);
  cursor: pointer;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: all 150ms ease;
  font-family: inherit;
}

.segmented__btn + .segmented__btn {
  border-left: 1px solid var(--border);
}

.segmented__btn:hover {
  background: var(--bg-subtle);
  color: var(--text);
}

.segmented__btn.active {
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 700;
}

.segmented__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  z-index: 1;
  position: relative;
}

/* ============================================================================
   UI COMPONENTS
   ============================================================================ */

/* Loading indicator */
.loading {
  text-align: center;
  padding: var(--space-8);
  color: var(--text-muted);
  font-size: var(--text-base);
}

.loading.hidden {
  display: none;
}

.error-message {
  padding: var(--space-3) var(--space-4);
  background: var(--danger-bg);
  color: var(--danger);
  border-radius: var(--radius);
  border: 1px solid rgba(223, 28, 65, 0.2);
  font-weight: 600;
}

.error-message.hidden {
  display: none;
}

/* Content panels (cards with borders) */
.panel {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: clip;
  transition: box-shadow 200ms ease;
}

.panel:hover {
  box-shadow: var(--shadow-md);
}

.panel__head {
  padding: var(--space-4) var(--space-4) 0;
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  align-items: baseline;
  flex-wrap: wrap;
}

.panel__title {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: var(--text-lg);
  line-height: 1.2;
  color: var(--text);
}

.panel__hint {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
}

.panel__body {
  padding: var(--space-4);
}

.subpanel {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: var(--bg-subtle);
  padding: var(--space-4);
}

.subpanel__title {
  margin: 0 0 var(--space-3);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.subpanel__hint {
  margin: var(--space-3) 0 0;
  color: var(--text-muted);
  font-weight: 500;
  font-size: var(--text-sm);
}

/* Forecast layout */
.forecast-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;  /* Single column - stack vertically */
  gap: var(--space-4);
}

/* At-a-glance cards */
.glance-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-3);
}

.glance-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: var(--bg-subtle);
  padding: var(--space-4);
  min-height: 100px;
  display: grid;
  align-content: start;
  gap: var(--space-2);
}

.glance-card__label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.glance-card__value {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  font-family: var(--font-mono);
}

.glance-card__sub {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

.glance-card__badge {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-2);
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 700;
  font-size: var(--text-xs);
}

/* Recent snowfall */
.recent-total {
  text-align: center;
  padding: var(--space-6) var(--space-4);
  background: var(--bg-subtle);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  margin-bottom: var(--space-4);
}

.recent-total-value {
  font-size: clamp(var(--text-2xl), 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
  font-family: var(--font-mono);
}

.recent-total-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: var(--space-2);
  font-weight: 500;
}

.recent-days {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-3);
}

.recent-day {
  background: var(--surface);
  padding: var(--space-3);
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--border-subtle);
}

.recent-day-label {
  display: block;
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-1);
  font-weight: 600;
}

.recent-day-value {
  display: block;
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  font-family: var(--font-mono);
}


/* Chart */
.chart-frame {
  height: 280px;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  padding: var(--space-3);
}

.chart-canvas,
.chart__canvas {
  width: 100%;
  height: 100%;
}

/* Snowfall List */
.snowfall-list {
  margin-top: var(--space-2);
}

.snowfall-list-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* Location Search Styles */
.location-search-wrapper {
  position: relative;
  width: 100%;
}

.location-search {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 2px solid var(--border-color, #e0e0e0);
  border-radius: 0.5rem;
  background: var(--bg-color, #fff);
  font-family: inherit;
  transition: border-color 0.2s;
}

.location-search:focus {
  outline: none;
  border-color: var(--accent-color, #0066cc);
}

.location-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 0.25rem;
  background: var(--bg-color, #fff);
  border: 2px solid var(--border-color, #e0e0e0);
  border-radius: 0.5rem;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.location-results.hidden {
  display: none;
}

.location-result-item {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  text-align: left;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  transition: background-color 0.2s;
}

.location-result-item:hover,
.location-result-item:focus {
  background: var(--hover-bg, #f5f5f5);
  outline: none;
}

.location-result-item.active {
  background: var(--accent-color, #0066cc);
  color: white;
  font-weight: 500;
}

.snowfall-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3);
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
}

.snowfall-date {
  font-weight: 500;
  color: var(--text);
}

.snowfall-amount {
  font-weight: 600;
  color: var(--text-strong);
  font-size: 1.1em;
}

/* Current card */
.current-details {
  margin-top: var(--space-2);
}

.current-card {
  background: var(--surface);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

.current-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
}

.snow-type-badge {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.snow-type-badge-small {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--accent);
  padding: var(--space-1) var(--space-2);
  background: var(--accent-light);
  border-radius: 999px;
}

.confidence-badge {
  padding: var(--space-1) var(--space-3);
  border-radius: 999px;
  font-weight: 700;
  font-size: var(--text-xs);
  font-family: var(--font-mono);
}

.confidence-high {
  background: var(--success-bg);
  color: #006644;
}

.confidence-medium {
  background: var(--warning-bg);
  color: #996500;
}

.confidence-low {
  background: var(--danger-bg);
  color: #b91c1c;
}

.current-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.metric-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3);
  background: var(--bg-subtle);
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
}

.metric-label {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 600;
}

.metric-value {
  font-weight: 700;
  color: var(--text);
  font-family: var(--font-mono);
}

.metric-help {
  font-size: var(--text-xs);
  color: var(--accent);
  margin-left: var(--space-2);
  cursor: help;
}

.current-reasons h3 {
  font-size: var(--text-base);
  margin: 0 0 var(--space-3);
  color: var(--text);
  font-weight: 700;
}

.reasons-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-2);
}

.reasons-list li {
  padding: var(--space-3);
  background: var(--bg-subtle);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.5;
}

/* Forecast tiles */
.forecast-details {
  display: grid;
  gap: var(--space-3);
}

.forecast-day-card {
  background: var(--surface);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  transition: all 200ms ease;
}

.forecast-day-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.forecast-day-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-subtle);
}

.forecast-day-header h3 {
  margin: 0;
  font-size: var(--text-base);
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.forecast-snowfall {
  font-size: var(--text-sm);
  color: var(--accent);
  font-weight: 700;
  font-family: var(--font-mono);
}

.forecast-snow-quality {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: flex-end;
}

.forecast-day-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-4);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 600;
}

/* Forecast page specific */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--space-3);
}

.day-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: grid;
  gap: var(--space-3);
  min-height: 160px;
  transition: all 200ms ease;
}

.day-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.day-card__header {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  align-items: flex-start;
}

.day-card__title {
  margin: 0;
  font-size: var(--text-base);
  letter-spacing: -0.01em;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
}

.day-card__date {
  display: inline-block;
  margin-top: var(--space-1);
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.snowfall {
  display: grid;
  gap: var(--space-1);
}

.snowfall__value {
  font-size: var(--text-2xl);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  font-family: var(--font-mono);
}

.snowfall__unit {
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-1) var(--space-2);
  border-radius: 999px;
  border: 1px solid var(--accent);
  font-weight: 700;
  font-size: var(--text-xs);
  color: var(--accent);
  background: var(--accent-light);
  white-space: nowrap;
}

.metrics {
  display: grid;
  gap: var(--space-2);
}

.metrics__row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 600;
}

.metrics__row strong {
  color: var(--text);
  font-weight: 700;
  font-family: var(--font-mono);
}

.empty,
.error {
  grid-column: 1 / -1;
  padding: var(--space-4);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  color: var(--text-muted);
  background: var(--bg-subtle);
  text-align: center;
}

.error {
  border-color: var(--danger);
  color: var(--danger);
  background: var(--danger-bg);
}

/* Add this near the forecast-grid styles (around line 530) */
.retention-metric {
  margin-bottom: var(--space-4);
  padding: var(--space-4);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}

.retention-metric__content {
  font-size: var(--text-base);
  color: var(--text);
  text-align: center;
}

.retention-metric__content strong {
  font-weight: 700;
  color: var(--accent);
}

/* ============================================================================
   RESPONSIVE BREAKPOINTS
   ============================================================================ */

@media (max-width: 820px) {
  .controls {
    grid-template-columns: 1fr;
  }

  .glance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .forecast-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .shell {
    padding: var(--space-4) var(--space-3) var(--space-8);
    gap: var(--space-4);
  }

  .glance-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
