/* ── Design Tokens ────────────────────────────────────────────────── */
:root {
  --color-bg:        #FAF7F2;
  --color-surface:   #FFFFFF;
  --color-border:    #EDE9E1;
  --color-text:      #1A1A1A;
  --color-text-sub:  #6B6B6B;
  --color-text-hint: #A0A0A0;

  --color-primary:   #2D6A4F;
  --color-primary-light: #40916C;
  --color-primary-pale: #D8F3DC;
  --color-accent:    #E07A3B;
  --color-accent-pale: #FDECD8;
  --color-amber:     #F4A261;
  --color-amber-pale: #FEF3E2;
  --color-navy:      #2C3E6B;
  --color-navy-pale: #DFE5F5;

  /* meal type colors */
  --color-breakfast: #F4A261;
  --color-breakfast-bg: #FEF3E2;
  --color-lunch:     #2D6A4F;
  --color-lunch-bg:  #D8F3DC;
  --color-dinner:    #2C3E6B;
  --color-dinner-bg: #DFE5F5;
  --color-snack:     #E07A3B;
  --color-snack-bg:  #FDECD8;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg:  0 8px 24px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.04);

  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  20px;
  --radius-pill: 999px;

  --font-sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-hindi: 'Noto Sans Devanagari', 'Kohinoor Devanagari', sans-serif;

  --nav-height: 64px;
  --header-height: 60px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --transition: 200ms ease;
}

/* ── Reset ────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  height: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100%;
  min-height: 100dvh;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }

/* ── Typography ──────────────────────────────────────────────────── */
h1 { font-size: 1.5rem;  font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h2 { font-size: 1.25rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
h3 { font-size: 1rem;    font-weight: 600; line-height: 1.4; }
h4 { font-size: 0.875rem; font-weight: 600; line-height: 1.4; }

.text-sm   { font-size: 0.8125rem; }
.text-xs   { font-size: 0.75rem; }
.text-lg   { font-size: 1.125rem; }

.text-sub  { color: var(--color-text-sub); }
.text-hint { color: var(--color-text-hint); }
.text-primary { color: var(--color-primary); }
.text-accent  { color: var(--color-accent); }

.hindi {
  font-family: var(--font-hindi), var(--font-sans);
  font-size: 0.8125rem;
  color: var(--color-text-sub);
  letter-spacing: 0.01em;
}

/* ── Utilities ───────────────────────────────────────────────────── */
.flex    { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1   { gap: 4px; }
.gap-2   { gap: 8px; }
.gap-3   { gap: 12px; }
.gap-4   { gap: 16px; }

.w-full  { width: 100%; }
.hidden  { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ── Scrollbar ───────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 2px; }
