/* Blog technique de Pokipedia : une seule feuille, aux couleurs et aux polices de l'application (clair et sombre
   selon le réglage du lecteur), pensée pour la lecture : colonne étroite, code et tableaux qui défilent sur mobile. */
@font-face { font-family: 'Nunito Variable'; font-style: normal; font-weight: 200 1000; font-display: swap; src: url('/assets/fonts/nunito-latin.woff2') format('woff2-variations'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Nunito Variable'; font-style: normal; font-weight: 200 1000; font-display: swap; src: url('/assets/fonts/nunito-latin-ext.woff2') format('woff2-variations'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Outfit Variable'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/assets/fonts/outfit-latin.woff2') format('woff2-variations'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Outfit Variable'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/assets/fonts/outfit-latin-ext.woff2') format('woff2-variations'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --background: oklch(0.985 0.012 340);
  --foreground: oklch(0.34 0.05 310);
  --card: oklch(0.998 0.004 340);
  --muted: oklch(0.955 0.02 330);
  --muted-foreground: oklch(0.5 0.04 310);
  --border: oklch(0.91 0.028 330);
  --primary: oklch(0.55 0.16 305);
  --code-bg: oklch(0.965 0.016 320);
  --tok-comment: oklch(0.58 0.03 310);
  --tok-keyword: oklch(0.5 0.19 320);
  --tok-string: oklch(0.48 0.13 150);
  --tok-number: oklch(0.52 0.15 50);
  --tok-function: oklch(0.48 0.16 260);
  --font-sans: 'Nunito Variable', ui-rounded, system-ui, sans-serif;
  --font-display: 'Outfit Variable', 'Nunito Variable', system-ui, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --background: oklch(0.235 0.035 295);
    --foreground: oklch(0.94 0.02 320);
    --card: oklch(0.275 0.04 295);
    --muted: oklch(0.3 0.04 295);
    --muted-foreground: oklch(0.76 0.035 310);
    --border: oklch(0.37 0.04 295);
    --primary: oklch(0.82 0.1 305);
    --code-bg: oklch(0.2 0.03 295);
    --tok-comment: oklch(0.66 0.03 310);
    --tok-keyword: oklch(0.8 0.13 330);
    --tok-string: oklch(0.83 0.13 150);
    --tok-number: oklch(0.83 0.12 70);
    --tok-function: oklch(0.8 0.11 250);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-sans); font-size: 1.0625rem; line-height: 1.7; color: var(--foreground); background: var(--background); }
.wrap { width: 100%; max-width: 46rem; margin-inline: auto; padding-inline: 1.25rem; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }

.site-header { border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-block: 0.9rem; }
.site-name { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--foreground); text-decoration: none; }
.site-name span { color: var(--primary); }
.site-header nav { display: flex; gap: 1.25rem; font-size: 0.9rem; font-weight: 700; }
.site-header nav a { color: var(--muted-foreground); text-decoration: none; }
.site-header nav a:hover { color: var(--foreground); }
main { padding-block: 2.5rem 4rem; }
.site-footer { border-top: 1px solid var(--border); color: var(--muted-foreground); font-size: 0.9rem; }
.site-footer .wrap { padding-block: 1.5rem; }

.home-intro h1 { margin: 0 0 0.5rem; font-size: clamp(2rem, 6vw, 2.75rem); }
.home-intro p { margin: 0; color: var(--muted-foreground); font-size: 1.1rem; }
.article-meta { margin: 0; color: var(--muted-foreground); font-size: 0.85rem; font-weight: 700; }
.article-list { display: grid; gap: 1rem; margin: 2.5rem 0 0; padding: 0; list-style: none; }
.article-list a { display: block; padding: 1.25rem 1.4rem; border: 1px solid var(--border); border-radius: 1rem; background: var(--card); color: inherit; text-decoration: none; transition: border-color 0.15s, transform 0.15s; }
.article-list a:hover { border-color: var(--primary); transform: translateY(-2px); }
.article-list h2 { margin: 0.25rem 0 0.4rem; font-size: 1.4rem; }
.article-list p:last-child { margin: 0; color: var(--muted-foreground); }

.article-head h1 { margin: 0.4rem 0 0; font-size: clamp(1.9rem, 5.5vw, 2.6rem); }
.article-lead { margin: 1rem 0 0; color: var(--muted-foreground); font-size: 1.2rem; line-height: 1.55; }
.article-head { padding-bottom: 1.75rem; margin-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
.article-foot { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); font-weight: 700; }

.prose h2 { margin: 2.75rem 0 0.75rem; font-size: 1.6rem; }
.prose h3 { margin: 2rem 0 0.5rem; font-size: 1.25rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1rem; }
.prose li { margin-bottom: 0.35rem; }
.prose strong { font-weight: 800; }
.prose img { max-width: 100%; height: auto; border-radius: 0.75rem; }
.prose blockquote { margin: 0 0 1.1rem; padding: 0.1rem 0 0.1rem 1.1rem; border-left: 3px solid var(--primary); color: var(--muted-foreground); }
.prose hr { margin: 2.5rem 0; border: 0; border-top: 1px solid var(--border); }
.prose :not(pre) > code { padding: 0.12em 0.4em; border-radius: 0.35rem; background: var(--code-bg); font-family: var(--font-mono); font-size: 0.88em; overflow-wrap: anywhere; }
.prose pre { margin: 0 0 1.4rem; padding: 1rem 1.1rem; overflow-x: auto; border: 1px solid var(--border); border-radius: 0.75rem; background: var(--code-bg); font-family: var(--font-mono); font-size: 0.85rem; line-height: 1.6; tab-size: 2; }
.prose pre code { font-family: inherit; }
/* Tableaux : défilement horizontal sur mobile plutôt qu'une page qui déborde. */
.prose table { display: block; width: 100%; margin: 0 0 1.4rem; overflow-x: auto; border-collapse: collapse; font-size: 0.93rem; line-height: 1.5; }
.prose th, .prose td { padding: 0.5rem 0.8rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.prose th { font-family: var(--font-display); font-weight: 700; white-space: nowrap; border-bottom-width: 2px; }

/* Coloration du code (Prism, faite à la compilation). */
.token.comment, .token.prolog, .token.doctype, .token.cdata { color: var(--tok-comment); font-style: italic; }
.token.keyword, .token.atrule, .token.tag, .token.selector, .token.important { color: var(--tok-keyword); }
.token.string, .token.attr-value, .token.char, .token.template-string { color: var(--tok-string); }
.token.number, .token.boolean, .token.constant, .token.unit, .token.property { color: var(--tok-number); }
.token.function, .token.class-name, .token.attr-name { color: var(--tok-function); }
.token.punctuation, .token.operator { color: var(--muted-foreground); }

@media (max-width: 30rem) {
  body { font-size: 1rem; }
  .prose pre { margin-inline: -1.25rem; border-inline: 0; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .article-list a { transition: none; } }
.prose td strong { white-space: nowrap; }
