/* Conciergerie Media — shared styles
   Brand:
     vert majorelle  #2A4A3E
     cuivre          #B8763F
     tadelakt        #FAF6EE
     rouge médina    #C44536
     argile          #6B5D4F
*/

:root {
  --vert: #2A4A3E;
  --vert-deep: #1F3A30;
  --vert-soft: #3A5A4E;
  --cuivre: #B8763F;
  --cuivre-deep: #9A6232;
  --tadelakt: #FAF6EE;
  --tadelakt-warm: #F4EDDF;
  --rouge: #C44536;
  --argile: #6B5D4F;
  --argile-soft: #8B7D6F;
  --line: #E5DCC8;
  --line-soft: #EDE5D2;

  --ff-display: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --ff-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max: 1240px;
  --pad: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--argile);
  background: var(--tadelakt);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease, opacity 160ms ease;
}

p { text-wrap: pretty; }

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 500;
  color: var(--vert);
  letter-spacing: -0.005em;
  margin: 0;
  line-height: 1.05;
}

h1 { font-size: clamp(44px, 6.6vw, 92px); font-weight: 500; }
h2 { font-size: clamp(34px, 4.4vw, 60px); }
h3 { font-size: clamp(24px, 2.4vw, 32px); }

.eyebrow {
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cuivre);
}

.lede {
  font-family: var(--ff-display);
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.4;
  color: var(--vert);
  font-style: italic;
  font-weight: 400;
}

/* ——— wordmark ——— */
.wordmark {
  font-family: var(--ff-display);
  line-height: 0.95;
  display: inline-flex;
  flex-direction: column;
  letter-spacing: -0.01em;
}
.wordmark .conc {
  color: var(--vert);
  font-weight: 500;
  font-size: 1.15em;
}
.wordmark .media {
  color: var(--cuivre);
  font-style: italic;
  font-weight: 500;
  font-size: 1.15em;
  margin-top: -0.05em;
}
.wordmark .media .m-sig {
  font-size: 1.15em;
  letter-spacing: -0.04em;
}

/* the italic copper m, used as a tiny corner mark */
.m-mark {
  font-family: var(--ff-display);
  font-style: italic;
  color: var(--cuivre);
  font-weight: 500;
  display: inline-block;
  line-height: 1;
}

/* ——— nav ——— */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 238, 0.86);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background 200ms ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav-brand {
  font-family: var(--ff-display);
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 0.18em;
}
.nav-brand .conc { color: var(--vert); font-weight: 500; }
.nav-brand .media { color: var(--cuivre); font-style: italic; font-weight: 500; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.nav-links a {
  color: var(--vert);
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover { color: var(--cuivre); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--cuivre);
}

/* ——— buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 200ms ease;
  text-decoration: none;
  background: transparent;
}
.btn-cuivre {
  background: var(--cuivre);
  color: var(--tadelakt);
  border-color: var(--cuivre);
}
.btn-cuivre:hover {
  background: var(--cuivre-deep);
  border-color: var(--cuivre-deep);
}
.btn-vert {
  background: var(--vert);
  color: var(--tadelakt);
  border-color: var(--vert);
}
.btn-vert:hover { background: var(--vert-deep); }
.btn-outline {
  border-color: var(--vert);
  color: var(--vert);
}
.btn-outline:hover {
  background: var(--vert);
  color: var(--tadelakt);
}
.btn-ghost {
  color: var(--vert);
  padding: 10px 0;
  border-bottom: 1px solid var(--vert);
  border-radius: 0;
}
.btn-ghost:hover {
  color: var(--cuivre);
  border-bottom-color: var(--cuivre);
}

/* ——— sections / utilities ——— */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.section { padding: clamp(64px, 9vw, 128px) 0; }

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

.rule-cuivre {
  width: 48px;
  height: 1px;
  background: var(--cuivre);
  border: 0;
  margin: 0;
}

/* ——— footer ——— */
.footer {
  background: var(--vert-deep);
  color: var(--tadelakt-warm);
  padding: 80px 0 36px;
}
.footer .container { display: grid; gap: 56px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer h4 {
  color: var(--tadelakt);
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
  opacity: 0.7;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { color: var(--tadelakt-warm); opacity: 0.85; font-size: 14px; }
.footer a:hover { color: var(--cuivre); opacity: 1; }
.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding-top: 32px;
  border-top: 1px solid rgba(250, 246, 238, 0.12);
  font-size: 12px;
  color: rgba(250, 246, 238, 0.55);
  letter-spacing: 0.04em;
}
.footer .wordmark .conc { color: var(--tadelakt); }
.footer .wordmark .media { color: var(--cuivre); }

@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { gap: 20px; }
  .nav-links .nav-cta { display: none; }
}

/* ——— tweak-driven adjustments ——— */
html[data-accent="bold"] {
  --cuivre: #C97F3D;
}
html[data-accent="bold"] .btn-cuivre {
  background: #C97F3D;
  border-color: #C97F3D;
}
html[data-accent="bold"] .nav-brand .media,
html[data-accent="bold"] .wordmark .media {
  /* slightly more saturated copper in bold mode */
}
html[data-kenburns="off"] .hero-img { animation: none !important; transform: scale(1.02); }

/* drop cap on/off, applied in journal article */
html[data-dropcap="off"] .article-body > p:first-of-type::first-letter {
  all: unset;
}

/* ——— mascot / icon illustrations (SVG) ——— */
.illu {
  width: 100%;
  height: auto;
  display: block;
}
.illu-wrap {
  aspect-ratio: 4 / 3;
  background: var(--tadelakt-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.illu-wrap::before {
  /* subtle paper texture */
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(107,93,79,0.04), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(107,93,79,0.05), transparent 40%);
  pointer-events: none;
}
