/* p-spot — feuille de style commune à toutes les pages d'article. */

:root {
  --bg: #fbfaf9;
  --fg: #1c1a19;
  --muted: #6b6663;
  --accent: #a8324a;
  --rule: #e6e2df;
  --measure: 40rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17151a;
    --fg: #ece8e6;
    --muted: #a29b98;
    --accent: #e8859b;
    --rule: #322d33;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 1.0625rem/1.7 Georgia, "Iowan Old Style", "Times New Roman", serif;
}

/* ---------- Ossature ---------- */

.wrap {
  max-width: var(--measure);
  margin-inline: auto;
  padding: 0 1.25rem;
}

.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 1.25rem 0;
  margin-bottom: 3rem;
}

.site-header .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-title {
  font: 700 1.25rem/1.2 system-ui, sans-serif;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--fg);
}

.site-nav {
  font: 500 0.875rem/1 system-ui, sans-serif;
  display: flex;
  gap: 1.25rem;
}

.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--accent); }

/* ---------- Article ---------- */

.post-title {
  font: 800 clamp(1.75rem, 5vw, 2.5rem)/1.15 system-ui, sans-serif;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.post-meta {
  font: 0.8125rem/1.6 system-ui, sans-serif;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}

.post-meta .tags { color: var(--muted); }

.post-body > p { margin: 0 0 1.4em; }

.post-body .lede {
  font-size: 1.15em;
  color: var(--fg);
}

.post-body a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.post-body h2 {
  font: 700 1.35rem/1.3 system-ui, sans-serif;
  margin: 2.5rem 0 0.75rem;
}

/* Encadré « où acheter » en fin d'article. */
.buy {
  border: 1px solid var(--rule);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  margin-top: 2.5rem;
  font: 0.9375rem/1.65 system-ui, sans-serif;
}

.buy h2 { margin-top: 0; font-size: 1.05rem; }
.buy ul { margin: 0.5rem 0 0; padding-left: 1.15rem; }
.buy li { margin-bottom: 0.35rem; }
.buy .region { color: var(--muted); }

.disclosure {
  font: italic 0.875rem/1.6 system-ui, sans-serif;
  color: var(--muted);
  border-left: 3px solid var(--rule);
  padding-left: 1rem;
  margin-top: 2rem;
}

.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: 4rem;
  padding: 2rem 0 3rem;
  font: 0.8125rem/1.6 system-ui, sans-serif;
  color: var(--muted);
}
