:root {
    color-scheme: light;
    --bg: #faf9f6;
    --surface: #ffffff;
    --ink: #1f2328;
    --muted: #626b73;
    --line: #ddd8cf;
    --accent: #2f6f73;
    --accent-dark: #204d50;
    --focus: #b23b3b;
    --max: 860px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
}

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

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    padding: .65rem .9rem;
    background: var(--ink);
    color: var(--surface);
    z-index: 20;
}

.skip-link:focus {
    top: 1rem;
}

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

.logo {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0;
    text-decoration: none;
}

.main-nav a {
    color: var(--muted);
    font-family: Arial, Helvetica, sans-serif;
    font-size: .95rem;
    text-decoration: none;
}

.main-nav a:hover,
.post-card h2 a:hover,
.read-more:hover,
.back-link:hover {
    color: var(--accent-dark);
}

.site-main {
    width: min(100% - 2rem, var(--max));
    margin: 0 auto;
    flex: 1;
    padding: 3rem 0 4rem;
}

.intro,
.about-page,
.empty-state {
    max-width: 680px;
}

.eyebrow,
time {
    color: var(--accent);
    font-family: Arial, Helvetica, sans-serif;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2 {
    line-height: 1.15;
}

h1 {
    margin: .35rem 0 1rem;
    font-size: clamp(2.4rem, 8vw, 4.6rem);
    font-weight: 500;
}

h2 {
    margin: .4rem 0 .75rem;
    font-size: clamp(1.5rem, 4vw, 2.15rem);
    font-weight: 500;
}

p {
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: 1.1rem;
}

.post-list {
    display: grid;
    gap: 1.75rem;
    margin-top: 2.5rem;
}

.post-card {
    padding: 0 0 1.75rem;
    border-bottom: 1px solid var(--line);
}

.post-card h2 a {
    text-decoration: none;
}

.read-more,
.back-link {
    color: var(--accent);
    font-family: Arial, Helvetica, sans-serif;
    font-size: .95rem;
    font-weight: 700;
    text-decoration: none;
}

.read-more::after {
    content: " ->";
}

.post-full {
    max-width: 740px;
}

.post-full time {
    display: block;
    margin-top: 1.5rem;
}

.post-preview {
    color: var(--ink);
    font-size: 1.25rem;
}

.post-body {
    margin-top: 2rem;
}

.post-body p,
.about-page p {
    color: var(--ink);
    font-size: 1.18rem;
}

.site-footer {
    width: min(100% - 2rem, var(--max));
    margin: 0 auto;
    padding: 1.5rem 0 2rem;
    border-top: 1px solid var(--line);
    text-align: center;
}

.site-footer p {
    margin: 0;
    color: var(--muted);
    font-family: Arial, Helvetica, sans-serif;
    font-size: .9rem;
}

@media (max-width: 560px) {
    .site-header {
        padding-top: 1.4rem;
    }

    .site-main {
        padding-top: 2.25rem;
    }
}
