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

:root {
    --color-bg: #fafaf7;
    --color-surface: #f0efeb;
    --color-border: #d5d3cd;
    --color-text: #2a2a2a;
    --color-text-muted: #6b6b6b;
    --color-heading: #1a1a1a;
    --color-accent: #1a7a6d;
    --color-accent-hover: #15635a;
    --max-width: 900px;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* === Typography === */
h1, h2, h3 {
    color: var(--color-heading);
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.2rem; font-weight: 700; }
h2 { font-size: 1.5rem; font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin-bottom: 1rem; }

a {
    color: var(--color-accent);
    text-decoration: none;
}

a:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
}

/* === Header === */
.site-header {
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-heading);
    text-decoration: none;
}

.site-title:hover {
    color: var(--color-accent);
    text-decoration: none;
}

.main-nav {
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
}

.main-nav a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 4px;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-text);
}

/* === Main === */
main {
    flex: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 1.5rem;
    width: 100%;
}

/* === Home === */
.home .lead {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    max-width: 640px;
}

.home .event-teaser {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
}

.home .event-teaser h3 {
    color: var(--color-accent);
    margin-bottom: 0.3em;
}

.home .nav-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2.5rem;
}

.home .nav-card {
    display: block;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    color: var(--color-text);
    text-decoration: none;
    transition: border-color 0.15s;
}

.home .nav-card:hover {
    border-color: var(--color-accent);
    text-decoration: none;
}

.home .nav-card h3 {
    font-size: 1rem;
    margin-bottom: 0.25em;
}

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

/* === Page === */
.page h1 {
    margin-bottom: 1.5rem;
}

/* === Footer === */
.site-footer {
    border-top: 1px solid var(--color-border);
    margin-top: auto;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.5rem;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* === Responsive === */
@media (max-width: 640px) {
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-bg);
        border-bottom: 1px solid var(--color-border);
        flex-direction: column;
        padding: 1rem 1.5rem;
        gap: 0.75rem;
    }

    .main-nav.open {
        display: flex;
    }

    main {
        padding: 2rem 1rem;
    }

    h1 { font-size: 1.75rem; }
}
