/* Jean de Dieu Ndayikeza: site styles (v2)

   Palette: ink, paper and red, plus a red-tinted "blush" for soft panels.
   Type: Bricolage Grotesque for headings, buttons and navigation;
         Newsreader for everything you read.
   Motif: the red sun. Hope rising. It appears once big (behind the hero photo)
          and then small: the logo dot, talk bullets, the route, the timeline. */

:root {
  /* v2.1: softer pairing. A warm charcoal instead of pure black, and a deeper,
     less neon red, so the two sit together calmly instead of vibrating. */
  --ink: #24201e;        /* warm charcoal: text and dark sections (16:1 on white) */
  --paper: #ffffff;
  --red: #c4452f;        /* white text on it: 4.95:1 */
  --red-deep: #a63826;   /* hover, small red text */
  --blush: #f8e7e1;      /* soft red-white for panels and tags */
  --stone: #6b6460;      /* secondary text on paper (5.8:1) */
  --ash: #b3aca5;        /* secondary text on ink (7.2:1) */
  --line: #ece6e2;
  --line-ink: #3b3633;

  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
::selection { background: var(--red); color: #fff; }

/* ---------- language switch ---------- */
html[data-lang="fr"] [data-l="en"],
html:not([data-lang="fr"]) [data-l="fr"] { display: none !important; }

/* ---------- layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.section { padding: 128px 0; }
.ink { background: var(--ink); color: #fff; }

/* ---------- type ---------- */
.h1, .h2, .h3 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.032em;
  line-height: .96;
  margin: 0;
  text-wrap: balance;
}
.h1 { font-size: clamp(54px, 8vw, 112px); }
.h2 { font-size: clamp(40px, 5.4vw, 72px); }
.h3 { font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -.03em; line-height: 1.02; }
html[data-lang="fr"] .h1, html[data-lang="fr"] .h2 { line-height: 1; }

.lead { font-size: clamp(20px, 1.7vw, 23px); line-height: 1.5; max-width: 32em; }
.muted { color: var(--stone); }
.ink .muted { color: var(--ash); }
.small { font-size: 16px; color: var(--stone); }

.sun { display: inline-block; border-radius: 50%; background: var(--red); flex: none; }

.text-link {
  font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -.005em;
  text-decoration: underline; text-decoration-thickness: 2px;
  text-underline-offset: 7px; text-decoration-color: var(--red);
  transition: color .15s, text-decoration-color .15s;
}
.text-link:hover { color: var(--red); }
.ink .text-link:hover { color: #fff; text-decoration-color: #fff; }

.prose-link {
  text-decoration: underline; text-decoration-thickness: 1.5px;
  text-underline-offset: 4px; text-decoration-color: var(--red);
}
.prose-link:hover { color: var(--red); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: -.005em;
  line-height: 1; text-decoration: none; white-space: nowrap;
  background: var(--red); color: #fff;
  padding: 18px 28px; border-radius: 999px; border: 0;
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--red-deep); }
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--ink); }
.btn-ink:hover { background: #3b3633; }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--red); outline-offset: 4px; border-radius: 4px;
}
.btn:focus-visible { border-radius: 999px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.6) blur(12px); backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 19px; letter-spacing: -.02em;
  text-decoration: none; white-space: nowrap;
}
.brand-logo { width: 40px; height: 40px; flex: none; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  font-size: 17px; font-weight: 500; text-decoration: none; color: var(--stone);
  padding: 6px 0;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--red);
  text-decoration-thickness: 2px; text-underline-offset: 8px;
}
.nav-actions { display: flex; align-items: center; gap: 18px; }
/* language dropdown */
.lang { position: relative; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 10px 8px 11px; cursor: pointer; transition: border-color .15s, background .15s;
}
.lang-toggle:hover, .lang-toggle[aria-expanded="true"] { border-color: #d6cec8; background: #faf7f5; }
.lang-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lang-globe { color: var(--stone); }
.lang-chevron { width: 14px !important; height: 14px !important; color: var(--stone); transition: transform .15s; }
.lang-toggle[aria-expanded="true"] .lang-chevron { transform: rotate(180deg); }
.lang-list {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20;
  list-style: none; margin: 0; padding: 6px; min-width: 170px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 2px 4px rgba(36,32,30,.06), 0 16px 32px -12px rgba(36,32,30,.25);
}
.lang-list[hidden] { display: none; }
.lang-list button {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  font: inherit; font-size: 16px; font-weight: 500; color: var(--ink); text-align: left;
  background: none; border: 0; border-radius: 9px; padding: 10px 12px; cursor: pointer;
}
.lang-list button:hover, .lang-list button:focus-visible { background: var(--blush); outline: none; }
.lang-list button[aria-pressed="true"] { font-weight: 700; }
.lang-list button[aria-pressed="true"]::after {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none;
}
.nav .btn { padding: 13px 20px; font-size: 15px; }

/* ---------- home: hero ---------- */
.hero { overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.08fr .92fr; gap: 24px;
  min-height: min(calc(100vh - 76px), 820px);
}
.hero-copy { align-self: center; padding: 88px 0 96px; position: relative; z-index: 1; }
.hero-hello { font-style: italic; font-size: 22px; color: var(--ash); margin: 0 0 22px; }
.hero .h1 { font-size: clamp(56px, 7.2vw, 104px); line-height: .92; letter-spacing: -.038em; }
html[data-lang="fr"] .hero .h1 { line-height: .96; }
.hero .lead { color: #e2dcd5; margin: 34px 0 40px; max-width: 29em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; }

.hero-visual {
  position: relative; align-self: center; justify-self: end;
  width: 100%; max-width: 480px; margin: 72px 0;
}
/* the sun now rises behind the photo's top-right corner */
.hero-sun {
  position: absolute; right: -14%; top: -9%; width: 52%; aspect-ratio: 1;
  border-radius: 50%; background: var(--red);
  animation: rise 1.6s cubic-bezier(.16, .8, .24, 1) .2s both;
}
.hero-visual img {
  position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
}
@keyframes rise {
  from { transform: translateY(30%); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

/* ---------- home: intro sentence ---------- */
.intro { padding: 112px 0 0; }
.intro-text {
  font-size: clamp(26px, 2.9vw, 40px); line-height: 1.32; letter-spacing: -.012em;
  max-width: 25em; margin: 0;
}
.intro-text .prose-link { text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* ---------- home: talks ---------- */
.talks { display: grid; grid-template-columns: .9fr 1.1fr; gap: 96px; align-items: start; }
.talks-head { position: sticky; top: 124px; }
.talks-head .lead { margin: 28px 0 0; }
.formats { margin: 28px 0 0; font-size: 17px; color: var(--stone); max-width: 28em; }
.talk-list { list-style: none; margin: 0; padding: 0; }
.talk { position: relative; padding: 0 0 0 40px; }
.talk + .talk { margin-top: 56px; }
.talk .sun { position: absolute; left: 0; top: .42em; width: 16px; height: 16px; }
.talk h3 {
  font-family: var(--display); font-weight: 700; font-size: clamp(28px, 2.6vw, 36px);
  line-height: 1.05; letter-spacing: -.03em; margin: 0 0 12px;
}
.talk p { margin: 0; color: var(--stone); max-width: 30em; }

/* ---------- home: quote ---------- */
.quote { background: var(--red); color: #fff; padding: 136px 0 128px; }
.quote-text {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(46px, 7vw, 100px); line-height: .95; letter-spacing: -.038em;
  max-width: 11.5em; margin: 0; text-wrap: balance;
}
html[data-lang="fr"] .quote-text { line-height: 1; }
.quote .text-link { display: inline-block; margin-top: 48px; text-decoration-color: #fff; }
.quote .text-link:hover { color: #fff; text-decoration-color: var(--ink); }
.quote a:focus-visible { outline-color: #fff; }

/* ---------- book (both pages) ---------- */
.book { padding: 128px 0 136px; }
.book-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 72px; align-items: center; }
.book .h1 { margin-bottom: 48px; }
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.path {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 36px 32px 32px; border-radius: 22px;
}
.path h3 {
  font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1.08;
  letter-spacing: -.03em; margin: 0 0 12px;
}
.path p { margin: 0 0 28px; font-size: 18px; }
.path .btn { margin-top: auto; }
.path-ink { background: var(--ink); color: #fff; }
.path-ink p { color: #e2dcd5; }
.path-blush { background: var(--blush); }
.path-blush p { color: #4d4643; }
.path .path-note { font-size: 15px; margin: 14px 0 0; }
.path-ink .path-note { color: var(--ash); }
.path-blush .path-note { color: #6b6460; }
.book-wide .paths { max-width: 920px; }

/* photographs treated as prints */
.print {
  margin: 0; background: #fff; padding: 12px 12px 14px;
  box-shadow: 0 1px 2px rgba(36,32,30,.08), 0 18px 40px -18px rgba(36,32,30,.32);
  transform: rotate(var(--tilt, 2deg));
}
.print img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.print figcaption {
  font-style: italic; font-size: 16px; color: var(--stone); line-height: 1.3; padding: 12px 4px 0;
}
.book .print { width: 100%; max-width: 400px; justify-self: end; --tilt: 2.5deg; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--ash); font-family: var(--display); font-size: 15px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 36px; padding-bottom: 36px; }
.footer-name { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; }
.footer-logo { width: 30px; height: 30px; flex: none; }
.footer a { text-decoration: none; }
.footer-social { display: flex; align-items: center; gap: 20px; }
.footer-social a { display: inline-flex; color: var(--ash); padding: 4px; margin: -4px; transition: color .15s; }
.footer-social a:hover { color: #fff; }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; display: block; }

/* ---------- about: hero ---------- */
.about-hero { padding: 104px 0 96px; }
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 80px; align-items: center; }
.about-hero .lead { margin: 36px 0 0; color: #3f3936; }
.about-hero .print { --tilt: -2deg; width: 100%; max-width: 430px; justify-self: end; }

/* ---------- about: route ---------- */
.route-section { padding: 40px 0 24px; }
.route { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.route::before {
  content: ""; position: absolute; top: 20px; left: 8px; right: 25%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 9px, transparent 9px 16px);
}
.stop { position: relative; padding-right: 24px; }
.stop-dot {
  display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--ink);
  margin: 13px 0 26px; position: relative;
}
.stop-end .stop-dot { width: 42px; height: 42px; margin: 0 0 13px; background: var(--red); }
.stop-place { display: block; font-family: var(--display); font-weight: 700; font-size: 28px; letter-spacing: -.03em; line-height: 1.1; }
.stop-note { display: block; font-size: 17px; color: var(--stone); margin-top: 4px; max-width: 14em; }

/* ---------- about: why ---------- */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.pull {
  font-family: var(--display); font-weight: 700; font-size: clamp(32px, 3.6vw, 50px);
  line-height: 1.04; letter-spacing: -.035em; margin: 0; text-wrap: balance;
}
.why-body { font-size: 21px; line-height: 1.55; color: #3f3936; }
.signature { font-style: italic; font-size: 24px; color: var(--ink); margin: 28px 0 0; }

/* ---------- about: timeline ---------- */
.timeline-head { margin-bottom: 72px; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; top: 10px; bottom: 10px; left: 207px; width: 2px; background: var(--line);
}
.chapter {
  position: relative; display: grid; grid-template-columns: 180px 1fr; gap: 72px;
  padding: 0 0 72px;
}
.chapter:last-child { padding-bottom: 0; }
.chapter::before {
  content: ""; position: absolute; left: 201px; top: 9px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 6px var(--paper);
}
.chapter:last-child::before { background: var(--red); width: 26px; height: 26px; left: 195px; top: 3px; }
.chapter-when { text-align: right; }
.chapter-year { display: block; font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -.03em; line-height: 1.1; color: var(--red); }
.chapter-place { display: block; font-style: italic; font-size: 17px; color: var(--stone); margin-top: 2px; }
.chapter h3 {
  font-family: var(--display); font-weight: 700; font-size: clamp(26px, 2.5vw, 34px);
  line-height: 1.08; letter-spacing: -.03em; margin: 0 0 12px;
}
.chapter p { color: #4d4643; max-width: 34em; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag {
  font-family: var(--display); font-size: 14px; font-weight: 600;
  background: var(--blush); color: var(--red-deep); padding: 6px 13px; border-radius: 999px;
}
.chapter .text-link { display: inline-block; margin-top: 20px; font-size: 17px; }
.chapter .print { width: 100%; max-width: 340px; margin-top: 32px; --tilt: -1.5deg; }

/* ---------- about: beliefs ---------- */
.beliefs { list-style: none; margin: 0; padding: 0; }
.beliefs li {
  display: grid; grid-template-columns: 56px 1fr; align-items: baseline;
  font-family: var(--display); font-weight: 800; font-size: clamp(34px, 5.2vw, 72px);
  line-height: 1; letter-spacing: -.035em; text-wrap: balance;
  padding: 44px 0; border-top: 1px solid var(--line-ink);
}
.beliefs li:last-child { border-bottom: 1px solid var(--line-ink); }
.beliefs .sun { width: 20px; height: 20px; transform: translateY(-.12em); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .talks { grid-template-columns: 1fr; gap: 64px; }
  .talks-head { position: static; }
  .book-grid { grid-template-columns: 1fr; gap: 56px; }
  .book .print { justify-self: start; max-width: 340px; }
}
@media (max-width: 900px) {
  .section { padding: 96px 0; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .hero-copy { padding: 64px 0 40px; }
  .hero-visual { justify-self: start; max-width: 420px; margin: 8px 0 72px; }
  .about-hero { padding: 64px 0 72px; }
  .about-grid, .why { grid-template-columns: 1fr; gap: 48px; }
  .about-hero .print { justify-self: start; max-width: 380px; }
  .route { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .route::before { display: none; }
  .paths { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 18px; }
  .wrap { padding: 0 20px; }
  .section { padding: 80px 0; }
  .nav-inner {
    height: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 12px; column-gap: 12px; padding-top: 14px; padding-bottom: 14px;
  }
  .brand { grid-column: 1; grid-row: 1; font-size: 16px; gap: 10px; }
  .brand-logo { width: 34px; height: 34px; }
  .nav-actions { display: contents; }
  .nav .lang { grid-column: 2; grid-row: 1; justify-self: end; }
  .nav-links { grid-column: 1; grid-row: 2; margin: 0; gap: 20px; }
  .nav .btn { grid-column: 2; grid-row: 2; justify-self: end; padding: 11px 16px; font-size: 14px; }
  .hero-hello { font-size: 19px; }
  .hero .lead { margin: 26px 0 32px; }
  .intro { padding-top: 80px; }
  .talk { padding-left: 32px; }
  .talk + .talk { margin-top: 44px; }
  .quote { padding: 96px 0; }
  .book { padding: 96px 0; }
  .book .h1 { margin-bottom: 36px; }
  .path { padding: 28px 24px 26px; border-radius: 18px; }
  .route { grid-template-columns: 1fr; row-gap: 0; padding-left: 4px; }
  .stop { display: grid; grid-template-columns: 52px 1fr; padding: 0 0 28px; }
  .stop-dot { grid-row: 1 / 3; margin: 8px 0 0 13px; }
  .stop-end .stop-dot { margin: 0; }
  .stop-place { font-size: 26px; }
  .timeline::before { left: 6px; }
  .chapter { grid-template-columns: 1fr; gap: 10px; padding: 0 0 56px 40px; }
  .chapter::before { left: 0; top: 7px; }
  .chapter:last-child::before { left: -6px; top: 1px; }
  .chapter-when { text-align: left; display: flex; align-items: baseline; gap: 10px; }
  .chapter-year { font-size: 22px; }
  .chapter-place { margin: 0; }
  .beliefs li { grid-template-columns: 36px 1fr; padding: 32px 0; }
  .beliefs .sun { width: 14px; height: 14px; }
  .footer-inner { flex-direction: column; align-items: flex-start; padding-top: 28px; padding-bottom: 28px; }
}
@media (max-width: 380px) {
  .nav .btn { padding: 10px 13px; }
  .nav-links { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-sun { animation: none; }
  * { transition: none !important; }
}
