/* =================================
   BASE.CSS - Foundation Styles
   Simple, elegant researcher portfolio
   ================================= */


/* ==================
   CSS VARIABLES
   ================== */

:root {
    /* Color Palette - Light, Professional, Visible */
    --primary-color: #2c3e50;
    /* Deep blue-grey for headings */
    --secondary-color: #34495e;
    /* Slightly lighter for subheadings */
    --text-color: #444444;
    /* Dark grey for body text */
    --text-light: #666666;
    /* Light grey for secondary text */
    --accent-color: #3498db;
    /* Soft blue for links and accents */
    --accent-hover: #2980b9;
    /* Darker blue for hover states */
    /* Background Colors */
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    /* Very light grey */
    --bg-subtle: #f0f2f5;
    /* Subtle grey for sections */
    /* Border and Divider Colors */
    --border-color: #e0e0e0;
    --border-light: #f0f0f0;
    /* Status Colors - Subtle versions */
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --info-color: #3498db;
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-secondary: 'Georgia', 'Times New Roman', 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 */
    /* Spacing Scale */
    --space-1: 0.25rem;
    /* 4px */
    --space-2: 0.5rem;
    /* 8px */
    --space-3: 0.75rem;
    /* 12px */
    --space-4: 1rem;
    /* 16px */
    --space-5: 1.25rem;
    /* 20px */
    --space-6: 1.5rem;
    /* 24px */
    --space-8: 2rem;
    /* 32px */
    --space-10: 2.5rem;
    /* 40px */
    --space-12: 3rem;
    /* 48px */
    --space-16: 4rem;
    /* 64px */
    --space-20: 5rem;
    /* 80px */
    /* Line Heights */
    --leading-tight: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.75;
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    /* Shadows - Minimal */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-base: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Border Radius */
    --radius-sm: 2px;
    --radius-base: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    /* Max Width Containers */
    --max-width-narrow: 42rem;
    /* 672px - for reading */
    --max-width-base: 56rem;
    /* 896px - for content */
    --max-width-wide: 72rem;
    /* 1152px - for full width */
}


/* ==================
   RESET & NORMALIZE
   ================== */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--text-color);
    background-color: var(--bg-white);
}


/* ==================
   TYPOGRAPHY
   ================== */


/* Headings */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: var(--leading-tight);
    color: var(--primary-color);
    margin-bottom: var(--space-4);
}

h1 {
    font-size: var(--text-4xl);
    letter-spacing: -0.02em;
}

h2 {
    font-size: var(--text-3xl);
    letter-spacing: -0.01em;
}

h3 {
    font-size: var(--text-2xl);
}

h4 {
    font-size: var(--text-xl);
}

h5 {
    font-size: var(--text-lg);
}

h6 {
    font-size: var(--text-base);
}


/* Paragraphs */

p {
    margin-bottom: var(--space-4);
    color: var(--text-color);
}

p:last-child {
    margin-bottom: 0;
}


/* Links */

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

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

a:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}


/* Lists */

ul,
ol {
    margin-bottom: var(--space-4);
    padding-left: var(--space-6);
}

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


/* Text Utilities */

.text-light {
    color: var(--text-light);
}

.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--secondary-color);
}

.text-accent {
    color: var(--accent-color);
}

.text-small {
    font-size: var(--text-sm);
}

.text-large {
    font-size: var(--text-lg);
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}


/* ==================
   BUTTONS
   ================== */

.btn {
    display: inline-block;
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-base);
    font-weight: 500;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--radius-base);
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: inherit;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--bg-white);
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--bg-white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: var(--bg-white);
}

.btn-small {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
}

.btn-large {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
}


/* ==================
   FORMS
   ================== */

input,
textarea,
select {
    font-family: inherit;
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--text-color);
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-base);
    padding: var(--space-3);
    width: 100%;
    transition: border-color var(--transition-fast);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent-color);
}

label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 500;
    color: var(--primary-color);
    font-size: var(--text-sm);
}


/* ==================
   SPACING UTILITIES
   ================== */

.mb-1 {
    margin-bottom: var(--space-1);
}

.mb-2 {
    margin-bottom: var(--space-2);
}

.mb-3 {
    margin-bottom: var(--space-3);
}

.mb-4 {
    margin-bottom: var(--space-4);
}

.mb-6 {
    margin-bottom: var(--space-6);
}

.mb-8 {
    margin-bottom: var(--space-8);
}

.mb-12 {
    margin-bottom: var(--space-12);
}

.mb-16 {
    margin-bottom: var(--space-16);
}

.mt-1 {
    margin-top: var(--space-1);
}

.mt-2 {
    margin-top: var(--space-2);
}

.mt-3 {
    margin-top: var(--space-3);
}

.mt-4 {
    margin-top: var(--space-4);
}

.mt-6 {
    margin-top: var(--space-6);
}

.mt-8 {
    margin-top: var(--space-8);
}

.mt-12 {
    margin-top: var(--space-12);
}

.mt-16 {
    margin-top: var(--space-16);
}

.py-4 {
    padding-top: var(--space-4);
    padding-bottom: var(--space-4);
}

.py-6 {
    padding-top: var(--space-6);
    padding-bottom: var(--space-6);
}

.py-8 {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
}

.py-12 {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
}

.py-16 {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
}


/* ==================
   BORDERS & DIVIDERS
   ================== */

.border-bottom {
    border-bottom: 1px solid var(--border-color);
}

.border-top {
    border-top: 1px solid var(--border-color);
}

.divider {
    height: 1px;
    background-color: var(--border-light);
    margin: var(--space-8) 0;
}


/* ==================
   TEXT ALIGNMENT
   ================== */

.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}


/* ==================
   DISPLAY UTILITIES
   ================== */

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

.hidden {
    display: none;
}


/* ==================
   ACCESSIBILITY
   ================== */

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


/* Skip to main content link */

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-color);
    color: white;
    padding: var(--space-2) var(--space-4);
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}


/* ==================
   IMAGES
   ================== */

img {
    max-width: 100%;
    height: auto;
    display: block;
}


/* ==================
   SELECTION
   ================== */

::selection {
    background-color: var(--accent-color);
    color: var(--bg-white);
}

::-moz-selection {
    background-color: var(--accent-color);
    color: var(--bg-white);
}


/* ==================
   SCROLLBAR (Webkit)
   ================== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}


/* ==================
   PRINT STYLES
   ================== */

@media print {
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }
    h1 {
        font-size: 20pt;
    }
    h2 {
        font-size: 18pt;
    }
    h3 {
        font-size: 16pt;
    }
    a {
        color: #000;
        text-decoration: underline;
    }
    img {
        max-width: 100% !important;
    }
}


/* ==================
   RESPONSIVE BREAKPOINTS
   ================== */


/* 
Mobile First Approach:
- Base styles: Mobile (0-639px)
- sm: 640px
- md: 768px
- lg: 1024px
- xl: 1280px
*/