/* Design Tokens — NeighborHelp Community Platform
   Direction: human-approachable + Claude-inspired warmth */

:root {
  /* ---- Palette ---- */
  --bg:             oklch(97% 0.005 85);
  --surface:        oklch(100% 0 0);
  --fg:             oklch(18% 0.018 80);
  --muted:          oklch(46% 0.014 85);
  --border:         oklch(88% 0.007 90);
  --border-light:   oklch(93% 0.005 90);

  --accent:         oklch(54% 0.15 28);
  --accent-hover:   oklch(48% 0.16 28);
  --accent-light:   oklch(72% 0.08 28);
  --accent-subtle:  oklch(94% 0.03 28);

  --secondary:      oklch(52% 0.12 175);
  --secondary-light:oklch(92% 0.04 175);

  --success:        oklch(52% 0.14 155);
  --success-light:  oklch(92% 0.04 155);
  --warning:        oklch(60% 0.16 75);
  --warning-light:  oklch(94% 0.06 75);
  --danger:         oklch(45% 0.17 22);
  --danger-light:   oklch(93% 0.04 22);

  --reward-gold:    oklch(62% 0.16 82);

  /* ---- Typography ---- */
  --font-display: 'Söhne', 'Avenir Next', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-body:    -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'SF Mono', ui-monospace, Menlo, monospace;

  /* ---- Spacing ---- */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 20px;
  --space-2xl: 24px;
  --space-3xl: 32px;
  --space-4xl: 48px;

  /* ---- Radii ---- */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

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

  /* ---- Layout ---- */
  --nav-height: 56px;
  --bottom-nav-height: 64px;
  --max-content: 680px;
  --sidebar-width: 240px;
}

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

html {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  overflow-x: hidden;
}

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

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