:root {
    --header-bg: #d1d8e0;
    --main-bg: #a2abb5;
    --text-dark: #111111;
    --logo-sky: #6eb8f0;
    --logo-deep: #2f6fa8;
    --font-sans: "Source Sans 3", system-ui, sans-serif;
    --font-serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
    --font-script: "Great Vibes", cursive;
}

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

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-sans);
    color: var(--text-dark);
    background: var(--main-bg);
    line-height: 1.55;
}

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

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.site-header {
    background: var(--header-bg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.site-header__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    justify-self: start;
}

.site-nav a {
    text-decoration: none;
}

.site-nav a:hover {
    text-decoration: underline;
}

.site-nav a.is-active {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.site-logo {
    justify-self: center;
    text-align: center;
    line-height: 1;
}

.site-logo__initials {
    font-family: var(--font-script);
    font-size: clamp(2.75rem, 8vw, 4rem);
    color: var(--logo-sky);
    letter-spacing: 0.02em;
}

.site-logo__name {
    font-family: var(--font-script);
    font-size: clamp(1.35rem, 4vw, 1.85rem);
    color: var(--logo-deep);
    margin-top: 0.15rem;
}

.site-header__actions {
    justify-self: end;
    position: relative;
}

.contact-dropdown {
    position: relative;
}

.contact-dropdown > summary {
    list-style: none;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.55rem 1.35rem;
    border: 2px solid #000;
    border-radius: 999px;
    background: transparent;
    color: var(--text-dark);
}

.contact-dropdown > summary::-webkit-details-marker {
    display: none;
}

.contact-dropdown[open] > summary {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.contact-dropdown__panel {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: -2px;
    min-width: 11rem;
    background: var(--header-bg);
    border: 2px solid #000;
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 0.35rem 0;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    z-index: 50;
}

.contact-dropdown__panel a {
    display: block;
    padding: 0.65rem 1.1rem;
    font-weight: 600;
    text-decoration: none;
}

.contact-dropdown__panel a:hover {
    background: rgba(255, 255, 255, 0.45);
    text-decoration: none;
}

.main-shell {
    min-height: calc(100vh - 120px);
}

.main-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 3.5rem;
}

.page-title {
    font-family: var(--font-sans);
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    margin: 0 0 1.25rem;
    letter-spacing: -0.02em;
}

.body-serif {
    font-family: var(--font-serif);
    font-size: 1.05rem;
}

.body-serif p {
    margin: 0 0 1.1em;
}

.about-grid {
    display: grid;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 840px) {
    .about-grid {
        grid-template-columns: 1fr minmax(240px, 38%);
        gap: 2.5rem;
    }
}

.about-photo {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    background: #8a939e;
}

.about-photo img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: 82% 28%;
}

.home-hero {
    max-width: 40rem;
    margin-bottom: 2.5rem;
}

.home-hero .lede {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    margin-top: 0.5rem;
}

.portfolio-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.work-card {
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 220px;
}

.work-card__thumb {
    flex: 1;
    min-height: 160px;
    background: linear-gradient(145deg, #cfd6dd 0%, #9aa4af 45%, #7e8793 100%);
}

.work-card__label {
    padding: 0.85rem 1rem;
    font-weight: 700;
    font-size: 0.95rem;
}

.contact-cards {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .contact-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

.contact-card {
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    padding: 1.25rem 1.35rem;
}

.contact-card h2 {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
}

.contact-card a {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 780px) {
    .site-header__inner {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .site-nav {
        justify-content: center;
    }

    .site-header__actions {
        justify-self: center;
    }

    .contact-dropdown__panel {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
}
