*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #f7f4ef;
    --paper: #fffdf9;
    --ink: #2c2825;
    --muted: #6b6560;
    --accent: #3d6b4f;
    --accent-light: #e8f0eb;
    --border: #e0d9cf;
    --serif: "Georgia", "Times New Roman", serif;
    --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
}

body {
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
}

.wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header */

.site-header {
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 0;
}

.site-header .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: bold;
    color: var(--ink);
    text-decoration: none;
}

.logo:hover {
    text-decoration: none;
    color: var(--accent);
}

.site-header nav {
    display: flex;
    gap: 1.5rem;
}

.site-header nav a {
    color: var(--muted);
    font-size: 0.9rem;
}

.site-header nav a:hover {
    color: var(--ink);
}

/* Hero */

.hero {
    padding: 3.5rem 0 2.5rem;
}

.hero .tag {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    background: var(--accent-light);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.hero h1 {
    font-family: var(--serif);
    font-size: clamp(1.75rem, 5vw, 2.25rem);
    line-height: 1.25;
    font-weight: normal;
    margin-bottom: 1rem;
}

.hero .lead {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 36em;
}

/* Articles */

.articles {
    padding-bottom: 2rem;
}

.section-title {
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: normal;
    color: var(--muted);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.card {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.card time {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.card h3 {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: normal;
    margin-bottom: 0.5rem;
}

.card h3 a {
    color: var(--ink);
}

.card h3 a:hover {
    color: var(--accent);
}

.card p {
    color: var(--muted);
    margin-bottom: 0.75rem;
}

.read-more {
    font-size: 0.85rem;
    color: var(--accent);
}

.read-more:hover {
    text-decoration: underline;
}

/* Articles complets */

.posts {
    padding: 2rem 0 1rem;
    border-top: 1px solid var(--border);
}

.post {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
    scroll-margin-top: 5rem;
}

.post header {
    margin-bottom: 1.25rem;
}

.post header time {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.post header h3 {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: normal;
    line-height: 1.3;
}

.post p {
    margin-bottom: 1rem;
    color: var(--ink);
}

.post p:last-of-type {
    margin-bottom: 1.5rem;
}

.back-top {
    font-size: 0.85rem;
    color: var(--muted);
}

.back-top:hover {
    color: var(--accent);
}

/* À propos */

.about {
    padding: 2.5rem 0 3rem;
    border-top: 1px solid var(--border);
    scroll-margin-top: 5rem;
}

.about h2 {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: normal;
    margin-bottom: 1rem;
}

.about p {
    margin-bottom: 1rem;
    color: var(--muted);
    max-width: 38em;
}

.about p:last-child {
    margin-bottom: 0;
}

.card {
    scroll-margin-top: 5rem;
}

/* Footer */

.site-footer {
    padding: 2rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
}
