/* Les pelotes de ficelle — olibrio.fr */

:root {
  --ink:      #2b2622;
  --ink-soft: #5c544c;
  --paper:    #faf6ef;
  --paper-2:  #f3ece0;
  --twine:    #b8702f;   /* ficelle / corde */
  --twine-dk: #8f5320;
  --line:     #e3dac9;
  --maxw:     44rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  font-size: 1.18rem;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.4rem; }

/* ---- Header ---- */
.site-head {
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.site-head .wrap { padding-top: 2.4rem; padding-bottom: 2rem; }
.brand {
  display: inline-flex; align-items: baseline; gap: .55rem;
  text-decoration: none; color: var(--ink);
}
.brand .knot { font-size: 1.5rem; line-height: 1; transform: translateY(2px); }
.brand h1 {
  font-size: 1.7rem; margin: 0; letter-spacing: -0.01em; font-weight: 600;
}
.tagline {
  margin: .55rem 0 0;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

/* ---- Layout ---- */
main { padding: 3rem 0 4rem; }

/* ---- Index list ---- */
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.post-list li:first-child { padding-top: 0; }
.post-list a.post-title {
  font-size: 1.5rem; font-weight: 600; color: var(--ink);
  text-decoration: none; line-height: 1.25; display: inline-block;
}
.post-list a.post-title:hover { color: var(--twine-dk); }
.post-meta { color: var(--ink-soft); font-size: .92rem; margin-top: .2rem;
  font-family: ui-sans-serif, system-ui, sans-serif; letter-spacing: .02em; }
.post-excerpt { margin: .6rem 0 0; color: var(--ink-soft); }

/* ---- Article ---- */
article h1.title {
  font-size: 2.3rem; line-height: 1.15; letter-spacing: -0.02em;
  margin: 0 0 .4rem; font-weight: 600;
}
article .subtitle { font-size: 1.25rem; color: var(--ink-soft); font-style: italic; margin: 0 0 1.2rem; }
article .byline { font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .9rem; color: var(--ink-soft); letter-spacing: .03em;
  border-bottom: 1px solid var(--line); padding-bottom: 1.6rem; margin-bottom: 2.2rem; }

article h2 { font-size: 1.7rem; margin: 2.8rem 0 .8rem; letter-spacing: -0.01em; line-height: 1.2; }
article h3 { font-size: 1.32rem; margin: 2.2rem 0 .6rem; color: var(--twine-dk); }
article p { margin: 1.1rem 0; }
article a { color: var(--twine-dk); text-decoration: underline; text-underline-offset: 2px;
  text-decoration-thickness: 1px; text-decoration-color: var(--twine); }
article a:hover { background: #f6e7d4; }

article hr { border: 0; border-top: 1px solid var(--line); margin: 2.6rem 0;
  position: relative; }
article hr::after {
  content: "✦"; position: absolute; top: -.85rem; left: 50%; transform: translateX(-50%);
  background: var(--paper); padding: 0 .8rem; color: var(--twine); font-size: .9rem;
}

article blockquote {
  margin: 1.6rem 0; padding: .2rem 0 .2rem 1.4rem;
  border-left: 3px solid var(--twine); color: var(--ink-soft); font-style: italic;
}
article blockquote p { margin: .5rem 0; }

article ul, article ol { padding-left: 1.4rem; }
article li { margin: .4rem 0; }

article code { background: var(--paper-2); padding: .1em .4em; border-radius: 4px;
  font-size: .9em; font-family: ui-monospace, "SF Mono", Menlo, monospace; }

/* tables */
.table-scroll { overflow-x: auto; margin: 1.6rem 0; }
article table { border-collapse: collapse; width: 100%; font-size: .98rem;
  font-family: ui-sans-serif, system-ui, sans-serif; }
article th, article td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--line); }
article thead th { border-bottom: 2px solid var(--twine); font-weight: 600; }
article tbody tr:nth-child(odd) { background: #f7f1e7; }

/* ---- back link & footer ---- */
.back { font-family: ui-sans-serif, system-ui, sans-serif; font-size: .9rem;
  display: inline-block; margin-bottom: 2rem; text-decoration: none; color: var(--twine-dk); }
.back:hover { text-decoration: underline; }

.site-foot { border-top: 1px solid var(--line); background: var(--paper-2);
  color: var(--ink-soft); font-size: .88rem;
  font-family: ui-sans-serif, system-ui, sans-serif; }
.site-foot .wrap { padding: 2rem 1.4rem; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: .6rem; }

@media (max-width: 640px) {
  body { font-size: 1.08rem; }
  article h1.title { font-size: 1.85rem; }
  article h2 { font-size: 1.42rem; }
}
