/* The Wairau Cellar — feuille de style du journal (préfixe wcj-)
   Palette : gris de rivière tressée, or sauvignon, prune pinot, macrocarpa patiné, brume matinale. */

:root {
  --wcj-ink: #23262b;
  --wcj-river: #6b7278;
  --wcj-mist: #f1f0ea;
  --wcj-paper: #fbfaf6;
  --wcj-gold: #9c7c26;
  --wcj-gold-soft: #c9a446;
  --wcj-plum: #6e2f3b;
  --wcj-macro: #9a7f57;
  --wcj-rule: #d9d5c9;
  --wcj-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --wcj-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --wcj-measure: 43rem;
  --wcj-wide: 68rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--wcj-mist);
  color: var(--wcj-ink);
  font-family: var(--wcj-serif);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--wcj-gold-soft); color: var(--wcj-ink); }

a { color: var(--wcj-gold); text-decoration: none; }
a:hover { color: var(--wcj-plum); text-decoration: underline; text-underline-offset: 3px; }

:focus-visible { outline: 2px solid var(--wcj-gold); outline-offset: 2px; }

.wcj-skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--wcj-ink); color: var(--wcj-mist);
  padding: .5rem 1rem; z-index: 10;
}
.wcj-skip:focus { left: 0; color: var(--wcj-mist); }

/* ---------- Masthead ---------- */

.wcj-mast { background: var(--wcj-paper); }

.wcj-mast__folio {
  display: flex; justify-content: space-between; gap: .8rem;
  max-width: var(--wcj-wide); margin: 0 auto; padding: .55rem 1.2rem 0;
  font-family: var(--wcj-sans); font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--wcj-river);
  border-bottom: 1px solid var(--wcj-rule);
}

.wcj-mast__title {
  margin: 0; padding: 1.6rem 1.2rem 1.1rem; text-align: center;
  font-size: clamp(2.1rem, 6vw, 3.4rem); line-height: 1.08; letter-spacing: -.01em;
  font-weight: 600;
}
.wcj-mast__title a { color: var(--wcj-ink); }
.wcj-mast__title a:hover { text-decoration: none; color: var(--wcj-plum); }

.wcj-mast__tag {
  margin: -0.6rem 0 1.1rem; text-align: center;
  font-family: var(--wcj-sans); font-size: .72rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--wcj-macro);
}

.wcj-doublerule {
  max-width: var(--wcj-wide); margin: 0 auto; padding: 0 1.2rem;
}
.wcj-doublerule::before {
  display: block; content: ""; border-top: 1px solid var(--wcj-ink);
  border-bottom: 3px solid var(--wcj-ink); height: 4px;
}

.wcj-nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.6rem;
  max-width: var(--wcj-wide); margin: 0 auto; padding: .7rem 1.2rem;
  font-family: var(--wcj-sans); font-size: .74rem; letter-spacing: .13em;
  text-transform: uppercase;
}
.wcj-nav a { color: var(--wcj-ink); padding: .2rem 0; border-bottom: 2px solid transparent; }
.wcj-nav a[aria-current="page"] { color: var(--wcj-plum); border-bottom-color: var(--wcj-plum); }
.wcj-nav a:hover { color: var(--wcj-plum); text-decoration: none; border-bottom-color: var(--wcj-gold-soft); }

/* Compact masthead (pages intérieures) */
.wcj-mast--in .wcj-mast__title { padding: 1.1rem 1.2rem .6rem; font-size: clamp(1.5rem, 4vw, 2.1rem); }
.wcj-mast--in .wcj-mast__folio { display: none; }

/* ---------- Structure commune ---------- */

main { display: block; }

.wcj-page {
  max-width: var(--wcj-measure);
  margin: 0 auto; padding: 1.8rem 1.2rem 3rem;
}

.wcj-crumb {
  font-family: var(--wcj-sans); font-size: .72rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--wcj-river); margin: 0 0 1.6rem;
}
.wcj-crumb a { color: var(--wcj-river); }
.wcj-crumb a:hover { color: var(--wcj-plum); }
.wcj-crumb span[aria-hidden] { margin: 0 .45em; color: var(--wcj-rule); }

.wcj-kicker {
  margin: 0 0 .45rem;
  font-family: var(--wcj-sans); font-size: .68rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--wcj-plum);
}

h1 {
  margin: 0 0 .8rem; font-size: clamp(1.7rem, 4.6vw, 2.5rem);
  line-height: 1.15; letter-spacing: -.01em; text-wrap: balance;
}

.wcj-stand {
  margin: 0 0 1rem; font-size: 1.12rem; line-height: 1.55; color: var(--wcj-river);
  font-style: italic; text-wrap: balance;
}

.wcj-byline {
  margin: 0 0 1.6rem; padding-top: .7rem; border-top: 1px solid var(--wcj-rule);
  font-family: var(--wcj-sans); font-size: .74rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--wcj-river);
}

/* ---------- Figures ---------- */

.wcj-fig { margin: 0 0 1.8rem; }
.wcj-fig picture, .wcj-fig img { display: block; width: 100%; height: auto; }
.wcj-fig figcaption {
  margin-top: .5rem; padding-left: .8rem; border-left: 2px solid var(--wcj-gold-soft);
  font-family: var(--wcj-sans); font-size: .78rem; line-height: 1.5; color: var(--wcj-river);
}

/* ---------- Corps d'article ---------- */

.wcj-body { font-size: 1.02rem; }
.wcj-body p { margin: 0 0 1.05rem; }
.wcj-body > p:first-of-type::first-letter {
  float: left; font-size: 3.1em; line-height: .82; padding: .06em .12em 0 0;
  color: var(--wcj-plum); font-weight: 600;
}
.wcj-body h2 {
  margin: 2.1rem 0 .7rem; font-size: 1.32rem; line-height: 1.25; letter-spacing: 0;
  scroll-margin-top: 1rem;
}
.wcj-body h2::before {
  content: ""; display: block; width: 2.3rem; height: 2px;
  background: var(--wcj-gold-soft); margin-bottom: .5rem;
}
.wcj-body ul, .wcj-body ol { margin: 0 0 1.05rem; padding-left: 1.4rem; }
.wcj-body li { margin-bottom: .4rem; }
.wcj-body a { text-decoration: underline; text-decoration-color: var(--wcj-gold-soft); text-underline-offset: 3px; }

/* ---------- Sommaire ---------- */

.wcj-toc {
  margin: 0 0 1.8rem; padding: .9rem 1.1rem;
  background: var(--wcj-paper); border: 1px solid var(--wcj-rule);
  border-top: 3px double var(--wcj-macro);
}
.wcj-toc p { margin: 0 0 .35rem; font-family: var(--wcj-sans); font-size: .68rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--wcj-macro); }
.wcj-toc ol { margin: 0; padding-left: 1.2rem; font-family: var(--wcj-sans); font-size: .84rem; }
.wcj-toc li { margin: .15rem 0; }

/* ---------- Navigation précédent / suivant ---------- */

.wcj-sibs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px solid var(--wcj-rule);
  font-family: var(--wcj-sans); font-size: .84rem;
}
.wcj-sibs__n { display: block; font-size: .66rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--wcj-river); margin-bottom: .25rem; }
.wcj-sibs__prev { text-align: left; }
.wcj-sibs__next { text-align: right; grid-column: 2; }
.wcj-sibs a { color: var(--wcj-ink); font-weight: 600; }
.wcj-sibs a:hover { color: var(--wcj-plum); }

/* ---------- Une : hero + bandes ---------- */

.wcj-hero { margin: 0; }
.wcj-hero picture, .wcj-hero img { display: block; width: 100%; height: auto; }
.wcj-hero figcaption {
  max-width: var(--wcj-wide); margin: 0 auto; padding: .55rem 1.2rem 0;
  font-family: var(--wcj-sans); font-size: .76rem; color: var(--wcj-river);
}

.wcj-lede {
  max-width: var(--wcj-measure); margin: 2.2rem auto 2.6rem; padding: 0 1.2rem;
  font-size: 1.16rem; line-height: 1.6; color: var(--wcj-ink);
}
.wcj-lede em { color: var(--wcj-plum); font-style: italic; }

.wcj-band {
  max-width: var(--wcj-wide); margin: 0 auto 3rem; padding: 0 1.2rem;
}

.wcj-band__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-bottom: .4rem;
}
.wcj-band__head h2 { margin: 0; font-size: 1.5rem; letter-spacing: -.005em; }
.wcj-band__more {
  font-family: var(--wcj-sans); font-size: .7rem; letter-spacing: .12em;
  text-transform: uppercase; white-space: nowrap;
}
.wcj-band__dek {
  margin: 0 0 1.1rem; max-width: 40rem; color: var(--wcj-river);
  font-style: italic; font-size: .98rem;
}

.wcj-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
  gap: 1.15rem;
}

.wcj-card {
  display: flex; flex-direction: column;
  background: var(--wcj-paper); border: 1px solid var(--wcj-rule);
  border-top: 3px double var(--wcj-macro);
}
.wcj-card__link {
  display: flex; flex-direction: column; flex: 1;
  color: inherit; padding: 0 0 1rem;
}
.wcj-card__link:hover { text-decoration: none; }
.wcj-card__fig { margin: 0; aspect-ratio: 7 / 4; overflow: hidden;
  border-bottom: 1px solid var(--wcj-rule); }
.wcj-card__fig img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wcj-card__body { padding: .85rem 1rem 0; }
.wcj-card__body h3 { margin: 0 0 .35rem; font-size: 1.08rem; line-height: 1.3; }
.wcj-card__link:hover h3 { color: var(--wcj-plum); text-decoration: underline; text-underline-offset: 3px; }
.wcj-card__dek { margin: 0; font-family: var(--wcj-sans); font-size: .82rem;
  line-height: 1.5; color: var(--wcj-river); }

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

.wcj-foot { background: var(--wcj-ink); color: var(--wcj-mist); margin-top: 2rem; }
.wcj-foot a { color: var(--wcj-gold-soft); }
.wcj-foot a:hover { color: #fff; }
.wcj-foot__in {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1.6rem;
  max-width: var(--wcj-wide); margin: 0 auto; padding: 2.2rem 1.2rem 1.6rem;
}
.wcj-foot__title { margin: 0 0 .5rem; font-size: 1.3rem; }
.wcj-foot p { margin: 0 0 .6rem; font-family: var(--wcj-sans); font-size: .84rem;
  line-height: 1.6; color: #b9b6ac; }
.wcj-foot nav p {
  font-size: .66rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--wcj-macro); margin-bottom: .55rem;
}
.wcj-foot ul { list-style: none; margin: 0; padding: 0;
  font-family: var(--wcj-sans); font-size: .84rem; }
.wcj-foot li { margin: .3rem 0; }
.wcj-foot__legal {
  border-top: 1px solid #3c4046; text-align: center;
  font-family: var(--wcj-sans); font-size: .7rem; letter-spacing: .06em;
  color: #8b8d90; padding: .9rem 1.2rem; margin: 0;
}

/* ---------- 404 ---------- */

.wcj-err { text-align: center; }
.wcj-err .wcj-code {
  font-family: var(--wcj-sans); font-size: .72rem; letter-spacing: .3em;
  text-transform: uppercase; color: var(--wcj-plum); margin-bottom: .6rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .wcj-mast__folio { justify-content: center; gap: 1.2rem; }
  .wcj-band__head { flex-direction: column; gap: .2rem; }
  .wcj-sibs { grid-template-columns: 1fr; }
  .wcj-sibs__next { grid-column: 1; text-align: left; }
  .wcj-foot__in { grid-template-columns: 1fr; gap: 1.2rem; }
  .wcj-body > p:first-of-type::first-letter { font-size: 2.6em; }
}

@media print {
  .wcj-nav, .wcj-foot, .wcj-toc, .wcj-sibs, .wcj-hero figcaption { display: none; }
  body { background: #fff; }
}
