:root {
    --bg: #eceff1;
    --surface: #ffffff;
    --text: #222533;
    --muted: #666c7f;
    --border: #d7dce3;
    --accent: #4f6cf7;
    --radius: 0.875rem;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 1.5rem 1rem;
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--text);
    background-color: var(--bg);
}

.page {
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0.5rem;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 0.75rem 0.875rem;
    border: 0.0625rem solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.menu a {
    padding: 0.375rem 0.625rem;
    border-radius: 0.5rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
}

.menu a:hover {
    background: #f2f4f7;
}

.hero {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.hero-content,
.hero-photo {
    flex: 1 1 20rem;
}

.card {
    border: 0.0625rem solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.hero-content {
    padding: 1.5rem;
}

.hero-kicker {
    margin: 0 0 0.75rem;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    font-family: "Unbounded", "Manrope", sans-serif;
    font-size: 2.25rem;
}

.hero-lead {
    margin: 1rem 0 0;
    color: var(--muted);
}

.btn {
    padding: 0.625rem 0.875rem;
    border-radius: 0.625rem;
    text-decoration: none;
    font-weight: 700;
}

.hero-photo {
    padding: 0.625rem;
}

.hero-photo img {
    width: 100%;
    height: 100%;
    min-height: 20rem;
    border-radius: 0.625rem;
}

.about {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.about-card {
    flex: 1 1 22rem;
}

.quote-card {
    flex: 1 1 18rem;
}

.about-card,
.quote-card,
.skill-card,
.project-card,
.stats-card,
.contact-card {
    padding: 1.25rem;
}

.about h2,
.section-head h2,
.extras h2 {
    margin: 0;
    font-family: "Unbounded", "Manrope", sans-serif;
    font-size: 1.6rem;
}

.about-card p {
    margin: 0.75rem 0 0;
    color: var(--muted);
}

.quote-title {
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.quote-text {
    margin: 0.75rem 0 0;
    font-size: 1.16rem;
    font-weight: 600;
}

.skills,
.projects,
.extras {
    margin-bottom: 1.25rem;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.section-head p {
    margin: 0;
    color: var(--muted);
    font-weight: 600;
}

.skills-list,
.project-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-card,
.project-card {
    flex: 1 1 100vw;
    min-width: 16rem;
}

.skill-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.625rem;
}

.skill-row h3,
.project-card h3 {
    margin: 0;
    font-size: 1rem;
}

.skill-row span {
    color: var(--muted);
    font-weight: 700;
}

.skill-meter {
    margin-top: 0.75rem;
    height: 0.5rem;
    border-radius: 62.5rem;
    overflow: hidden;
    background: #e5e9ef;
}

.skill-meter span {
    display: block;
    height: 100%;
    background: var(--accent);
}

.project-type {
    margin: 0 0 0.375rem;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.project-card p {
    margin: 0.5rem 0 0;
    color: var(--muted);
}

.extras {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.stats-card {
    flex: 1 1 24rem;
}

.contact-card {
    flex: 1 1 16rem;
}

.stats-list {
    margin-top: 0.875rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.stats-list > div {
    flex: 1 1 6rem;
}

.stat-number {
    margin: 0;
    color: var(--accent);
    font-family: "Unbounded", "Manrope", sans-serif;
    font-size: 1.7rem;
}

.stat-label {
    margin: 0.25rem 0 0;
    color: var(--muted);
}

.contact-card p {
    margin: 0.75rem 0 0.625rem;
    color: var(--muted);
}

.contact-card a {
    display: block;
    width: fit-content;
    margin-top: 0.5rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
}

.footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.625rem;
    padding-top: 0.875rem;
    border-top: 0.0625rem solid var(--border);
    color: var(--muted);
    font-weight: 600;
}

@media (max-width: 57.5rem) {
    .hero,
    .about,
    .extras,
    .section-head {
        flex-direction: column;
    }

    .skill-card,
    .project-card {
        flex-basis: 100%;
    }

    .hero-photo img {
        min-height: 17.5rem;
    }

    .stats-list > div {
        flex-basis: 48%;
    }
}

@media (max-width: 38.75rem) {
    body {
        padding: 1rem 0.625rem;
    }

    .menu {
        width: 100%;
    }

    .hero-content,
    .quote-card,
    .about-card,
    .skill-card,
    .project-card,
    .stats-card,
    .contact-card {
        padding: 1rem;
    }

    .stats-list > div {
        flex-basis: 100%;
    }
}
