:root {
    color-scheme: light;
    --background: #ffffff;
    --text: #171717;
    --muted: #737373;
    --border: #e5e5e5;
    --accent: #00356b;
    --link-line: #bdcad9;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --background: #171717;
        --text: #f5f5f5;
        --muted: #a3a3a3;
        --border: #333333;
        --accent: #8db7e3;
        --link-line: #506680;
    }
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --background: #171717;
    --text: #f5f5f5;
    --muted: #a3a3a3;
    --border: #333333;
    --accent: #8db7e3;
    --link-line: #506680;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

a, button { -webkit-tap-highlight-color: transparent; }

a:focus-visible, button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 6px;
    border-radius: 2px;
}

.site {
    width: min(100% - 96px, 960px);
    min-height: 100vh;
    min-height: 100svh;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: 42px;
}

.site-name {
    font-size: 22px;
    font-weight: 650;
    letter-spacing: -0.5px;
    text-decoration: none;
    white-space: nowrap;
}

.name-period { color: var(--accent); }

nav { display: flex; gap: 30px; }

nav a {
    padding-block: 8px;
    color: var(--muted);
    font-size: 18px;
    text-decoration: none;
    text-underline-offset: 8px;
}

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

nav a:hover, .socials a:hover, .theme-toggle:hover { color: var(--accent); }

.content {
    width: 100%;
    max-width: 640px;
    margin: 92px auto 112px;
}

h1 {
    margin: 0 0 30px;
    font-size: clamp(28px, 4vw, 34px);
    font-weight: 550;
    letter-spacing: -1.1px;
    line-height: 1.25;
}

.bio, .blog-intro {
    font-size: 17px;
    line-height: 1.9;
    letter-spacing: -0.15px;
}

p { margin: 0; }

.bio p + p { margin-top: 22px; }

.bio a {
    text-decoration-color: var(--link-line);
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}

.bio a:hover { color: var(--accent); text-decoration-color: currentColor; }

.socials {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 38px;
}

.socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--muted);
    text-decoration: none;
}

.socials svg { width: 20px; height: 20px; }

.blog-intro { color: var(--muted); }

.empty-state {
    margin-top: 38px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    font-size: 15px;
    line-height: 1.8;
}

.empty-state p + p { color: var(--muted); font-size: 14px; }

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: auto;
    padding-block: 25px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
}

.theme-toggle {
    padding: 8px 0 8px 8px;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.skip-link {
    position: absolute;
    top: -60px;
    left: 24px;
    padding: 10px 16px;
    background: var(--background);
    z-index: 1;
}

.skip-link:focus { top: 12px; }

@media (max-width: 600px) {
    .site { width: calc(100% - 48px); }
    .site-header { padding-block: 25px; gap: 16px; }
    .site-name { font-size: 20px; }
    nav { gap: 20px; }
    .content { margin-block: 64px 88px; }
    h1 { margin-bottom: 25px; }
    .bio, .blog-intro { font-size: 16px; line-height: 1.85; }
    .socials { margin-top: 30px; }
    .site-footer { padding-block: 20px; }
}
