/* Direction: Nordic studio — sky-to-mint air, frosted glass panels, geometric headings, one coral accent */
/* Completed by the platform from the short form: both modes, every
   palette token, each text-on-ground pair at its floor. To restyle, write the
   short form again (the decisions in one :root) and it is completed again. */

:root {
  --canvas: #eaf4f9;
  --surface: #ffffff;
  --surface-2: #f1f8fb;
  --border: #cde0e9;
  --border-strong: #adafb1;
  --ink: #122633;
  --muted: #53707f;
  --accent: #e8614a;
  --accent-hover: #c5523f;
  --accent-ink: #200e0a;
  --accent-text: #bd3f29;
  --accent-strong: #a6321d;
  --accent-soft: #fde7e2;
  --accent-border: #e9b2aa;
  --success: #1f8f6c;
  --success-ink: #ffffff;
  --success-soft: #d2e8e8;
  --success-strong: #196f54;
  --warning: #a9750a;
  --warning-ink: #ffffff;
  --warning-soft: #e2e5dc;
  --warning-strong: #845b07;
  --danger: #c23f28;
  --danger-ink: #ffffff;
  --danger-soft: #e5dee0;
  --danger-strong: #a43522;
  --chart-1: #e8614a;
  --chart-2: #a7881b;
  --chart-3: #17924c;
  --chart-4: #1496ab;
  --chart-5: #556bdb;
  --chart-6: #cc65c1;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --display-weight: 600;
  --display-tracking: -0.03em;
  --radius-card: 20px;
  --radius-btn: 12px;
  --radius-input: 12px;
  --shadow-card: 0 18px 40px -26px rgba(18, 38, 51, 0.45);
  --card-pad: 1.25rem;
  --gradient-sky: linear-gradient( 170deg, rgba(126, 196, 228, 0.45) 0%, rgba(160, 221, 212, 0.34) 38%, rgba(214, 238, 232, 0.12) 68%, rgba(255, 255, 255, 0) 100% );
  --x-ring: rgba(18, 38, 51, 0.1);
  --font-mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-sans: "Inter", system-ui, sans-serif;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="dark"] {
  --canvas: #170a08;
  --surface: #2e2321;
  --surface-2: #231614;
  --border: #372c2b;
  --border-strong: #5d5452;
  --ink: #eaf4f9;
  --muted: #969699;
  --accent: #e8614a;
  --accent-hover: #eb7965;
  --accent-ink: #200e0a;
  --accent-text: #e8614a;
  --accent-strong: #ea6e58;
  --accent-soft: #451d17;
  --accent-border: #753126;
  --success: #1f8f6c;
  --success-ink: #ffffff;
  --success-soft: #19271e;
  --success-strong: #41a083;
  --warning: #a9750a;
  --warning-ink: #ffffff;
  --warning-soft: #372208;
  --warning-strong: #b68a30;
  --danger: #c23f28;
  --danger-ink: #ffffff;
  --danger-soft: #3d160f;
  --danger-strong: #d37565;
  --chart-1: #e8614a;
  --chart-2: #cfaa20;
  --chart-3: #019a4d;
  --chart-4: #19bbd4;
  --chart-5: #5e74e6;
  --chart-6: #e77ddb;
}

/* Clearday — airy gradient field, frosted panels, gentle glide */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: var(--gradient-sky);
  pointer-events: none;
  z-index: -1;
}

.glass {
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.lift {
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.28s ease;
}
.lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 50px -28px rgba(18, 38, 51, 0.5);
}

@keyframes glide-in {
  from {
    transform: translateY(18px);
  }
  to {
    transform: translateY(0);
  }
}

.glide {
  animation: glide-in 0.55s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}
.glide-slow {
  animation: glide-in 0.8s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.day-cell {
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}
.day-cell:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.dial {
  background: conic-gradient(var(--accent) calc(var(--dial-pct) * 1%), var(--x-ring) 0);
}

.bar-btn {
  transition: transform 0.2s ease;
  cursor: pointer;
}
.bar-btn:hover {
  transform: translateY(-3px);
}
.bar-btn:hover .bar-label,
.bar-btn.is-selected .bar-label {
  color: var(--accent-text);
  font-weight: 600;
}
.bar-btn.is-selected .bar-stack {
  box-shadow: 0 0 0 2px var(--accent);
}
.bar-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

html.reduced-motion .glide,
html.reduced-motion .glide-slow {
  animation: none;
}
html.reduced-motion .lift:hover,
html.reduced-motion .day-cell:hover,
html.reduced-motion .bar-btn:hover {
  transform: none;
}
