/* charlespaumelle.com — editorial minimalism.
   Colours from the same Breton family as Trevarn (Sand, Ink, Storm, Aour Glaz flax blue, Aour Balan
   broom gold) at text-safe depths; typography is personal: system fonts only (no downloads, no third
   parties), a book serif for headings and the platform sans for text. tools/check.mjs verifies that
   every text colour pair meets WCAG AA. */
:root {
  --paper: #f5f1eb;      /* Sand */
  --paper-alt: #ede7dd;  /* Sand, one step deeper */
  --ink: #11181c;        /* Ink */
  --muted: #4b5d64;      /* Storm, deepened for body-size contrast on Sand */
  --rule: #ddd5c7;
  --accent: #2a4470;     /* Aour Glaz 900 */
  --gold: #7a5c17;       /* Aour Balan, deepened for small caps on Sand */
  --gold-art: #b8862e;   /* Aour Balan 700, drawings only (not text) */
  --accent-ink: #ffffff;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Charter, "Bitstream Charter", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 68rem;
  --narrow: 44rem;
  --space: clamp(4rem, 9vw, 7.5rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1.0625rem/1.65 var(--sans);
  text-rendering: optimizeLegibility; font-kerning: normal; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); max-width: 22em; text-wrap: balance; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.narrow h2 { max-width: 18em; }   /* same left edge as every section; only the measure is narrower */
.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--ink); color: var(--paper); padding: 0.5rem 0.8rem; z-index: 10; }
.skip:focus { left: 0.5rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: saturate(1.4) blur(6px); border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 3.75rem; }
.brand { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav { margin-left: auto; }
.nav ul, .lang ul { display: flex; gap: 1.4rem; align-items: center; }
.nav a, .lang a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav a:hover, .lang a:hover { color: var(--ink); text-decoration: underline; }
.lang ul { gap: 0.45rem; color: var(--rule); font-size: 0.9rem; }
.lang a { letter-spacing: 0.06em; font-size: 0.85rem; padding: 0.35rem 0.15rem; }
.lang a[aria-current] { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; }
@media (max-width: 47.99rem) {
  .nav { display: none; }   /* single page: the content is one scroll; the language switch stays */
  .lang { margin-left: auto; }
}

/* Hero */
.hero { padding: clamp(4.5rem, 12vw, 9rem) 0 var(--space); }
.hero-inner { display: grid; gap: 3rem; align-items: center; }
.hero.has-portrait .hero-inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
@media (max-width: 47.99rem) { .hero.has-portrait .hero-inner { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(2.6rem, 1.4rem + 5vw, 4.5rem); letter-spacing: -0.02em; margin: 0.6rem 0 1.4rem; }
.headline { font-family: var(--serif); font-size: clamp(1.35rem, 1rem + 1.6vw, 2rem); line-height: 1.3; max-width: 24em; margin-bottom: 1rem; text-wrap: balance; }
.lede { color: var(--muted); font-size: 1.15rem; max-width: 34em; }
.actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; }
.button { display: inline-block; background: var(--accent); color: var(--accent-ink); text-decoration: none; padding: 0.8rem 1.4rem; border-radius: 2px; font-weight: 500; }
.button:hover { background: var(--ink); }
.text-link { font-weight: 500; }
.hero-portrait { margin: 0; }
.hero-portrait img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; filter: grayscale(0.15); }

/* Sections */
.section { padding: var(--space) 0; }
.section.alt { background: var(--paper-alt); }
.eyebrow { font: 600 0.78rem/1.4 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.9rem; }
.hero .eyebrow { text-transform: none; letter-spacing: 0.02em; font-size: 0.95rem; color: var(--muted); font-weight: 500; }
.section h2 { margin-bottom: 2.25rem; }
.prose { max-width: var(--narrow); font-size: 1.125rem; }
.intro, .note { color: var(--muted); max-width: var(--narrow); }
.note { font-size: 0.95rem; margin-top: 2rem; }

.principles { display: grid; grid-template-columns: 1fr; gap: 2rem 2.5rem; margin-top: 3.5rem;
  counter-reset: p; border-top: 1px solid var(--rule); padding-top: 2.5rem; }
.principles li { counter-increment: p; }
.principles li::before { content: counter(p, decimal-leading-zero); display: block; font: 600 0.8rem var(--sans); color: var(--gold); letter-spacing: 0.08em; margin-bottom: 0.6rem; }
.principles h3 { margin-bottom: 0.4rem; }
.principles p { color: var(--muted); margin: 0; }

.timeline { margin-top: 2.5rem; border-top: 1px solid var(--rule); }
.timeline li { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1.5rem; padding: 1.6rem 0; border-bottom: 1px solid var(--rule); }
.timeline .years { font-variant-numeric: tabular-nums; color: var(--muted); padding-top: 0.15rem; white-space: nowrap; }
.timeline h3 { margin-bottom: 0.15rem; }
.timeline .role { font-weight: 600; margin-bottom: 0.35rem; }
.timeline p { margin: 0; max-width: var(--narrow); }
.timeline .role + p { color: var(--muted); }
.subhead { font: 600 0.78rem/1.4 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 3rem; }
.timeline.compact { margin-top: 1rem; }
@media (max-width: 35.99rem) { .timeline li { grid-template-columns: 1fr; gap: 0.35rem; } }

@media (min-width: 36rem) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .principles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cards { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 44rem) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cards li { background: #fff; border: 1px solid var(--rule); padding: 1.75rem; }
.cards h3 { margin-bottom: 0.6rem; }
.cards p { color: var(--muted); margin: 0; }

/* Video: a plain link to YouTube; video.js swaps in the player only when it is clicked. */
.video { max-width: 52rem; }
.video-poster { position: relative; display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 16 / 9;
  background: var(--ink); color: var(--paper); text-decoration: none; padding: clamp(1.25rem, 4vw, 2.5rem); overflow: hidden; }
.video-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.video-title { position: relative; font-family: var(--serif); font-size: clamp(1.25rem, 0.9rem + 2vw, 2.1rem); line-height: 1.2; max-width: 18em; }
.play { position: relative; display: inline-flex; align-items: center; gap: 0.6rem; align-self: flex-start; background: var(--paper); color: var(--ink);
  padding: 0.6rem 1.1rem 0.6rem 0.8rem; border-radius: 2px; font-weight: 500; }
.video-poster:hover .play { background: #fff; }
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.video-details { color: var(--muted); font-size: 0.95rem; margin-top: 1rem; max-width: 52rem; }

.contact-links { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-top: 1.5rem; font-size: 1.15rem; }
.contact-links a { font-weight: 500; }

.site-footer { padding: 2.5rem 0; color: var(--muted); font-size: 0.9rem; border-top: 1px solid var(--rule); }
.site-footer p { margin: 0; }

/* Generative drawings (src/art.mjs, after Vera Molnár): hairlines in flax blue, the odd stroke in gold. */
.art { display: block; width: 100%; height: auto; overflow: visible; }
.art polygon, .art polyline { fill: none; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.art .art-line { stroke: var(--accent); stroke-width: 1.15; opacity: 0.85; }
.art .art-faint { stroke: var(--accent); stroke-width: 0.8; opacity: 0.38; }
.art .art-gold { stroke: var(--gold-art); stroke-width: 1.6; }
.art .art-year { fill: var(--muted); font: 500 13px var(--sans); }
@media (min-width: 48rem) { .hero:not(:has(.hero-portrait)) .hero-inner { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); } }
.hero-art { max-width: 24rem; justify-self: end; width: 100%; }
@media (max-width: 47.99rem) { .hero-art { max-width: 17rem; justify-self: start; margin-top: -0.5rem; } }
.waves { margin: 2.5rem 0 0; max-width: 56rem; }
.divider { padding-top: 0; padding-bottom: 0; }
.divider .art { height: 1.75rem; }
.art-credit { margin-top: 0.4rem !important; font-size: 0.85rem; }

body.minimal main { padding: 4rem 0; }
body.minimal section + section { margin-top: 2.5rem; }
body.minimal h1 { font-size: 2rem; margin-bottom: 0.75rem; }
