:root {
  --paper: #fbfaf6;
  --ink: #121212;
  --ink-soft: #4a4a4a;
  --rule: #121212;
  --rule-soft: #d8d4c8;
  --accent: #7a1f1f;
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --black: "UnifrakturCook", "Old English Text MT", serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #161513;
    --ink: #ece9e1;
    --ink-soft: #a9a59b;
    --rule: #ece9e1;
    --rule-soft: #3a3832;
    --accent: #e08a7a;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
a:hover h1, a:hover h3, h1 a:hover, h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
main, .masthead, footer { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* En-tête */
.masthead { text-align: center; padding-top: 12px; }
.masthead .meta {
  display: flex; justify-content: space-between; gap: 12px;
  font-family: var(--sans); font-size: 12px; color: var(--ink-soft);
  border-bottom: 1px solid var(--rule-soft); padding-bottom: 8px;
}
.masthead .meta .ed { font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: .06em; }
.masthead .title {
  display: block; font-family: var(--black); font-weight: 700;
  font-size: clamp(40px, 8vw, 84px); line-height: 1.05; margin: 18px 0 4px;
}
.masthead .motto { font-style: italic; font-size: 14px; color: var(--ink-soft); margin: 0 0 12px; }
.masthead nav {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 28px;
  border-top: 1px solid var(--rule); border-bottom: 3px double var(--rule);
  padding: 9px 0; font-family: var(--sans); font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em;
}
.masthead nav a[aria-current="page"] { color: var(--accent); }

/* Éléments communs */
.kicker {
  display: block; font-family: var(--sans); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 6px;
}
.chapo { color: var(--ink-soft); margin: 6px 0 10px; }
.sources { font-family: var(--sans); font-size: 12px; color: var(--ink-soft); }
.sources a { text-decoration: underline; text-underline-offset: 2px; }
.more { font-family: var(--sans); font-size: 13px; font-weight: 700; text-decoration: underline; }
.banner {
  font-family: var(--sans); font-size: 13px; background: var(--rule-soft);
  padding: 8px 12px; margin: 16px 0 0;
}
.banner a { text-decoration: underline; }

/* La une */
.une {
  display: grid; grid-template-columns: 2fr 1fr; gap: 0;
  padding: 22px 0; border-bottom: 1px solid var(--rule);
}
.lead { padding-right: 24px; border-right: 1px solid var(--rule-soft); }
.lead h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.12; margin: 0 0 8px; font-weight: 700; }
.lead .chapo { font-size: 19px; }
.side { padding-left: 24px; }
.side .resume { font-size: 15px; margin-top: 0; padding-bottom: 14px; border-bottom: 1px solid var(--rule-soft); }
.side .card { padding: 14px 0; border-bottom: 1px solid var(--rule-soft); }
.side .card:last-child { border-bottom: 0; }

/* Rubriques */
.rubrique { padding: 18px 0 8px; border-bottom: 1px solid var(--rule); }
.rubrique h2 {
  font-family: var(--sans); font-size: 14px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; margin: 0 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--rule-soft);
}
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.grid .card { padding: 0 18px 18px; border-left: 1px solid var(--rule-soft); }
.grid .card:nth-child(3n+1) { padding-left: 0; border-left: 0; }
.card h3 { font-size: 20px; line-height: 1.2; margin: 0; }
.card-md h3 { font-size: 22px; }
.card .chapo { font-size: 15px; }

/* Pages rubrique, article, archives */
.page-title {
  font-family: var(--serif); font-size: 34px; text-align: center; margin: 22px 0 18px;
  padding-bottom: 12px; border-bottom: 1px solid var(--rule);
}
.lead-solo { border-right: 0; padding: 0 0 20px; max-width: 760px; margin: 0 auto 20px; border-bottom: 1px solid var(--rule-soft); }
.article { max-width: 720px; margin: 32px auto; }
.article h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.1; margin: 4px 0 12px; }
.article .chapo { font-size: 20px; }
.byline { font-family: var(--sans); font-size: 13px; color: var(--ink-soft); border-top: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); padding: 8px 0; }
.corps p { font-size: 19px; line-height: 1.65; }
.corps p:first-child::first-letter { float: left; font-size: 3.4em; line-height: .9; padding: 4px 8px 0 0; font-weight: 700; }
.archives .day { border-bottom: 1px solid var(--rule-soft); padding: 8px 0 14px; }
.archives h3 { font-size: 18px; margin: 10px 0 6px; }
.archives ul { list-style: none; margin: 0; padding: 0; }
.archives li { padding: 4px 0; }
.archives li a:hover { text-decoration: underline; }
.archives .slot { display: inline-block; min-width: 54px; font-family: var(--sans); font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--accent); }
.waiting { text-align: center; padding: 70px 0; }
.waiting h1 { font-size: 34px; }
.error { font-family: var(--sans); font-size: 13px; color: var(--accent); }
.empty { color: var(--ink-soft); font-style: italic; }

footer { text-align: center; font-family: var(--sans); font-size: 12px; color: var(--ink-soft); padding-top: 24px; padding-bottom: 40px; }
footer .title-sm { font-family: var(--black); font-size: 26px; color: var(--ink); }

@media (max-width: 860px) {
  .une { grid-template-columns: 1fr; }
  .lead { padding-right: 0; border-right: 0; padding-bottom: 18px; border-bottom: 1px solid var(--rule-soft); }
  .side { padding-left: 0; }
  .grid { grid-template-columns: 1fr; }
  .grid .card { padding: 14px 0; border-left: 0; border-bottom: 1px solid var(--rule-soft); }
  .grid .card:last-child { border-bottom: 0; }
  .masthead .meta { flex-wrap: wrap; justify-content: center; }
}
