/* ============================================================
   Charlène & Benjamin — Wedding Mini-Site
   Romantic classic — ivory, deep ink, bronze accent
   ============================================================ */

:root {
  --bg: #F6F1EA;
  --ink: #2A2A28;
  --accent: #8B6F47;
  --soft: #C9B89B;
  --display-font: "Italiana", serif;
  --body-font: "Cormorant Garamond", serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px 80px;
}

/* ---------- Small caps label ---------- */
.small-label {
  font-family: var(--body-font);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  font-style: normal;
}

/* ---------- Hairline divider ---------- */
.divider {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  margin: 28px auto;
}
.divider .line {
  flex: 1;
  height: 1px;
  background: var(--ink);
  opacity: 0.3;
}
.divider .ornament {
  color: var(--accent);
  font-size: 10px;
  opacity: 0.8;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 96px 0 56px;
  text-align: center;
}
.hero-top { margin-bottom: 36px; }

.hero-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.hero-names .name {
  font-family: var(--display-font);
  font-size: clamp(56px, 12vw, 108px);
  font-weight: 400;
  line-height: 0.95;
  margin: 0;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.hero-names .amp {
  font-family: var(--body-font);
  font-style: italic;
  font-size: clamp(36px, 7vw, 64px);
  color: var(--accent);
  line-height: 1;
  margin: 6px 0;
  font-weight: 400;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  margin-top: 8px;
}
.meta-block { text-align: center; }
.meta-block .small-label { margin-bottom: 8px; }
.meta-value {
  font-family: var(--body-font);
  font-size: 22px;
  font-style: italic;
  letter-spacing: 0.01em;
}
.meta-sub {
  font-size: 16px;
  color: var(--ink);
  opacity: 0.7;
  margin-top: 2px;
}

/* ============================================================
   PHOTO
   ============================================================ */
.photo-section {
  display: flex;
  justify-content: center;
  padding: 32px 0 56px;
}
.photo-frame {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--ink);
  padding: 14px;
  position: relative;
}
.photo-frame::before,
.photo-frame::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--accent);
  opacity: 0.45;
  pointer-events: none;
}
.photo-frame::after { display: none; }
.photo-inner {
  width: 100%;
  height: 100%;
  position: relative;
  background: color-mix(in oklab, var(--soft) 35%, var(--bg));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  filter: saturate(0.92) contrast(1.02);
}

/* ============================================================
   SECTIONS shared
   ============================================================ */
.section {
  padding: 64px 0;
}
.section-head {
  text-align: center;
  margin-bottom: 48px;
}
.section-head .small-label { margin-bottom: 14px; }
.section-title {
  font-family: var(--display-font);
  font-size: clamp(40px, 6.5vw, 64px);
  font-weight: 400;
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0.005em;
}
.section-title em {
  font-family: var(--body-font);
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

/* ============================================================
   PROGRAMME
   ============================================================ */
.programme {
  max-width: 460px;
  margin: 0 auto;
}
.prog-row {
  display: grid;
  grid-template-columns: 80px 32px 1fr;
  gap: 18px;
  align-items: flex-start;
  padding: 4px 0;
}
.prog-time {
  font-family: var(--display-font);
  font-size: 28px;
  line-height: 1.1;
  color: var(--ink);
  padding-top: 2px;
}
.prog-dot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  padding-top: 12px;
}
.prog-dot .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: var(--bg);
  z-index: 1;
}
.prog-dot .rail {
  position: absolute;
  top: 22px;
  bottom: -22px;
  width: 1px;
  background: var(--ink);
  opacity: 0.2;
}
.prog-body {
  padding: 4px 0 32px;
}
.prog-title {
  font-family: var(--display-font);
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 2px;
}
.prog-detail {
  font-size: 15px;
  color: var(--ink);
  opacity: 0.7;
}

/* ============================================================
   LIEU
   ============================================================ */
.lieu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: flex-start;
}
.address {
  font-family: var(--body-font);
  font-style: italic;
  font-size: 19px;
  line-height: 1.55;
  margin-bottom: 32px;
}
.lieu-notes {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.info-row { display: flex; flex-direction: column; gap: 6px; }
.info-value { font-size: 16px; line-height: 1.5; }

.lieu-map { display: flex; flex-direction: column; gap: 12px; }
.map-inner {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 8px;
  position: relative;
  background: color-mix(in oklab, var(--soft) 18%, var(--bg));
}
.map-caption {
  text-align: center;
  font-size: 14px;
  opacity: 0.7;
}

@media (max-width: 640px) {
  .lieu-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================================
   RSVP
   ============================================================ */
.rsvp-section {
  border-top: 1px solid color-mix(in oklab, var(--ink) 25%, transparent);
  margin-top: 32px;
}
.rsvp-form {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.field { display: flex; flex-direction: column; gap: 10px; }
.field-label {
  font-family: var(--body-font);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
}
.field-input {
  font-family: var(--body-font);
  font-size: 19px;
  background: transparent;
  border: none;
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 40%, transparent);
  padding: 8px 0 10px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease;
  font-style: italic;
}
.field-input::placeholder {
  color: color-mix(in oklab, var(--ink) 35%, transparent);
  font-style: italic;
}
.field-input:focus {
  border-bottom-color: var(--accent);
}
.field-input.err {
  border-bottom-color: #B8554A;
}
.field-textarea {
  border: 1px solid color-mix(in oklab, var(--ink) 30%, transparent);
  padding: 12px 14px;
  resize: vertical;
  font-style: normal;
}
.field-err {
  font-size: 13px;
  color: #B8554A;
}

/* Radio cards */
.radio-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.radio-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 24px 16px;
  border: 1px solid color-mix(in oklab, var(--ink) 25%, transparent);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  position: relative;
}
.radio-card:hover {
  border-color: color-mix(in oklab, var(--accent) 55%, transparent);
}
.radio-card.on {
  border-color: var(--accent);
  background: color-mix(in oklab, var(--accent) 6%, var(--bg));
}
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-title {
  font-family: var(--display-font);
  font-size: 24px;
  line-height: 1.2;
}
.radio-title em {
  font-family: var(--body-font);
  font-style: italic;
  color: var(--accent);
}
.radio-sub {
  font-size: 13px;
  opacity: 0.65;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-style: normal;
}

/* Stepper */
.stepper {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 0;
}
.step-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid color-mix(in oklab, var(--ink) 40%, transparent);
  background: transparent;
  color: var(--ink);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--body-font);
  transition: all 0.15s ease;
  line-height: 1;
}
.step-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.step-val {
  font-family: var(--display-font);
  font-size: 28px;
  min-width: 24px;
  text-align: center;
}
.step-hint {
  font-size: 14px;
  color: var(--ink);
  opacity: 0.6;
  margin-left: 6px;
}

/* Guests list */
.guests-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 22px 20px;
  border: 1px solid color-mix(in oklab, var(--ink) 18%, transparent);
  background: color-mix(in oklab, var(--soft) 14%, var(--bg));
}
.guests-label {
  margin-bottom: 2px;
}
.guests-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.guest-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 10px;
}
.guest-num {
  font-family: var(--display-font);
  font-size: 18px;
  color: var(--accent);
  text-align: right;
}
.guest-input {
  font-size: 17px;
  padding: 6px 0 8px;
}

/* Submit error */
.submit-error {
  text-align: center;
  font-size: 15px;
  color: #B8554A;
  padding: 8px 0;
}

/* Submit */
.submit-btn {
  align-self: center;
  margin-top: 8px;
  background: var(--ink);
  color: var(--bg);
  border: none;
  padding: 16px 44px;
  font-family: var(--body-font);
  font-size: 14px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}
.submit-btn:hover {
  background: var(--accent);
}

/* Thanks */
.rsvp-thanks {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
  padding: 32px 0;
}
.thanks-body {
  font-family: var(--body-font);
  font-size: 20px;
  line-height: 1.6;
  margin: 20px 0 24px;
}
.thanks-body em { color: var(--accent); }
.link-btn {
  background: none;
  border: none;
  font-family: var(--body-font);
  font-style: italic;
  font-size: 15px;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 0.5px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  text-align: center;
  padding: 56px 0 0;
}
.monogram {
  font-family: var(--display-font);
  font-size: 56px;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 12px;
  color: var(--ink);
  line-height: 1;
  margin: 12px 0 18px;
}
.mono-amp {
  font-family: var(--body-font);
  font-style: italic;
  color: var(--accent);
  font-size: 40px;
}
.footer-line {
  font-family: var(--body-font);
  font-size: 16px;
  letter-spacing: 0.15em;
  color: var(--ink);
  opacity: 0.85;
}
.footer-sub {
  margin-top: 8px;
  font-size: 13px;
  opacity: 0.55;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ============================================================
   Mobile
   ============================================================ */
@media (max-width: 520px) {
  .page { padding: 0 22px 60px; }
  .hero { padding: 64px 0 40px; }
  .section { padding: 48px 0; }
  .prog-row { grid-template-columns: 62px 24px 1fr; gap: 14px; }
  .prog-time { font-size: 22px; }
  .radio-row { grid-template-columns: 1fr; }
  .submit-btn { width: 100%; }
}
