:root {
  /* Primary */
  --osh-deep-river: #174e63;
  --osh-open-sky-pink: #e9005a;
  --osh-sky-blue: #62bed2;
  --osh-soft-aqua: #ddf1f3;

  /* Natural */
  --osh-sage: #829d83;
  --osh-forest: #355e4b;
  --osh-sand: #e8ddc8;
  --osh-warm-stone: #c6b79f;
  --osh-peach: #f3b394;

  /* Neutral */
  --osh-warm-white: #f8faf8;
  --osh-surface: #ffffff;
  --osh-text: #21343c;
  --osh-text-secondary: #65777d;
  --osh-muted: #91a0a4;
  --osh-border: rgba(23, 78, 99, 0.12);

  /* Semantic */
  --osh-bg: var(--osh-warm-white);
  --osh-bg-soft: var(--osh-soft-aqua);
  --osh-accent: var(--osh-open-sky-pink);
  --osh-accent-hover: #c4004c;
  --osh-link: var(--osh-deep-river);
  --osh-footer-bg: #123a4a;
  --osh-footer-bg-soft: rgba(255, 255, 255, 0.06);
  --osh-footer-border: rgba(255, 255, 255, 0.14);
  --osh-footer-muted: rgba(248, 250, 248, 0.72);
  --osh-footer-link: rgba(248, 250, 248, 0.86);
  --osh-footer-link-hover: var(--osh-sand);
  --osh-focus: #0a7ea4;
  --osh-shadow: 0 18px 40px rgba(23, 78, 99, 0.1);
  --osh-shadow-sm: 0 8px 24px rgba(23, 78, 99, 0.08);

  /* Type */
  --font-display: "Cormorant Garamond", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-body: Manrope, "Segoe UI", system-ui, sans-serif;

  --text-hero: clamp(2.75rem, 5vw, 4.5rem);
  --text-section: clamp(2rem, 3.5vw, 2.75rem);
  --text-card: clamp(1.35rem, 2vw, 1.75rem);
  --text-body: 1.0625rem;
  --text-support: 0.9375rem;
  --text-button: 0.9375rem;

  /* Layout — page shells match floating header max width */
  --layout-max: 1500px;
  --container: var(--layout-max);
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --osh-tabbar-h: 0px;
  --osh-tabbar-clearance: 0px;
  /* Logged-in dashboards (member + admin) */
  --dashboard-max-width: 1440px;
  --dashboard-max-width-wide: 1520px;
  --dashboard-sidebar-width: 260px;
  --dashboard-content-gap: 32px;
  --dashboard-page-padding: 24px;
  --radius-sm: 0.75rem;
  --radius-md: 1.25rem;
  --radius-lg: 2rem;
  --radius-pill: 999px;
  /* Compact floating header (~OSE proportions); --header-h clears sticky chrome */
  --site-header-height: 76px;
  --header-top-gap: 14px;
  --header-h: calc(var(--site-header-height) + var(--header-top-gap));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --touch: 44px;

  /* Desktop liquid-glass navigation (Coastal Harmony) */
  --osh-glass-warm: rgba(255, 255, 255, 0.34);
  --osh-glass-warm-strong: rgba(249, 249, 244, 0.72);
  --osh-glass-border: rgba(255, 255, 255, 0.42);
  --osh-glass-border-strong: rgba(255, 255, 255, 0.58);
  --osh-glass-highlight: rgba(255, 255, 255, 0.62);
  --osh-glass-shadow: 0 10px 30px rgba(23, 78, 99, 0.08);
  --osh-glass-shadow-deep: 0 22px 60px rgba(23, 78, 99, 0.14);
  --osh-glass-blur: 28px;
  --osh-glass-blur-mega: 32px;
  --osh-glass-saturate: 160%;
  --osh-glass-item: rgba(255, 255, 255, 0.3);
  --osh-glass-item-border: rgba(255, 255, 255, 0.42);
  --osh-glass-active: rgba(221, 241, 243, 0.55);
  --osh-glass-active-border: rgba(98, 190, 210, 0.35);
  --osh-glass-dark: rgba(18, 58, 74, 0.72);
  --osh-glass-dark-border: rgba(255, 255, 255, 0.18);
  --osh-glass-dark-text: rgba(248, 250, 248, 0.94);
  --osh-glass-pointer: 50% 50%;

  /* Mega menu surface — solid top so different-size panels don’t double-glass on switch */
  --osh-mega-bg: #ffffff;
  --osh-mega-border: rgba(220, 228, 226, 0.95);
  --osh-mega-radius: 30px;
  --osh-mega-shadow:
    0 28px 64px rgba(35, 68, 76, 0.12),
    0 8px 22px rgba(35, 68, 76, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  --osh-mega-blur: 28px;
  --osh-mega-pad-x: 1.25rem;
  --osh-mega-pad-y: 1.15rem;
  --osh-mega-col-gap: 0.75rem;
  /* Column themes — translucent tints over glass */
  --osh-mega-col-1-bg: rgba(231, 239, 236, 0.42);
  --osh-mega-col-1-accent: #1d5d6c;
  --osh-mega-col-2-bg: rgba(243, 235, 226, 0.42);
  --osh-mega-col-2-accent: #9a7340;
  --osh-mega-col-3-bg: rgba(228, 238, 244, 0.42);
  --osh-mega-col-3-accent: #3d6d80;
  --osh-mega-col-4-bg: rgba(255, 255, 255, 0.28);
  --osh-mega-col-4-accent: #3d6d80;
  --osh-mega-accent-1: var(--osh-mega-col-1-accent);
  --osh-mega-accent-2: var(--osh-mega-col-2-accent);
  --osh-mega-accent-3: var(--osh-mega-col-3-accent);
}

@media (max-width: 1023px) {
  :root {
    --osh-tabbar-h: 68px;
    --osh-tabbar-inset-x: 14px;
    --osh-tabbar-inset-bottom: 10px;
    --osh-tabbar-max-w: 520px;
    --osh-tabbar-glass: rgba(248, 250, 248, 0.72);
    --osh-tabbar-glass-border: rgba(255, 255, 255, 0.78);
    --osh-tabbar-capsule: rgba(255, 255, 255, 0.78);
    --osh-tabbar-clearance: calc(
      var(--osh-tabbar-h) + var(--osh-tabbar-inset-bottom) + env(safe-area-inset-bottom, 0px) + 12px
    );
  }
}

@media (max-width: 1023px) {
  :root {
    --site-header-height: 64px;
    --header-top-gap: 8px;
    --gutter: 1.25rem;
  }
}

@media (max-width: 699px) {
  :root {
    --site-header-height: 60px;
    --header-top-gap: 6px;
    --gutter: 1.25rem;
    --text-section: clamp(2.15rem, 7.2vw, 2.65rem);
    --text-card: clamp(1.4rem, 4.5vw, 1.7rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --ease: linear;
  }
}
