/* ==========================================================================
   WellnessLife — Wellness Journal + Personal Dashboard
   Design tokens: Canvas #F8F9FA / Card #E8F5E9 / Header #1B4332
   Primary #2D6A4F / Highlight #D97706 / Text #212529
   Type: Domine (display serif) + Inter (body) + IBM Plex Mono (data)
   ========================================================================== */

   :root {
    --canvas: #F8F9FA;
    --card: #E8F5E9;
    --header: #1B4332;
    --primary: #2D6A4F;
    --highlight: #D97706;
    --ink: #212529;
  
    --card-border: #CFE3D6;
    --primary-tint: #DDEDE3;
    --primary-tint-2: #F1F8F3;
    --ink-soft: #4A5A52;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }
    *, *::before, *::after {
      animation-duration: 0.001ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.001ms !important;
      scroll-behavior: auto !important;
    }
  }
  
  body {
    background-color: var(--canvas);
    color: var(--ink);
    font-family: 'Inter', sans-serif;
  }
  
  .font-display {
    font-family: 'Domine', serif;
  }
  
  .font-mono {
    font-family: 'IBM Plex Mono', monospace;
  }
  
  /* Visible keyboard focus everywhere */
  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  textarea:focus-visible,
  select:focus-visible,
  [tabindex]:focus-visible {
    outline: 2px solid var(--highlight);
    outline-offset: 3px;
    border-radius: 4px;
  }
  
  /* ==========================================================================
     Signature element: the Wellness Ring
     A hand-set conic-gradient ring used for every progress metric in the app —
     daily score, hydration, sleep, movement, breathing pace. The single
     consistent visual thread across every page.
     ========================================================================== */
  
  .wellness-ring {
    --pct: 0;
    --ring-color: var(--primary);
    --ring-track: var(--primary-tint);
    width: var(--ring-size, 120px);
    height: var(--ring-size, 120px);
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: conic-gradient(var(--ring-color) calc(var(--pct) * 1%), var(--ring-track) 0);
    transition: background 0.6s ease;
    position: relative;
  }
  
  .wellness-ring::before {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background: var(--canvas);
  }
  
  .wellness-ring-inner {
    position: relative;
    z-index: 1;
    text-align: center;
  }
  
  .wellness-ring.on-card::before {
    background: #FFFFFF;
  }
  
  /* Small ring variant used inline in strips/lists */
  .wellness-ring-sm {
    --ring-size: 56px;
  }
  .wellness-ring-sm::before {
    inset: 5px;
  }
  
  /* ==========================================================================
     Organic blob accents — soft, irregular shapes for calm backgrounds
     ========================================================================== */
  
  .blob {
    position: absolute;
    border-radius: 62% 38% 55% 45% / 48% 42% 58% 52%;
    filter: blur(0px);
    z-index: 0;
  }
  
  .blob-sage {
    background: var(--card);
  }
  
  .blob-tint {
    background: var(--primary-tint);
  }
  
  .blob-amber {
    background: #FBEBD6;
  }
  
  /* ==========================================================================
     Journal card — the base module for dashboard content
     ========================================================================== */
  
  .journal-card {
    background: #FFFFFF;
    border: 1px solid var(--card-border);
    border-radius: 18px;
    position: relative;
  }
  
  .journal-card-accent {
    position: relative;
  }
  
  .journal-card-accent::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 4px;
    border-radius: 4px;
    background: var(--primary);
  }
  
  /* ==========================================================================
     Calendar-style streak / heatmap tracker
     ========================================================================== */
  
  .streak-dot {
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    background: var(--primary-tint);
    border: 1px solid var(--card-border);
    display: grid;
    place-items: center;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    color: var(--ink-soft);
    transition: background 0.3s ease, transform 0.2s ease;
  }
  
  .streak-dot.is-filled {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
  }
  
  .streak-dot.is-today {
    box-shadow: 0 0 0 2px var(--highlight);
  }
  
  /* ==========================================================================
     Scroll reveal
     ========================================================================== */
  
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  
  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* ==========================================================================
     Breathing pacer (Mental Wellness page)
     ========================================================================== */
  
  .breathing-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: var(--primary-tint);
    border: 2px solid var(--primary);
    display: grid;
    place-items: center;
    transition: transform 4s ease-in-out;
  }
  
  .breathing-circle.inhale {
    transform: scale(1.35);
  }
  
  .breathing-circle.exhale {
    transform: scale(0.85);
  }
  
  /* ==========================================================================
     Nutrition data block bars
     ========================================================================== */
  
  .nutrient-bar-track {
    height: 8px;
    border-radius: 999px;
    background: var(--primary-tint);
    overflow: hidden;
  }
  
  .nutrient-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: var(--primary);
  }
  
  /* ==========================================================================
     Habit checklist item
     ========================================================================== */
  
  .habit-check {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    border: 2px solid var(--primary);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    cursor: pointer;
    background: #FFFFFF;
    transition: background 0.2s ease;
  }
  
  .habit-check.is-checked {
    background: var(--primary);
  }
  
  .habit-check.is-checked::after {
    content: '';
    width: 10px;
    height: 6px;
    border-left: 2px solid #FFFFFF;
    border-bottom: 2px solid #FFFFFF;
    transform: rotate(-45deg) translateY(-1px);
  }
  
  /* ==========================================================================
     Water glass indicator
     ========================================================================== */
  
  .water-glass {
    width: 26px;
    height: 34px;
    border: 2px solid var(--primary);
    border-top: none;
    border-radius: 0 0 6px 6px;
    cursor: pointer;
    background: transparent;
    position: relative;
    transition: background 0.2s ease;
  }
  
  .water-glass.is-filled {
    background: var(--primary);
  }
  
  /* ==========================================================================
     Nav underline treatment
     ========================================================================== */
  
  .nav-link {
    position: relative;
    padding-bottom: 4px;
  }
  
  .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--highlight);
    transition: width 0.25s ease;
  }
  
  .nav-link:hover::after,
  .nav-link[aria-current="page"]::after {
    width: 100%;
  }
  
  /* Mobile nav panel */
  #mobile-nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  #mobile-nav.is-open {
    max-height: 500px;
  }
  
  /* Article card underline hover */
  .article-card img {
    transition: transform 0.5s ease;
  }
  .article-card:hover img {
    transform: scale(1.04);
  }
  
  /* Utility: line clamp */
  .clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

/* Offset content for fixed header */
body {
  padding-top: 64px;
}



html,
body {
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}