:root {
  --blush: #f4e9e6;
  --blush-deep: #e3c9c3;
  --gold: #b8924a;
  --gold-bright: #c9a463;
  --gold-light: #ddc48c;
  --green: #123c2e;
  --green-deep: #0c2b20;
  --green-light: #1f5c46;
  --ink: #332d24;
  --ink-soft: #6b5f54;
  --cream: #fffaf5;
  --ok: #2f6b4f;
  --no: #b06a5a;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--ink);
  display: flex;
  justify-content: center;
  padding: 40px 16px 64px;
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(201, 164, 99, 0.18), transparent 70%),
    radial-gradient(circle at 12% 30%, rgba(227, 201, 195, 0.55), transparent 38%),
    radial-gradient(circle at 90% 65%, rgba(227, 201, 195, 0.45), transparent 36%),
    linear-gradient(180deg, var(--blush) 0%, var(--cream) 50%);
  background-attachment: fixed;
}

.page { width: 100%; max-width: 560px; }
.page-info { max-width: 640px; }

/* ---- Header ---- */

.site-header { text-align: center; margin-bottom: 30px; }

.monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 20px;
  color: var(--gold-bright);
  margin-bottom: 4px;
}
.monogram span {
  display: block;
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-bright));
}
.monogram span:last-child { transform: scaleX(-1); }

.site-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(42px, 11vw, 58px);
  line-height: 1.05;
  letter-spacing: 1px;
  margin: 0;
  color: var(--green);
}

.site-sub {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
  margin: 8px 0 0;
  font-size: 19px;
}

/* ---- Card ---- */

.card {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--blush-deep);
  border-radius: 20px;
  padding: 38px 28px;
  box-shadow: 0 18px 40px rgba(176, 141, 87, 0.14), 0 2px 6px rgba(176, 141, 87, 0.08);
  animation: rise 0.7s ease-out both;
}
/* thin gold keyline inside the card */
.card::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(201, 164, 99, 0.45);
  border-radius: 14px;
  pointer-events: none;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 34px;
  line-height: 1.15;
  margin: 0 0 6px;
  color: var(--green);
  text-align: center;
}

p.lead {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--ink-soft);
  margin: 0 0 8px;
}

/* ---- Forms ---- */

label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin: 20px 0 6px;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--blush-deep);
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 16px;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(201, 164, 99, 0.22);
}

.btn {
  display: inline-block;
  width: 100%;
  text-align: center;
  margin-top: 26px;
  padding: 14px 16px;
  background: linear-gradient(180deg, var(--green-light), var(--green));
  color: #fff;
  border: 1px solid var(--green-deep);
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(18, 60, 46, 0.22);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(18, 60, 46, 0.28); }
.btn:active { transform: none; }

.btn.secondary {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  box-shadow: none;
}
.btn.secondary:hover { background: var(--blush); box-shadow: none; }

:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }

.error {
  background: #fbe9e6;
  border: 1px solid #e3b3a9;
  color: #8f4436;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  text-align: center;
  margin-top: 18px;
}

.notice {
  background: #eef4ec;
  border: 1px solid #c6dcc0;
  color: #4b6e46;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  text-align: center;
  margin-top: 18px;
}

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

.guest-block {
  border-top: 1px solid var(--blush-deep);
  padding-top: 18px;
  margin-top: 20px;
}

.guest-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 26px;
  margin-bottom: 10px;
  color: var(--green);
}

.choice-group { margin-bottom: 14px; }

.choice-group .choice-label {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 6px;
  display: block;
}

.choice-row { display: flex; gap: 10px; }

.choice-row input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-row label.pill {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  border: 1px solid var(--blush-deep);
  border-radius: 10px;
  font-size: 15px;
  color: var(--ink-soft);
  cursor: pointer;
  letter-spacing: normal;
  margin: 0;
  background: #fff;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.choice-row label.pill:hover { border-color: var(--gold-bright); }

.choice-row input[type="radio"]:focus-visible + label.pill {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}
.choice-row input[type="radio"]:checked + label.pill.yes {
  background: var(--ok);
  border-color: var(--ok);
  color: #fff;
}
.choice-row input[type="radio"]:checked + label.pill.no {
  background: var(--no);
  border-color: var(--no);
  color: #fff;
}

/* ---- Info page ---- */

.countdown {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201, 164, 99, 0.22), transparent 65%),
    linear-gradient(180deg, var(--green) 0%, var(--green-deep) 100%);
  border: 1px solid var(--gold-bright);
  border-radius: 16px;
  padding: 28px 16px 24px;
  margin: 26px 0 8px;
  text-align: center;
  color: var(--gold-light);
  box-shadow: 0 10px 26px rgba(18, 60, 46, 0.28);
}
.countdown-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  margin: 0 0 16px;
  color: var(--gold-light);
}
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 420px;
  margin: 0 auto;
}
.countdown-unit {
  border-left: 1px solid rgba(221, 196, 140, 0.3);
}
.countdown-unit:first-child { border-left: none; }
.countdown-num {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(38px, 11vw, 58px);
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.countdown-label {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--gold-light);
}
.countdown-date {
  margin: 20px 0 0;
  font-family: var(--serif);
  font-size: 19px;
  color: var(--gold-light);
}
.countdown-done {
  font-family: var(--serif);
  font-size: 30px;
  color: #fff;
  margin: 4px 0;
}

.rsvp-summary {
  margin: 22px 0 6px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--blush-deep);
  border-radius: 12px;
}
.rsvp-summary h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--green);
  margin: 0 0 8px;
}
.rsvp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 7px 0;
  border-top: 1px solid var(--blush);
  font-size: 15px;
}
.rsvp-row:first-of-type { border-top: none; }
.rsvp-row-tags { display: flex; gap: 6px; }

.info-section {
  margin-top: 30px;
  text-align: center;
}
.info-section::before {
  content: '';
  display: block;
  width: 70px;
  height: 1px;
  margin: 0 auto 22px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
}
.info-section h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 27px;
  color: var(--gold);
  margin: 0 0 8px;
}
.info-section p {
  color: var(--ink-soft);
  line-height: 1.7;
  font-size: 16px;
  margin: 0;
}

/* map */
.map-block { margin-top: 14px; }
.map-tabs {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.map-tab {
  font-family: var(--sans);
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--blush-deep);
  background: #fff;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.map-tab:hover { border-color: var(--gold-bright); }
.map-tab[aria-selected="true"] {
  background: var(--green);
  border-color: var(--green);
  color: var(--gold-light);
}
.map-frame {
  border: 1px solid var(--gold-bright);
  border-radius: 14px;
  overflow: hidden;
  background: var(--blush);
  box-shadow: 0 8px 20px rgba(176, 141, 87, 0.16);
}
.map-frame iframe {
  display: block;
  width: 100%;
  height: 340px;
  border: 0;
}
.map-open {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  color: var(--green-light);
}

.site-footer {
  text-align: center;
  margin-top: 28px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-soft);
}
.site-footer p { margin: 0; }

.top-link {
  display: block;
  text-align: center;
  margin-top: 34px;
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.top-link:hover { color: var(--gold); }

/* ---- Admin ---- */

.admin-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 0 22px;
  flex-wrap: wrap;
}

.admin-nav a {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--blush-deep);
  background: #fff;
  transition: border-color 0.2s, color 0.2s;
}
.admin-nav a:hover { border-color: var(--gold-bright); color: var(--gold); }
.admin-nav a.active {
  background: var(--green);
  border-color: var(--green);
  color: var(--gold-light);
}

.page-admin .card { max-width: 640px; margin: 0 auto; }

.table-scroll { overflow-x: auto; margin-top: 12px; }

table.admin-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 14px;
}
table.admin-table th, table.admin-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--blush-deep);
  vertical-align: top;
}
table.admin-table tbody tr:hover { background: var(--blush); }
table.admin-table th {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
}
table.admin-table td.mono {
  font-weight: 500;
  color: var(--green);
  white-space: nowrap;
}

.guest-row { margin-bottom: 6px; line-height: 1.5; }
.guest-row:last-child { margin-bottom: 0; }
.guest-row-name { display: block; font-size: 14px; color: var(--ink); }
.guest-row-tags { display: block; font-size: 12px; }

textarea.textarea-field {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--blush-deep);
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 15px;
  background: #fff;
  color: var(--ink);
  resize: vertical;
}
textarea.textarea-field:focus {
  outline: none;
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(201, 164, 99, 0.22);
}

.tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
}
.tag.yes { background: #e3ede8; color: var(--ok); }
.tag.no { background: #fbe9e6; color: #8f4436; }
.tag.pending { background: #f2ede6; color: var(--ink-soft); }

@media (max-width: 420px) {
  .card { padding: 32px 20px; }
  .map-frame iframe { height: 300px; }
}

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

