:root {
    --bg: #f8f9fb;
    --card: #ffffff;
    --text: #222;
    --muted: #6b7280;
    --accent: #2563eb;
    --radius: 10px;
    --max-width: 880px;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    padding: 2rem 1rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* page container */
.main {
    width: 100%;
    max-width: var(--max-width);
    background: var(--card);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
}

/* headings */
h1 {
    margin: 0 0 .25rem 0;
    font-size: 1.5rem;
    letter-spacing: -0.01em;
}

h2 {
    margin: 1.25rem 0 .5rem 0;
    font-size: 1.05rem;
    color: var(--accent);
    font-weight: 600;
}

/* profile image */
.profile-photo {
    display: block;
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    margin: .75rem 0 1rem 0;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.08);
    border: 3px solid rgba(0, 0, 0, 0.03);
}

/* content layout */
p {
    margin: .5rem 0 0.75rem 0;
    color: var(--text)
}

ul {
    margin: .25rem 0 0.75rem 1.25rem
}

ul.inline {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 1rem;
    margin: 0.25rem 0;
}

/* strong and links */
strong {
    color: var(--text)
}

a {
    color: var(--accent);
    text-decoration: none
}

a:hover {
    text-decoration: underline
}

/* contact list */
.contact-list li {
    margin: .35rem 0
}

/* footer/time */
footer {
    margin-top: 1.25rem;
    border-top: 1px solid rgba(16, 24, 40, 0.04);
    padding-top: .75rem
}

footer small {
    color: var(--muted)
}

/* responsive adjustments */
@media (min-width:720px) {
    .header-row {
        display: flex;
        gap: 1.25rem;
        align-items: center;
    }

    .profile-meta {
        flex: 1;
    }

    .profile-photo {
        width: 160px;
        height: 160px;
        margin: 0
    }
}

/* accessible focus */
a:focus,
button:focus {
    outline: 3px solid rgba(37, 99, 235, 0.18);
    outline-offset: 3px
}

/* dark mode */
@media (prefers-color-scheme:dark) {
    :root {
        --bg: #0b1020;
        --card: #0f1724;
        --text: #e6eef8;
        --muted: #9aa6c0;
        --accent: #60a5fa;
        --radius: 8px;
    }

    body {
        background: var(--bg)
    }

    .main {
        box-shadow: 0 6px 20px rgba(2, 6, 23, 0.6)
    }
}

/* print */
@media print {
    body {
        background: white;
        padding: 0
    }

    .main {
        box-shadow: none;
        border-radius: 0
    }
}