/* ==========================================================================
   Claude Design System Tokens (DESIGN-claude.md)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Brand & Accents */
  --color-primary: #cc785c;
  --color-primary-active: #a9583e;
  --color-primary-disabled: #e6dfd8;
  --color-on-primary: #ffffff;
  --color-accent-teal: #5db8a6;
  --color-accent-amber: #e8a55a;
  --color-success: #5db872;
  --color-warning: #d4a017;
  --color-error: #c64545;

  /* Typography Stacks */
  --font-display: "Cormorant Garamond", Tiempos Headline, Garamond, Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

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

  /* Spacings */
  --spacing-xxs: 4px;
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 48px;
  --spacing-section: 96px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Mode Theme (Default Warm Editorial Canvas) */
[data-theme="light"], :root:not([data-theme="dark"]) {
  --color-canvas: #faf9f5;
  --color-surface-soft: #f5f0e8;
  --color-surface-card: #efe9de;
  --color-surface-card-hover: #e8e0d2;
  --color-surface-cream-strong: #e8e0d2;
  --color-surface-dark: #181715;
  --color-surface-dark-elevated: #252320;
  --color-surface-dark-soft: #1f1e1b;

  --color-ink: #141413;
  --color-body-strong: #252523;
  --color-body: #3d3d3a;
  --color-muted: #6c6a64;
  --color-muted-soft: #8e8b82;

  --color-hairline: #e6dfd8;
  --color-hairline-soft: #ebe6df;

  --color-on-dark: #faf9f5;
  --color-on-dark-soft: #a09d96;

  --shadow-subtle: 0 1px 3px rgba(20, 20, 19, 0.05);
  --shadow-card: 0 4px 20px rgba(20, 20, 19, 0.04);
  --shadow-modal: 0 20px 40px rgba(20, 20, 19, 0.15);

  --statusbar-bg: rgba(250, 249, 245, 0.92);
  --input-bg: #faf9f5;
}

/* Dark Mode Theme (Dark Navy Surfaces) */
[data-theme="dark"] {
  --color-canvas: #181715;
  --color-surface-soft: #1f1e1b;
  --color-surface-card: #252320;
  --color-surface-card-hover: #2e2b27;
  --color-surface-cream-strong: #33302c;
  --color-surface-dark: #141413;
  --color-surface-dark-elevated: #2a2825;
  --color-surface-dark-soft: #1c1b18;

  --color-ink: #faf9f5;
  --color-body-strong: #eae7df;
  --color-body: #cdc9c1;
  --color-muted: #9e9a91;
  --color-muted-soft: #7a766e;

  --color-hairline: rgba(255, 255, 255, 0.12);
  --color-hairline-soft: rgba(255, 255, 255, 0.06);

  --color-on-dark: #faf9f5;
  --color-on-dark-soft: #a09d96;

  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-modal: 0 20px 40px rgba(0, 0, 0, 0.55);

  --statusbar-bg: rgba(24, 23, 21, 0.92);
  --input-bg: #1f1e1b;
}

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

body {
  background-color: var(--color-canvas);
  color: var(--color-body);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Typography Utilities */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: var(--color-ink);
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--color-ink);
}

.display-md {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--color-ink);
}

.display-sm {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.3px;
  color: var(--color-ink);
}

.title-lg {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-ink);
}

.title-md {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-ink);
}

.title-sm {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-ink);
}

.caption-uppercase {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.code-text {
  font-family: var(--font-mono);
  font-size: 13px;
}
