/* ==========================================================================
   BASE SYSTEM - Ondřej Simon Portfolio
   Style: High-End Architectural Gallery (MAD / Tim Fu aesthetic)
   ========================================================================== */

/* 1. CSS VARIABLES
   ========================================================================== */
:root {
    /* Neutrální paleta - Monochromatický základ */
    --bg-color: #ffffff;
    --text-main: #000000;
    --text-muted: #808080;
    --text-light: #bcbcbc;
    --border-color: #d8d8d8;

    /* Typografie */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --lh-body: 1.6;
    --lh-heading: 1.1;
    
    /* Layout */
    --container-max: 1600px;
    --container-gutter: 36px;
    --header-height: 56px;

    /* Animace - Sofistikované "MAD" easingy */
    --transition-smooth: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s ease;
}

/* 2. MODERN RESET
   ========================================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    background-color: #ececec;
}

body {
    background-color: #ececec;
    color: var(--text-main);
    font-family: var(--font-primary);
    line-height: var(--lh-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh + var(--footer-h, 0px));
    padding-bottom: var(--footer-h, 0px);
}

/* Zákaz scrollu při otevřeném menu */
body.menu-open {
    overflow: hidden;
}

/* 3. TYPOGRAPHY (MAD Aesthetics)
   ========================================================================== */
h1, h2, h3, h4 {
    font-weight: 300;
    line-height: var(--lh-heading);
    letter-spacing: -0.03em; /* Užší pro moderní vzhled */
}

p {
    margin-bottom: 1.5rem;
    font-weight: 400;
    color: var(--text-main);
}

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

/* Lead text pro úvody studií */
.lead-text {
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    font-weight: 300;
    line-height: 1.5;
    color: var(--text-main);
    max-width: 800px;
}

/* 4. LAYOUT COMPONENTS
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-gutter);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--container-gutter);
}

#content {
    flex: 1;
    /* Odsazení automaticky odpovídá proměnné headeru */
    padding-top: var(--header-height);
    background-color: var(--bg-color);
}

/* 5. UI ELEMENTS
   ========================================================================== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Jemná linka typická pro minimalistické weby */
hr.divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 4rem 0;
}

/* 6. ANIMATIONS
   ========================================================================== */
/* Hlavní fade-in efekt pro sekce */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: reveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 7. UTILITIES
   ========================================================================== */
.text-muted { color: var(--text-muted); }
.text-upper { text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.7rem; }
.mb-small { margin-bottom: 1rem; }
.mb-medium { margin-bottom: 3rem; }
.mb-large { margin-bottom: 8rem; }

/* 8. RESPONSIVE ADJUSTMENTS
   ========================================================================== */
@media (max-width: 1024px) {
    :root {
        --header-height: 52px;
    }
    html { font-size: 15px; }
}

@media (max-width: 768px) {
    :root {
        --container-gutter: 20px;
    }
}