/* ==========================================================================
   Fractures, par Benjamin Jourdan
   Merriweather, noir sur blanc. Sobre, dense, institutionnel.
   ========================================================================== */

@font-face {
    font-family: "Merriweather";
    src: url("../fonts/merriweather-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Merriweather";
    src: url("../fonts/merriweather-italic-400.woff2") format("woff2");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: "Merriweather";
    src: url("../fonts/merriweather-700.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Merriweather";
    src: url("../fonts/merriweather-900.woff2") format("woff2");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --ink: #000000;
    --text: #121212;
    --muted: #565656;
    --faint: #8a8a8a;
    --rule: #e4e4e4;
    --rule-strong: #111111;
    --paper: #ffffff;
    --maxw: 44rem;
    --wide: 62rem;
    /* Passe cette valeur a 700 si tu veux tout le corps en gras */
    --body-weight: 400;
}

* { box-sizing: border-box; }

html {
    font-size: 18px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font-family: "Merriweather", Georgia, serif;
    font-weight: var(--body-weight);
    line-height: 1.62;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.wrap {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 1.5rem;
}

a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
a:hover { text-decoration: none; }

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

/* ---------- Header ---------- */
.site-header {
    border-bottom: 1px solid var(--rule);
    padding: 1.5rem 0;
}
.site-header-inner {
    max-width: var(--wide);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.brand { text-decoration: none; display: inline-flex; flex-direction: column; line-height: 1; }
.brand-mark {
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 0.02em;
    color: var(--ink);
    text-transform: uppercase;
}
.brand-sig {
    font-style: italic;
    font-size: 0.82rem;
    color: var(--muted);
    margin-top: 0.4rem;
    letter-spacing: 0.01em;
}
.site-nav { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.site-nav ul { list-style: none; display: flex; gap: 1.4rem; margin: 0; padding: 0; }
.site-nav a {
    text-decoration: none;
    font-size: 0.9rem;
    color: var(--text);
}
.site-nav a:hover { color: var(--ink); text-decoration: underline; }

.btn-sub {
    display: inline-block;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--paper);
    background: var(--ink);
    padding: 0.5rem 1rem;
    border: 1px solid var(--ink);
    letter-spacing: 0.01em;
}
.btn-sub:hover { background: var(--paper); color: var(--ink); text-decoration: none; }
.btn-sub-lg { font-size: 0.95rem; padding: 0.7rem 1.4rem; margin-top: 1.6rem; }

/* ---------- Hero ---------- */
.hero {
    padding: 4.5rem 0 3rem;
    border-bottom: 1px solid var(--rule);
    text-align: center;
}
.hero-title {
    font-weight: 900;
    font-size: 3rem;
    letter-spacing: 0.01em;
    color: var(--ink);
    margin: 0;
    text-transform: uppercase;
}
.hero-tagline {
    font-style: italic;
    font-size: 1.2rem;
    color: var(--text);
    margin: 0.8rem 0 0;
}
.hero-desc {
    font-size: 1rem;
    color: var(--muted);
    max-width: 34rem;
    margin: 1.4rem auto 0;
    line-height: 1.55;
}

/* ---------- Feed ---------- */
.feed { padding: 1rem 0 3rem; }
.feed-item { border-bottom: 1px solid var(--rule); }
.feed-link {
    display: block;
    text-decoration: none;
    padding: 2.4rem 0;
    color: var(--text);
}
.feed-link:hover .feed-title { text-decoration: underline; }
.feed-date {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--faint);
    margin-bottom: 0.7rem;
}
.feed-title {
    font-weight: 700;
    font-size: 1.7rem;
    line-height: 1.24;
    color: var(--ink);
    margin: 0 0 0.7rem;
}
.feed-excerpt { margin: 0 0 0.9rem; color: var(--text); }
.feed-sig { font-style: italic; font-size: 0.85rem; color: var(--muted); }

/* ---------- Note (post) ---------- */
.note { padding: 3.5rem 0 4rem; }
.note-header { margin-bottom: 2.2rem; }
.note-kicker {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--muted);
    margin: 0 0 1rem;
}
.note-title {
    font-weight: 900;
    font-size: 2.3rem;
    line-height: 1.18;
    letter-spacing: -0.005em;
    color: var(--ink);
    margin: 0 0 1rem;
}
.note-deck {
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.45;
    color: var(--muted);
    margin: 0 0 1.4rem;
}
.note-byline {
    font-size: 0.9rem;
    color: var(--text);
    margin: 0;
    padding-top: 1.1rem;
    border-top: 1px solid var(--rule);
}
.note-sep { color: var(--faint); margin: 0 0.4rem; }

/* ---------- Content ---------- */
.note-content { font-size: 1.06rem; }
.note-content p { margin: 0 0 1.25rem; }
.note-content h2 {
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.3;
    color: var(--ink);
    margin: 2.6rem 0 1rem;
}
.note-content h3 {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--ink);
    margin: 2rem 0 0.8rem;
}
.note-content a { color: var(--ink); }
.note-content strong { font-weight: 700; }
.note-content em { font-style: italic; }
.note-content blockquote {
    margin: 1.6rem 0;
    padding: 0.2rem 0 0.2rem 1.4rem;
    border-left: 3px solid var(--rule-strong);
    font-style: italic;
    color: var(--text);
}
.note-content ul,
.note-content ol { margin: 0 0 1.25rem; padding-left: 1.4rem; }
.note-content li { margin: 0 0 0.5rem; }
.note-content hr { border: 0; border-top: 1px solid var(--rule); margin: 2.4rem 0; }
.note-content figure { margin: 2rem 0; }
.note-content figcaption { font-size: 0.85rem; color: var(--muted); text-align: center; margin-top: 0.6rem; }

/* ---------- Signoff ---------- */
.note-signoff {
    margin-top: 2.8rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--rule-strong);
}
.signoff-name { font-style: italic; font-size: 1.15rem; color: var(--ink); margin: 0; }
.signoff-date { font-size: 0.85rem; color: var(--muted); margin: 0.3rem 0 0; }

/* ---------- Subscribe CTA ---------- */
.subscribe-cta {
    margin-top: 3rem;
    padding: 2.2rem 0 0;
    border-top: 1px solid var(--rule);
    text-align: center;
}
.subscribe-cta-text { font-size: 1.05rem; color: var(--text); margin: 0; }

/* ---------- Page ---------- */
.page { padding: 3.5rem 0 4rem; }
.page-header { margin-bottom: 1.8rem; }
.page-title { font-weight: 900; font-size: 2.1rem; color: var(--ink); margin: 0; }

/* ---------- Pagination ---------- */
.pagination { padding: 2rem 0; display: flex; justify-content: space-between; font-size: 0.9rem; }
.pagination a { text-decoration: none; font-weight: 700; }
.pagination .page-number { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--rule);
    padding: 2rem 0;
    margin-top: 2rem;
}
.site-footer-inner {
    max-width: var(--wide);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--muted);
}
.footer-brand { font-weight: 700; color: var(--ink); }
.footer-nav ul { list-style: none; display: flex; gap: 1.2rem; margin: 0; padding: 0; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
    html { font-size: 17px; }
    .hero-title { font-size: 2.2rem; }
    .note-title { font-size: 1.8rem; }
    .feed-title { font-size: 1.4rem; }
    .site-header-inner { flex-direction: column; align-items: flex-start; }
    .site-footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Koenig editor cards ---------- */
.note-content .kg-card { margin: 2rem 0; }
.note-content .kg-image { display: block; margin-left: auto; margin-right: auto; }
.note-content .kg-image-card img { margin: 0 auto; }

.note-content .kg-width-wide {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 88vw;
    max-width: var(--wide);
}
.note-content .kg-width-full {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    max-width: 100vw;
}
.note-content .kg-width-full img { width: 100%; }

.note-content .kg-bookmark-card,
.note-content .kg-embed-card { margin: 2rem 0; }
.note-content .kg-bookmark-container {
    display: flex;
    text-decoration: none;
    border: 1px solid var(--rule);
    color: var(--text);
}
.note-content .kg-bookmark-content { padding: 1.1rem 1.3rem; }
.note-content .kg-bookmark-title { font-weight: 700; color: var(--ink); }
.note-content .kg-bookmark-description { color: var(--muted); font-size: 0.92rem; margin-top: 0.4rem; }

.note-content .kg-callout-card {
    padding: 1.2rem 1.4rem;
    border: 1px solid var(--rule-strong);
    margin: 1.8rem 0;
}
