/* Alex Leroy v2 — editorial design system
   Palette: ink + bone + warm cognac accent. */
:root {
  --ink: #0E1014;
  --ink-2: #1A1D22;
  --bone: #ECE6DA;
  --bone-2: #E2DBCD;
  --bone-3: #D6CDBC;
  --paper: #F4EFE5;
  --rule: rgba(14,16,20,0.18);
  --rule-soft: rgba(14,16,20,0.10);
  --rule-on-ink: rgba(236,230,218,0.20);
  --accent: #B26A3C;
  --muted: #6B6357;

  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --serif-body: "Newsreader", "Cormorant Garamond", Georgia, serif;
  --sans:  "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --pad-x: clamp(20px, 5vw, 88px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* Neutralize deep-cms RichText wrapper — pages render full-bleed sections */
main[data-dcms-blocks] .dcms-richtext {
  max-width: none;
  padding: 0;
  margin: 0;
  line-height: inherit;
}
body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* ——— Type system ——— */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .num { color: var(--accent); margin-right: 10px; font-variant-numeric: tabular-nums; }
.h-section {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 5.2vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.014em;
  margin: 0;
  text-wrap: balance;
}
.h-section .it { font-style: italic; }
.kicker {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ——— Structure ——— */
.container { max-width: 1480px; margin: 0 auto; }
.head-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(56px, 6vw, 96px);
}
.section--ink { background: var(--ink); color: var(--bone); }
.section--ink .eyebrow { color: rgba(236,230,218,0.55); }

/* ——— Top nav ——— */
.nav {
  position: absolute; top: 0; left: 0; right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 28px var(--pad-x);
  z-index: 5;
  color: var(--bone);
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  bottom: auto;
  height: 140px;
  background: linear-gradient(180deg,
    rgba(14,16,20,0.55) 0%,
    rgba(14,16,20,0.30) 55%,
    rgba(14,16,20,0) 100%);
  pointer-events: none;
  z-index: -1;
}
.nav .wordmark {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.02em;
  line-height: 1;
}
.nav .wordmark .it { font-style: italic; font-weight: 300; opacity: 0.8; }
.nav .links {
  display: flex; gap: 36px; justify-content: center;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
}
.nav .links a {
  opacity: 1;
  color: var(--bone);
  text-shadow: 0 1px 2px rgba(14,16,20,0.55);
}
.nav .links a:hover { color: var(--accent); }
.nav .wordmark, .nav .lang { text-shadow: 0 1px 2px rgba(14,16,20,0.55); }
.nav .lang {
  justify-self: end;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  display: flex; gap: 14px;
}
.nav .lang .on { opacity: 1; }
.nav .lang .off { opacity: 0.45; }

/* Inverted nav (over a light bone hero/masthead) */
.nav.nav--inv { color: var(--ink); }
.nav.nav--inv::before { display: none; }
.nav.nav--inv .links a,
.nav.nav--inv .wordmark,
.nav.nav--inv .lang { color: var(--ink); text-shadow: none; }
.nav.nav--inv .links a.is-current {
  color: var(--accent);
  position: relative;
}
.nav.nav--inv .links a.is-current::after {
  content: ""; position: absolute;
  left: -6px; right: -6px; bottom: -8px;
  height: 1px; background: var(--accent);
}
.nav.nav--inv .lang .off { opacity: 0.4; }

/* ——— Footer ——— */
.foot {
  background: var(--bone); color: var(--ink);
  padding: clamp(56px, 6vw, 96px) var(--pad-x) 36px;
}
.foot__top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 56px; border-bottom: 1px solid var(--rule);
}
.foot__brand .wm {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -0.014em;
}
.foot__brand .wm .it { font-style: italic; }
.foot__brand p {
  font-family: var(--serif-body); font-style: italic;
  font-size: 16px; line-height: 1.55; color: var(--muted); margin: 16px 0 0; max-width: 32ch;
}
.foot h5 {
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 18px; font-weight: 500;
}
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; }
.foot__bot {
  margin-top: 28px;
  display: flex; justify-content: space-between;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
}

@media (max-width: 980px) {
  .nav .links { display: none; }
  .nav { grid-template-columns: 1fr auto; }
  .foot__top { grid-template-columns: 1fr 1fr; }
  .foot__bot { flex-direction: column; gap: 8px; }
}
