:root {
  --font-sans: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --radius: 14px;
  --radius-sm: 10px;
  --tap: 44px;
  --space: 8px;
}

.theme-ops {
  color-scheme: dark;
  --background: #0c1014;
  --foreground: #e8edf2;
  --card: #151b22;
  --card-foreground: #e8edf2;
  --popover: #1b232c;
  --popover-foreground: #e8edf2;
  --primary: #3d9a93;
  --primary-foreground: #041312;
  --secondary: #1e2730;
  --secondary-foreground: #d5dde6;
  --muted: #1a2129;
  --muted-foreground: #8b98a8;
  --accent: #243038;
  --accent-foreground: #e8edf2;
  --destructive: #e25c5c;
  --destructive-foreground: #fff5f5;
  --warning: #e0a354;
  --warning-foreground: #1a1206;
  --success: #3d9a93;
  --border: #2a343f;
  --input: #2a343f;
  --ring: #3d9a93;
  --overlay: rgba(6, 8, 10, 0.72);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.theme-catalog {
  color-scheme: light;
  --background: #eef2f1;
  --foreground: #15202b;
  --card: #ffffff;
  --card-foreground: #15202b;
  --popover: #ffffff;
  --popover-foreground: #15202b;
  --primary: #0f766e;
  --primary-foreground: #f0fdfa;
  --secondary: #e4ecea;
  --secondary-foreground: #15202b;
  --muted: #e6eeec;
  --muted-foreground: #5b6b76;
  --accent: #d8f0ec;
  --accent-foreground: #0f3d3a;
  --destructive: #b42318;
  --destructive-foreground: #fff8f5;
  --warning: #b54708;
  --warning-foreground: #fff8f0;
  --success: #0f766e;
  --border: #d0dcd8;
  --input: #c8d6d2;
  --ring: #0f766e;
  --overlay: rgba(15, 32, 43, 0.45);
  --shadow: 0 8px 28px rgba(15, 32, 43, 0.08);
  --shadow-hover: 0 14px 36px rgba(15, 32, 43, 0.12);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--foreground);
  background: var(--background);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.theme-catalog body,
body.theme-catalog,
html.theme-catalog body {
  background:
    radial-gradient(ellipse 90% 55% at 12% -10%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 55%),
    radial-gradient(ellipse 70% 40% at 92% 8%, color-mix(in srgb, var(--primary) 8%, transparent), transparent 50%),
    var(--background);
}

html.theme-catalog {
  background: var(--background);
}

h1, .serif {
  font-family: var(--font-sans);
  font-weight: 650;
  letter-spacing: -0.02em;
}

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover { opacity: 0.88; }
