:root {
  --ink: #272722;
  --sage: #244c3d;
  --sage-dark: #17372c;
  --sage-soft: #dfe9e2;
  --cream: #f8f5ed;
  --paper: #fffefa;
  --gold: #cfb273;
  --gold-soft: #eee3c9;
  --line: #ded8ca;
  --muted: #77766e;
  --shadow: 0 18px 50px rgba(28, 48, 39, 0.09);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: radial-gradient(circle at 10% 0%, rgba(207,178,115,.12), transparent 28rem), var(--cream);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

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

.hero {
  min-height: 72vh;
  display: grid;
  place-items: center;
  padding: 84px 24px 150px;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at 50% 25%, rgba(207,178,115,.22), transparent 24rem),
    linear-gradient(135deg, #dfe9e2, #f8f5ed 52%, #eee3c9);
}

.hero > div { width: min(100%, 900px); }

.hero .wordmark {
  width: min(315px, 76vw);
  height: 104px;
  margin: 0 auto 30px;
  overflow: hidden;
  background: url("brand/simpl_horizontal_logo.png") center / contain no-repeat;
  color: transparent;
  font-size: 0;
}

.hero .wordmark i { display: none; }

.eyebrow {
  display: block;
  margin: 0 0 8px;
  color: var(--sage);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .18em;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 850px;
  margin: 24px auto;
  color: var(--ink);
  font: 400 clamp(3rem, 9vw, 5.75rem)/.96 Georgia, "Times New Roman", serif;
  letter-spacing: -.045em;
}

.hero-copy {
  max-width: 650px;
  margin: 0 auto;
  color: #55564f;
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  line-height: 1.8;
}

main.wrap {
  width: min(1180px, calc(100% - 40px));
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 0 100px;
}

.details {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  margin: -92px 0 26px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.details::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  height: 5px;
  background: linear-gradient(90deg, var(--sage), var(--gold), var(--sage));
}

.detail {
  min-height: 180px;
  padding: 46px 38px 38px;
  background: var(--paper);
  text-align: left;
}

.detail + .detail { border-left: 1px solid var(--line); }

.detail strong {
  display: block;
  max-width: 18ch;
  margin-top: 12px;
  color: var(--ink);
  font: 400 clamp(1.45rem, 2.5vw, 2.1rem)/1.15 Georgia, "Times New Roman", serif;
}

.detail small {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: .95rem;
}

.section {
  margin-top: 26px;
  padding: clamp(34px, 6vw, 70px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255,254,250,.95);
  box-shadow: var(--shadow);
}

.section:nth-of-type(even) {
  background: linear-gradient(rgba(223,233,226,.72), rgba(223,233,226,.72)), var(--paper);
}

.section h2 {
  margin: 6px 0 18px;
  color: var(--ink);
  font: 400 clamp(2.25rem, 5vw, 4.25rem)/1.05 Georgia, "Times New Roman", serif;
  letter-spacing: -.035em;
}

.section-copy {
  max-width: 820px;
  margin-bottom: 0;
  color: #55564f;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.8;
}

.party {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.party-member {
  padding: 14px 14px 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.party-member:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(30,58,47,.12);
}

.party-member img,
.party-placeholder {
  display: grid;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  margin: 0 0 20px;
  place-items: center;
  border-radius: 15px;
  background: var(--sage-soft);
  color: var(--sage);
  font: 32px Georgia, serif;
  object-fit: cover;
  object-position: center;
}

.party-member strong {
  display: block;
  color: var(--ink);
  font: 400 1.45rem/1.2 Georgia, "Times New Roman", serif;
}

.party-member small {
  display: block;
  margin-top: 6px;
  color: var(--sage);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.card {
  max-width: 820px;
  margin-top: 28px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid rgba(207,178,115,.5);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(238,227,201,.5), transparent 70%), var(--paper);
}

form {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(190px, .8fr) auto;
  gap: 12px;
  align-items: stretch;
}

input, select, button {
  min-height: 56px;
  margin: 0;
  border-radius: 13px;
  font: 1rem -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

input, select {
  width: 100%;
  padding: 0 17px;
  border: 1px solid var(--line);
  outline: none;
  background: var(--paper);
  color: var(--ink);
}

input[type="file"] { padding: 14px 17px; }

input:focus, select:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 4px rgba(36,76,61,.12);
}

button {
  min-width: 145px;
  padding: 0 24px;
  border: 1px solid var(--sage);
  background: var(--sage);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

button:hover { background: var(--sage-dark); transform: translateY(-1px); }
button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.success, .error { padding: 15px; border-radius: 10px; }
.success { background: #e1ece2; }
.error { background: #f6dfdc; }
.guest-note { color: var(--muted); font-size: .8rem; }

.gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 14px;
  margin-top: 30px;
}

.gallery img,
.gallery video {
  display: block;
  grid-column: span 4;
  width: 100%;
  height: 100%;
  min-height: 280px;
  aspect-ratio: 1;
  border-radius: 16px;
  background: var(--sage-soft);
  object-fit: cover;
  object-position: center;
  box-shadow: 0 8px 24px rgba(28,48,39,.08);
}

.gallery img:nth-child(5n + 1), .gallery video:nth-child(5n + 1) {
  grid-column: span 8;
  aspect-ratio: 2 / 1;
}

.gallery img:nth-child(5n + 4), .gallery img:nth-child(5n + 5),
.gallery video:nth-child(5n + 4), .gallery video:nth-child(5n + 5) { grid-column: span 6; }

.footer {
  padding: 48px 20px;
  color: var(--muted);
  font-size: .78rem;
  text-align: center;
}

.footer .wordmark {
  display: block;
  width: 210px;
  height: 70px;
  margin: 0 auto 8px;
  overflow: hidden;
  background: url("brand/simpl_horizontal_logo.png") center / contain no-repeat;
  color: transparent;
  font-size: 0;
}

.footer .wordmark i { display: none; }

@media (max-width: 900px) {
  main.wrap { width: min(100% - 30px, 760px); }
  .details { grid-template-columns: 1fr; }
  .detail { min-height: 0; padding: 30px; }
  .detail + .detail { border-top: 1px solid var(--line); border-left: 0; }
  form { grid-template-columns: 1fr 1fr; }
  form button { grid-column: 1 / -1; }
  .gallery img, .gallery video,
  .gallery img:nth-child(5n + 1), .gallery video:nth-child(5n + 1),
  .gallery img:nth-child(5n + 4), .gallery img:nth-child(5n + 5),
  .gallery video:nth-child(5n + 4), .gallery video:nth-child(5n + 5) {
    grid-column: span 6;
    aspect-ratio: 1;
  }
}

@media (max-width: 600px) {
  .hero { min-height: 66vh; padding: 54px 22px 112px; }
  .hero .wordmark { height: 82px; margin-bottom: 20px; }
  main.wrap { width: calc(100% - 20px); padding-bottom: 64px; }
  .details { margin-top: -62px; border-radius: 20px; }
  .detail { padding: 27px 24px; }
  .section { margin-top: 16px; padding: 30px 23px; border-radius: 20px; }
  .section h2 { font-size: clamp(2.15rem, 11vw, 3rem); }
  .party { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .party-member { padding: 9px 9px 18px; border-radius: 17px; }
  .party-member img, .party-placeholder { margin-bottom: 15px; border-radius: 12px; }
  form { grid-template-columns: 1fr; }
  form button { grid-column: auto; width: 100%; }
  .gallery { gap: 8px; }
  .gallery img, .gallery video,
  .gallery img:nth-child(5n + 1), .gallery video:nth-child(5n + 1),
  .gallery img:nth-child(5n + 4), .gallery img:nth-child(5n + 5),
  .gallery video:nth-child(5n + 4), .gallery video:nth-child(5n + 5) {
    grid-column: span 6;
    min-height: 0;
    border-radius: 11px;
    aspect-ratio: 1;
  }
}

@media (max-width: 380px) { .party { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
