/* IronCoaching Design System tokens and type, dark only, as the design handoff
   (design/web/HANDOFF.md) uses them. Values come from the design system's
   colors_and_type.css; the five under "Added for IronNutrition" are the
   handoff's New tokens. The Geist fonts are shipped here because the page's
   content security policy allows nothing from a CDN. */

@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Variable.woff2") format("woff2-variations"), url("fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/GeistMono-Variable.woff2") format("woff2-variations"), url("fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* Surface ramp */
  --surface:          #0a0a12;
  --surface-elevated: #12121e;
  --surface-raised:   #1a1a2e;
  --surface-card:     #16162a;

  /* Brand */
  --primary:      #00fff9;
  --on-primary:   #0a0a12;
  --secondary:    #ff2a6d;
  --on-secondary: #0a0a12;

  /* Text */
  --fg-1:        #ededed;
  --fg-2:        #8888a0;
  --fg-disabled: #4d4d63;

  /* The only border colour */
  --border: #2a2a40;

  /* Status */
  --success: #22c55e;
  --warning: #f97316;
  --error:   #ef4444;
  --danger:  #dc2626;

  /* Translucent tints for badges, selected states and focus rings */
  --primary-10:   rgba(0, 255, 249, 0.10);
  --primary-20:   rgba(0, 255, 249, 0.20);
  --primary-30:   rgba(0, 255, 249, 0.30);
  --secondary-10: rgba(255, 42, 109, 0.10);
  --secondary-20: rgba(255, 42, 109, 0.20);

  /* Glows: the only shadows */
  --glow-primary:   0 0 20px rgba(0, 255, 249, 0.20);
  --glow-secondary: 0 0 20px rgba(255, 42, 109, 0.20);

  /* Spacing, 8 px scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;

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

  /* Type families */
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, "Menlo", "Consolas", monospace;

  /* Added for IronNutrition (the handoff's New tokens) */
  --success-10: rgba(34, 197, 94, 0.10);
  --success-20: rgba(34, 197, 94, 0.20);
  --warning-10: rgba(249, 115, 22, 0.10);
  --warning-20: rgba(249, 115, 22, 0.20);
  --error-10:   rgba(239, 68, 68, 0.10);
  --error-20:   rgba(239, 68, 68, 0.20);
  --control-h-touch: 44px;
  --tabbar-h: 56px;
}

html, body {
  background: var(--surface);
  color: var(--fg-1);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* The nine type steps. Never invent a tenth. */
.t-headline-lg { font-size: 2.25rem; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.t-headline-md { font-size: 1.5rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.t-headline-sm { font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
.t-body-lg { font-size: 1.125rem; font-weight: 400; line-height: 1.6; }
.t-body-md { font-size: 1rem; font-weight: 400; line-height: 1.6; }
.t-body-sm { font-size: 0.875rem; font-weight: 400; line-height: 1.5; }
.t-label-md { font-size: 0.875rem; font-weight: 500; line-height: 1; }
.t-label-sm { font-size: 0.75rem; font-weight: 500; line-height: 1; letter-spacing: 0.02em; }
.t-mono-sm {
  font-family: var(--font-mono); font-size: 0.875rem; font-weight: 500; line-height: 1.4;
  font-feature-settings: "tnum"; font-variant-numeric: tabular-nums;
}
/* Every number is set in the mono face with tabular figures. */
.num { font-family: var(--font-mono); font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
