* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, "Segoe UI", Roboto, sans-serif;
    color: #2c2416;
    background: #f7f3ec;
    line-height: 1.65;
}

.container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-header {
    background: #fffef9;
    color: #2c2416;
    border-bottom: 2px solid #2c2416;
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
}

.brand {
    font-size: 1.05rem;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #4a1530;
}

.nav a {
    color: #3d3429;
    text-decoration: none;
    margin-left: 14px;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 9px;
    border: 2px solid #2c2416;
    border-radius: 4px;
    background: #fffef9;
    cursor: pointer;
    flex: 0 0 auto;
    position: relative;
    z-index: 35;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    background: #2c2416;
    border-radius: 1px;
}

.nav-overlay {
    display: none;
}

.nav a:hover {
    color: #c45c26;
    border-bottom-color: #c45c26;
}

.hero {
    padding: 72px 0 56px;
    background: linear-gradient(180deg, #ebe3d6 0%, #f7f3ec 55%);
    border-bottom: 2px solid #2c2416;
    scroll-margin-top: 88px;
}

.hero-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    align-items: start;
}

.avatar-card {
    background: #fffef9;
    border: 2px solid #2c2416;
    border-radius: 4px;
    padding: 16px;
    text-align: center;
    box-shadow: 6px 6px 0 #c45c2633;
}

.avatar-image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 2px;
    object-fit: cover;
    border: 2px solid #2c2416;
}

.avatar-note {
    margin: 12px 0 0;
    font-size: 12px;
    line-height: 1.45;
    color: #5c5346;
}

.hero h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.2;
    font-family: Georgia, "Times New Roman", serif;
    color: #1a1510;
}

.hero p {
    max-width: 52rem;
    color: #3d3429;
}

.section {
    padding: 48px 0;
    scroll-margin-top: 88px;
}

.section.alt {
    background: #ebe3d6;
    border-top: 1px solid #d4c4b0;
    border-bottom: 1px solid #d4c4b0;
}

.section h3 {
    margin-top: 0;
    font-size: 1.75rem;
    font-family: Georgia, "Times New Roman", serif;
    color: #4a1530;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    padding: 5px 12px;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #4a1530;
    border: 2px solid #2c2416;
    border-radius: 2px;
    background: #fffef9;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.card, .timeline-item {
    background: #fffef9;
    border-radius: 4px;
    padding: 18px;
    border: 2px solid #2c2416;
    box-shadow: 4px 4px 0 #c45c2626;
}

.card h4, .timeline-item h4 {
    margin-top: 0;
    font-family: Georgia, serif;
    color: #4a1530;
}

.card p, .timeline-item p {
    color: #3d3429;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.chip {
    padding: 6px 12px;
    border-radius: 2px;
    font-size: 12px;
    border: 1px solid #2c2416;
    background: #fffef9;
    color: #2c2416;
}

.contact-form {
    display: grid;
    gap: 12px;
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
}

#contact .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#contact .contact-form,
#contact .success {
    text-align: left;
}

#contact .success {
    width: 100%;
    max-width: 560px;
}

input, textarea, button:not(.menu-toggle) {
    width: 100%;
    font-size: 14px;
    padding: 11px 12px;
    border: 2px solid #2c2416;
    border-radius: 4px;
    background: #fffef9;
    color: #2c2416;
}

label {
    color: #4a1530;
    font-weight: 600;
    font-size: 0.9rem;
}

button:not(.menu-toggle) {
    background: #c45c26;
    color: #fffef9;
    border: 2px solid #2c2416;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 0.04em;
}

button:not(.menu-toggle):hover {
    filter: brightness(1.06);
}

.success {
    color: #1a4d2e;
    background: #d8f0e0;
    border: 2px solid #2d6a4f;
    border-radius: 4px;
    padding: 12px;
}

.site-footer {
    background: #2c2416;
    color: #ebe3d6;
    padding: 22px 0;
    border-top: 3px solid #c9a227;
}

@media (max-width: 900px) {
    .container {
        padding: 0 16px;
    }

    .nav-wrap {
        align-items: center;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(300px, 88vw);
        height: 100vh;
        flex-direction: column;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 0;
        padding: 88px 20px 24px;
        background: #fffef9;
        border-left: 2px solid #2c2416;
        box-shadow: -8px 0 0 #c45c2640;
        transform: translateX(105%);
        transition: transform 0.22s ease;
        z-index: 30;
        overscroll-behavior: contain;
    }

    .nav a {
        display: block;
        margin: 0;
        padding: 14px 8px;
        font-size: 15px;
        border-bottom: 1px solid #d4c4b0;
        border-left: 0;
    }

    .nav-overlay {
        position: fixed;
        inset: 0;
        background: transparent;
        z-index: 25;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    body.menu-open {
        overflow: hidden;
    }

    body.menu-open .site-header {
        z-index: 40;
    }

    body.menu-open .nav {
        transform: translateX(0);
    }

    body.menu-open .nav-overlay {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .avatar-card {
        max-width: 200px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .brand {
        max-width: calc(100% - 56px);
        font-size: 0.95rem;
    }

    .hero {
        padding: 52px 0 40px;
    }

    .section {
        padding: 36px 0;
    }

    .section h3 {
        font-size: 1.4rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .card, .timeline-item {
        padding: 14px;
    }

    input, textarea, button:not(.menu-toggle) {
        font-size: 16px;
    }
}
