/* just-go // thread — design dédié "fil" (microblog) */
:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --border: #e7e3dc;
  --text: #1c1b19;
  --muted: #6b6760;
  --accent: #b4532a;        /* terracotta, chaud mais sobre */
  --accent-soft: #f3e6df;
  --radius: 14px;
  --maxw: 44rem;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
}
:root[data-theme="dark"] {
  --bg: #14130f;
  --surface: #1c1b17;
  --border: #302e28;
  --text: #ece9e3;
  --muted: #9a958b;
  --accent: #e0855c;
  --accent-soft: #2a211b;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14130f;
    --surface: #1c1b17;
    --border: #302e28;
    --text: #ece9e3;
    --muted: #9a958b;
    --accent: #e0855c;
    --accent-soft: #2a211b;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 1.2rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); padding: .5rem .8rem; border-radius: 8px; z-index: 10; }

/* Header */
.site-head { border-bottom: 1px solid var(--border); position: sticky; top: 0; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); z-index: 5; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: inline-flex; align-items: baseline; gap: .35rem; color: var(--text); font-weight: 650; }
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--accent); font-family: var(--mono); font-weight: 700; }
.site-nav { display: flex; align-items: center; gap: 1rem; font-size: .92rem; }
.site-nav a { color: var(--muted); }
#theme-toggle { background: none; border: 1px solid var(--border); color: var(--muted); border-radius: 8px; width: 32px; height: 32px; cursor: pointer; font-size: 1rem; line-height: 1; }
#theme-toggle:hover { color: var(--text); border-color: var(--accent); }

/* Intro */
.intro { padding: 2.4rem 0 1rem; }
.intro h1 { font-size: 1.7rem; margin: 0 0 .3rem; letter-spacing: -.01em; }
.intro p { color: var(--muted); margin: 0; }

/* Le fil : éditions empilées, reliées par une ligne verticale */
.thread { position: relative; padding: 1rem 0 3rem; }

.edition { position: relative; padding: 1.4rem 0 1.4rem 0; border-top: 1px solid var(--border); }
.edition:first-child { border-top: none; }
.edition-date {
  font-family: var(--mono); font-size: .8rem; letter-spacing: .02em;
  color: var(--muted); text-transform: uppercase; margin: 0 0 .2rem;
}
.edition-title { font-size: 1.15rem; margin: 0 0 1rem; letter-spacing: -.01em; }
.edition-title a { color: var(--text); }
.edition-lede { color: var(--muted); margin: -.6rem 0 1.1rem; }

/* Items d'une édition */
.item {
  display: block; padding: .85rem 0; border-top: 1px dashed var(--border);
}
.item:first-of-type { border-top: none; }
.item-source {
  display: inline-block; font-family: var(--mono); font-size: .72rem;
  color: var(--accent); background: var(--accent-soft);
  padding: .12rem .5rem; border-radius: 999px; margin-bottom: .35rem;
}
.item-title { font-size: 1.02rem; font-weight: 620; margin: 0 0 .25rem; line-height: 1.4; }
.item-title a { color: var(--text); }
.item-why { margin: 0; color: var(--muted); font-size: .96rem; }
.item-why strong { color: var(--text); font-weight: 600; }

.edition-more { margin-top: 1rem; font-size: .9rem; }

/* Page d'une édition seule */
.single .edition { border: none; padding-top: 0; }

/* Footer */
.site-foot { border-top: 1px solid var(--border); margin-top: 2rem; }
.site-foot .wrap { padding-block: 1.4rem; }
.site-foot p { color: var(--muted); font-size: .85rem; margin: 0; }

@media (max-width: 480px) {
  body { font-size: 16px; }
  .intro h1 { font-size: 1.45rem; }
}
