:root { color-scheme: light; --paper: #f6f3eb; --ink: #253329; --quiet: #526259; --edge: #d9ded3; --accent: #305c47; --card: #fffdf7; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 system-ui, sans-serif; }
a { color: var(--accent); }
.site-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem 1.5rem; padding: 1rem clamp(1rem, 4vw, 3rem); border-bottom: 1px solid var(--edge); }
.wordmark { display: inline-flex; align-items: center; gap: .55rem; font: 700 1.35rem Georgia, serif; color: var(--ink); text-decoration: none; }
@supports (mask-image: url('proton-logo.png')) {
    .wordmark-symbol {
        flex: none;
        width: 2.3rem;
        aspect-ratio: 1;
        background-color: var(--accent);
        /* La zone visible couvre uniquement le symbole à gauche du logo original. */
        mask: url('proton-logo.png') 3.32% 50% / 641% auto no-repeat;
    }
}
nav { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.site-header nav { gap: .4rem; flex-wrap: nowrap; max-width: 100%; margin-left: auto; }
.site-header nav > * { flex: none; }
main { padding: clamp(1.15rem, 5vw, 3.25rem) 1rem 4rem; }
h1, h2, h3 { font-family: Georgia, serif; line-height: 1.13; }
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); margin: .2em 0 .45em; letter-spacing: -.04em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin: .2em 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 1.2rem; }
.card { display: flex; flex-direction: column; background: var(--card); border-radius: .8rem; overflow: hidden; border: 1px solid var(--edge); text-decoration: none; color: var(--ink); }
.card:hover h2 { text-decoration: underline; }
.card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.card-text { padding: 1.1rem; }
.meta { margin: 0 0 .35rem; color: var(--quiet); font-size: .88rem; }
.reading, .signin, .error { max-width: 48rem; margin-inline: auto; }
.signin { max-width: 29rem; padding: clamp(1.5rem, 6vw, 3rem); background: var(--card); border: 1px solid var(--edge); border-radius: 1rem; }
.signin h1 { font-size: clamp(2.15rem, 6vw, 3.15rem); }
.back { display: inline-block; margin-bottom: 1.6rem; }
.post-body { overflow-wrap: anywhere; }
.post-body img, .post-body video { display: block; height: auto; max-width: 100%; margin: 1rem auto; border-radius: .35rem; }
.unavailable { display: inline-block; padding: .12rem .55rem; background: #ebece4; border-radius: .25rem; color: var(--quiet); font-size: .88rem; }
.comments { margin-top: 2.8rem; border-top: 1px solid var(--edge); padding-top: 1.4rem; }
.comment { padding: .8rem 0 .8rem clamp(.55rem, 2vw, 1.05rem); margin-top: .75rem; border-left: 2px solid var(--edge); overflow-wrap: anywhere; }
.comment img, .comment video { max-width: 100%; }
.reply { font-size: .9rem; }
form { display: grid; gap: .5rem; }
.comments form { margin-top: 1.5rem; }
.journal-filter { display: flex; align-items: center; flex-wrap: wrap; }
.journal-filter [hidden] { display: none; }
@media (max-width: 38rem) {
    .site-header { gap: .65rem; }
}
label { font-weight: 650; }
input, button, textarea, select { font: inherit; }
input, textarea, select { padding: .55rem .7rem; border: 1px solid #9ba99f; color: var(--ink); background: var(--card); border-radius: .35rem; min-width: 0; }
.view-select { position: relative; display: inline-flex; color: var(--quiet); }
.view-select select { appearance: none; padding-inline-end: 2.3rem; }
.view-select::after {
    content: "";
    position: absolute;
    inset-block-start: 50%;
    inset-inline-end: .85rem;
    width: .42rem;
    height: .42rem;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
}
textarea { resize: vertical; }
button { justify-self: start; margin-top: .35rem; border: 0; border-radius: .35rem; background: var(--accent); color: white; padding: .5rem .9rem; cursor: pointer; }
button.quiet { margin: 0; background: transparent; color: var(--accent); text-decoration: underline; }
.icon-action { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; margin: 0; padding: 0; border: 1px solid var(--edge); border-radius: .35rem; background: var(--card); color: var(--accent); }
.icon-action:hover { background: var(--edge); }
.icon-action svg { width: 1.35rem; height: 1.35rem; }
.error { border: 1px solid #993a33; background: #fff2ee; padding: .75rem; }
:focus-visible { outline: 3px solid #14765c; outline-offset: 3px; }
