/* ================================
   Design System & CSS Variables
   ================================ */
:root {
    /* Layout */
    --container: 1140px;

    /* Colors */
    --text: #111;
    --muted: #666;
    --line: #d9d9d9;
    --accent-yellow: #f2ea00;
    --accent-pink: #ff3b6a;
    --footer-bg: #050505;
    --soft-gray: #f4f4f4;
    --soft-cream: #fbf6dc;
    --white: #ffffff;

    /* Spacing Scale */
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 72px;
    --space-4xl: 96px;
}

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

html {
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background-color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/* ================================
   Typography System
   ================================ */
h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    line-height: 1.3;
}

p {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    line-height: 1.7;
}

.text-small {
    font-size: clamp(0.75rem, 1.2vw, 0.875rem);
}

.text-large {
    font-size: clamp(1rem, 2vw, 1.25rem);
}

/* ================================
   Container & Layout
   ================================ */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ================================
   Header Styles
   ================================ */
.header {
    padding-top: var(--space-4xl);
    padding-bottom: var(--space-2xl);
}

.logo {
    text-align: center;
    margin-bottom: var(--space-xl);
    position: relative;
}

.logo-graphic {
    display: inline-block;
    position: relative;
}

.logo-circle {
    position: absolute;
    width: 42px;
    height: 42px;
    background-color: var(--accent-yellow);
    border-radius: 50%;
    top: 50%;
    left: -8px;
    transform: translateY(-50%);
    z-index: -1;
}

.logo-text {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    color: var(--text);
    position: relative;
    z-index: 1;
}

.logo-text strong {
    font-weight: 600;
}

.header-line {
    width: 100%;
    height: 1px;
    background-color: var(--line);
    margin: var(--space-xl) 0;
}

/* ================================
   Navigation Styles
   ================================ */
.nav {
    text-align: center;
    margin: var(--space-xl) 0;
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-xl);
}

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

.nav-link {
    font-size: clamp(0.75rem, 1.2vw, 0.875rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text);
    transition: color 0.2s ease;
    padding: var(--space-xs) 0;
}

.nav-link:hover {
    color: var(--accent-pink);
}

.nav-link.active {
    color: var(--accent-pink);
    font-weight: 600;
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    background: none;
    border: 2px solid var(--text);
    padding: var(--space-sm) var(--space-md);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 auto;
}

/* ================================
   Hero Section (Home Page)
   ================================ */
.hero {
    padding: var(--space-4xl) 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.hero-content {
    position: relative;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-lg);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.5;
    color: var(--muted);
    margin-bottom: var(--space-xl);
}

.hero-decorations {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: -1;
}

.hero-decoration {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
}

.decoration-1 {
    width: 60px;
    height: 60px;
    background-color: var(--accent-yellow);
    top: -20px;
    right: -10px;
}

.decoration-2 {
    width: 40px;
    height: 40px;
    background-color: #ff9b4d;
    bottom: 10%;
    left: -20px;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
}

/* ================================
   Section Styles
   ================================ */
.section {
    padding: var(--space-3xl) 0;
}

.section-centered {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-2xl) 0;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    margin-bottom: var(--space-lg);
    color: var(--text);
}

.section-title-yellow {
    color: var(--accent-yellow);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: var(--space-xl);
}

.section-title-large {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: var(--space-2xl);
}

/* ================================
   Grid Layouts
   ================================ */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.two-column-center {
    align-items: center;
}

/* ================================
   Content Blocks
   ================================ */
.intro-text {
    text-align: center;
    max-width: 900px;
    margin: var(--space-3xl) auto;
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.8;
}

.intro-text strong {
    font-weight: 700;
}

.project-leads {
    text-align: center;
    margin: var(--space-3xl) 0;
}

.project-leads-title {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

.project-leads-names {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    color: var(--muted);
    line-height: 1.8;
}

.logo-block {
    padding: var(--space-2xl) 0;
}

.logo-block img {
    max-width: 200px;
}

.social-links {
    list-style: none;
}

.social-link-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    font-size: 0.875rem;
}

.social-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlight-banner {
    background-color: var(--soft-cream);
    padding: var(--space-2xl) var(--space-xl);
    text-align: center;
    margin: var(--space-3xl) 0;
    border-radius: 4px;
}

.useful-links {
    margin: var(--space-3xl) 0;
}

.useful-links-logo {
    max-width: 250px;
    margin: var(--space-lg) auto;
}

/* ================================
   About Page Specific
   ================================ */
.about-hero {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-3xl);
    align-items: center;
    margin-bottom: var(--space-3xl);
}

.about-logo-mark {
    width: 200px;
    height: 200px;
    background-color: var(--accent-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    font-weight: 900;
    color: var(--text);
    line-height: 1;
}

.about-logo-text {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.about-content p {
    line-height: 1.8;
}

.featured-image {
    width: 100%;
    margin: var(--space-3xl) 0;
    border-radius: 4px;
}

.info-block {
    background-color: var(--soft-gray);
    padding: var(--space-2xl);
    border-radius: 4px;
}

/* ================================
   Contact Page Specific
   ================================ */
.contact-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-3xl);
    margin: var(--space-3xl) 0;
    flex-wrap: wrap;
}

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

.contact-name {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.contact-email {
    color: var(--accent-pink);
    font-weight: 500;
}

.contact-icon {
    width: 80px;
    height: 80px;
    margin: 0 var(--space-lg);
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-additional {
    text-align: center;
    margin: var(--space-2xl) 0;
    font-size: clamp(0.875rem, 1.5vw, 1rem);
}

.contact-additional a {
    color: var(--accent-pink);
    font-weight: 500;
}

.social-icons-row {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.social-icon-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.social-icon-link:hover {
    opacity: 0.7;
}

/* ================================
   Footer Styles
   ================================ */
.footer {
    background-color: var(--footer-bg);
    color: var(--white);
    padding: var(--space-4xl) 0 var(--space-2xl);
    margin-top: var(--space-4xl);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-3xl);
}

.footer-nav {
    list-style: none;
}

.footer-nav-item {
    margin-bottom: var(--space-md);
}

.footer-nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.footer-nav-link:hover {
    color: var(--white);
}

.footer-about {
    max-width: 600px;
}

.footer-about-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.footer-about-text {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.footer-credit {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: var(--space-lg);
}

/* ================================
   Posts Section
   ================================ */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.post-card {
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.post-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card-content {
    padding: var(--space-lg);
}

.post-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.post-card-excerpt {
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.6;
}

.empty-state {
    text-align: center;
    padding: var(--space-3xl) 0;
    color: var(--muted);
}

/* ================================
   Page-Specific Content
   ================================ */
.page-header {
    padding: var(--space-3xl) 0 var(--space-2xl);
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: var(--space-lg);
}

.page-subtitle {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--muted);
    line-height: 1.7;
}

.content-block {
    max-width: 800px;
    margin: 0 auto;
}

.content-block p {
    margin-bottom: var(--space-lg);
}

/* ================================
   Responsive Styles
   ================================ */
@media (max-width: 768px) {
    .header {
        padding-top: var(--space-2xl);
        padding-bottom: var(--space-lg);
    }

    .nav-list {
        display: none;
        flex-direction: column;
        gap: var(--space-md);
        width: 100%;
        background-color: var(--white);
        padding: var(--space-lg);
        border: 1px solid var(--line);
        border-radius: 4px;
        margin-top: var(--space-md);
    }

    .nav-list.active {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .hero-grid,
    .two-column,
    .footer-content,
    .about-hero {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .hero {
        padding: var(--space-2xl) 0;
    }

    .section {
        padding: var(--space-xl) 0;
    }

    .contact-grid {
        flex-direction: column;
        gap: var(--space-xl);
    }

    .contact-icon {
        order: -1;
    }

    .about-logo-mark {
        width: 150px;
        height: 150px;
        font-size: 3.5rem;
        margin: 0 auto;
    }
}

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

    .logo-text {
        font-size: 1.5rem;
    }

    .logo-circle {
        width: 32px;
        height: 32px;
    }

    .nav-link {
        font-size: 0.75rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================
   Utility Classes
   ================================ */
.text-center {
    text-align: center;
}

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

/* Line clamp utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ================================
   Prose Styles for Rich Text Content
   ================================ */
.prose {
    color: #374151;
}

.prose p {
    margin-bottom: 1.25em;
    line-height: 1.75;
}

.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    font-weight: 700;
    line-height: 1.25;
    color: #111827;
}

.prose h1 { font-size: 2.25em; }
.prose h2 { font-size: 1.875em; }
.prose h3 { font-size: 1.5em; }
.prose h4 { font-size: 1.25em; }

.prose strong {
    font-weight: 600;
    color: #111827;
}

.prose em {
    font-style: italic;
}

.prose a {
    color: #ff3b6a;
    text-decoration: underline;
    font-weight: 500;
}

.prose a:hover {
    color: #e02b5a;
}

.prose ul, .prose ol {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    padding-left: 1.625em;
}

.prose ul {
    list-style-type: disc;
}

.prose ol {
    list-style-type: decimal;
}

.prose li {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.prose img {
    max-width: 100%;
    height: auto;
}

.prose blockquote {
    margin-top: 1.6em;
    margin-bottom: 1.6em;
    padding-left: 1em;
    border-left: 4px solid #e5e7eb;
    font-style: italic;
    color: #6b7280;
}

.prose pre {
    margin-top: 1.7em;
    margin-bottom: 1.7em;
    padding: 1em;
    background-color: #f3f4f6;
    border-radius: 0.375rem;
    overflow-x: auto;
}

.prose code {
    background-color: #f3f4f6;
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
    font-size: 0.875em;
    font-family: 'Courier New', monospace;
}

.prose table {
    margin-top: 2em;
    margin-bottom: 2em;
    width: 100%;
    border-collapse: collapse;
}

.prose th, .prose td {
    padding: 0.75em;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.prose th {
    background-color: #f9fafb;
    font-weight: 600;
}

