@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600&family=Work+Sans:wght@300;400;500;600&display=swap");

:root {
  --cream: #f6f8db;
  --peach: #e5a39d;
  --blush: #e5a39d;
  --sky: #adbacb;
  --terracotta: #e5a39d;
  --deep: #4b2f2a;
  --charcoal: #2f2a2a;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(75, 47, 42, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Work Sans", "Helvetica Neue", Arial, sans-serif;
  color: var(--charcoal);
  background: linear-gradient(180deg, #ffffff 0%, var(--cream) 100%);
  line-height: 1.6;
}

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

.container {
  width: min(1100px, 90vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 253, 251, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(75, 47, 42, 0.08);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-title {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  color: var(--deep);
}

.brand-subtitle {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(75, 47, 42, 0.7);
}

.nav {
  display: flex;
  gap: 24px;
  font-weight: 500;
}

.nav a {
  position: relative;
  padding-bottom: 4px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--terracotta);
  transition: width 0.3s ease;
}

.nav a:hover::after {
  width: 100%;
}

.site-main {
  padding-bottom: 60px;
}

.hero {
  padding: 80px 0 60px;
}

.hero.slim {
  padding: 60px 0 40px;
}

.hero-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
}

.hero-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-photo-img {
  width: 100%;
  max-width: 420px;
  height: 320px;
  border-radius: 28px;
  box-shadow: var(--shadow);
  object-fit: cover;
  object-position: center 15%;
  transform: scale(1.25);
}

.hero-photo-img--invite {
  transform: scale(1.08);
  object-position: center 20%;
  border-radius: 0;
}

.hero-photo-img--admin {
  max-width: 320px;
  height: 360px;
  transform: scale(1.08);
  object-position: center 20%;
}

.hero-copy h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  margin: 12px 0 18px;
  color: var(--deep);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--terracotta);
  margin: 0;
}

.lead {
  font-size: 1.1rem;
  max-width: 420px;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.photo-placeholder {
  display: grid;
  place-items: center;
  height: 320px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--sky), var(--peach));
  color: rgba(75, 47, 42, 0.7);
  font-weight: 600;
  box-shadow: var(--shadow);
}

.photo-placeholder.small {
  height: 160px;
  border-radius: 22px;
}

.section {
  padding: 60px 0;
}

.section.highlight {
  background: linear-gradient(120deg, rgba(173, 186, 203, 0.35), rgba(229, 163, 157, 0.2));
}

h2 {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  margin: 0 0 12px;
  color: var(--deep);
}

h3 {
  margin-top: 0;
  color: var(--deep);
}

.muted {
  color: rgba(47, 42, 42, 0.7);
}

.split {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
}

.story-first-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 16px 0 0;
  border-radius: 16px;
}

.card {
  background: var(--white);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.details {
  padding-left: 18px;
  margin: 16px 0 0;
}

.photo-grid {
  margin-top: 28px;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.photo-grid-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.photo-grid-img--slideone {
  object-position: center 34%;
}

.photo-grid-img--slidetwo {
  object-position: center 76%;
}

.photo-grid-img--slidethree {
  object-position: center;
}

.photo-grid-img--slidefour {
  object-position: center 45%;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(75, 47, 42, 0.15);
}

.button.primary {
  background: var(--terracotta);
  color: var(--white);
}

.button.ghost {
  background: var(--white);
  border: 1px solid rgba(75, 47, 42, 0.2);
  color: var(--deep);
}

.button.danger {
  background: #c05a58;
  color: var(--white);
  border: none;
}

.callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.registry-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.registry-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 140px;
}

.registry-card::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 24px;
  width: 96px;
  height: 96px;
  border-radius: 20px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #f7f5f2;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.registry-card--target::before {
  background-image: url("/images/target.png");
}

.registry-card--amazon::before {
  background-image: url("/images/amazon.png");
}

.registry-card--venmo::before {
  background-image: url("/images/venmo.png");
}

.form-card {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
  padding: 32px;
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.alert {
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(217, 124, 106, 0.15);
  color: var(--deep);
  font-weight: 600;
}

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

.field label {
  font-weight: 600;
}

.field input,
.field textarea,
.field select {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(75, 47, 42, 0.2);
  font: inherit;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid rgba(217, 124, 106, 0.4);
  border-color: transparent;
}

.receipt {
  max-width: 640px;
  margin: 0 auto;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(75, 47, 42, 0.08);
}

.receipt-row:last-child {
  border-bottom: none;
}

.admin-card {
  overflow: hidden;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

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

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.admin-table th,
.admin-table td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(75, 47, 42, 0.08);
  vertical-align: top;
}

.admin-table th {
  font-weight: 600;
  color: var(--deep);
  background: rgba(248, 243, 238, 0.6);
}

.site-footer {
  padding: 36px 0 50px;
  background: var(--deep);
  color: var(--white);
}

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

.footer-title {
  margin: 0 0 6px;
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
}

.footer-links {
  display: flex;
  gap: 16px;
  font-weight: 600;
}

@media (max-width: 720px) {
  .nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .callout {
    flex-direction: column;
    align-items: flex-start;
  }

  .receipt-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
