:root {
  /* Wedding palette — sampled from the invitation suite
     (terracotta + navy + sage greenery on cream). */
  --navy-deep:  #153250;   /* deepest navy */
  --navy-mid:   #2b465d;   /* mid navy — panels */
  --slate-blue: #526571;   /* muted slate blue */
  --terracotta: #956147;   /* primary accent (as printed) */
  --clay:       #9c7760;   /* softer terracotta / clay */
  --sage-deep:  #3a4b40;   /* deep greenery */
  --sage:       #798c79;   /* mid sage */
  --sage-light: #97a88e;   /* light sage */
  --warm-sand:  #d0c3b7;   /* warm neutral */
  --cream:      #e3e3e2;   /* light paper */

  /* Dark scheme mapped onto the palette: navy grounds, cream text,
     terracotta accent, sage for secondary text. */
  --ink: var(--cream);          /* primary text */
  --muted: var(--sage-light);   /* secondary text — the greenery */
  --accent: #c4805f;            /* invite terracotta, lightened for contrast on navy */
  --bg: var(--navy-deep);       /* page background */
  --card: var(--navy-mid);      /* raised panel */
  --line: #2f4a63;              /* subtle navy divider */
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", system-ui, sans-serif;
  --script: "Great Vibes", "Cormorant Garamond", cursive;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  /* Watercolour texture over the navy ground, sized to always cover the
     viewport so no solid background-color gap ever shows through. */
  background-color: var(--bg);
  background-image: url("../img/navy-watercolor-2.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.65;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header / nav */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.site-nav a {
  margin-left: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--muted);
}

.site-main { min-height: 60vh; }

/* Hero */
.hero {
  position: relative;
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  /* Stronger, localised washes so the names sit in a pool of colour. */
  /* background: */
  /*   radial-gradient(38rem 26rem at 16% 10%, rgba(196, 128, 95, 0.20), transparent 66%), */
  /*   radial-gradient(34rem 24rem at 88% 6%, rgba(58, 75, 64, 0.22), transparent 66%), */
  /*   radial-gradient(42rem 30rem at 62% 112%, rgba(43, 70, 93, 0.45), transparent 72%); */
}
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
}
.hero-names {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(3.5rem, 11vw, 6.5rem);
  line-height: 1.1;
  margin: 0;
}
.hero-names span { color: var(--accent); }
.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--muted);
  margin: 0.5rem 0 1.5rem;
}
.hero-meta {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
}
.hero-actions { margin-top: 2.5rem; }

.button {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--accent);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  border-radius: 2px;
}
.button:hover { text-decoration: none; opacity: 0.92; }

/* Prose sections */
.prose {
  max-width: 42rem;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.prose h1, .prose h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.prose h1 { font-size: 2.5rem; margin-top: 0; }
.prose h2 { font-size: 1.6rem; margin-top: 2.5rem; }

.hotel-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
.hotel-list li {
  line-height: 1.6;
}
.hotel-list li + li {
  margin-top: 1.25rem;
}

/* RSVP */
.rsvp {
  max-width: 46rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}
.rsvp-heading {
  font-family: var(--serif);
  font-weight: 500;
  text-align: center;
  font-size: 2.5rem;
  margin: 0 0 0.5rem;
}
.rsvp-confirm {
  max-width: 34rem;
  margin: 0 auto 2rem;
  padding: 0.85rem 1.25rem;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.rsvp-confirm strong {
  color: var(--ink);
  font-weight: 600;
}
.rsvp-note {
  text-align: center;
  color: var(--muted);
  margin-bottom: 2rem;
}
.rsvp-error {
  max-width: 30rem;
  margin: 0 auto 1.5rem;
  padding: 0.75rem 1rem;
  text-align: center;
  background: rgba(196, 128, 95, 0.14);
  border: 1px solid var(--accent);
  border-radius: 0.5rem;
  color: var(--ink);
}
.rsvp-lookup-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  max-width: 30rem;
  margin: 0 auto;
}
.rsvp-lookup-form input {
  flex: 1 1 16rem;
  padding: 0.85rem 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.95rem;
}
.rsvp-lookup-form input::placeholder { color: var(--muted); }
.rsvp-lookup-form .button {
  border: none;
  cursor: pointer;
  font-family: var(--sans);
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

/* RSVP survey (SurveyJS) — themed to match the site: warm-paper cards on the
   navy ground, deep-navy text, terracotta accent, site fonts. Selector beats
   survey-core defaults on specificity regardless of stylesheet order. */
.rsvp .sd-root-modern,
#surveyContainer {
  --sjs-font-family: var(--sans);
  --sjs-corner-radius: 4px;
  --sjs-base-unit: 8px;
  --sjs-general-backcolor: #f7f2ea;            /* card / question surface */
  --sjs-general-backcolor-dark: #efe7db;
  --sjs-general-backcolor-dim: transparent;    /* let the navy site show through */
  --sjs-general-backcolor-dim-light: #f2ebe1;
  --sjs-general-backcolor-dim-dark: #e7ddce;
  --sjs-general-forecolor: #17293d;            /* deep navy text, on paper cards */
  --sjs-general-forecolor-light: #64574b;      /* muted secondary, on paper cards */
  --sjs-general-dim-forecolor: var(--ink);     /* text directly on navy site bg */
  --sjs-general-dim-forecolor-light: var(--muted);
  --sjs-primary-backcolor: var(--accent);      /* terracotta */
  --sjs-primary-backcolor-dark: #b06f52;       /* hover / active */
  --sjs-primary-backcolor-light: rgba(196, 128, 95, 0.14);
  --sjs-primary-forecolor: #ffffff;
  --sjs-border-default: #d8cbbb;
  --sjs-border-light: #eadfd1;
}
.rsvp .sd-root-modern { background: transparent; }
/* Survey header title in the site serif, like other headings. */
.rsvp .sd-header__text .sd-title { font-family: var(--serif); font-weight: 500; }

/* Mobile browsers resize the viewport (address-bar show/hide) and can flash
   the solid background-color under a `fixed` background during that resize.
   `scroll` re-renders with the page instead, so the image always covers. */
@media (max-width: 768px) {
  body { background-attachment: scroll; }
}
