/* ── Charte graphique MotiWriter ─────────────────────────────
   Fond crème, encre très sombre légèrement bleutée, serifs. */
:root {
    --paper: #f8f3e7;
    --paper-raised: #fcf9f1;
    --paper-deep: #ece4d1;
    --rule: #e0d6c0;

    --ink: #16202f;
    --ink-soft: #33405a;
    --ink-muted: #6a7285;
    --ink-blue: #24395a;
    --accent: #3d5a80;

    --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
    --font-body: "Source Serif 4", "Iowan Old Style", Georgia, serif;

    color-scheme: light;
}

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

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

::selection {
    background: var(--ink-blue);
    color: var(--paper);
}

h1:focus {
    outline: none;
}

.blazor-error-boundary {
    background: #8a2b2b;
    padding: 1rem 1.25rem;
    color: var(--paper);
}

    .blazor-error-boundary::after {
        content: "Une erreur est survenue.";
    }
