/* ========================================
   GLOBAL STYLES - RADII PORTFOLIO
   ========================================
   Clean, Apple-esque design system
   Colors: Neutral palette with subtle accents
   Typography: SF Pro-inspired system fonts
   ======================================== */

/* CSS Variables - Design Tokens */
:root {
  /* Color Palette */
  --color-primary: #1d1d1f;           /* Rich black for text */
  --color-secondary: #6e6e73;         /* Muted gray for secondary text */
  --color-accent: #0071e3;            /* Apple blue for links/accents */
  --color-background: #f8f9fb;        /* Light blueish gray background */
  --color-surface: #ffffff;           /* White for cards/surfaces */
  --color-header: #6B8CAE;            /* Header background */
  
  /* Typography */
  --font-primary: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-secondary: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  
  /* Font Sizes */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  --text-4xl: 2.25rem;     /* 36px */
  --text-5xl: 3rem;        /* 48px */
  --text-6xl: 3.75rem;     /* 60px */
  --text-7xl: 4.5rem;      /* 72px */
  
  /* Spacing Scale */
  --space-xs: 0.25rem;     /* 4px */
  --space-sm: 0.5rem;      /* 8px */
  --space-md: 1rem;        /* 16px */
  --space-lg: 1.5rem;      /* 24px */
  --space-xl: 2rem;        /* 32px */
  --space-2xl: 3rem;       /* 48px */
  --space-3xl: 4rem;       /* 64px */
  --space-4xl: 6rem;       /* 96px */
  --space-5xl: 8rem;       /* 128px */
  
  /* Layout */
  --max-width-narrow: 45rem;    /* 720px */
  --max-width-medium: 60rem;    /* 960px */
  --max-width-wide: 75rem;      /* 1200px */
  --max-width-full: 90rem;      /* 1440px */
  
  /* Border Radius */
  --radius-sm: 0.375rem;   /* 6px */
  --radius-md: 0.5rem;     /* 8px */
  --radius-lg: 0.75rem;    /* 12px */
  --radius-xl: 1rem;       /* 16px */
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --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);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-secondary);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-primary);
  background-color: var(--color-background);
}

/* Typography Styles */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--text-6xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  margin-bottom: var(--space-md);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: opacity var(--transition-base);
}

a:hover {
  opacity: 0.8;
}

/* Utility Classes */
.text-balance {
  text-wrap: balance;
}

.text-pretty {
  text-wrap: pretty;
}

.container {
  width: 100%;
  max-width: var(--max-width-wide);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Site Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 40px;
  background-color: var(--color-header);
  display: flex;
  align-items: center;
  padding: 0 var(--space-lg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.site-header__content {
  width: 100%;
  max-width: var(--max-width-full);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-header__brand {
  font-family: var(--font-primary);
  font-size: var(--text-lg);
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.site-header__name {
  font-family: var(--font-secondary);
  font-size: var(--text-base);
  color: #ffffff;
  font-weight: 400;
}

/* Responsive Typography */
@media (max-width: 768px) {
  :root {
    --text-6xl: 2.5rem;    /* 40px on mobile */
    --text-5xl: 2rem;      /* 32px on mobile */
    --text-4xl: 1.75rem;   /* 28px on mobile */
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
}
