/* ═══════════════════════════════════════════════════════
   POND DESIGN SYSTEM — Base
   Civic Discussion · Canada
   ═══════════════════════════════════════════════════════ */

/* ── Google Fonts ────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ── Design Tokens ───────────────────────────────────── */
:root {
  /* Primary — CanuckDUCK identity */
  --pond-duck: #D4A017;
  --pond-duck-dark: #B8860B;
  --pond-duck-light: #F5DEB3;
  --pond-maple: #C41E3A;
  --pond-maple-light: #E8354F;
  --pond-green: #1B4332;
  --pond-green-mid: #2D6A4F;
  --pond-green-light: #40916C;
  --pond-green-pale: #D8F3DC;

  /* Neutrals */
  --pond-ink: #1A1A2E;
  --pond-charcoal: #2C2C3E;
  --pond-slate: #4A4A5E;
  --pond-mist: #8E8EA0;
  --pond-cloud: #E8E8ED;
  --pond-frost: #F4F4F7;
  --pond-snow: #FAFAFE;
  --pond-white: #FFFFFF;

  /* Semantic — Perspective Actions */
  --pond-agree: #2D6A4F;
  --pond-agree-bg: #2D6A4F12;
  --pond-disagree: #C41E3A;
  --pond-disagree-bg: #C41E3A12;
  --pond-perspective: #D4A017;
  --pond-perspective-bg: #D4A01712;
  --pond-info: #1B6B93;

  /* CDA Dimensions */
  --cda-jurisdictional: #4361EE;
  --cda-charter: #C41E3A;
  --cda-rights: #7209B7;
  --cda-fiscal: #D4A017;
  --cda-indigenous: #2D6A4F;
  --cda-language: #E76F51;

  /* Typography */
  --font-display: 'Libre Franklin', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Libre Franklin', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

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

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 12px;

  /* 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);
  --shadow-focus: 0 0 0 3px rgba(27, 67, 50, 0.15);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.12s var(--ease-out);
  --transition-normal: 0.2s var(--ease-out);
  --transition-slow: 0.4s var(--ease-out);

  /* Layout */
  --sidebar-width: 220px;
  --topbar-height: 52px;
  --content-max-width: 900px;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  color: var(--pond-ink);
  background-color: var(--pond-frost);
  line-height: 1.5;
  min-height: 100vh;
}

a {
  color: var(--pond-green-mid);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--pond-duck);
}

a:focus-visible {
  outline: 2px solid var(--pond-green-mid);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input, select, textarea {
  font-family: inherit;
}

/* ── Typography ──────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--pond-ink);
}

h1 { font-size: 1.5rem; font-weight: 800; }
h2 { font-size: 1.25rem; font-weight: 800; }
h3 { font-size: 1.0625rem; font-weight: 700; }
h4 { font-size: 0.9375rem; font-weight: 700; }

p {
  line-height: 1.65;
  color: var(--pond-charcoal);
}

.font-mono {
  font-family: var(--font-mono);
}

.text-mist { color: var(--pond-mist); }
.text-slate { color: var(--pond-slate); }
.text-green { color: var(--pond-green-mid); }
.text-duck { color: var(--pond-duck); }
.text-maple { color: var(--pond-maple); }

.text-sm { font-size: 0.8125rem; }
.text-xs { font-size: 0.6875rem; }
.text-2xs { font-size: 0.625rem; }

.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

/* ── Utility Classes ─────────────────────────────────── */
.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;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.visually-hidden {
  position: absolute !important;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  word-wrap: normal;
}
