/* Geist Design System - Black Background Theme */
/* Based on Vercel's Geist Design Principles */

/* CSS Custom Properties for Design System */
:root {
  /* Colors - Dark/Black Background Theme */
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --bg-tertiary: #161616;
  --bg-hover: #1a1a1a;
  --bg-accent: #111111;

  /* Text Colors - High Contrast for Accessibility */
  --text-primary: #ffffff;
  --text-secondary: #a1a1a1;
  --text-tertiary: #737373;
  --text-inverse: #000000;

  /* Accent Colors */
  --accent-primary: #ffffff;
  --accent-secondary: #0070f3;
  --accent-success: #00d000;
  --accent-warning: #f5a623;
  --accent-error: #e00;

  /* Borders */
  --border-primary: #333333;
  --border-secondary: #1a1a1a;
  --border-hover: #525252;

  /* Spacing Scale - Consistent and Systematic */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Typography Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Line Heights */
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition: 200ms ease;
  --transition-slow: 300ms ease;
}

/* Light Theme Override (for theme toggle) */
[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #fafafa;
  --bg-tertiary: #f5f5f5;
  --bg-hover: #f0f0f0;
  --bg-accent: #f9f9f9;

  --text-primary: #000000;
  --text-secondary: #666666;
  --text-tertiary: #999999;
  --text-inverse: #ffffff;

  --border-primary: #e5e5e5;
  --border-secondary: #f0f0f0;
  --border-hover: #d1d1d1;
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
}

*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-geist-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  min-height: 100vh;
  transition: background-color var(--transition), color var(--transition);
}

/* Typography Hierarchy */
/* H1/H2 use pixel circle font by default, H3+ use Geist Sans */
h1, h2 {
  margin: 0;
  font-family: var(--font-pixel-square);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  text-transform: lowercase;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-6);
}

h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-5);
}

h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-geist-sans);
  font-weight: 700;
  line-height: var(--leading-tight);
  color: var(--text-primary);
  letter-spacing: -0.02em;
  text-rendering: geometricPrecision;
}

h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

h4 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

h5 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}

h6 {
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
}

/* Pixel Typography Variants */
.pixel-grid {
  font-family: var(--font-pixel-grid);
}

.pixel-circle {
  font-family: var(--font-pixel-circle);
}

/* Body text uses Geist Sans */
p {
  margin: 0 0 var(--space-4) 0;
  font-family: var(--font-geist-sans);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* Code and Monospace - Uses Geist Mono */
code, pre, kbd, samp {
  font-family: var(--font-geist-mono);
}

code {
  font-family: var(--font-geist-mono);
  font-size: 0.875em;
  background-color: var(--bg-tertiary);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
}

pre {
  font-family: var(--font-geist-mono);
  padding: var(--space-4);
  background-color: var(--bg-tertiary);
  border-radius: var(--radius);
  overflow-x: auto;
}

pre code {
  background-color: transparent;
  padding: 0;
}

/* Links */
a {
  color: var(--accent-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Lists */
ul, ol {
  margin: 0 0 var(--space-4) 0;
  padding-left: var(--space-6);
}

li {
  margin-bottom: var(--space-1);
  color: var(--text-secondary);
}

/* Buttons - Clean and Minimal */
button {
  font-family: var(--font-geist-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-4);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

button:hover {
  background-color: var(--bg-hover);
  border-color: var(--border-hover);
}

button:focus {
  outline: 2px solid var(--accent-secondary);
  outline-offset: 2px;
}

/* Utilities for Generous Whitespace (Swiss Design) */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.stack > * + * {
  margin-top: var(--space-4);
}

.stack-large > * + * {
  margin-top: var(--space-8);
}

/* Badges - Geist-style pill badges */
.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-geist-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 0.125rem var(--space-2);
  border-radius: 9999px;
  white-space: nowrap;
  line-height: 1.5;
}

.badge-writing {
  color: #a1a1a1;
  background: rgba(161, 161, 161, 0.1);
  border: 1px solid rgba(161, 161, 161, 0.2);
}

.badge-work {
  color: #a1a1a1;
  background: rgba(161, 161, 161, 0.1);
  border: 1px solid rgba(161, 161, 161, 0.2);
}


.badge-web-development {
  color: #0070f3;
  background: rgba(0, 112, 243, 0.1);
  border: 1px solid rgba(0, 112, 243, 0.2);
}

.badge-data-analysis {
  color: #a855f7;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.badge-automation {
  color: #f97316;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.2);
}

.badge-content {
  color: #14b8a6;
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.2);
}

/* Geist-style subtle badge variants */
.badge-blue-subtle {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-amber-subtle {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-teal-subtle {
  color: #14b8a6;
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.2);
}

.badge-gray-subtle {
  color: #a1a1a1;
  background: rgba(161, 161, 161, 0.1);
  border: 1px solid rgba(161, 161, 161, 0.2);
}

.badge-purple-subtle {
  color: #a855f7;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.badge-green-subtle {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.badge-red-subtle {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-pink-subtle {
  color: #ec4899;
  background: rgba(236, 72, 153, 0.1);
  border: 1px solid rgba(236, 72, 153, 0.2);
}

/* Skill badge aliases */
.badge-development { color: #3b82f6; background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.2); }
.badge-tools { color: #f97316; background: rgba(249, 115, 22, 0.1); border: 1px solid rgba(249, 115, 22, 0.2); }

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --text-4xl: 2rem;
    --text-3xl: 1.5rem;
    --text-2xl: 1.25rem;
  }

  .container {
    padding: 0 var(--space-4);
  }
}