:root {
    --color-background: #ffffff;
    --color-text: #171717;
    --color-muted: #626262;
    --color-subtle: #dedbd4;
    --color-hairline: #efede8;
    --color-accent: #1e3a5f;
    --font-body: "Google Sans", "Product Sans", "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--color-background);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--color-text);
    background: var(--color-background);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1;
    height: 3px;
    background: var(--color-accent);
}

a {
    color: var(--color-accent);
    text-decoration-color: color-mix(in srgb, var(--color-accent) 36%, transparent);
    text-underline-offset: 0.18em;
    transition: color 180ms ease, text-decoration-color 180ms ease;
}

a:hover,
a:focus-visible {
    color: var(--color-text);
    text-decoration-color: currentColor;
}

a:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
}

.page-shell {
    width: min(100% - 48px, 880px);
    min-height: 100vh;
    margin: 0 auto;
    padding: clamp(56px, 9vw, 84px) 0 32px;
    display: flex;
    flex-direction: column;
}

.site-header {
    padding-bottom: clamp(42px, 7vw, 58px);
    display: grid;
    grid-template-columns: minmax(0, 640px) auto;
    align-items: center;
    justify-content: start;
    gap: clamp(20px, 3vw, 28px);
}

.site-intro {
    min-width: 0;
}

.profile-photo {
    width: clamp(136px, 20vw, 172px);
    aspect-ratio: 1;
    display: block;
    justify-self: end;
    object-fit: cover;
    object-position: center 37%;
    border-radius: 50%;
    border: 1px solid var(--color-hairline);
    box-shadow: 0 0 0 6px #ffffff, 0 18px 42px rgba(30, 58, 95, 0.12);
}

h1,
h2,
p {
    margin: 0;
}

h1 {
    color: var(--color-text);
    font-size: clamp(2.35rem, 5.8vw, 2.9rem);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: 0;
    text-wrap: balance;
}

.tagline {
    margin-top: 14px;
    color: var(--color-muted);
    font-size: 0.96rem;
    font-weight: 500;
}

.intro-note {
    max-width: 640px;
    margin-top: 24px;
    color: var(--color-text);
    font-size: clamp(1.15rem, 2.7vw, 1.38rem);
    font-weight: 400;
    line-height: 1.55;
    text-wrap: pretty;
}

.contact-nav {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.contact-nav a {
    text-decoration-thickness: 1px;
}

.page-shell--photos {
    width: min(100% - 48px, 960px);
}

.photos-header {
    padding-bottom: clamp(42px, 7vw, 58px);
}

.page-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 0.9rem;
    font-weight: 600;
}

.page-nav a[aria-current="page"] {
    color: var(--color-text);
    text-decoration-color: transparent;
}

.photos-intro {
    max-width: 680px;
    margin-top: clamp(54px, 10vw, 86px);
}

.eyebrow {
    margin-bottom: 16px;
    color: var(--color-accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

main {
    flex: 1;
}

.profile-section {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 34px;
    padding: 42px 0 44px;
    border-top: 1px solid var(--color-hairline);
}

.maintenance-section {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 34px;
    padding: 42px 0 44px;
    border-top: 1px solid var(--color-hairline);
}

.home-posts-section {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 34px;
    padding: 36px 0 44px;
    border-top: 1px solid var(--color-hairline);
}

.maintenance-card {
    min-height: clamp(220px, 34vw, 320px);
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 10px;
    padding: clamp(28px, 5vw, 44px);
    border: 1px solid var(--color-hairline);
    background:
        linear-gradient(135deg, rgba(30, 58, 95, 0.04), transparent 42%),
        #ffffff;
}

.home-posts-card {
    display: grid;
    gap: 10px;
    max-width: 590px;
    padding: 26px 0 0;
}

.home-posts-card p {
    max-width: 30rem;
    color: var(--color-muted);
}

.home-posts-card a {
    width: max-content;
    margin-top: 4px;
    font-weight: 600;
}

.maintenance-card p {
    max-width: 28rem;
    color: var(--color-muted);
}

.maintenance-label {
    color: var(--color-text);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h2 {
    position: relative;
    padding-left: 16px;
    color: var(--color-text);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h2::before {
    content: "";
    position: absolute;
    top: 0.2em;
    bottom: 0.2em;
    left: 0;
    width: 2px;
    background: var(--color-accent);
}

.profile-copy {
    max-width: 590px;
    color: var(--color-text);
}

.profile-copy p + p,
.profile-copy ul + p {
    margin-top: 18px;
}

.profile-copy ul {
    margin: 20px 0 0;
    padding-left: 1.15rem;
}

.profile-copy li {
    padding-left: 0.2rem;
}

.profile-copy li + li {
    margin-top: 8px;
}

.site-footer {
    padding-top: 28px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    border-top: 1px solid var(--color-hairline);
    color: var(--color-muted);
    font-size: 0.9rem;
}

.site-footer a {
    font-weight: 500;
}

@media (max-width: 720px) {
    .page-shell {
        width: min(100% - 36px, 520px);
        min-height: 100svh;
        padding-top: clamp(30px, 8vw, 46px);
        padding-bottom: 26px;
    }

    .site-header {
        padding-bottom: 34px;
        grid-template-columns: 1fr;
        gap: 22px;
        text-align: center;
    }

    .site-intro {
        width: 100%;
        max-width: 430px;
        margin: 0 auto;
    }

    .profile-photo {
        width: clamp(144px, 42vw, 176px);
        order: -1;
        justify-self: center;
    }

    h1 {
        font-size: clamp(2.1rem, 10.5vw, 2.55rem);
    }

    .tagline {
        margin-top: 10px;
    }

    .intro-note {
        max-width: 31rem;
        margin: 20px auto 0;
        font-size: 1.13rem;
        line-height: 1.52;
    }

    .contact-nav {
        width: min(100%, 420px);
        margin: 24px auto 0;
        padding-top: 16px;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0 8px;
        border-top: 1px solid var(--color-hairline);
    }

    .contact-nav a {
        text-align: center;
    }

    .profile-section,
    .home-posts-section,
    .maintenance-section {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 30px 0 36px;
    }

    h2 {
        width: max-content;
        margin: 0;
        padding-left: 0;
    }

    h2::before {
        content: none;
    }

    .profile-copy {
        text-align: left;
        font-size: 0.98rem;
    }

    .home-posts-card {
        padding-top: 0;
    }

    .site-footer {
        justify-content: center;
        padding-top: 22px;
    }

    .page-shell--photos {
        width: min(100% - 36px, 520px);
    }

    .photos-header {
        padding-bottom: 34px;
    }

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

    .photos-intro {
        margin-top: 42px;
        text-align: center;
    }

    .maintenance-card {
        min-height: 220px;
        justify-items: center;
        text-align: center;
    }
}

@media (max-width: 380px) {
    .page-shell {
        width: min(100% - 24px, 720px);
    }

    .profile-photo {
        width: clamp(136px, 44vw, 158px);
    }

    .contact-nav {
        font-size: 0.88rem;
    }

    .contact-nav a {
        overflow-wrap: anywhere;
    }
}
