/* =========================================================
   Fab (@dwarfman78) — micro-blog minimaliste
   Une colonne, une police, une couleur d'accent, aucun filet.
   ========================================================= */
:root {
  --bg: #f7f4ee;
  --ink: #1f1c18;
  --muted: #8a8276;
  --accent: #7a1f1f;
  --soft: #ece7dd;
  --f: "EB Garamond", Garamond, Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171614;
    --ink: #e8e3d9;
    --muted: #8c857a;
    --accent: #d9826f;
    --soft: #24221f;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f);
  font-size: 20px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
::selection { background: var(--accent); color: var(--bg); }

.site-header, .filter, .feed, .more, .site-footer {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* En-tête */
.site-header { position: relative; padding-top: 80px; padding-bottom: 72px; }
.logo { margin: 0; font-size: 34px; font-weight: 600; letter-spacing: .02em; line-height: 1.2; }
.tagline { margin: 4px 0 0; font-style: italic; color: var(--muted); }

/* Recherche discrète, en haut à droite de l'en-tête */
.search { position: absolute; right: 20px; top: 90px; }
.search input {
  width: 7.5em;
  font: inherit; font-size: 16px; font-style: italic;
  padding: 2px 0;
  border: 0; border-bottom: 1px solid transparent; border-radius: 0;
  background: none; color: var(--ink);
  text-align: right;
  outline: none;
  transition: width .25s, border-color .25s;
  -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: var(--muted); opacity: .7; }
.search input:hover::placeholder { opacity: 1; }
.search input:focus, .search input:not(:placeholder-shown) { width: 12em; border-bottom-color: var(--soft); }
.search input::-webkit-search-cancel-button { display: none; }

/* Filtre actif (hashtag ou recherche) */
.filter { margin-top: -40px; margin-bottom: 48px; font-size: 17px; font-style: italic; color: var(--muted); }
.filter a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Fil */
.post + .post { margin-top: 36px; }
/* petit trait court entre deux pensées, au milieu de l'espace */
.post + .post::before {
  content: ""; display: block;
  width: 40px; height: 1px;
  margin: 0 auto 36px;
  background: var(--muted); opacity: .45;
}
.post__date { display: block; margin-top: 2px; font-size: 16px; font-style: italic; color: var(--muted); }
.post__date:hover { color: var(--accent); }
.post__title { margin: 0; font-size: 26px; font-weight: 600; line-height: 1.25; }
.post__img { margin-top: 18px; border-radius: 4px; }
.post .prose { margin-top: 8px; }
.post__tags { margin: 10px 0 0; font-size: 17px; }
.hashtag { color: var(--muted); }
.prose a.hashtag { color: var(--muted); text-decoration: none; }
.hashtag:hover, .prose a.hashtag:hover { color: var(--accent); }

/* Contenu */
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p { margin: 0 0 .9em; }
.prose h2, .prose h3 { font-size: 1.1em; font-weight: 600; margin: 1.6em 0 .4em; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose img { margin: 1.2em 0; border-radius: 4px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose blockquote { margin: 1.2em 0; padding-left: 1em; border-left: 2px solid var(--soft); font-style: italic; color: var(--muted); }
.prose hr { border: 0; margin: 2em 0; text-align: center; color: var(--muted); }
.prose hr::after { content: "· · ·"; }
.prose code { font-family: ui-monospace, monospace; font-size: .8em; background: var(--soft); padding: 1px 5px; border-radius: 3px; }
.prose pre { background: var(--soft); padding: 16px 18px; overflow-x: auto; border-radius: 4px; }
.prose pre code { background: none; padding: 0; }

/* Pagination */
.more { margin-top: 72px; }
.btn {
  font: inherit; font-style: italic; font-size: 17px;
  padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--muted);
}
.btn:hover { color: var(--accent); }
.btn[hidden] { display: none; }

.empty, .loading { margin: 0; font-style: italic; color: var(--muted); }
.loading::after { content: "…"; }

/* Pied de page */
.site-footer { padding-top: 96px; padding-bottom: 64px; font-size: 16px; color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

@media (max-width: 600px) {
  body { font-size: 19px; }
  .site-header { padding-top: 48px; padding-bottom: 52px; }
  .logo { font-size: 30px; }
  .search { position: static; margin-top: 16px; }
  .search input { text-align: left; width: 100%; border-bottom-color: var(--soft); }
  .search input:focus, .search input:not(:placeholder-shown) { width: 100%; }
  .filter { margin-top: -24px; margin-bottom: 36px; }
  .post + .post { margin-top: 28px; }
  .post + .post::before { margin-bottom: 28px; }
}
