/* ========================================
   Design Tokens
   ======================================== */
:root {
    --bg: #F7F5F0;
    --bg-alt: #EFECDF;
    --fg: #1C1917;
    --fg-muted: #78716C;
    --border: #E7E5E4;
    --border-strong: #D6D3D1;
    --accent: #B45309;
    --accent-light: #FEF3C7;
    --accent-hover: #92400E;

    --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --max-width: 1200px;
    --header-height: 72px;
}

/* ========================================
   Reset & Base
   ======================================== */
*, *::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-body);
    background-color: var(--bg);
    color: var(--fg);
    line-height: 1.6;
    font-size: 16px;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

/* ========================================
   Layout
   ======================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 120px 0;
}

.section-divider {
    width: 100%;
    height: 1px;
    background: var(--border);
    border: none;
    margin: 0;
}

/* ========================================
   Header
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-height);
    background: rgba(247, 245, 240, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.site-header.scrolled {
    border-bottom-color: var(--border);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--fg);
    letter-spacing: -0.02em;
}

.main-nav ul {
    display: flex;
    gap: 40px;
}

.main-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--fg-muted);
    transition: color 0.2s ease;
    position: relative;
}

.main-nav a:hover,
.main-nav a:focus {
    color: var(--fg);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a:focus::after {
    width: 100%;
}

/* ========================================
   Hero
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 120px;
    padding-top: var(--header-height);
    position: relative;
}

.hero-content {
    max-width: 800px;
}

.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 24px;
    display: block;
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    font-weight: 500;
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin-bottom: 32px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--fg-muted);
    max-width: 480px;
    line-height: 1.7;
    margin-bottom: 48px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--fg-muted);
    font-size: 0.75rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-indicator-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--fg-muted), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* ========================================
   About
   ======================================== */
.about-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 80px;
    align-items: start;
}

.about-meta {
    position: sticky;
    top: calc(var(--header-height) + 40px);
}

.about-meta-item {
    margin-bottom: 24px;
}

.about-meta-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--fg-muted);
    margin-bottom: 6px;
    display: block;
}

.about-meta-value {
    font-size: 0.9375rem;
    color: var(--fg);
}

.about-content h3 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 24px;
}

.about-content p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--fg-muted);
    margin-bottom: 20px;
    max-width: 640px;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* ========================================
   Selected Works
   ======================================== */
.works-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.work-card {
    group: true;
    cursor: pointer;
}

.work-card-image {
    aspect-ratio: 4 / 3;
    background: var(--bg-alt);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
    border: 1px solid var(--border);
}

.work-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-card:hover .work-card-image img {
    transform: scale(1.05);
}

.work-card-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
}

.work-card-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.work-card-category {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--fg-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.work-card-year {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--fg-muted);
    flex-shrink: 0;
}

/* ========================================
   Contact
   ======================================== */
.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 500;
    line-height: 1.1;
}

.contact-info p {
    font-size: 1.0625rem;
    color: var(--fg-muted);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 400px;
}

.contact-email {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--accent);
    border-bottom: 1px solid var(--border);
    padding-bottom: 4px;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.contact-email:hover {
    border-color: var(--accent);
    color: var(--accent-hover);
}

.social-links {
    display: flex;
    gap: 32px;
    margin-top: 40px;
}

.social-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--fg-muted);
    transition: color 0.2s ease;
}

.social-links a:hover {
    color: var(--fg);
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
    padding: 48px 0;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copy {
    font-size: 0.875rem;
    color: var(--fg-muted);
}

.footer-back-top {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--fg-muted);
    transition: color 0.2s ease;
}

.footer-back-top:hover {
    color: var(--fg);
}

/* ========================================
   Animations
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .hero {
        padding-bottom: 80px;
    }

    .section {
        padding: 80px 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-meta {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .works-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .about-meta {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Accessibility
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

/* Placeholder image styling */
.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-alt) 0%, var(--border) 100%);
    color: var(--fg-muted);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
