/* ── Uphill Planner Co. Design Tokens ─────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;600;700&family=Noto+Sans:ital,wght@0,400;0,600;1,400&display=swap');

:root,
[data-theme='light'] {
  /* Brand surfaces */
  --color-bg:              #fbf9f7;
  --color-surface:         #f3f0eb;
  --color-surface-2:       #eae7e2;
  --color-border:          #d6d1c9;
  --color-divider:         #e0dcd6;

  /* Brand palette */
  --color-navy:            #152c41;
  --color-navy-mid:        #1e3f5c;
  --color-navy-light:      #2a5378;
  --color-teal:            #2a6080;
  --color-teal-light:      #6aafcb;
  --color-gold:            #c9a84c;
  --color-gold-hover:      #b8922d;
  --color-gold-light:      #e8d49a;

  /* Alternate background */
  --color-bg-alt:          #f3f0eb;

  /* Text */
  --color-text:            #1a2e40;
  --color-text-secondary:  #4a5e6d;
  --color-text-muted:      #5a6b7a;
  --color-text-faint:      #96a6b2;
  --color-text-inverse:    #fbf9f7;

  /* Primary = navy */
  --color-primary:         #152c41;
  --color-primary-hover:   #1e3f5c;
  --color-accent:          #c9a84c;
  --color-accent-hover:    #b8922d;

  /* Radius */
  --radius-sm:   0.25rem;
  --radius-md:   0.5rem;
  --radius-lg:   0.75rem;
  --radius-xl:   1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast:        150ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-interactive: 200ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm:  0 1px 3px rgb(21 44 65 / 0.08);
  --shadow-md:  0 4px 16px rgb(21 44 65 / 0.10);
  --shadow-lg:  0 12px 40px rgb(21 44 65 / 0.14);

  /* Type */
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body:    'Noto Sans', 'Helvetica Neue', sans-serif;

  /* Type scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Content widths */
  --content-narrow:  640px;
  --content-default: 960px;
  --content-wide:    1200px;
}

[data-theme='dark'] {
  --color-bg:              #0e1c28;
  --color-bg-alt:          #0a1620;
  --color-surface:         #132233;
  --color-surface-2:       #192c40;
  --color-border:          #2a3f54;
  --color-divider:         #1f3347;
  --color-navy:            #2a5378;
  --color-navy-mid:        #3a6a90;
  --color-navy-light:      #4a80a8;
  --color-text:            #e0ddd8;
  --color-text-secondary:  #9ab0c4;
  --color-text-muted:      #8fa8bc;
  --color-text-faint:      #4a6480;
  --color-text-inverse:    #0e1c28;
  --color-primary:      #4a80a8;
  --color-primary-hover:#5a92bc;
  --color-accent:       #d4b060;
  --color-accent-hover: #c9a84c;
  --color-gold:         #d4b060;
  --shadow-sm:  0 1px 3px rgb(0 0 0 / 0.25);
  --shadow-md:  0 4px 16px rgb(0 0 0 / 0.30);
  --shadow-lg:  0 12px 40px rgb(0 0 0 / 0.40);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:              #0e1c28;
    --color-bg-alt:          #0a1620;
    --color-surface:         #132233;
    --color-surface-2:       #192c40;
    --color-border:          #2a3f54;
    --color-divider:         #1f3347;
    --color-navy:            #2a5378;
    --color-text:            #e0ddd8;
    --color-text-secondary:  #9ab0c4;
    --color-text-muted:      #8fa8bc;
    --color-text-faint:      #4a6480;
    --color-text-inverse:    #0e1c28;
    --color-primary:      #4a80a8;
    --color-primary-hover:#5a92bc;
    --color-accent:       #d4b060;
    --color-gold:         #d4b060;
  }
}
