/* ============================================================
   THEME — Design tokens & base reset for Ruby Puppy Tracker
   Warm pink / rose palette, playful yet readable
   ============================================================ */

:root {
  /* Palette */
  --pink-50:  #fdf2f8;
  --pink-100: #fce7f3;
  --pink-200: #fbcfe8;
  --pink-300: #f9a8d4;
  --pink-400: #e8a0bf;
  --pink-500: #ec4899;
  --pink-600: #db2777;
  --pink-700: #be185d;

  --rose-50:  #fff1f2;
  --rose-100: #ffe4e6;

  --warm-50:  #fffbeb;
  --warm-100: #fef3c7;
  --warm-200: #fde68a;
  --warm-600: #d97706;

  --green-100: #dcfce7;
  --green-500: #22c55e;
  --green-600: #16a34a;

  --blue-100: #dbeafe;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;

  --red-100: #fee2e2;
  --red-500: #ef4444;
  --red-600: #dc2626;

  --gray-50:  #fafafa;
  --gray-100: #f4f4f5;
  --gray-200: #e4e4e7;
  --gray-300: #d4d4d8;
  --gray-400: #a1a1aa;
  --gray-500: #71717a;
  --gray-600: #52525b;
  --gray-700: #3f3f46;
  --gray-800: #27272a;
  --gray-900: #18181b;

  /* Semantic */
  --bg:       var(--pink-50);
  --surface:  #ffffff;
  --text:     var(--gray-800);
  --text-muted: var(--gray-500);
  --border:   var(--gray-200);
  --accent:   var(--pink-500);
  --accent-light: var(--pink-100);
  --accent-dark:  var(--pink-700);
  --success:  var(--green-500);
  --warning:  var(--warm-600);
  --danger:   var(--red-500);

  /* Spacing */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;

  /* Radius */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);

  /* Layout */
  --top-bar-h: 56px;
  --tab-bar-h: 64px;

  /* Typography */
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  padding-top: var(--top-bar-h);
  padding-bottom: var(--tab-bar-h);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
button, input, select, textarea {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
}
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: var(--accent); text-decoration: none; }

ul, ol { list-style: none; }

.hidden { display: none !important; }

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