/* ============================================
   EMILY OSKWAREK - DEVELOPER PORTFOLIO
   Design System & Core Styles
   ============================================ */

/* -------------------- CSS Variables -------------------- */
:root {
  /* Colors - Soft Sage + Cream Theme */
  --bg: #f8f6f2;
  --bg-alt: #f0ece4;
  --primary: #8fbc8f;
  --primary-soft: #b8d4b8;
  --primary-deep: #6b9b6b;
  --accent-warm: #d4c4b0;
  --text: #3d4a3d;
  --text-muted: #6b7b6b;
  --border: #e0dcd4;
  --white: #ffffff;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 80px;

  /* Effects */
  --shadow-soft: 0 4px 20px rgba(61, 74, 61, 0.08);
  --shadow-medium: 0 8px 30px rgba(61, 74, 61, 0.12);
  --shadow-deep: 0 12px 40px rgba(61, 74, 61, 0.15);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(143, 188, 143, 0.2);
  --glass-blur: 10px;

  /* Micro-interactions */
  --hover-lift: -4px;
  --active-scale: 0.98;
}

/* -------------------- Reset & Base -------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* -------------------- Typography -------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-md);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  margin-bottom: var(--space-sm);
}

p {
  margin-bottom: var(--space-sm);
  color: var(--text-muted);
}

a {
  color: var(--primary-deep);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary);
}

/* -------------------- Layout -------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-2xl) 0;
}

.section--alt {
  background-color: var(--bg-alt);
}

/* -------------------- Organic Decorations -------------------- */
.leaf-decoration {
  position: absolute;
  opacity: 0.15;
  pointer-events: none;
}

.leaf-decoration--left {
  left: -100px;
  top: 20%;
  transform: rotate(-15deg);
}

.leaf-decoration--right {
  right: -80px;
  bottom: 20%;
  transform: rotate(25deg) scaleX(-1);
}

/* Organic blob shape for images */
.organic-shape {
  clip-path: url(#organic-blob);
}

.organic-shape--alt {
  clip-path: ellipse(48% 45% at 50% 50%);
  border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
}

/* Soft gradient blur decoration */
.gradient-blur {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-soft) 0%, transparent 70%);
  opacity: 0.3;
  filter: blur(60px);
  pointer-events: none;
  z-index: -1;
}

/* -------------------- Utilities -------------------- */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-muted);
}

.text-primary {
  color: var(--primary-deep);
}

.mt-sm {
  margin-top: var(--space-sm);
}

.mt-md {
  margin-top: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mb-sm {
  margin-bottom: var(--space-sm);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

/* Visually hidden but accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* -------------------- Responsive -------------------- */
@media (max-width: 768px) {
  :root {
    --nav-height: 70px;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
  }

  .container {
    padding: 0 var(--space-sm);
  }

  .leaf-decoration {
    display: none;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }
}