/* =========================================================
   Marc & Bérénice — mariage 2027
   Palette sampled from the watercolour illustration:
     paper    #F4E8DB   warm cream
     sky      #E9E4DD   soft grey-blue
     blush    #F5D9B8   warm sand
     olive    #D8C588   muted gold-green
     sage     #C9B879   deeper foliage
     slate    #6B7480   roof / ink (drawn from linework)
     ink      #3E3A36   warm charcoal
   ========================================================= */

:root {
  --paper:   #f4e8db;
  --cream:   #faf5ee;
  --sky:     #e9e4dd;
  --sky-2:   #eae6e1;
  --blush:   #f5d9b8;
  --blush-2: #f3e7da;
  --olive:   #d8c588;
  --sage:    #c9b879;
  --sage-dk: #b7a978;
  --slate:   #6b7480;
  --navy:    #4a5560;   /* slate-blue, used for headings */
  --ink:     #3e3a36;   /* warm charcoal body text */
  --muted:   #7d7568;
  --line:    #e3d8c8;
  --amber:   #a8842f;   /* muted gold for links/times */

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1080px;
  --radius: 3px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--paper);
  /* very soft watercolour wash across the page */
  background-image:
    radial-gradient(circle at 12% 8%,  rgba(214,228,236,.55), transparent 42%),
    radial-gradient(circle at 88% 22%, rgba(246,226,202,.60), transparent 45%),
    radial-gradient(circle at 22% 88%, rgba(216,197,136,.28), transparent 48%),
    radial-gradient(circle at 78% 96%, rgba(243,231,218,.55), transparent 46%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; color: var(--navy); margin: 0 0 .5em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { font-weight: 500; }
em { font-style: italic; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 720px; }
.center { text-align: center; }
.lead { font-size: 1.06rem; color: var(--muted); }
.hint { font-size: .85rem; color: var(--muted); font-style: italic; }
.note { background: #fdf6e6; border-left: 3px solid var(--gold); padding: 14px 18px; font-size: .95rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: .92rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fbf6ee;
  background: var(--slate);
  border: 1px solid var(--slate);
  border-radius: var(--radius);
  padding: 13px 28px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--amber); border-color: var(--amber); text-decoration: none; color: #fff; }
.btn--small { padding: 8px 16px; font-size: .78rem; }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--paper); border-color: var(--navy); }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 232, 219, .86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav__brand { font-family: var(--serif); font-size: 1.15rem; letter-spacing: .06em; color: var(--navy); font-weight: 600; }
.nav__brand:hover { text-decoration: none; }
.nav__links { display: flex; gap: 18px; margin-left: auto; flex-wrap: wrap; }
.nav__links a { font-size: .82rem; letter-spacing: .04em; color: var(--ink); opacity: .85; }
.nav__links a:hover { opacity: 1; color: var(--amber); text-decoration: none; }
.nav__right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav__links + .nav__right { margin-left: 0; }

.lang {
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .08em;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--navy);
  padding: 6px 10px;
  cursor: pointer;
}
.lang:hover { border-color: var(--blue); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 72px 24px;
  overflow: hidden;
}
/* Hero: venue photo with a gentle vignette so it stays visible but the
   centred type still reads. The photo sits behind, a soft wash over it. */
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url("img/mariage.jpg");
  background-size: cover;
  background-position: center 46%;
  background-repeat: no-repeat;
}
.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  /* darken edges, lift the middle slightly */
  background:
    radial-gradient(ellipse at 50% 46%, rgba(250,245,238,.72) 0%, rgba(250,245,238,.34) 34%, rgba(74,85,96,.30) 100%);
}
/* faint grain to echo the watercolour paper */
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(107,116,128,.05) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .45;
}

/* soft paper panel so the names never fight the photo */
.hero__content {
  position: relative;
  max-width: 780px;
  padding: 40px 34px 44px;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(250,246,240,.86) 0%, rgba(250,246,240,.94) 100%);
  box-shadow: 0 22px 60px rgba(74,85,96,.16);
  backdrop-filter: blur(3px);
}
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .78rem;
  color: var(--blue);
  margin-bottom: 1.4rem;
}
.hero__names {
  font-size: clamp(2.8rem, 9vw, 5.6rem);
  font-weight: 400;
  margin: 0 0 .2em;
  color: var(--navy);
}
.hero__names .amp { color: var(--amber); font-style: italic; }
.hero__date { font-size: clamp(.95rem, 2.4vw, 1.15rem); color: var(--muted); letter-spacing: .04em; margin-bottom: 2.4rem; }

/* ---------- countdown ---------- */
.countdown { display: flex; justify-content: center; gap: 26px; margin: 0 0 2.6rem; flex-wrap: wrap; }
.countdown__unit { display: flex; flex-direction: column; align-items: center; min-width: 58px; }
.countdown__num { font-family: var(--serif); font-size: clamp(1.6rem, 4vw, 2.3rem); color: var(--navy); line-height: 1; }
.countdown__label { text-transform: uppercase; letter-spacing: .16em; font-size: .62rem; color: var(--muted); margin-top: 6px; }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--tint { background: var(--tint); }
.section--accent { background: var(--navy); color: #ece5da; }
.section--accent h2, .section--accent .lead { color: #f6efe3; }
.section--accent .btn { background: var(--blush); border-color: var(--blush); color: #4a5560; }
.section--accent .btn:hover { background: #fff; border-color: #fff; }
.section--accent .hint { color: #c3bcb0; }
.section--accent a { color: var(--blush); }

/* ---------- split ---------- */
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.split__media { height: 100%; }
.media-placeholder {
  height: 100%;
  min-height: 320px;
  border: 1px dashed var(--slate);
  border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, #f7f1e8, #f7f1e8 12px, #f1eaDF 12px, #f1eadf 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: .85rem;
  font-style: italic;
  text-align: center;
  padding: 20px;
}
.media-placeholder--wide { min-height: 260px; }

/* ---------- facts ---------- */
.facts { margin: 2rem 0 1.2rem; padding: 0; }
.facts > div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.facts dt { text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; color: var(--blue); padding-top: 3px; }
.facts dd { margin: 0; }

/* ---------- timeline ---------- */
.timeline { list-style: none; margin: 2.4rem 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 92px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline__item { display: grid; grid-template-columns: 80px 1fr; gap: 24px; padding: 14px 0; align-items: baseline; }
.timeline__time { font-family: var(--serif); font-size: 1.25rem; color: var(--amber); text-align: right; }
.timeline__what { font-size: 1.05rem; }

.callout {
  margin-top: 2.5rem;
  padding: 26px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.callout h3 { margin-bottom: .4em; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin: 2.4rem 0; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(35,31,52,.08); }
.card h3 { margin-bottom: .35em; }
.card p { margin: 0; font-size: .95rem; color: var(--muted); }
.cards--visit .card { border-top: 3px solid var(--gold); }

/* ---------- access ---------- */
.access { margin: 2.4rem 0; }
.access__row { padding: 20px 0; border-top: 1px solid var(--line); }
.access__row:last-child { border-bottom: 1px solid var(--line); }
.access__row h3 { margin-bottom: .3em; }
.access__row p { margin: 0; color: var(--muted); }

/* ---------- gifts ---------- */
.gift { margin: 1.6rem 0; padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.iban { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 1rem; letter-spacing: .04em; word-break: break-all; color: var(--navy); }

/* ---------- faq ---------- */
.faq { margin: 2.4rem 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 30px 16px 0;
  position: relative;
  font-family: var(--serif);
  font-size: 1.12rem;
  color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.3rem; color: var(--amber); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 30px 10px 0; margin: 0; }

/* ---------- footer ---------- */
.footer { background: var(--navy); color: #d6cfc2; padding: 56px 0; }
.footer__names { font-family: var(--serif); font-size: 1.5rem; color: #fbf6ee; margin-bottom: .2em; }
.footer__date { font-size: .9rem; letter-spacing: .06em; margin-bottom: 1.2rem; }
.footer__note { font-size: .82rem; color: #a8a094; margin: 0; }

/* ---------- photo figures ---------- */
.figure { margin: 0; }
.figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(107,116,128,.18);
  box-shadow: 0 14px 40px rgba(74,85,96,.13);
}
.figure figcaption {
  margin-top: 10px;
  font-size: .8rem;
  font-style: italic;
  color: var(--muted);
  text-align: center;
}
/* illustration, centred and narrower */
.figure--sketch { max-width: 620px; margin: 2.6rem auto 0; }
.figure--sketch img { border: none; box-shadow: none; }

/* photo strip */
.strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 2.6rem 0;
}
.strip img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(107,116,128,.18);
}
@media (max-width: 820px) { .strip img { height: 170px; } }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split__media { order: -1; }
  .media-placeholder { min-height: 220px; }
  .nav__links { display: none; }
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
  .facts dt { padding-top: 0; }
  .timeline::before { left: 68px; }
  .timeline__item { grid-template-columns: 56px 1fr; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card:hover { transform: none; }
}
