*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --bg: #f7f1e6;
    --surface: #ffffff;
    --surface-tint: #fbf6ec;
    --border: #e6dcc7;
    --border-strong: #d6c8aa;
    --text: #2a221c;
    --text-soft: #4a4038;
    --muted: #7a6d5e;

    --accent: #c25a2e;
    --accent-hover: #a84a23;
    --accent-soft: rgba(194, 90, 46, 0.10);

    --new: #4f7a52;
    --new-soft: rgba(79, 122, 82, 0.12);
}

html {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    padding: 0;
}

main {
    max-width: 900px;
    margin: 0 auto;
    padding: 64px 32px 64px;
}

/* Hero */
.hero {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
}

.avatar {
    width: 88px;
    height: 88px;
    border-radius: 20px;
    object-fit: contain;
    object-position: center;
    background: #ffffff;
    flex-shrink: 0;
    border: 1px solid var(--border-strong);
    padding: 14px;
    box-sizing: border-box;
}

.avatar-placeholder {
    background: linear-gradient(135deg, var(--accent), #d97742);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 700;
    color: #fff;
    border: none;
    user-select: none;
    box-shadow: 0 4px 16px rgba(194, 90, 46, 0.25);
}

.avatar-emoji {
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    line-height: 1;
    user-select: none;
}

.hero-text h1 {
    font-size: 52px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 4px;
    line-height: 1.05;
    color: var(--text);
}

.hero-text .tagline {
    font-size: 19px;
    color: var(--muted);
    margin: 0;
}

/* About */
.about {
    margin-bottom: 56px;
    max-width: 620px;
}

.about p {
    margin: 0;
    color: var(--text-soft);
    font-size: 18px;
    line-height: 1.55;
}

/* Section headings */
.projects h2,
.notes h2 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin: 0 0 20px;
}

/* Projects grid */
.projects {
    margin-bottom: 64px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.project {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
}

.project:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(60, 40, 20, 0.08);
    border-color: var(--border-strong);
}

.project-media {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--surface-tint);
    border-bottom: 1px solid var(--border);
}

.project-media-placeholder {
    background: linear-gradient(135deg, var(--surface-tint), #f0e6d2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.project-content {
    padding: 20px 22px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-content header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.project-content h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text);
}

.status {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 4px 10px;
    border-radius: 999px;
    display: inline-block;
}

.status-new {
    color: var(--new);
    background: var(--new-soft);
}

.project-content p {
    margin: 0 0 16px;
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.55;
    flex: 1;
}

.project-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    align-self: flex-start;
}

.project-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Notes */
.notes {
    margin-bottom: 56px;
}

.muted {
    color: var(--muted);
    margin: 0;
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

footer nav {
    display: flex;
    gap: 20px;
}

footer a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s ease;
}

footer a:hover {
    color: var(--accent);
}

footer .made {
    font-size: 12px;
    color: var(--muted);
    margin: 0;
}

/* Mobile */
@media (max-width: 720px) {
    main {
        padding: 48px 20px 40px;
    }

    .hero {
        gap: 18px;
    }

    .avatar {
        width: 68px;
        height: 68px;
        border-radius: 16px;
    }

    .avatar-placeholder {
        font-size: 30px;
    }

    .hero-text h1 {
        font-size: 38px;
    }

    .hero-text .tagline {
        font-size: 16px;
    }

    .about p {
        font-size: 16px;
    }

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

    .project-content header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .project-content h3 {
        font-size: 20px;
    }

    footer {
        flex-direction: column;
        align-items: flex-start;
    }
}
