:root {
  --pine: #173f35;
  --moss: #54735a;
  --lake: #2f6f7f;
  --cream: #fff8ec;
  --paper: #fffdf6;
  --ember: #bf5535;
  --gold: #d89b45;
  --ink: #1e2521;
  --muted: #65706a;
  --line: rgba(30, 37, 33, 0.16);
  --shadow: 0 22px 70px rgba(23, 63, 53, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 20;
  display: flex;
  width: min(1120px, calc(100% - 32px));
  transform: translateX(-50%);
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.88);
  box-shadow: 0 12px 40px rgba(23, 63, 53, 0.16);
  padding: 12px 14px;
  backdrop-filter: blur(14px);
}

.brand {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--pine);
  color: var(--cream);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 18px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-links a {
  border-radius: 999px;
  color: var(--pine);
  font-size: 14px;
  font-weight: 800;
  padding: 9px 12px;
}

.nav-links a:hover {
  background: rgba(84, 115, 90, 0.14);
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 40px;
  align-items: end;
  padding: 140px max(24px, calc((100vw - 1120px) / 2)) 64px;
  background:
    linear-gradient(90deg, rgba(12, 31, 27, 0.88), rgba(12, 31, 27, 0.42) 48%, rgba(12, 31, 27, 0.18)),
    url("assets/camp-cody-aerial.webp") center / cover;
  color: var(--paper);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1;
}

h1,
h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
}

h1 {
  max-width: 820px;
  font-size: clamp(56px, 10vw, 122px);
}

h2 {
  color: var(--pine);
  font-size: clamp(38px, 6vw, 74px);
}

h3 {
  color: var(--pine);
  font-size: 22px;
}

.hero-date {
  margin: 18px 0 0;
  color: #ffd791;
  font-size: clamp(24px, 4vw, 46px);
  font-weight: 800;
}

.hero-text {
  max-width: 560px;
  margin: 18px 0 28px;
  color: rgba(255, 253, 246, 0.9);
  font-size: 20px;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 13px 18px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--ember);
  color: white;
  box-shadow: 0 14px 30px rgba(191, 85, 53, 0.28);
}

.button.secondary {
  background: rgba(255, 253, 246, 0.92);
  color: var(--pine);
}

.button.disabled {
  pointer-events: none;
  opacity: 0.68;
}

.hero-card {
  display: grid;
  gap: 6px;
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.92);
  box-shadow: var(--shadow);
  color: var(--pine);
  padding: 24px;
}

.hero-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-card strong {
  border-bottom: 1px solid var(--line);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 30px;
  line-height: 1.05;
  padding-bottom: 14px;
}

.hero-card strong:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.section-band,
.section-pad,
.photo-grid,
.footer {
  padding-right: max(24px, calc((100vw - 1120px) / 2));
  padding-left: max(24px, calc((100vw - 1120px) / 2));
}

.section-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 44px;
  align-items: center;
  padding-top: 86px;
  padding-bottom: 86px;
}

.section-band p,
.section-pad p {
  color: var(--muted);
  font-size: 18px;
}

.intro {
  background: var(--paper);
}

.photo-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 14px;
  background: var(--paper);
  padding-bottom: 86px;
}

.photo-grid figure {
  position: relative;
  min-height: 340px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
}

.photo-grid img {
  height: 100%;
  object-fit: cover;
}

.photo-grid figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  border-radius: 8px;
  background: rgba(23, 63, 53, 0.78);
  color: white;
  font-size: 14px;
  font-weight: 800;
  padding: 10px 12px;
}

.section-pad {
  padding-top: 96px;
  padding-bottom: 96px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.timeline article,
.party-columns article,
.calculator,
.rsvp-form,
.payment-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 16px 48px rgba(23, 63, 53, 0.1);
}

.timeline article {
  padding: 24px;
}

.bridal-party {
  background:
    linear-gradient(180deg, rgba(255, 248, 236, 0.9), rgba(255, 253, 246, 0.98)),
    var(--cream);
}

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

.party-columns article {
  padding: 26px;
}

.party-columns h3 {
  margin-bottom: 18px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 34px;
}

.party-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.party-list li {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.party-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.party-list strong {
  color: var(--pine);
  font-size: 17px;
}

.party-list span {
  border-radius: 999px;
  background: rgba(216, 155, 69, 0.16);
  color: var(--ember);
  font-size: 12px;
  font-weight: 900;
  padding: 6px 9px;
  text-align: right;
  white-space: nowrap;
}

.party-card {
  width: 100%;
}

.party-card summary {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
}

.party-card summary::-webkit-details-marker {
  display: none;
}

.party-card summary::after {
  content: "+";
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--pine);
  color: var(--cream);
  font-weight: 900;
}

.party-card[open] summary {
  margin-bottom: 16px;
}

.party-card[open] summary::after {
  content: "-";
  background: var(--ember);
}

.party-profile {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  animation: revealProfile 220ms ease;
}

.party-profile p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.portrait-frame {
  position: relative;
  display: grid;
  min-height: 180px;
  place-items: end start;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(23, 63, 53, 0.08), rgba(23, 63, 53, 0.78)),
    var(--photo),
    linear-gradient(135deg, #d9e3d2, #f0d6a2 52%, #bf5535);
  background-position: center;
  background-size: cover;
  color: white;
  padding: 12px;
}

.portrait-frame.together {
  background:
    linear-gradient(180deg, rgba(47, 111, 127, 0.08), rgba(23, 63, 53, 0.78)),
    var(--photo),
    linear-gradient(135deg, #a7c8bf, #f5d186 52%, #54735a);
  background-position: center;
  background-size: cover;
}

.portrait-frame span {
  border-radius: 999px;
  background: rgba(30, 37, 33, 0.62);
  color: white;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 10px;
  white-space: normal;
}

@keyframes revealProfile {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.schedule-list {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.schedule-list strong {
  color: var(--pine);
}

.timeline time {
  color: var(--ember);
  font-weight: 900;
}

.stay {
  background:
    linear-gradient(90deg, rgba(255, 248, 236, 0.96), rgba(255, 248, 236, 0.72)),
    url("assets/camp-cody-cabins.webp") right center / contain no-repeat;
}

.details-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.details-list li {
  border-left: 4px solid var(--gold);
  color: var(--pine);
  font-weight: 800;
  padding-left: 12px;
}

.calculator,
.rsvp-form,
.payment-panel {
  display: grid;
  gap: 18px;
  padding: 24px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--pine);
  font-size: 14px;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font: inherit;
  padding: 13px 14px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--lake);
  outline: 3px solid rgba(47, 111, 127, 0.16);
}

.form-row > label {
  flex: 1 1 240px;
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.rsvp-options {
  display: grid;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.rsvp-options h3 {
  margin: 0;
  color: var(--pine);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
}

.rsvp-form button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.total-box,
.payment-panel {
  background: var(--pine);
  color: var(--cream);
}

.total-box {
  border-radius: 8px;
  padding: 18px;
}

.total-box span,
.payment-panel span {
  display: block;
  color: #ffd791;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.total-box strong,
.payment-panel strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 54px;
  line-height: 1;
  margin-top: 8px;
}

.fine-print,
.form-status {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.faq {
  background: var(--paper);
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 900px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 30px rgba(23, 63, 53, 0.07);
}

.faq-item summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  color: var(--pine);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  padding: 20px 58px 20px 22px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 22px;
  color: var(--ember);
  font-family: Inter, sans-serif;
  font-size: 26px;
  transform: translateY(-50%);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p,
.faq-costs {
  margin: 0;
  border-top: 1px solid var(--line);
  padding: 18px 22px 22px;
}

.faq-costs {
  display: grid;
  gap: 9px;
  padding-left: 42px;
  color: var(--muted);
}

.faq-costs strong {
  color: var(--pine);
}

.rsvp {
  background: linear-gradient(180deg, var(--cream), #f5efe2);
}

.pay {
  background: var(--paper);
}

.payment-panel {
  align-content: start;
}

.footer {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  background: var(--pine);
  color: rgba(255, 248, 236, 0.78);
  padding-top: 28px;
  padding-bottom: 28px;
}

.footer p {
  margin: 0;
}

@media (max-width: 840px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero,
  .section-band,
  .timeline,
  .party-columns,
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 132px;
  }

  .photo-grid figure {
    min-height: 260px;
  }

  .stay {
    background: var(--cream);
  }

  .footer {
    display: grid;
  }

  .party-card summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .party-card summary::after {
    position: absolute;
    right: 26px;
  }

  .party-profile {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    position: absolute;
    top: 10px;
    width: calc(100% - 20px);
  }

  .brand {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }

  .nav-links a {
    padding: 7px 8px;
  }

  .hero {
    padding-top: 126px;
    padding-bottom: 40px;
  }

  h1 {
    font-size: 54px;
  }

  .section-band,
  .section-pad {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}
