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

:root {
    --black: #000000;
    --white: #FFFFFF;
    --yellow: #F7D117;
    --gray-900: #111111;
    --gray-700: #333333;
    --gray-500: #666666;
    --gray-300: #CCCCCC;
    --gray-100: #F5F5F5;
    
    /* Typography scale */
    --font-size-base: 18px;
    --font-size-small: 16px;
    --font-size-h3: 28px;
    --font-size-h2: 36px;
    --font-size-h1: 45px;
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 80px;
}

/* Typography */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--gray-900);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-weight: 400;
}

/* Headings */
h1, h2, h3 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--black);
    transition: color 0.3s ease;
}

h1 {
    font-size: var(--font-size-h1);
    margin-bottom: var(--spacing-lg);
    font-weight: 300;
}

h2 {
    font-size: var(--font-size-h2);
    margin-bottom: var(--spacing-md);
    margin-top: var(--spacing-sm);
    position: relative;
    padding-bottom: var(--spacing-sm);
}

/* Add subtle underline to h2 */
h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--yellow);
    transition: width 0.3s ease;
}

section:hover h2::after {
    width: 100px;
}

h3 {
    font-size: var(--font-size-h3);
    margin-bottom: var(--spacing-sm);
    margin-top: var(--spacing-lg);
    font-style: italic;
}

/* Paragraphs and text */
p {
    margin-bottom: 1.5em;
    max-width: 65ch; /* Optimal reading length */
}

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

.highlight {
    font-size: 1.25em;
    font-weight: 500;
    color: var(--black);
    margin-bottom: 1em;
    position: relative;
    display: inline-block;
}

/* Lists */
ul, ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

li {
    margin-bottom: 0.5em;
    line-height: 1.8;
}

li strong {
    color: var(--black);
}

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

/* Hero */
.hero {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md) var(--spacing-xl);
    background: 
        radial-gradient(circle at 20% 50%, rgba(247, 209, 23, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(247, 209, 23, 0.03) 0%, transparent 50%),
        linear-gradient(to bottom, var(--white) 0%, var(--gray-100) 100%);
    position: relative;
    overflow: hidden;
}

.logo {
    width: 150px;
    height: 150px;
    margin-bottom: var(--spacing-lg);
    opacity: 0;
    animation: fadeIn 0.6s ease forwards, float 6s ease-in-out infinite;
    animation-delay: 0s, 0.6s;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.hero-text {
    max-width: 700px;
    margin: 0 auto;
    font-weight: 500;
    letter-spacing: -0.03em;
}

/* Sections */
section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

/* Section divider */
section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="8" fill="%23F7D117"/><circle cx="50" cy="25" r="4" fill="%23F7D117" opacity="0.6"/><circle cx="50" cy="75" r="4" fill="%23F7D117" opacity="0.6"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

section:last-of-type::after {
    display: none;
}


/* Project Cards */
.project-card {
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--gray-100);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--yellow);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--gray-300);
}

.project-card:hover::before {
    transform: scaleY(1);
}

.project-card h3 {
    margin-top: 0;
    margin-bottom: var(--spacing-xs);
}

.project-card p {
    margin-bottom: var(--spacing-sm);
    color: var(--gray-700);
}

.project-card ul {
    margin: var(--spacing-sm) 0;
    padding-left: var(--spacing-md);
}

.project-card li {
    color: var(--gray-700);
    margin-bottom: var(--spacing-xs);
}

.project-card:last-child {
    margin-bottom: 0;
}

/* Links */
a {
    color: var(--black);
    text-decoration: underline;
    text-decoration-color: var(--yellow);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: all 0.2s ease;
}

a:hover {
    background: var(--yellow);
    text-decoration: none;
    padding: 2px 4px;
    margin: -2px -4px;
    border-radius: 2px;
}

.link {
    display: inline-block;
    font-weight: 500;
    margin-top: var(--spacing-xs);
}

/* Contact */
.contact {
    text-align: center;
}

.contact p {
    max-width: 100%;
    margin: 0 auto var(--spacing-md);
}

.contact-link {
    font-size: var(--font-size-h3);
    font-weight: 600;
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
    text-decoration: none;
    border: 2px solid var(--black);
    transition: all 0.2s ease;
}

.contact-link:hover {
    background: var(--black);
    color: var(--white);
    margin: 0;
    padding: var(--spacing-sm) var(--spacing-md);
}

/* Footer */
.footer {
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-md);
    color: var(--gray-500);
    font-size: var(--font-size-small);
}

.footer a {
    color: var(--gray-700);
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --font-size-base: 16px;
        --font-size-small: 14px;
        --font-size-h3: 24px;
        --font-size-h2: 28px;
        --font-size-h1: 32px;
        --spacing-xl: 60px;
        --spacing-lg: 32px;
    }
    
    .hero {
        padding: var(--spacing-xl) var(--spacing-md) var(--spacing-lg);
    }
    
    section {
        padding: var(--spacing-lg) 0;
    }
    
    .logo {
        width: 100px;
        height: 100px;
    }
    
    p {
        max-width: 100%;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Initial state for sections - will be animated by JS */

/* Print styles */
@media print {
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .hero {
        background: none;
        padding: 20px 0;
    }
    
    section {
        padding: 20px 0;
        border-bottom: 1px solid #ccc;
    }
    
    details {
        open: true;
    }
    
    summary {
        display: none;
    }
    
    .details-content {
        display: block !important;
    }
    
    a {
        text-decoration: underline;
        color: var(--black);
    }
    
    .contact-link {
        border: 1px solid var(--black);
    }
}

/* Accessibility - Focus styles */
*:focus {
    outline: 2px solid var(--yellow);
    outline-offset: 2px;
}

/* Skip link for keyboard navigation */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--black);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

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

/* Improve readability with subtle visual hierarchy */
.story p:first-of-type {
    font-size: 1.1em;
    line-height: 1.8;
}

.building p:first-of-type {
    font-size: 1.1em;
    line-height: 1.8;
}