/* === Léna Ordronneau — design system === */

:root {
  --paper: #F5F4F0;
  --linen: #EDE8DF;
  --olive: #787245;
  --olive-deep: #6B6430;
  --ink: #1A1A18;
  --hair: #D8D4CC;
  --muted: #6B6430;
  --tertiary: #787245;
  --display: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --ui: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --page-x: clamp(20px, 5vw, 80px);
  --gutter: clamp(12px, 2vw, 24px);
  --section-y: clamp(60px, 10vh, 140px);
  --nav-h: 52px;
  --maxw: 1400px;
}

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

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
img { max-width: 100%; display: block; }

::selection { background: var(--olive); color: var(--paper); }

/* === type === */

.display {
  font-family: var(--display);
  font-weight: 200;
  letter-spacing: -0.01em;
}
.serif-bold {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.005em;
}
.label {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
}
.label--muted { color: var(--muted); font-weight: 400; }
.caption {
  font-family: var(--ui);
  font-weight: 400;
  font-size: 11px;
  line-height: 1.55;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.lede {
  font-family: var(--display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: -0.005em;
  max-width: 30ch;
}
.body p {
  max-width: 65ch;
  margin: 0 0 1em;
  font-size: 15px;
  line-height: 1.7;
}

/* === running header / nav === */

.runhead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--hair);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-x);
  font-family: var(--ui);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.20em;
  color: var(--muted);
  font-weight: 400;
}
.runhead__left {
  display: flex;
  gap: clamp(20px, 4vw, 60px);
  align-items: center;
  min-width: 0;
}
.runhead__crumb {
  display: inline-flex;
  gap: clamp(20px, 4vw, 60px);
  align-items: center;
}
.runhead__crumb span:nth-child(2) { color: var(--muted); }
.runhead__crumb span:last-child { color: var(--ink); font-weight: 500; }
.runhead__nav {
  display: flex;
  gap: clamp(14px, 2.4vw, 32px);
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink);
  font-weight: 500;
}
.runhead__nav a {
  position: relative;
  padding: 6px 0;
  transition: opacity 150ms ease;
}
.runhead__nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--ink);
}
.runhead__nav a:hover { opacity: 0.55; }
.runhead__nav .lang {
  border-left: 1px solid var(--hair);
  padding-left: clamp(14px, 2.4vw, 28px);
  margin-left: clamp(2px, 1vw, 8px);
  color: var(--muted);
}

/* hide crumb on small screens */
@media (max-width: 720px) {
  .runhead__crumb span:nth-child(2),
  .runhead__crumb span:last-child { display: none; }
  .runhead__nav { gap: 12px; font-size: 10px; }
  .runhead__nav .nav-only-desktop { display: none; }
}

/* === registration corner ticks === */

.ticks {
  position: relative;
}
.ticks::before,
.ticks::after,
.ticks > .tick-tl,
.ticks > .tick-tr,
.ticks > .tick-bl,
.ticks > .tick-br {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
  z-index: 2;
}
.ticks::before {
  top: 0; left: 0;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}
.ticks::after {
  top: 0; right: 0;
  border-top: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
}
.ticks .tick-bl {
  bottom: 0; left: 0;
  border-bottom: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}
.ticks .tick-br {
  bottom: 0; right: 0;
  border-bottom: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
}
.no-ticks::before, .no-ticks::after { display: none !important; }
.no-ticks .tick-bl, .no-ticks .tick-br { display: none !important; }

/* === buttons === */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  font-family: var(--ui);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
  background: transparent;
  transition: background 200ms ease, color 200ms ease;
  cursor: pointer;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn .arrow { transition: transform 200ms ease; }
.btn:hover .arrow { transform: translateX(3px); }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  transition: padding-right 200ms ease, opacity 150ms ease;
}
.link-arrow:hover { opacity: 0.6; }

/* === scroll reveal === */

.reveal {
  opacity: 1;
  transform: none;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  * { animation: none !important; transition: none !important; }
}

/* === paper-tone tweak === */

body[data-paper="warm"] { --paper: #F5F4F0; --linen: #EDE8DF; }
body[data-paper="cool"] { --paper: #F1F1ED; --linen: #E8E8E2; }
body[data-paper="olive"] { --paper: #EFEDE2; --linen: #E5E1CF; }
