:root {
  --navy: #14254a;
  --navy-2: #1f3a78;
  --gold: #8a7340;
  --gold-soft: #c9b98c;
  --cream: #fbf7ee;
  --paper: #ffffff;
  --ink: #1c1c1c;
  --muted: #5d5a52;
  --red: #b3263a;
  --ok: #1d6b3a;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy-2); }

/* ---------- top nav ---------- */
.nav {
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
}
.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 15px;
}
.brand span { color: var(--gold-soft); }
.nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.nav-links a {
  color: #dfe5f3;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 6px;
}
.nav-links a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-links a[aria-current="page"] { background: var(--gold); color: #fff; }

/* ---------- layout ---------- */
main { max-width: 960px; margin: 0 auto; padding: 28px 20px 64px; }

.page-title {
  font-weight: 800;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.1;
  color: var(--navy);
  margin: 8px 0 6px;
  letter-spacing: -.01em;
}
.page-sub { color: var(--muted); margin: 0 0 24px; font-size: 17px; }

.card {
  background: var(--paper);
  border: 1px solid #e7dfcc;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 1px 2px rgba(20,37,74,.06), 0 8px 24px rgba(20,37,74,.06);
}

/* ---------- home ---------- */
.hero { text-align: center; }
.hero img {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,.08), 0 18px 48px rgba(20,37,74,.18);
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 28px 0 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 26px;
  border-radius: 10px;
  border: 2px solid var(--navy);
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  min-width: 180px;
}
.btn:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn.alt { background: transparent; color: var(--navy); }
.btn.alt:hover { background: var(--navy); color: #fff; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.details .card { padding: 18px 20px; }
.label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 4px;
}
.details p.value { margin: 0; font-weight: 600; color: var(--navy); }
.details p.small { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

/* ---------- forms ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

form .field { margin-bottom: 16px; }
label.f {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--navy);
}
label.f .opt { font-weight: 400; color: var(--muted); }
input[type=text], textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border: 1.5px solid #cfc7b3;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
input[type=text]:focus, textarea:focus {
  outline: none;
  border-color: var(--navy-2);
  box-shadow: 0 0 0 3px rgba(31,58,120,.15);
}
textarea { min-height: 80px; resize: vertical; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.msg {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  display: none;
}
.msg.show { display: block; }
.msg.ok { background: #e7f4ec; color: var(--ok); }
.msg.err { background: #fbe9ec; color: var(--red); }

/* ---------- guest list ---------- */
.count-box {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
}
.count-box div {
  flex: 1;
  background: var(--cream);
  border: 1px solid #e7dfcc;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}
.count-box strong {
  display: block;
  font-size: 30px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
}
.count-box span { font-size: 13px; color: var(--muted); }

.guest-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 520px;
  overflow-y: auto;
}
.guest-list li {
  padding: 10px 2px;
  border-bottom: 1px solid #eee6d4;
  font-weight: 600;
}
.guest-list li:last-child { border-bottom: 0; }
.guest-list li .plus { font-weight: 400; color: var(--muted); }
.empty { color: var(--muted); font-style: italic; }

/* ---------- photos ---------- */
.drop {
  display: block;
  border: 2px dashed var(--gold-soft);
  border-radius: 12px;
  padding: 28px 16px;
  text-align: center;
  background: var(--cream);
  cursor: pointer;
}
.drop.over { border-color: var(--navy-2); background: #eef2fb; }
.drop strong { color: var(--navy); font-size: 17px; }
.drop p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.drop input { display: none; }

.queue {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  margin: 16px 0 0;
}
.queue figure {
  margin: 0;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #eee;
  aspect-ratio: 1;
}
.queue img { width: 100%; height: 100%; object-fit: cover; display: block; }
.queue .badge {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 6px;
  background: rgba(20,37,74,.85);
  color: #fff;
}
.queue .badge.done { background: rgba(29,107,58,.9); }
.queue .badge.fail { background: rgba(179,38,58,.92); }
.queue .rm {
  position: absolute;
  top: 4px; right: 4px;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 0;
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: 16px;
  line-height: 26px;
  cursor: pointer;
}

.note { color: var(--muted); font-size: 14px; }

footer {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 24px 20px 40px;
}
footer .stars { color: var(--gold); letter-spacing: .4em; }

/* ---------- welcome message ---------- */
.welcome {
  max-width: 720px;
  margin: 28px auto 0;
  padding: 28px 32px;
}
.welcome h2 {
  font-weight: 800;
  font-size: 26px;
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 12px;
}
.welcome > p { font-size: 17px; margin: 0 0 20px; }
.info-list { margin: 8px 0 20px; }
.info-list > div {
  padding: 14px 0 14px 16px;
  border-left: 3px solid var(--gold-soft);
  margin-bottom: 12px;
}
.info-list dt { font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.info-list dd { margin: 0; color: #33312c; }
.welcome .closing {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid #eee6d4;
}
@media (max-width: 520px) { .welcome { padding: 22px 20px; } }
