:root {
  color-scheme: dark;
  --ink: #101318;
  --paper: #eeeae1;
  --muted: #9c9b97;
  --line: rgba(238, 234, 225, 0.16);
  --accent: #8f2c2c;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--ink); }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 52% 38%, rgba(255,255,255,0.026), transparent 36rem),
    var(--ink);
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.site-shell {
  width: min(100% - 64px, 1320px);
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.site-header {
  min-height: 116px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  text-transform: uppercase;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: 0.27em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  padding: 10px 0;
  color: var(--muted);
  text-decoration: none;
  transition: color 180ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav .is-current { color: var(--paper); }

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav .is-current::after {
  transform: scaleX(1);
  transform-origin: left;
}

.home-main {
  display: grid;
  place-items: center;
  padding: 88px 0;
}

.reveal {
  width: min(100%, 880px);
  text-align: center;
}

.eyebrow {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 38px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--muted);
  font: 0.64rem/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

.reveal h1,
.author-note h1 {
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.reveal h1 {
  font-size: clamp(2.15rem, 5.2vw, 5.15rem);
  line-height: 1.08;
}

.second-line {
  margin: 54px 0 0;
  color: #c6c2ba;
  font-size: clamp(1.22rem, 2.3vw, 2rem);
  line-height: 1.4;
}

.fragment {
  margin: 60px 0 0;
  color: var(--muted);
  font: 0.68rem/1.5 Arial, Helvetica, sans-serif;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.fragment span { color: var(--accent); }

.author-main {
  display: grid;
  align-items: center;
  padding: 88px 0 104px;
}

.author-note {
  width: min(100%, 760px);
  margin-left: clamp(0px, 8vw, 120px);
}

.section-label {
  margin: 0 0 24px;
  color: var(--accent);
  font: 0.68rem/1.4 Arial, Helvetica, sans-serif;
  letter-spacing: 0.27em;
  text-transform: uppercase;
}

.author-note h1 {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  line-height: 1;
}

.author-copy {
  max-width: 650px;
  margin-top: 38px;
  color: #c9c6be;
  font-size: clamp(1.08rem, 1.6vw, 1.36rem);
  line-height: 1.72;
}

.author-copy p { margin: 0 0 1.25em; }

.contact-link {
  display: inline-block;
  margin-top: 18px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--accent);
  font: 0.72rem/1.4 Arial, Helvetica, sans-serif;
  letter-spacing: 0.17em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-footer {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: #737470;
  font: 0.64rem/1.4 Arial, Helvetica, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-footer a { text-decoration: none; }
.site-footer a:hover,
.site-footer a:focus-visible { color: var(--paper); }

a:focus-visible {
  outline: 1px solid var(--paper);
  outline-offset: 5px;
}

@media (max-width: 620px) {
  .site-shell { width: min(100% - 36px, 1320px); }

  .site-header {
    min-height: 96px;
    gap: 20px;
  }

  .site-nav {
    gap: 18px;
    font-size: 0.61rem;
    letter-spacing: 0.12em;
  }

  .wordmark { font-size: 0.7rem; }
  .home-main {
    place-items: start center;
    padding: clamp(72px, 10vh, 110px) 0 88px;
  }

  .reveal h1 {
    max-width: 23rem;
    margin-inline: auto;
    font-size: clamp(1.85rem, 8.7vw, 2.4rem);
    line-height: 1.1;
  }

  .eyebrow { margin-bottom: 34px; }

  .second-line {
    max-width: 22rem;
    margin: 42px auto 0;
    font-size: clamp(1.1rem, 4.8vw, 1.28rem);
    line-height: 1.48;
  }

  .fragment { margin-top: 48px; }

  .author-main { padding: 68px 0 80px; }
  .author-note { margin-left: 0; }
  .author-copy { line-height: 1.62; }

  .site-footer {
    min-height: 78px;
    font-size: 0.57rem;
    letter-spacing: 0.13em;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Extension de la première charte : mêmes couleurs, polices et rythme. */
.site-nav { flex-wrap: wrap; justify-content: flex-end; column-gap: clamp(18px, 2.3vw, 34px); row-gap: 0; }
.site-nav a { white-space: nowrap; }
.home-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 42px; margin-top: 55px; }
.home-links a, .text-link, .next-link a {
  border-bottom: 1px solid var(--accent);
  padding-bottom: 8px;
  font: 0.7rem/1.4 Arial, Helvetica, sans-serif;
  letter-spacing: .13em;
  text-decoration: none;
  text-transform: uppercase;
}
.editorial-page {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 128px) 0 140px;
}
.narrow-page { max-width: 760px; }
.editorial-page h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.9rem, 6vw, 5.7rem);
  font-weight: 400;
  letter-spacing: -.028em;
  line-height: 1.04;
}
.page-intro {
  max-width: 680px;
  margin: 38px 0 60px;
  color: #c9c6be;
  font-size: clamp(1.15rem, 2.1vw, 1.55rem);
  line-height: 1.55;
}
.rule-section {
  max-width: 730px;
  margin: 55px 0;
  padding-top: 38px;
  border-top: 1px solid var(--line);
  color: #c9c6be;
  font-size: 1.25rem;
  line-height: 1.7;
}
.rule-section p { margin: 0 0 1.2em; }
.book-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 30px;
  align-items: center;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.book-row:hover strong, .book-row:focus-visible strong { color: #fff; }
.book-mark {
  display: grid;
  place-items: center;
  width: 88px;
  height: 116px;
  border: 1px solid var(--line);
  box-shadow: inset 3px 0 var(--accent);
  font-size: 2rem;
  color: var(--muted);
}
.book-info { display: flex; flex-direction: column; gap: 12px; color: var(--muted); font-size: 1.08rem; }
.book-info strong { color: var(--paper); font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 400; line-height: 1.15; }
.kicker, .quiet-note, .back-link, .note-meta, .note-byline, .editorial-disclosure {
  color: var(--muted);
  font: .7rem/1.6 Arial, Helvetica, sans-serif;
  letter-spacing: .09em;
}
.kicker { color: #ad6764; text-transform: uppercase; }
.quiet-note { margin-top: 34px; }
.back-link { display: inline-block; margin: 0 0 56px; text-decoration: none; text-transform: uppercase; }
.back-link:hover, .text-link:hover, .next-link a:hover { color: white; }
.next-link { display: flex; flex-wrap: wrap; gap: 30px; }
.mail-address { color: var(--paper); text-decoration-color: var(--accent); text-underline-offset: 7px; word-break: break-word; }
.editorial-disclosure {
  max-width: 730px;
  margin: -22px 0 68px;
  padding-left: 18px;
  border-left: 1px solid var(--accent);
  letter-spacing: .03em;
  line-height: 1.7;
}
.notes-list { max-width: 810px; }
.note-entry { padding: 43px 0 65px; border-top: 1px solid var(--line); scroll-margin-top: 30px; }
.note-meta { margin: 0 0 21px; color: #b8a9a3; text-transform: uppercase; }
.note-separator { color: var(--accent); padding: 0 9px; }
.note-entry h2 { margin: 0; font-size: clamp(1.9rem, 3.5vw, 3.1rem); line-height: 1.18; font-weight: 400; letter-spacing: -.02em; }
.note-byline { margin: 17px 0 27px; color: #797a77; }
.note-copy { max-width: 680px; color: #c9c6be; font-size: clamp(1.08rem, 1.65vw, 1.25rem); line-height: 1.7; }
.note-copy p { margin: 0 0 1.15em; }
.compact-notes { border-top: 1px solid var(--line); }
.compact-note { display: block; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.compact-note .note-meta { display: block; margin-bottom: 7px; }
.compact-note strong { display: block; font-size: 1.4rem; font-weight: 400; }
.compact-note:hover strong { color: white; }
.rule-section .section-label { font-size: .68rem; color: var(--accent); }
.rule-section .text-link { display: inline-block; margin-top: 23px; }
@media (max-width: 900px) {
  .site-header { align-items: flex-start; flex-direction: column; justify-content: center; gap: 15px; padding: 24px 0; }
  .site-nav { justify-content: flex-start; }
}
@media (max-width: 620px) {
  .site-header { min-height: 118px; gap: 18px; }
  .site-nav { gap: 6px 16px; font-size: .6rem; }
  .site-nav a { padding: 4px 0; }
  .site-nav a::after { bottom: 0; }
  .home-links { margin-top: 42px; gap: 19px; }
  .editorial-page { padding: 63px 0 92px; }
  .page-intro { margin: 30px 0 48px; }
  .rule-section { font-size: 1.12rem; }
  .book-row { grid-template-columns: 53px 1fr auto; gap: 15px; padding: 27px 0; }
  .book-mark { width: 48px; height: 70px; font-size: 1.4rem; }
  .book-info { font-size: .96rem; }
  .note-entry { padding: 34px 0 47px; }
  .editorial-disclosure { margin-bottom: 47px; }
}
