:root {
    color-scheme: light;
    --bg: #fbf8f1;
    --text: #111827;
    --muted: #111827;
    --subtle: #111827;
    --surface: #ffffff;
    --border: rgba(148, 163, 184, 0.35);
    --accent: #2563eb;
    --shadow: 0 18px 35px rgba(15, 23, 42, 0.08);
    --radius: 14px;
}

* {
    box-sizing: border-box;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 8px 16px;
    background: var(--text);
    color: #fff;
    border-radius: 6px;
    transform: translateY(-140%);
    transition: transform 0.2s ease;
    z-index: 1000;
}

.skip-link:focus {
    transform: translateY(0);
}

.topbar {
    position: sticky;
    top: 0;
    background: rgba(251, 248, 241, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    z-index: 999;
}

.topbar__inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.wordmark {
    font-weight: 600;
    letter-spacing: 0.04em;
}

.topbar__nav {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    font-size: 0.95rem;
}

.page {
    max-width: 1080px;
    margin: 0 auto;
    padding: 72px 32px 72px;
}

.hero {
    display: grid;
    gap: 32px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    scroll-margin-top: 120px;
}

.hero__eyebrow {
    font-size: 0.9rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--subtle);
    margin: 0;
}

.hero h1 {
    font-size: clamp(2.6rem, 5vw, 3.4rem);
    margin: 12px 0 16px;
}

.hero__lead {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 65ch;
    margin: 0 0 20px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: var(--accent);
    color: #fff;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: inherit;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover,
.button:focus {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
    text-decoration: none;
}

.button--ghost {
    background: #fff;
    color: var(--text);
    border-color: var(--border);
}

.button--ghost:hover,
.button--ghost:focus {
    border-color: var(--accent);
    background: #fff;
}

.button--inverted {
    background: #fff;
    color: var(--accent);
    border-color: var(--accent);
}

.button--inverted:hover,
.button--inverted:focus {
    background: rgba(37, 99, 235, 0.08);
    color: var(--accent);
}

.hero__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 14px;
    color: var(--muted);
}

.icon-link {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.icon-link img {
    width: 22px;
    height: 22px;
    display: block;
    color: var(--text);
}

.icon-link:hover,
.icon-link:focus {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: var(--shadow);
    text-decoration: none;
}

.hero__avatar {
    width: clamp(160px, 22vw, 260px);
    height: clamp(160px, 22vw, 260px);
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--accent);
    box-shadow: var(--shadow);
}

.hero__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.section {
    margin-top: 72px;
    scroll-margin-top: 120px;
}

.section__header {
    margin-bottom: 24px;
}

.section__header h2 {
    margin: 0 0 8px;
    font-size: 2rem;
}

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

.card-list {
    display: grid;
    gap: 24px;
}

.card-list--split {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.projects-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

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

.project-card:hover,
.project-card:focus {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.18);
    text-decoration: none;
}

.project-card__media {
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
}

.project-card__media img {
    width: 85%;
    height: auto;
    object-fit: contain;
    display: block;
}

.project-card__media--hellochef {
    background: rgb(2, 110, 42);
    border-bottom: 1px solid rgba(34, 197, 94, 0.28);
}

.project-card__media--brainwave {
    background: rgb(188, 236, 255);
    border-bottom: 1px solid rgba(37, 99, 235, 0.28);
}

.project-card__body {
    padding: 16px 18px 18px;
    display: grid;
    gap: 8px;
    flex: 1;
}

.project-card__body h3 {
    margin: 0;
}

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



.experience-list {
    display: grid;
    gap: 18px;
}

.experience-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    color: inherit;
}

.experience-card:hover,
.experience-card:focus {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.18);
    text-decoration: none;
}

.experience-card__logo {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #f1f5f9;
}

.experience-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.experience-card__body h3 {
    margin: 0;
    font-size: 1.1rem;
}

.experience-card__body p {
    margin: 6px 0 0;
    color: var(--muted);
}

.experience-card__date {
    font-weight: 600;
    color: var(--subtle);
}

.contact-form {
    background: var(--surface);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
    display: grid;
    gap: 18px;
}

.contact-form__grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.contact-form__field {
    display: grid;
    gap: 8px;
}

.contact-form label {
    font-weight: 600;
    color: var(--text);
}

.contact-form input,
.contact-form textarea {
    font-family: inherit;
    font-size: 1rem;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(248, 250, 252, 0.8);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:hover,
.contact-form textarea:hover {
    border-color: var(--accent);
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    border-color: var(--accent);
}

.contact-form textarea {
    min-height: 160px;
    resize: vertical;
}

.contact-form__submit {
    justify-self: flex-start;
    padding-inline: 24px;
}

.footer {
    padding: 32px 20px 40px;
    text-align: center;
    color: var(--subtle);
    font-size: 0.95rem;
}

.scroll-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #ffffff;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 22px 40px rgba(15, 23, 42, 0.12);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.2s ease;
}

.scroll-top svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.scroll-top:hover,
.scroll-top:focus {
    transform: translateY(-2px);
    box-shadow: 0 22px 40px rgba(37, 99, 235, 0.18);
}

.scroll-top--visible {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 720px) {
    .topbar__inner {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .experience-card {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        align-items: start;
        gap: 16px;
    }

    .experience-card__date {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .page {
        padding-top: 72px;
    }

    .hero__links {
        flex-direction: column;
        align-items: flex-start;
    }

    .scroll-top {
        bottom: 18px;
        right: 18px;
        width: 48px;
        height: 48px;
    }
}
