
:root {
  --bg: #fbf7f2;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: #ffffff;
  --line: rgba(78, 56, 46, 0.12);
  --text: #402d25;
  --muted: #7b675d;
  --accent: #b77b63;
  --accent-soft: rgba(183, 123, 99, 0.14);
  --success: #3f7f56;
  --success-soft: rgba(63, 127, 86, 0.12);
  --danger: #a14f4f;
  --danger-soft: rgba(161, 79, 79, 0.12);
  --warn: #8a6b24;
  --warn-soft: rgba(138, 107, 36, 0.14);
  --shadow: 0 18px 48px rgba(60, 38, 28, 0.08);
  --radius: 22px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(183, 123, 99, 0.16), transparent 28%),
    radial-gradient(circle at bottom left, rgba(183, 123, 99, 0.10), transparent 24%),
    var(--bg);
}

body {
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p, li, dd {
  line-height: 1.65;
}

h1, h2, h3, h4 {
  margin: 0 0 0.65rem;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

main {
  padding-bottom: 4rem;
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero-shell {
  padding: 3rem 0 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.25rem;
  align-items: center;
}

.hero-copy {
  padding: 1rem 0;
}

.eyebrow {
  display: inline-block;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.02;
  margin-bottom: 1rem;
}

.lead {
  font-size: clamp(1rem, 1.55vw, 1.2rem);
  color: var(--muted);
  max-width: 58ch;
  margin-bottom: 1.5rem;
}

.hero-highlight {
  max-width: 62ch;
  margin-bottom: 1.5rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-text {
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  color: var(--muted);
}

.hero-text p {
  margin: 0 0 1rem;
}

.hero-text p:last-child {
  margin-bottom: 0;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.meta-pill {
  min-width: 160px;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.meta-pill strong,
.stat-card span {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero-photo,
.card,
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-photo {
  padding: 0.8rem;
  border-radius: 28px;
  overflow: hidden;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 22px;
}

.intro-grid,
.stack-grid,
.two-column-admin {
  display: grid;
  gap: 1.25rem;
}

.intro-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0.5rem;
}

.stack-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.25rem;
}

.two-column-admin {
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  margin-top: 1.25rem;
}

.card {
  border-radius: var(--radius);
  padding: 1.3rem;
}

.section-gap-top {
  margin-top: 1.35rem;
}

.notice-section {
  margin-top: 1.75rem;
}

.notice-section {
  margin-top: 1.1rem;
}

.notice-card {
  margin-top: 0.8rem;
}

.notice-section .notice-card {
  margin-top: 0;
}

.card-header {
  margin-bottom: 1rem;
}

.card-header p,
.muted {
  color: var(--muted);
}

.muted.small {
  font-size: 0.92rem;
}

.info-list {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.info-list div {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.info-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.info-list dt {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.2rem;
}

.info-list dd {
  margin: 0;
}

.rich-text p {
  margin-top: 0;
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.location-card,
.fieldset-box {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
}

.location-card h3,
.fieldset-box h3 {
  margin-bottom: 0.45rem;
}

.location-badge {
  display: inline-flex;
  margin-bottom: 0.8rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.location-admin-grid {
  display: grid;
  gap: 1rem;
}

.map-card iframe,
.map-embed iframe {
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: 18px;
  background: #f2ece7;
}

.rsvp-card,
.invitation-card {
  padding: 1.4rem;
}

.stacked-form {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label {
  font-size: 0.92rem;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(92, 67, 56, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  padding: 0.85rem 0.95rem;
  font: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(183, 123, 99, 0.65);
  box-shadow: 0 0 0 4px rgba(183, 123, 99, 0.14);
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  font: inherit;
  font-weight: 700;
  background: var(--accent);
  color: white;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.btn:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn.small {
  padding: 0.65rem 0.95rem;
  font-size: 0.92rem;
}

.btn.danger {
  background: var(--danger);
}

.form-actions,
.action-row,
.topbar-inner,
.card-toolbar,
.stack-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.form-actions {
  margin-top: 0.25rem;
}

.stack-header {
  justify-content: space-between;
  align-items: flex-end;
}

.people-list {
  display: grid;
  gap: 0.95rem;
}

.person-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px auto;
  gap: 0.85rem;
  align-items: end;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
}

.person-row .grow {
  min-width: 0;
}

.row-actions {
  display: flex;
  justify-content: flex-end;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1rem 0 1.15rem;
}

.status {
  display: inline-flex;
  align-items: center;
  padding: 0.52rem 0.82rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
}

.status.success { background: var(--success-soft); color: var(--success); }
.status.danger  { background: var(--danger-soft); color: var(--danger); }
.status.warn    { background: var(--warn-soft); color: var(--warn); }
.status.neutral { background: rgba(56, 74, 89, 0.10); color: #435261; }

.alert {
  border-radius: 16px;
  padding: 0.95rem 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.alert.success { background: var(--success-soft); color: var(--success); }
.alert.danger  { background: var(--danger-soft); color: var(--danger); }

.admin-login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.narrow {
  width: min(520px, 100%);
}

.admin-topbar {
  padding: 2rem 0 0.4rem;
}

.topbar-inner {
  justify-content: space-between;
  align-items: flex-end;
}

.admin-shell .container {
  width: min(1220px, calc(100% - 2rem));
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.35rem;
}

.stat-card {
  padding: 1rem 1.1rem;
  border-radius: 20px;
}

.stat-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.person-summary {
  margin: 0;
  padding-left: 1.05rem;
  display: grid;
  gap: 0.65rem;
}

.person-summary li {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  align-items: center;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.comment-box,
.inline-code,
.error-box {
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
}

.inline-code {
  margin-top: 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  word-break: break-all;
}

.invitation-card + .invitation-card {
  margin-top: 1.25rem;
}

.two-column-fields,
.three-column-fields {
  display: grid;
  gap: 0.9rem;
}

.two-column-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-column-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.side-stack {
  display: grid;
  gap: 1.25rem;
  align-self: start;
}

.side-preview {
  border-radius: 18px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #f1ebe5;
}

.site-footer {
  padding: 1rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .intro-grid,
  .stack-grid,
  .two-column-admin,
  .split-grid,
  .stats-grid,
  .three-column-fields,
  .two-column-fields,
  .location-grid {
    grid-template-columns: 1fr;
  }

  .person-row {
    grid-template-columns: 1fr;
  }

  .row-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .hero-shell {
    padding-top: 1.5rem;
  }

  .hero-copy h1 {
    font-size: 2.3rem;
  }

  .container {
    width: min(100% - 1rem, 1180px);
  }

  .card,
  .hero-photo,
  .stat-card {
    border-radius: 18px;
  }

  .action-row,
  .topbar-inner,
  .stack-header {
    align-items: stretch;
  }

  .btn,
  .btn.ghost,
  .btn.small {
    width: 100%;
  }

  .action-row form,
  .action-row a,
  .action-row button {
    width: 100%;
  }

  .action-row form button {
    width: 100%;
  }

  .topbar-inner {
    align-items: flex-start;
  }
}
