/* ==========================================================================
   Chronique — démonstration d'un site à publication régulière.
   S'appuie sur les jetons de ghibon.css (couleurs, typographie, rythme) ;
   ce fichier n'ajoute que la mise en page propre à un carnet de lecture.
   ========================================================================== */

body { background: var(--paper); }

/* --------------------------------------------------------------- En-tête */

.chr-header {
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.chr-header__inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.chr-wordmark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.6rem;
  text-decoration: none;
  color: var(--ink);
  font-variation-settings: 'SOFT' 50, 'WONK' 1;
}
.chr-back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: var(--step--1);
  color: var(--ink-3);
  text-decoration: none;
  transition: color .25s var(--ease);
}
.chr-back:hover { color: var(--terre); }
.chr-back svg { width: .95rem; height: .95rem; }

/* ------------------------------------------------------------------ Hero */

.chr-hero {
  position: relative;
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
  background-size: cover;
  background-position: center;
  color: #fffdf8;
  overflow: hidden;
}
.chr-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,18,15,.35), rgba(20,18,15,.72));
}
.chr-hero__inner { position: relative; z-index: 1; }
.chr-hero__kicker {
  font-size: var(--step--1);
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .82;
  margin-bottom: .8rem;
}
.chr-hero__title {
  font-size: var(--step-4);
  font-style: italic;
  max-width: 16ch;
  margin-bottom: .6rem;
}
.chr-hero__sub { max-width: 42ch; opacity: .88; font-size: var(--step-0); }

/* ----------------------------------------------------------------- Grille */

.chr-main { padding-block: clamp(3rem, 7vw, 5rem); }

.chr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: clamp(1.5rem, 3vw, 2.25rem);
  margin-top: 2rem;
}

.chr-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-raise);
  border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.chr-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: color-mix(in srgb, var(--terre) 40%, var(--line));
}
.chr-card__frame { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-sunk); }
.chr-card__frame img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease);
}
.chr-card:hover .chr-card__frame img { transform: scale(1.06); }
.chr-card__body { padding: 1.4rem 1.5rem 1.6rem; }
.chr-card__date {
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--terre);
  font-weight: 600;
  margin-bottom: .6rem;
  display: block;
}
.chr-card__title {
  font-size: var(--step-1);
  margin-bottom: .55rem;
  line-height: 1.25;
}
.chr-card__excerpt {
  font-size: var(--step--1);
  color: var(--ink-2);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.chr-card__cue {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: var(--step--1);
  font-weight: 550;
  color: var(--ink);
}
.chr-card__cue svg { width: .9rem; height: .9rem; transition: transform .3s var(--ease); }
.chr-card:hover .chr-card__cue svg { transform: translateX(3px); }

.chr-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--ink-3);
}

/* -------------------------------------------------------------- Article */

.chr-article__banner {
  min-height: 46vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  position: relative;
  color: #fffdf8;
}
.chr-article__banner::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,18,15,.15), rgba(20,18,15,.82));
}
.chr-article__banner-inner { position: relative; z-index: 1; padding-block: 3rem 2.5rem; }
.chr-article__meta { font-size: var(--step--1); opacity: .85; margin-bottom: .6rem; }
.chr-article__title { font-size: var(--step-3); max-width: 22ch; }

.chr-prose { padding-block: clamp(2.5rem, 6vw, 4rem) clamp(3rem, 7vw, 5rem); }
.chr-prose__lead {
  font-size: var(--step-1);
  color: var(--ink-2);
  border-left: 3px solid var(--terre);
  padding-left: 1.25rem;
  margin-bottom: 2rem;
}
.chr-prose__body h3 {
  font-size: var(--step-1);
  margin-top: 2rem;
}
.chr-prose__body p, .chr-prose__body ul, .chr-prose__body ol {
  color: var(--ink-2);
  line-height: 1.75;
}
.chr-prose__body ul, .chr-prose__body ol { padding-left: 1.4rem; margin-bottom: 1.2rem; }
.chr-prose__body li { margin-bottom: .4rem; }

.chr-return {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  width: 100%;
  text-decoration: none;
  color: var(--ink);
  font-weight: 550;
}
.chr-return svg { width: 1rem; height: 1rem; }
.chr-return:hover { color: var(--terre); }

/* --------------------------------------------------------------- Pied de page */

.chr-footer {
  border-top: 1px solid var(--line);
  padding-block: 2rem;
  text-align: center;
  font-size: var(--step--1);
  color: var(--ink-3);
}
.chr-footer a { color: var(--terre); text-decoration: none; }
.chr-footer a:hover { text-decoration: underline; }
