:root {
    --color-bg: #faf9f7;
    --color-bg-alt: #f0eeea;
    --color-text: #1a1a1a;
    --color-text-muted: #5a5a5a;
    --color-accent: #2d5a5a;
    --color-accent-light: #3d7a7a;
    --color-accent-pale: #e8f0f0;
    --color-warm: #c4956a;
    --color-warm-light: #f5ebe0;
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'Source Sans 3', -apple-system, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    font-weight: 400;
    overflow-x: hidden;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 249, 247, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--color-accent);
    text-decoration: none;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    margin: 5px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse at center, var(--color-accent-pale) 0%, transparent 70%);
    opacity: 0.6;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 50%;
    height: 80%;
    background: radial-gradient(ellipse at center, var(--color-warm-light) 0%, transparent 70%);
    opacity: 0.4;
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: var(--color-accent);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--color-text);
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero h1 span {
    color: var(--color-accent);
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    padding: 0 1rem;
}

.hero-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    white-space: nowrap;
}

.hero-meta-item svg {
    width: 20px;
    height: 20px;
    color: var(--color-accent);
    flex-shrink: 0;
}

/* Hero Supporters */
.hero-supporters {
    margin-top: 3rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-supporters p {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    opacity: 0.7;
}

.hero-supporter-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.hero-supporter-logos a {
    display: block;
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-supporter-logos a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.hero-supporter-logos img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: grayscale(30%);
    transition: filter 0.3s ease;
}

.hero-supporter-logos a:hover img {
    filter: grayscale(0%);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Styles */
section {
    padding: 5rem 1.5rem;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 400;
    color: var(--color-text);
}

/* About Section */
#about {
    background: var(--color-bg-alt);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-content p {
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
    font-size: 1.05rem;
}

.about-features {
    display: grid;
    gap: 1.5rem;
}

.feature-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.feature-card h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--color-accent);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* Schedule Section */
.schedule-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0,0,0,0.06);
}

.schedule-header {
    background: var(--color-accent);
    color: white;
    padding: 2rem;
    text-align: center;
}

.schedule-header h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.schedule-header p {
    opacity: 0.9;
    font-size: 0.95rem;
}

.schedule-header a {
    color: white;
    text-decoration: underline;
}

.schedule-body {
    padding: 1.5rem;
}

.schedule-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-bg-alt);
    align-items: start;
}

.schedule-item:last-child {
    border-bottom: none;
}

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

.schedule-date .month {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
}

.schedule-date .day {
    font-family: var(--font-display);
    font-size: 2.25rem;
    line-height: 1;
    color: var(--color-text);
}

.schedule-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.schedule-info .presenter {
    color: var(--color-accent);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.schedule-info .description {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.schedule-empty {
    text-align: center;
    padding: 3rem;
    color: var(--color-text-muted);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.5rem;
    background: var(--color-accent);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background: var(--color-accent-light);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
}

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

.btn svg {
    flex-shrink: 0;
}

/* Past Sessions */
#past-sessions {
    background: var(--color-bg-alt);
}

.past-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.past-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.past-card:hover {
    border-color: var(--color-accent-pale);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.past-card-date {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-accent);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.past-card h4 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin-bottom: 0.3rem;
}

.past-card .presenter {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.past-card-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.past-card-links a {
    font-size: 0.85rem;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
}

.past-card-links a:hover {
    text-decoration: underline;
}

/* Guidelines Section */
.guidelines-content {
    max-width: 800px;
    margin: 0 auto;
}

.guideline-block {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 20px rgba(0,0,0,0.04);
}

.guideline-block h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-accent);
}

.guideline-block ul {
    list-style: none;
    padding: 0;
}

.guideline-block li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-bg-alt);
    font-size: 0.95rem;
    line-height: 1.5;
}

.guideline-block li:last-child {
    border-bottom: none;
}

.guideline-block li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.1rem;
    width: 6px;
    height: 6px;
    background: var(--color-warm);
    border-radius: 50%;
}

/* Members Section */
#members {
    background: var(--color-bg-alt);
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.member-card {
    text-align: center;
    padding: 1.5rem 1rem;
    background: white;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.member-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.member-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent-pale), var(--color-warm-light));
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--color-accent);
    overflow: hidden;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.member-card .role {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.member-card a {
    font-size: 0.8rem;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
}

.member-card a:hover {
    text-decoration: underline;
}

/* Contact Section */
#contact {
    background: var(--color-accent);
    color: white;
    text-align: center;
}

#contact .section-label {
    color: var(--color-warm);
}

#contact .section-title {
    color: white;
}

.contact-text {
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
    font-size: 1.05rem;
    padding: 0 1rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.5rem;
    background: white;
    color: var(--color-accent);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.contact-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.contact-links a svg {
    flex-shrink: 0;
}

/* Footer */
footer {
    background: var(--color-text);
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding: 2rem 1.5rem;
    font-size: 0.9rem;
}

footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

footer a:hover {
    color: white;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

/* Tablet and below */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .about-content {
        text-align: center;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Navigation */
    .nav-container {
        padding: 0.875rem 1.25rem;
    }
    
    .nav-logo {
        font-size: 1.1rem;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-bg);
        flex-direction: column;
        padding: 0.5rem 1.25rem 1rem;
        gap: 0;
        border-bottom: 1px solid rgba(0,0,0,0.08);
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    }

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

    .nav-links li {
        padding: 0.875rem 0;
        border-bottom: 1px solid var(--color-bg-alt);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }
    
    .nav-links a {
        font-size: 1rem;
    }

    .nav-toggle {
        display: block;
    }

    /* Hero */
    .hero {
        min-height: 100vh;
        min-height: 100svh;
        padding: 80px 1.25rem 2rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-content {
        padding: 0;
        width: 100%;
    }
    
    .hero-badge {
        font-size: 0.7rem;
        padding: 0.35rem 0.875rem;
        margin-bottom: 1.5rem;
    }
    
    .hero h1 {
        margin-bottom: 1.25rem;
    }
    
    .hero-subtitle {
        margin-bottom: 2rem;
        padding: 0;
    }

    .hero-meta {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
    
    .hero-meta-item {
        font-size: 0.9rem;
        background: rgba(255,255,255,0.7);
        padding: 0.5rem 1rem;
        border-radius: 2rem;
    }
    
    .hero-supporters {
        margin-top: 2rem;
    }
    
    .hero-supporters p {
        font-size: 0.7rem;
    }
    
    .hero-supporter-logos {
        gap: 1.5rem;
    }
    
    .hero-supporter-logos img {
        height: 32px;
    }

    /* Sections */
    section {
        padding: 3.5rem 1.25rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    /* About */
    .about-content p {
        font-size: 1rem;
        text-align: left;
    }
    
    .feature-card {
        padding: 1.25rem;
    }
    
    .feature-card h4 {
        font-size: 1rem;
    }

    /* Schedule */
    .schedule-header {
        padding: 1.5rem 1.25rem;
    }
    
    .schedule-header h3 {
        font-size: 1.25rem;
    }
    
    .schedule-header p {
        font-size: 0.9rem;
    }
    
    .schedule-body {
        padding: 1rem;
    }

    .schedule-item {
        grid-template-columns: 70px 1fr;
        gap: 1rem;
        padding: 1.25rem 0;
    }
    
    .schedule-date .day {
        font-size: 2rem;
    }
    
    .schedule-info h4 {
        font-size: 1rem;
    }
    
    .schedule-info .description {
        font-size: 0.85rem;
    }
    
    .btn {
        width: 100%;
        padding: 1rem;
    }

    /* Past Sessions */
    .past-grid {
        grid-template-columns: 1fr;
    }
    
    .past-card {
        padding: 1.25rem;
    }

    /* Guidelines */
    .guideline-block {
        padding: 1.25rem;
    }
    
    .guideline-block h3 {
        font-size: 1.1rem;
    }
    
    .guideline-block li {
        font-size: 0.9rem;
        padding-left: 1.25rem;
    }

    /* Members */
    .members-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .member-card {
        padding: 1.25rem 0.75rem;
    }

    .member-avatar {
        width: 80px;
        height: 80px;
        font-size: 1.5rem;
    }
    
    .member-card h4 {
        font-size: 0.9rem;
    }
    
    .member-card .role {
        font-size: 0.75rem;
    }
    
    .member-card a {
        font-size: 0.75rem;
    }

    /* Contact */
    .contact-text {
        font-size: 1rem;
    }

    .contact-links {
        flex-direction: column;
        align-items: stretch;
        padding: 0 0.5rem;
    }
    
    .contact-links a {
        width: 100%;
        padding: 1rem;
    }
}

/* Small phones */
@media (max-width: 380px) {
    .nav-logo {
        font-size: 1rem;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .members-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .member-avatar {
        width: 70px;
        height: 70px;
    }
    
    .member-card h4 {
        font-size: 0.85rem;
    }
}

/* Landscape phones */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 5rem 2rem 3rem;
    }
    
    .hero-meta {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Safe area for notched phones */
@supports (padding: max(0px)) {
    .nav-container {
        padding-left: max(1.25rem, env(safe-area-inset-left));
        padding-right: max(1.25rem, env(safe-area-inset-right));
    }
    
    section {
        padding-left: max(1.25rem, env(safe-area-inset-left));
        padding-right: max(1.25rem, env(safe-area-inset-right));
    }
    
    footer {
        padding-bottom: max(2rem, env(safe-area-inset-bottom));
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .hero-badge,
    .hero h1,
    .hero-subtitle,
    .hero-meta,
    .hero-supporters {
        animation: none;
    }
    
    .feature-card,
    .past-card,
    .member-card,
    .btn,
    .contact-links a,
    .hero-supporter-logos a {
        transition: none;
    }
}

/* Sign-Up Banner */
.signup-banner {
    margin: 0 1.5rem 1.5rem;
    background: linear-gradient(135deg, var(--color-warm-light) 0%, var(--color-accent-pale) 100%);
    border-radius: 12px;
    border: 1px dashed var(--color-warm);
}

.signup-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
}

.signup-banner-text h4 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.signup-banner-text p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0;
}

.signup-btn {
    white-space: nowrap;
    flex-shrink: 0;
    background: var(--color-warm);
}

.signup-btn:hover {
    background: #b8875e;
}

@media (max-width: 768px) {
    .signup-banner {
        margin: 0 1rem 1rem;
    }

    .signup-banner-content {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
        gap: 1rem;
    }

    .signup-btn {
        width: 100%;
    }
}

/* Hero CTA */
.hero-cta {
    margin-top: 2rem;
    animation: fadeInUp 0.8s ease-out 0.35s both;
}

.hero-cta .signup-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
}