:root {
    --bg: #f8f7f3;
    --text: #1f2933;
    --muted: #667085;
    --line: #ddd8ce;
    --link: #1d4ed8;
    --link-hover: #6a90d5;
    --max-width: 760px;
}

@font-face {
    font-family: "SofiaSans";
    src: url("/fonts/webfonts/SofiaSans-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "SofiaSans";
    src: url("/fonts/webfonts/SofiaSans-SemiBold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 18px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "SofiaSans", sans-serif;
    line-height: 1.65;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

a {
    color: var(--link);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--link-hover);
}

.site-header {
    /*border-bottom: 1px solid var(--line);*/
}

.site-nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.site-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-links a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 700;
}

.site-links a:hover {
    color: var(--link-hover);
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

.page {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 1rem 2rem;
    flex: 1;
}

.profile-info {
    flex: 1;
    padding-top: 0.5rem;
}

.profile-introduction {
    padding: 0 0 2rem;
    display: flex;
    gap: 1.5rem;
}

.profile-photo {
    width: 250px;
    height: auto;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 5px 20px 15px 20px;
}

.profile-location {
    color: var(--muted);
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-top: 0;
}

h1 {
    margin: 0 0 0.6rem;
    font-size: clamp(1.4rem, 2vw, 1.6rem);
    line-height: 1.2;
}

.professional-summary {
    color: var(--muted);
    font-size: 1.2rem;
    margin: 0 0 1rem;
}
.section {
    border-top: 1px solid var(--line);
    padding-top: 2rem;
}

.article-title {
    font-size: clamp(1.4rem, 2vw, 1.6rem);
    line-height: 1.2;
    margin: 0 0 0.75rem;
}

.article-title-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
}

.article-title-link:hover {
    color: var(--link-hover);
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

.site-footer {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.95rem;
}

.site-footer a {
    color: var(--muted);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--text);
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

/* Articles page styles */
.articles-list {
    margin-bottom: 3rem;
}

.article-item {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--line);
}

.article-item:last-child {
    border-bottom: none;
}

.article-title {
    font-size: clamp(1.4rem, 2vw, 1.6rem);
    line-height: 1.2;
    margin: 0 0 0.75rem;
}

.article-meta {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.article-excerpt {
    color: var(--text);
}

.legal-content pre {
    overflow-x: auto;
    padding: 1rem;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.35);
    font-size: 0.85rem;
    line-height: 1.5;
}

@media (max-width: 640px) {
    html {
        font-size: 16px;
    }

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

    .page {
        padding-top: 2rem;
    }
}