:root {
  --navy: #06101f;
  --navy-2: #0c1b33;
  --ink: #0c1b33;
  --paper: #f6f3ec;
  --gold: #deb868;
  --gold-deep: #b58d3e;
  --white: #f6f4ee;
  --soft: #cfd6e4;
  --line: rgba(222, 184, 104, .35);
  --serif: "Cinzel", Georgia, serif;
  --sans: "Montserrat", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2 { font-family: var(--serif); font-weight: 800; line-height: 1.08; margin: 0; }

.kicker {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}
.kicker.dark { color: var(--gold-deep); }

.btn {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  padding: 16px 30px;
  background: var(--gold);
  color: var(--navy);
  font: 700 15px/1 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: #ecc982; transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
.btn-ghost { background: transparent; color: var(--gold); box-shadow: inset 0 0 0 2px var(--gold); }
.btn-ghost:hover { background: rgba(222, 184, 104, .12); }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; }
.hero-pic img { width: 100%; height: auto; }
.hero-shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(6,16,31,.88) 0%, rgba(6,16,31,.35) 26%, rgba(6,16,31,0) 40%);
}
/* phones: the title sits in the dark sky at the top of the picture, the RSVP card follows the picture */
@media (max-width: 899px) {
  .hero-copy {
    position: absolute; z-index: 2; top: 0; left: 0; right: 0;
    text-align: center;
    padding: 7vw 16px 0;
  }
  .hero-copy .sub { max-width: 30ch; margin-left: auto; margin-right: auto; text-shadow: 0 1px 12px rgba(6,16,31,.9); }
  .hero-copy .kicker { font-size: 11px; letter-spacing: .16em; }
  .hero-shade { background: linear-gradient(180deg, rgba(6,16,31,.92) 0%, rgba(6,16,31,.6) 30%, rgba(6,16,31,0) 48%); }
}
h1 { font-size: clamp(38px, 10.5vw, 84px); color: var(--white); letter-spacing: .01em; }
.h1-small {
  display: block;
  font-size: .5em;
  font-weight: 600;
  letter-spacing: .32em;
  color: var(--gold);
  margin-bottom: .1em;
}
.sub { margin: 14px 0 0; font-size: clamp(15px, 3.9vw, 19px); color: var(--soft); }
.when {
  margin: 14px 0 0;
  font-size: clamp(13px, 3.4vw, 16px);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}
.bar { opacity: .6; margin: 0 .4em; }
@media (max-width: 899px) {
  .when { display: none; } /* phones: the date leads the RSVP card instead */
}

/* RSVP card */
.rsvp { padding: 0 16px; margin-top: -48px; position: relative; z-index: 2; }
.rsvp-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: 18px;
  padding: 26px 22px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  max-width: 460px;
  margin: 0 auto;
}
.rsvp-card h2 { font-size: 30px; letter-spacing: .06em; color: var(--ink); }
.rsvp-lead { margin: 6px 0 18px; color: #4a5468; font-size: 15px; }
.rsvp-card::before {
  content: "Wednesday, October 28 · 6:00 PM sharp";
  display: block;
  margin-bottom: 12px;
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-deep);
}
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #2b3447; }
.field input, .field select {
  width: 100%;
  font: 500 16px var(--sans);
  padding: 13px 14px;
  border: 1.5px solid #cdd3de;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(181, 141, 62, .2); }
.field input[aria-invalid="true"] { border-color: #b3261e; }
.rsvp .btn { width: 100%; margin-top: 4px; padding: 18px; }
.form-msg { min-height: 1.2em; margin: 10px 0 0; font-size: 14px; color: #b3261e; }
.nrw-hold { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rsvp-done { text-align: center; padding: 10px 0 4px; }
.done-title { font-family: var(--serif); font-weight: 800; font-size: 26px; margin: 0 0 6px; }
.done-text { margin: 0 0 18px; color: #4a5468; }
.rsvp-done .btn-ghost { color: var(--gold-deep); box-shadow: inset 0 0 0 2px var(--gold-deep); width: auto; padding: 14px 26px; }

/* desktop: wide picture, copy + RSVP card on the dark storm side, Stephane and the ship on the right */
@media (min-width: 900px) {
  .hero { min-height: 100vh; display: flex; align-items: center; }
  .hero-pic { position: absolute; inset: 0; z-index: 0; }
  .hero-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
  .hero-shade { background: linear-gradient(90deg, rgba(6,16,31,.92) 0%, rgba(6,16,31,.7) 34%, rgba(6,16,31,0) 52%); }
  .hero-inner {
    position: relative; z-index: 2;
    width: 100%; max-width: 1240px; margin: 0 auto; padding: 56px 40px;
    display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px;
  }
  .hero-copy { position: static; transform: none; padding: 0; max-width: 620px; }
  h1 { font-size: clamp(48px, 4.6vw, 76px); }
  .rsvp { padding: 0; margin: 0; max-width: 560px; }
  .rsvp-card { margin: 0; max-width: none; padding: 24px 26px 22px; }
  .rsvp-card::before { display: none; }
  .rsvp-card h2 { font-size: 26px; }
  .rsvp-lead { margin-bottom: 14px; }
  #rsvp-form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; }
  #rsvp-form .field { margin-bottom: 12px; }
  #rsvp-form .btn, #rsvp-form .form-msg { grid-column: 1 / -1; }
}
@media (min-width: 900px) and (min-height: 860px) {
  .hero-inner { gap: 34px; }
}

/* ---------- details ---------- */
main { background: var(--paper); color: var(--ink); }
.facts {
  max-width: 1100px; margin: 0 auto; padding: 72px 16px 24px;
  display: grid; gap: 14px;
}
.fact { border-top: 2px solid var(--gold); padding-top: 14px; }
.fact-label { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); }
.fact-main { margin: 6px 0 2px; font-family: var(--serif); font-weight: 800; font-size: 24px; }
.fact-sub { margin: 0; color: #4a5468; }
@media (min-width: 760px) {
  .facts { grid-template-columns: repeat(3, 1fr); gap: 36px; padding: 96px 40px 40px; }
}

.about {
  max-width: 1100px; margin: 0 auto; padding: 48px 16px;
  display: grid; gap: 32px; align-items: center;
}
.about h2 { font-size: clamp(28px, 5vw, 44px); margin-bottom: 16px; }
.about p { font-size: 18px; color: #2b3447; margin: 0 0 24px; }
.ship { margin: 0; }
.ship img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  /* fade into the paper, no frame (seamless picture rule) */
  -webkit-mask-image: radial-gradient(120% 95% at 50% 45%, #000 62%, transparent 100%);
          mask-image: radial-gradient(120% 95% at 50% 45%, #000 62%, transparent 100%);
}
@media (min-width: 760px) {
  .about { grid-template-columns: 1.1fr 1fr; gap: 56px; padding: 72px 40px; }
}

.speaker {
  background: var(--navy); color: var(--white);
  padding: 64px 16px;
  display: grid; gap: 28px; align-items: center; justify-items: center; text-align: center;
}
.speaker-pic { margin: 0; width: min(320px, 78vw); }
.speaker-pic img {
  width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 18%;
  border-radius: 50%;
}
.speaker h2 { font-size: clamp(34px, 6vw, 52px); }
.speaker .role { margin: 6px 0 16px; color: var(--gold); font-weight: 600; letter-spacing: .06em; }
.speaker p { max-width: 44ch; margin-left: auto; margin-right: auto; color: var(--soft); font-size: 17px; }
@media (min-width: 760px) {
  .speaker {
    grid-template-columns: auto minmax(0, 520px); justify-content: center;
    text-align: left; justify-items: start; gap: 56px; padding: 88px 40px;
  }
  .speaker p { margin-left: 0; }
}

.last-call { text-align: center; padding: 72px 16px 88px; }
.last-call h2 { font-size: clamp(24px, 4.4vw, 38px); }
.last-call p { color: #4a5468; margin: 12px 0 26px; font-size: 17px; }

.foot { text-align: center; padding: 28px 16px 40px; font-size: 13px; color: #8b95a8; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
