/* Unified Design System for tebjan.de
 * Single source of truth for colors, typography, and shared components
 */

/* Design Tokens */
:root {
  /* Monochrome pencil palette */
  --bg: #0a0a0e;
  --text: #e8e4dc;
  --text-muted: #888580;
  --text-dim: #555;
  --accent: #aaa8a4;
  --card-bg: #111116;
  --card-border: #222228;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-serif: 'Computer Modern Serif', 'Times New Roman', serif;

  /* Font sizes */
  --size-xs: 0.7rem;
  --size-sm: 0.85rem;
  --size-base: 1rem;
  --size-lg: 1.4rem;
  --size-xl: 1.6rem;
  --size-2xl: 2.5rem;

  /* Spacing */
  --gap-sm: 0.75rem;
  --gap-md: 1.25rem;
  --gap-lg: 2rem;
}

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

/* Base styles */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography hierarchy */
h1 {
  font-family: var(--font-display);
  font-size: var(--size-2xl);
  font-weight: 300;
  letter-spacing: 0.03em;
}

h2 {
  font-family: var(--font-display);
  font-size: var(--size-xl);
  font-weight: 400;
}

h3 {
  font-family: var(--font-display);
  font-size: var(--size-lg);
  font-weight: 400;
}

/* Links */
a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
  color: var(--text);
}

/* Portfolio-style navigation (shared across all pages) */
.site-nav {
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.back-link {
  font-family: var(--font-mono);
  font-size: var(--size-sm);
  color: var(--text-dim);
}

.back-link::before {
  content: '← ';
}

.back-link:hover {
  color: var(--accent);
}
