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

body {
    font-family: Georgia, serif;
    background: #f7f5f0;
    color: #2c2c2c;
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

#page {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 900px;
    min-height: 100vh;
    background: #f7f5f0;
}

header {
    position: relative;
    padding: 3rem 4rem 2rem;
}

header h1 {
    font-size: 2.2rem;
    font-weight: normal;
    letter-spacing: 0.02em;
}

header p.subtitle {
    margin-top: 0.4rem;
    font-size: 1rem;
    color: #666;
    font-style: italic;
}

.portrait {
    position: absolute;
    top: 2rem;
    left: 4rem;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ccc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

main {
    flex: 1;
    padding: 3rem 4rem;
    max-width: 760px;
}

main h2 {
    font-size: 1.1rem;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
    margin-bottom: 1rem;
}

main p {
    line-height: 1.8;
    font-size: 1.05rem;
}

footer {
    padding: 2rem 4rem;
    border-top: 1px solid #ddd;
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    align-items: center;
    justify-content: center;
}

footer a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    row-gap: 1rem;
    text-decoration: none;
    color: #555;
    font-size: 0.85rem;
    font-family: Georgia, serif;
    transition: color 0.15s;
}

footer a svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    flex-shrink: 0;
}

footer a:hover {
    color: #000;
}

/* --- Hamburger button --- */
.menu-btn {
    position: fixed;
    top: 2.2rem;
    right: 4rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.3rem;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 200;
}

.menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #2c2c2c;
    border-radius: 1px;
    transition:
        transform 0.25s,
        opacity 0.25s;
}

.menu-btn.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.menu-btn.open span:nth-child(2) {
    opacity: 0;
}
.menu-btn.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* shift header text to sit between portrait (left) and hamburger (right) */
header h1,
header p.subtitle {
    padding-left: 9rem;
    padding-right: 3rem;
}

/* --- Slide-out nav panel --- */
nav.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 220px;
    background: #fff;
    border-right: 1px solid #ddd;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.07);
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 100;
    display: flex;
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 0.3rem;
}

nav.side-menu.open {
    transform: translateX(0);
}

nav.side-menu a {
    text-decoration: none;
    color: #2c2c2c;
    font-size: 1rem;
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid #eee;
    transition: color 0.15s;
}

nav.side-menu a:last-child {
    border-bottom: none;
}
nav.side-menu a:hover {
    color: #888;
}

/* overlay to close menu by clicking outside */
.menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99;
}

.menu-overlay.open {
    display: block;
}

/* --- Content sections --- */
section {
    padding: 3rem 4rem;
    max-width: 760px;
    border-top: 1px solid #eee;
}

section h2 {
    font-size: 1.1rem;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
    margin-bottom: 1rem;
}

section p {
    line-height: 1.8;
    font-size: 1.05rem;
}

@media (max-width: 600px) {
    header,
    main,
    footer {
        padding: 2rem 1.5rem;
    }
    .portrait {
        top: 1.5rem;
        left: 1.5rem;
        width: 90px;
        height: 90px;
    }
    header h1 {
        font-size: 1.5rem;
        padding-left: 7rem;
        padding-right: 3rem;
    }
    .menu-btn {
        right: 1.5rem;
    }
    section {
        padding: 2rem 1.5rem;
    }
}
