:root {
  --bg: #f3ede2;
  --panel: rgba(252, 248, 240, 0.92);
  --panel-strong: #fbf6ee;
  --text: #30261f;
  --muted: #7a6757;
  --accent: #8a5a3b;
  --accent-soft: #d9c1a8;
  --line: rgba(48, 38, 31, 0.14);
  --shadow: 0 24px 60px rgba(57, 40, 24, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.45), transparent 35%),
    linear-gradient(180deg, #efe6d9 0%, #f5efe6 100%);
  color: var(--text);
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

.site-header,
.site-footer,
main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0 20px;
}

.site-wordmark,
.site-footer div:first-child {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--text);
}

.site-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
}

.site-nav a.is-active,
.site-nav a:hover {
  color: var(--text);
}

main {
  padding-bottom: 48px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero,
.details-grid,
.info-stack,
.admin-layout {
  display: grid;
  gap: 24px;
}

.hero {
  align-items: stretch;
  margin-bottom: 24px;
}

.hero-home,
.hero-inner {
  grid-template-columns: 1.2fr 0.8fr;
}

.hero-media,
.card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-media img,
.image-card img,
.hotel-shot img {
  height: 100%;
  object-fit: cover;
}

.hero-copy,
.simple-page,
.details-copy,
.info-stack .card,
.admin-layout .card {
  padding: clamp(24px, 4vw, 44px);
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  color: var(--muted);
}

h1,
h2,
h3 {
  margin: 0 0 16px;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  line-height: 1;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.6rem);
}

h2 {
  font-size: clamp(2.3rem, 5vw, 3.2rem);
}

.lede {
  font-size: 1.05rem;
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
}

.button.secondary {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.details-grid {
  grid-template-columns: 1fr 1fr;
}

.details-copy p:last-child,
.info-stack p:last-child,
.simple-page p:last-child {
  margin-bottom: 0;
}

.narrow-card {
  width: min(760px, 100%);
  margin: 0 auto;
}

.simple-page {
  margin-top: 16px;
}

.info-stack,
.admin-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-layout .admin-table-card {
  grid-column: 1 / -1;
}

.admin-summary-card {
  grid-column: 1 / -1;
}

.admin-topline {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.admin-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-toolbar {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
}

.admin-toolbar input {
  max-width: 420px;
}

.admin-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.stat-chip {
  display: grid;
  gap: 2px;
  min-width: 124px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
}

.stat-chip strong {
  font-size: 1.15rem;
}

.stat-chip span {
  color: var(--muted);
  font-size: 0.82rem;
}

.admin-login-card {
  padding: clamp(28px, 5vw, 44px);
}

.lookup-row {
  display: flex;
  gap: 12px;
  margin: 24px 0 16px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  background: #fffdf9;
  color: var(--text);
  font: inherit;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.checkbox-row input {
  width: auto;
}

.search-results,
.rsvp-app,
.admin-feedback {
  margin-top: 16px;
}

.search-results {
  display: grid;
  gap: 10px;
}

.search-result,
.summary-panel {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
}

.search-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.search-result:hover {
  border-color: rgba(138, 90, 59, 0.45);
  transform: translateY(-1px);
}

.search-result h3,
.summary-panel h3 {
  margin: 0 0 4px;
  font-size: 1.45rem;
}

.summary-panel {
  margin-top: 20px;
}

.rsvp-form {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.wizard-step {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.58);
}

.step-counter {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

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

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

.choice-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffdf9;
}

.choice-pill input {
  width: auto;
  margin: 0;
}

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.row-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.stack-block {
  display: grid;
  gap: 12px;
  margin-bottom: 6px;
}

.welcome-party-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: 18px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
}

.welcome-party-copy h3 {
  margin-bottom: 12px;
}

.welcome-party-copy p:last-child {
  margin-bottom: 0;
}

.welcome-party-media {
  overflow: hidden;
  border-radius: 18px;
  min-height: 200px;
  background: rgba(255, 255, 255, 0.5);
}

.welcome-party-media img {
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.summary-list {
  display: grid;
  gap: 10px;
}

.summary-list div {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
}

.rsvp-shell {
  padding: clamp(28px, 5vw, 48px);
}

.admin-form {
  display: grid;
  gap: 14px;
}

.table-wrap {
  overflow-x: auto;
}

.guest-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.guest-table th,
.guest-table td {
  text-align: left;
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.45;
}

.guest-table th {
  color: var(--muted);
  font-size: 0.76rem;
}

.table-sort {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.table-sort.is-active {
  color: var(--text);
}

.status-chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.status-chip.yes {
  background: #d7ead8;
}

.status-chip.no {
  background: #edd6d0;
}

.status-chip.pending {
  background: #ece3cc;
}

.status-chip.compact {
  margin-left: 6px;
}

.guest-table tr.is-editing td {
  background: rgba(138, 90, 59, 0.06);
}

.cell-stack {
  display: grid;
  gap: 6px;
  min-width: 150px;
}

.badge-stack {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.detail-line {
  font-size: 0.92rem;
}

.muted {
  color: var(--muted);
}

.error-text {
  color: #9b3927;
}

.success-text {
  color: #3f6a38;
}

.code-box {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  .hero-home,
  .hero-inner,
  .details-grid,
  .info-stack,
  .admin-layout,
  .field-grid,
  .welcome-party-card {
    grid-template-columns: 1fr;
  }

  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-topline,
  .admin-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .lookup-row {
    flex-direction: column;
  }

  .welcome-party-media {
    min-height: 180px;
  }
}
