:root {
  --ink: #1c1d1a;
  --muted: #6f6f76;
  --canvas: #fdfdfd;
  --surface: #f1f2f4;
  --accent: #d6336c;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #ededE9; --muted: #9b9d95; --canvas: #121311; --surface: #1f201c; --accent: #ff6da5; }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}
main { max-width: 720px; margin: 0 auto; padding: 48px 20px 64px; }
.brand {
  display: inline-block;
  font: 800 34px/1 "SF Pro Display", -apple-system, sans-serif;
  font-stretch: condensed;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 28px;
}
h1 { font-size: 32px; line-height: 1.15; margin: 0 0 8px; }
h2 { font-size: 21px; margin: 36px 0 8px; }
p, li { color: var(--ink); }
.updated, .muted { color: var(--muted); font-size: 15px; }
ul { padding-left: 22px; }
li { margin: 4px 0; }
a { color: var(--accent); }
.card { background: var(--surface); border-radius: 22px; padding: 18px 20px; margin: 20px 0; }
nav { margin-top: 48px; display: flex; gap: 20px; flex-wrap: wrap; font-size: 15px; }

/* Les liens partagés (une publication, un profil : functions/src/share.ts). */
.share { max-width: 520px; padding-top: 28px; }
.share .brand { margin-bottom: 20px; }
.share h1 { font-size: 24px; margin: 0; }
.shot { margin: 0; border-radius: 18px; overflow: hidden; background: var(--surface); }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.who { display: flex; align-items: center; gap: 10px; margin: 16px 0 4px; }
.who a { color: var(--ink); text-decoration: none; }
.caption { margin: 8px 0; white-space: normal; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none;
  display: inline-flex; align-items: center; justify-content: center; background: var(--surface); font-weight: 600;
}
.avatar.big { width: 72px; height: 72px; font-size: 28px; }
.person { display: flex; align-items: center; gap: 16px; }
.name { margin: 2px 0 0; color: var(--muted); }
.counts { display: flex; gap: 18px; color: var(--muted); font-size: 15px; }
.counts strong { color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 12px; }
.grid a { aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; background: var(--surface); }
.grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.open {
  display: block; margin-top: 28px; padding: 14px 20px; border-radius: 999px; text-align: center;
  background: var(--ink); color: var(--canvas); font-weight: 600; text-decoration: none;
}
