/* Possiber design tokens — 4 themes.
 * Brand: Muzzish (www.muzzish.com)
 * Fonts: Inter (sans), JetBrains Mono (mono)
 * Colors: Amber #ff6a2b, Cyan #29b6e8 */

/* Self-hosted fonts (woff2 in shared/fonts/). */
@font-face {
  font-family: "Inter";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("./fonts/Inter-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("./fonts/Inter-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("./fonts/Inter-SemiBold.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("./fonts/Inter-Bold.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url("./fonts/Inter-ExtraBold.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-weight: 900;
  font-style: normal;
  font-display: swap;
  src: url("./fonts/Inter-Black.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("./fonts/JetBrainsMono-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("./fonts/JetBrainsMono-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("./fonts/JetBrainsMono-SemiBold.woff2") format("woff2");
}

:root {
  --font-headline: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --track-headline: -0.025em;
  --track-mono: 0.18em;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;

  --content-max: 1200px;
  --radius: 0px;
  --border-width: 1px;
  --shadow-offset: 4px;
  --shadow-sm: 4px 4px 0 rgba(0, 0, 0, 0.08);
  --shadow-md: 8px 8px 0 rgba(0, 0, 0, 0.12);
  --shadow-hover: 12px 12px 0 rgba(0, 0, 0, 0.16);

  /* Muzzish brand colors */
  --amber: #ff6a2b;
  --cyan: #29b6e8;
  --navy: #2e4057;
}

/* --- DARK (Free default) --- Muzzish dark theme */
:root[data-theme="dark"],
:root:not([data-theme]) {
  --background: #000000;
  --surface: #0d0d0f;
  --surface-container-lowest: #0a0a0d;
  --surface-container-low: #121215;
  --surface-container: #16161a;
  --surface-container-high: #1a1a1e;
  --surface-deep: #0a0a0d;
  --surface-elevated: #0d0d0f;
  --on-surface: #f5f5f5;
  --on-surface-variant: #a3a3a3;
  --outline: #ffffff14;
  --primary: #ff6a2b;
  --primary-container: #ff6a2b;
  --on-primary-container: #0a0a0a;
  --secondary-container: #16161a;
  --on-secondary-container: #f5f5f5;
  --tertiary-container: #16161a;
  --error-container: #e5484d;
  --border-primary: #ffffff14;
  --text-high-contrast: #f5f5f5;
  --text-muted: #8a8a8a;
  --body: #a3a3a3;
}

/* --- LIGHT --- Muzzish light theme */
:root[data-theme="light"] {
  --background: #ffffff;
  --surface: #f5f5f5;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #f5f5f5;
  --surface-container: #e8e8e8;
  --surface-container-high: #d4d4d4;
  --surface-deep: #ffffff;
  --surface-elevated: #ffffff;
  --on-surface: #0a0a0a;
  --on-surface-variant: #525252;
  --outline: #e5e5e5;
  --primary: #ff6a2b;
  --primary-container: #ff6a2b;
  --on-primary-container: #ffffff;
  --secondary-container: #f0f0f0;
  --on-secondary-container: #0a0a0a;
  --tertiary-container: #f0f0f0;
  --error-container: #e5484d;
  --border-primary: #e5e5e5;
  --text-high-contrast: #000000;
  --text-muted: #737373;
  --body: #525252;
}

/* --- MIDNIGHT (Pro exclusive) --- deeper Muzzish dark */
:root[data-theme="midnight"] {
  --background: #050507;
  --surface: #0a0a0e;
  --surface-container-lowest: #050507;
  --surface-container-low: #0d0d12;
  --surface-container: #111116;
  --surface-container-high: #1a1a20;
  --surface-deep: #050507;
  --surface-elevated: #0a0a0e;
  --on-surface: #f5f5f5;
  --on-surface-variant: #a3a3a3;
  --outline: #ffffff0f;
  --primary: #ff6a2b;
  --primary-container: #ff6a2b;
  --on-primary-container: #0a0a0a;
  --secondary-container: #16161a;
  --on-secondary-container: #f5f5f5;
  --tertiary-container: #16161a;
  --error-container: #e5484d;
  --border-primary: #ffffff0f;
  --text-high-contrast: #ffffff;
  --text-muted: #737373;
  --body: #a3a3a3;
}

/* --- PAPER --- warm cream, Muzzish accents */
:root[data-theme="paper"] {
  --background: #faf8f4;
  --surface: #f2eee4;
  --surface-container-lowest: #fbf8ef;
  --surface-container-low: #ede8db;
  --surface-container: #e5dfcd;
  --surface-container-high: #d9d1bc;
  --surface-deep: #fbf8ef;
  --surface-elevated: #fbf8ef;
  --on-surface: #2a2418;
  --on-surface-variant: #59503c;
  --outline: #d9d1bc;
  --primary: #ff6a2b;
  --primary-container: #ff6a2b;
  --on-primary-container: #ffffff;
  --secondary-container: #ede8db;
  --on-secondary-container: #2a2418;
  --tertiary-container: #ede8db;
  --error-container: #e5484d;
  --border-primary: #d9d1bc;
  --text-high-contrast: #1a1610;
  --text-muted: #7a715a;
  --body: #59503c;
}
