:root {
  --ivory: #f7f2eb;
  --sand: #e8ddcf;
  --ink: #221d18;
  --muted: #8a7e70;
  --line: #d9ccbb;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Bilingual: only the active language is shown */
html[data-lang="fr"] [lang="en"],
html[data-lang="en"] [lang="fr"] { display: none; }

a { color: inherit; }

/* Top bar */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem clamp(1.25rem, 5vw, 4rem);
  background: color-mix(in srgb, var(--ivory) 85%, transparent);
  backdrop-filter: blur(8px);
}
.monogram { font-family: var(--serif); font-size: 1.2rem; letter-spacing: .25em; text-decoration: none; }
.topbar nav { display: flex; gap: clamp(.9rem, 2.5vw, 2rem); align-items: center; }
.topbar nav a {
  font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  color: var(--muted); transition: color .3s;
}
.topbar nav a:hover { color: var(--ink); }
.lang {
  font: 500 .7rem var(--sans); letter-spacing: .15em;
  border: 1px solid var(--line); background: none; color: var(--ink);
  padding: .35rem .6rem; border-radius: 2rem; cursor: pointer;
}

main { max-width: 1080px; margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 3rem); }

section { padding: clamp(5rem, 12vw, 9rem) 0; }

/* Hero */
.hero {
  min-height: 88vh;
  padding-top: 7rem;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.eyebrow { font-size: .75rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.5rem; }
h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(3.2rem, 9vw, 6.5rem); line-height: .95; }
h1 em { font-style: italic; }
.lede { font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.5; max-width: 32rem; margin: 2rem 0 2.5rem; }
.scroll {
  font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  border-bottom: 1px solid var(--ink); padding-bottom: .3rem;
}
.portrait { justify-self: center; }
.portrait img {
  display: block; width: min(300px, 70vw); height: auto; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: 999px 999px 0 0; /* arch, like a perfume bottle window */
  filter: sepia(.12) saturate(.9);
}

/* Section titles */
.section-title {
  font-family: var(--serif); font-weight: 400; font-style: italic;
  font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
  display: flex; align-items: center; gap: 1.5rem;
}
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Story chapters */
.chapter {
  display: grid; grid-template-columns: 5rem 1fr; gap: 1.5rem;
  padding: 2.5rem 0; border-top: 1px solid var(--line); max-width: 52rem;
}
.chapter:first-of-type { border-top: 0; }
.chapter-num { font-family: var(--serif); font-size: 2.6rem; font-style: italic; color: var(--muted); line-height: 1; }
.chapter-meta { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.chapter h3 { font-family: var(--serif); font-weight: 500; font-size: 1.9rem; margin: .3rem 0 1rem; }
.chapter p[lang] { font-size: 1.05rem; max-width: 40rem; }
.chapter p[lang] + p[lang] { margin-top: .9rem; }
.chapter strong { font-weight: 500; }
.chapter a { text-decoration-color: var(--line); text-underline-offset: 3px; }

/* Gourmand studies */
.creations-intro { font-family: var(--serif); font-size: 1.4rem; font-style: italic; color: var(--muted); max-width: 44rem; margin: -2rem 0 3rem; }
.accord-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem 1.6rem; }
.accord h3 { font-size: 1.45rem; }
.accord img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.accord h3 { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; margin: 1rem 0 .2rem; display: flex; align-items: center; gap: .8rem; }
.accord-status { font: 400 .65rem var(--sans); letter-spacing: .2em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 2rem; padding: .2rem .6rem; color: var(--muted); }
.accord-notes { font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.accord p[lang] { font-size: .98rem; }

/* Notes pyramid */
.notes { text-align: center; }
.notes .section-title { text-align: left; }
.notes-intro { font-family: var(--serif); font-size: 1.4rem; font-style: italic; color: var(--muted); margin: -2rem 0 3rem; }
.pyramid { display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.tier { background: var(--sand); padding: 1.6rem 2rem; border-radius: 2px; }
.tier:nth-child(1) { width: min(100%, 26rem); }
.tier:nth-child(2) { width: min(100%, 44rem); }
.tier:nth-child(3) { width: min(100%, 54rem); background: var(--ink); color: var(--ivory); }
.tier-name { font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; opacity: .7; }
.tier-notes { font-family: var(--serif); font-size: 1.35rem; margin-top: .3rem; }

/* Craft */
.figures {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 2.5rem 0; margin-bottom: 3rem; text-align: center;
}
.figure { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; }
.figures p:not(.figure) { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: .6rem; }
.skills { list-style: none; columns: 2; column-gap: 3rem; }
.skills li { padding: .9rem 0; border-bottom: 1px solid var(--line); break-inside: avoid; }

/* Sports */
.sport-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.sport { border-top: 1px solid var(--ink); padding-top: 1.5rem; }
.sport-name { font-family: var(--serif); font-size: 1.8rem; line-height: 1.1; }
.sport-meta { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: .4rem 0 1rem; }

/* Contact */
.contact { text-align: center; }
.contact .section-title { justify-content: center; }
.contact .section-title::after { display: none; }
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2rem; }
.contact-links a { text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: .2rem; }
.contact-links .button {
  border: 1px solid var(--ink); padding: .8rem 1.6rem; border-radius: 2rem;
  font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; transition: background .3s, color .3s;
}
.contact-links .button:hover { background: var(--ink); color: var(--ivory); }

footer { text-align: center; padding: 3rem 0; font-size: .75rem; letter-spacing: .15em; color: var(--muted); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s ease, transform 1s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Mobile */
@media (max-width: 1100px) and (min-width: 761px) {
  .accord-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .topbar nav a { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 7rem; text-align: left; }
  .portrait { order: -1; justify-self: start; }
  .portrait img { width: 180px; }
  .chapter { grid-template-columns: 1fr; gap: .5rem; }
  .figures { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
  .skills { columns: 1; }
  .sport-grid { grid-template-columns: 1fr; }
  .accord-grid { grid-template-columns: 1fr; }
}
