:root {
  --bg: #000;
  --text: #e9e9e7;
  --muted: #8d8d89;
  --line: rgba(255, 255, 255, .12);
  --accent: #fff;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 18px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: .2em; text-decoration-thickness: 1px; transition: text-decoration-color .2s; }
a:hover { text-decoration-color: currentColor; }

/* En-tête / pied */
.site-header, .site-footer, main { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.site-header { display: flex; align-items: center; justify-content: space-between; padding-top: 32px; padding-bottom: 32px; }
.brand img { width: 96px; display: block; opacity: .9; transition: opacity .2s; }
.brand:hover img { opacity: 1; }
.site-header nav a { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--muted); }
.site-header nav a:hover { color: var(--text); }
.site-footer { margin-top: 120px; padding-bottom: 48px; font-size: 13px; color: var(--muted); }
.site-footer p { margin: 0; padding-top: 32px; border-top: 1px solid var(--line); }

/* Article */
.post-header { padding: 56px 0 40px; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.post-kicker { margin: 0 0 20px; font-size: 13px; letter-spacing: .04em; color: var(--muted); }
.post-kicker span { display: inline-block; margin-right: 10px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 99px; color: var(--text); text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 500; }
.post-title { margin: 0 0 24px; font: 400 clamp(40px, 7vw, 64px)/1.04 var(--serif); letter-spacing: -.01em; color: #fff; text-wrap: balance; }
.post-lead { margin: 0; font-size: 21px; line-height: 1.6; color: #c9c9c5; text-wrap: pretty; }

.post-body > * { margin: 0 0 1.4em; }
.post-body p { text-wrap: pretty; }
.post-body h2 { margin: 2.4em 0 .7em; font: 400 32px/1.15 var(--serif); color: #fff; }
.post-body strong { color: #fff; font-weight: 600; }
.post-body code { font: 15px/1 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 2px 6px; border-radius: 5px; background: rgba(255, 255, 255, .08); }
.post-body ul { padding-left: 1.2em; }
.post-body li { margin-bottom: .4em; }
.post-body li::marker { color: var(--muted); }
.post-body .sources { font-size: 15px; color: var(--muted); }
.post-back { margin-top: 64px; font-size: 15px; }

/* Index du blog */
.blog-header { padding: 56px 0 48px; border-bottom: 1px solid var(--line); }
.blog-header h1 { margin: 0 0 12px; font: 400 clamp(48px, 9vw, 80px)/1 var(--serif); color: #fff; }
.blog-header p { margin: 0; color: var(--muted); }
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { border-bottom: 1px solid var(--line); }
.post-list a { display: block; padding: 40px 0; text-decoration: none; }
.post-list h2 { margin: 0 0 12px; font: 400 36px/1.1 var(--serif); color: #fff; transition: opacity .2s; }
.post-list a:hover h2 { opacity: .75; }
.post-list p { margin: 0; color: var(--muted); }
.post-list .post-kicker { margin-bottom: 16px; }

/* Vignette ASCII art */
.post-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: radial-gradient(ellipse at center, #111 0%, #000 75%);
  overflow: hidden;
}
.post-cover pre {
  margin: 0;
  font: 400 clamp(7px, 1.95vw, 14px)/1.25 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #d9d9d6;
  opacity: .85;
  transition: opacity .3s, transform .6s cubic-bezier(.2, .8, .2, 1);
}
.post-list a:hover .post-cover pre { opacity: 1; transform: scale(1.03); }

::selection { background: rgba(255, 255, 255, .9); color: #000; }

@media (max-width: 600px) {
  body { font-size: 17px; }
  .post-lead { font-size: 19px; }
  .post-body h2 { font-size: 28px; }
}
