/*
  Wedding site styles — James Holder + Shaday Yelverton, 2027-07-02
  Author: James Holder · Created: 2026-10-20
  Palette is PLACEHOLDER until Shaday picks colors — change the tokens below only.
*/

:root {
  --ivory: #f8f5ef;
  --paper: #fffdf9;
  --ink: #1f2a2a;
  --muted: #5e6a68;
  --accent: #2f4a43;      /* deep evergreen — placeholder */
  --gold: #b08d57;        /* hairlines + small accents */
  --line: #e4ddd0;

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

  --wrap: 760px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: var(--accent); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 245, 239, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.nav ul {
  list-style: none;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 26px;
  max-width: 960px;
}

.nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.nav a:hover { color: var(--accent); }

/* ---------- Hero ---------- */

.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.hero > div { position: relative; z-index: 1; }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 28px;
}

.hero h1 {
  font-size: clamp(48px, 10vw, 96px);
  font-weight: 400;
  color: var(--accent);
  margin: 0;
}

.hero h1 .amp {
  display: block;
  font-style: italic;
  font-size: 0.5em;
  color: var(--gold);
  margin: 6px 0;
}

/* Eyebrow line ("Save the Date", "Together with their families"): gold script flanked by hairlines. */
.hero .eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  font-family: "Great Vibes", var(--serif);
  word-spacing: 0.14em;
  font-size: clamp(36px, 6.5vw, 66px);
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.2;
  color: var(--gold);
  margin: 0 0 22px;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    1px 2px 0 rgba(176, 141, 87, 0.25),
    0 6px 14px rgba(176, 141, 87, 0.25);
}

.hero .eyebrow::before,
.hero .eyebrow::after {
  content: "";
  height: 1px;
  flex: 0 0 clamp(24px, 8vw, 90px);
  background: linear-gradient(to right, transparent, var(--gold));
}

.hero .eyebrow::after { background: linear-gradient(to left, transparent, var(--gold)); }

/* Names: faint gold echo + soft lift so they sit raised off the page. */
.hero h1 {
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    1.5px 2px 0 rgba(176, 141, 87, 0.35),
    0 8px 18px rgba(31, 42, 42, 0.16);
}

.hero h1 .amp { text-shadow: 0 3px 8px rgba(176, 141, 87, 0.35); }

/* White-and-gold hibiscus vines trailing along the top-left and bottom-right edges. */
.floral {
  position: absolute;
  width: clamp(210px, 32vw, 460px);
  opacity: 1;
  pointer-events: none;
}

.floral.tl { top: 0; left: 0; }
.floral.br { bottom: 0; right: 0; transform: rotate(180deg); }

.rule {
  width: 64px;
  height: 1px;
  background: var(--gold);
  border: 0;
  margin: 36px auto;
}

.hero .when {
  font-family: var(--serif);
  font-size: clamp(22px, 4vw, 30px);
  margin: 0;
}

.hero .where {
  color: var(--muted);
  margin: 6px 0 0;
}

.countdown {
  margin-top: 28px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.btn {
  display: inline-block;
  margin-top: 36px;
  padding: 14px 34px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn:hover { background: transparent; color: var(--accent); }

.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost:hover { background: var(--accent); color: var(--paper); }

/* ---------- Sections ---------- */

section { padding: 96px 0; }

section + section { border-top: 1px solid var(--line); }

.section-title {
  text-align: center;
  font-family: "Great Vibes", var(--serif);
  font-weight: 400;
  font-size: clamp(46px, 8vw, 64px);
  word-spacing: 0.12em;
  color: var(--gold);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    1px 2px 0 rgba(176, 141, 87, 0.25),
    0 6px 14px rgba(176, 141, 87, 0.25);
}

.section-title + .rule { margin-top: 8px; }

.lede {
  text-align: center;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 40px;
}

.placeholder {
  border-left: 2px solid var(--gold);
  padding-left: 18px;
  font-style: italic;
  color: var(--muted);
}

/* Details grid */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 30px 24px;
  text-align: center;
}

.card h3 {
  font-size: 26px;
  color: var(--accent);
}

.card p { margin: 0; }

.card .small {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}

/* ---------- RSVP form ---------- */

.rsvp-form {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 40px 32px;
  display: grid;
  gap: 22px;
}

.field { display: grid; gap: 6px; }

.field label,
.field legend {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0;
}

.field fieldset { border: 0; margin: 0; padding: 0; }

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  font: inherit;
  font-size: 16px; /* keeps iOS from zooming */
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 12px 14px;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
}

textarea { min-height: 90px; resize: vertical; }

.choices { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 6px; }

.choices label {
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.choices input { accent-color: var(--accent); }

.rsvp-form .btn { margin-top: 6px; justify-self: center; }

.form-note {
  text-align: center;
  font-size: 15px;
  color: var(--muted);
  min-height: 1.5em;
  margin: 0;
}

.attending-only[hidden] { display: none; }

/* Spam honeypot — off-screen rather than display:none so naive bots still fill it. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Registry ---------- */

.registry {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.registry .btn { margin-top: 0; }

/* ---------- Vendors page ---------- */

.vendor-list {
  display: grid;
  gap: 16px;
}

.vendor {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.vendor h3 { font-size: 24px; margin: 0; color: var(--accent); }

.vendor .role {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-head {
  text-align: center;
  padding: 80px 20px 0;
}

/* ---------- Save-the-date page ---------- */

.std-card { min-height: calc(100vh - 170px); border-bottom: 0; }

.std-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--muted);
  margin: 28px 0 0;
}

.std-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

.std-actions .btn { margin-top: 0; }

/* ---------- Footer ---------- */

footer {
  text-align: center;
  padding: 64px 20px 72px;
  background: var(--accent);
  color: var(--ivory);
}

footer .names {
  font-family: var(--serif);
  font-size: 32px;
  margin: 0;
}

footer p { margin: 6px 0 0; font-size: 14px; opacity: 0.8; }

footer a { color: var(--ivory); }

/* ---------- Small screens ---------- */

@media (max-width: 560px) {
  body { font-size: 16px; }
  section { padding: 72px 0; }
  .row { grid-template-columns: 1fr; }
  .rsvp-form { padding: 28px 18px; }
  .nav ul { gap: 4px 18px; padding: 12px 16px; }
  .floral { width: 190px; opacity: 0.95; }
  .hero .eyebrow { font-size: 31px; gap: 10px; }
  .hero .eyebrow::before,
  .hero .eyebrow::after { flex-basis: 16px; }
}
