:root {
    --background: #fffcf0;
    --text: #343239;
    --muted: #878580;
    --accent: #24837b;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;

    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1.5rem;

    background: var(--background);
    color: var(--text);

    font-family: system-ui, sans-serif;
    line-height: 1.7;
    overflow-wrap: break-word;
}

main {
    flex: 1;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.nav-links {
    display: flex;
    gap: 1.25rem;
}

.nav-links a {
    display: inline-grid;
    grid-template-areas: "nav-item";
    justify-items: center;
    align-items: center;
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-links a .nav-label {
    grid-area: nav-item;
    transition: opacity 0.2s ease;
    opacity: 1;
}

.nav-links a::before {
    content: attr(data-hover);
    grid-area: nav-item;
    transition: opacity 0.2s ease;
    opacity: 0;
    pointer-events: none;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a:hover .nav-label {
    opacity: 0;
}

.nav-links a:hover::before {
    opacity: 1;
}

li {
    list-style: none;
}

.posts {
    padding: 0;
    margin: 1.5rem 0;
}

.post-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.post-item a {
    text-decoration: none;
}

.post-item a:hover {
    text-decoration: underline;
}

.post-date {
    color: var(--muted);
    font-size: 0.9rem;
    white-space: nowrap;
}

.intro {
    color: var(--muted);
    font-size: 1.05rem;
    margin-top: 0.5rem;
    margin-bottom: 2.5rem;
}

.subtitle {
    color: var(--muted);
    font-size: 0.95rem;
    margin-top: 0.25rem;
    margin-bottom: 2rem;
}

.more-posts {
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    text-decoration: none;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
    background: var(--accent);
    color: var(--background);
}

h1,
h2,
h3 {
    line-height: 1.2;
}

a {
    color: var(--accent);
}

article {
    margin-bottom: 3rem;
}

article h1 {
    margin-bottom: 1.5rem;
}

article h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.35rem;
}

article p {
    margin-bottom: 1.25rem;
}

article ul {
    padding-left: 1.25rem;
    margin-bottom: 1.5rem;
}

article li {
    list-style: disc;
    margin-bottom: 0.5rem;
}

footer {
    text-align: center;
    margin-top: auto;
}

.logo {
    height: 32px;
    width: 32px;
}

img,
video {
    max-width: 100%;
    height: auto;
}

pre {
    overflow-x: auto;
    padding: 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9em;
}

@media (max-width: 600px) {
    body {
        padding: 1.5rem 1rem;
    }

    nav {
        margin-bottom: 2.5rem;
    }

    .post-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
        margin-bottom: 1rem;
    }
}
