:root {
  --brown: #6d3419;
  --dark: #2c170e;
  --tan: #f4dfb2;
  --cream: #fff8e8;
  --gold: #d69b2d;
  --red: #a73425;
  --shadow: 0 14px 35px rgba(44, 23, 14, .18);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--dark);
  background:
    radial-gradient(circle at 10% 20%, rgba(214,155,45,.08), transparent 25%),
    linear-gradient(#fffaf0, #f7e7c5);
  font-family: "Roboto Slab", Georgia, serif;
}
.hero {
  position: relative;
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: white;
  background:
    url("assets/invitation.png") center 28% / cover no-repeat;
}
.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(38,17,8,.68), rgba(70,29,12,.78));
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding: 56px 20px;
}
.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 700;
  color: #ffe0a0;
}
.eyebrow.dark { color: var(--red); }
h1, h2 {
  font-family: "Rye", Georgia, serif;
  font-weight: 400;
}
h1 {
  margin: 0;
  font-size: clamp(3rem, 10vw, 7.5rem);
  line-height: .98;
  text-shadow: 0 5px 0 rgba(0,0,0,.25);
}
h1 span { color: #ffd66b; }
.subtitle {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  margin: 22px auto 30px;
}
.button {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  padding: 15px 25px;
  font: 700 1rem "Roboto Slab", serif;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.button:hover { transform: translateY(-2px); }
.primary {
  color: white;
  background: linear-gradient(135deg, var(--red), #7c2118);
  box-shadow: 0 9px 20px rgba(122,33,24,.3);
}
.secondary {
  color: white;
  background: var(--brown);
}
.section {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0;
  text-align: center;
}
.section h2 {
  margin: 0 0 34px;
  color: var(--brown);
  font-size: clamp(2.2rem, 6vw, 4rem);
}
.invitation-wrap {
  width: min(760px, calc(100% - 30px));
  margin: -55px auto 0;
  position: relative;
  z-index: 2;
}
.invitation-wrap img {
  width: 100%;
  display: block;
  border: 10px solid white;
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(109,52,25,.16);
  border-radius: 22px;
  padding: 28px 20px;
  box-shadow: var(--shadow);
}
.card .icon { font-size: 2.2rem; }
.card h3 { color: var(--red); margin: 12px 0 8px; }
.card p { margin: 0; line-height: 1.6; }
.actions { margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.countdown {
  width: 100%;
  max-width: none;
  padding-left: 16px;
  padding-right: 16px;
  color: white;
  background: linear-gradient(135deg, #3d1b0d, #7a3a1d);
}
.countdown h2 { color: #ffd66b; }
.count-grid {
  max-width: 760px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.count-grid div {
  padding: 22px 8px;
  border-radius: 18px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
}
.count-grid strong { display: block; font-size: clamp(2rem, 7vw, 4rem); }
.count-grid span { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.rsvp { padding-top: 80px; padding-bottom: 80px; }
.form-card {
  max-width: 720px;
  margin: auto;
  padding: clamp(26px, 6vw, 54px);
  text-align: left;
  border-radius: 28px;
  background: rgba(255,255,255,.9);
  box-shadow: var(--shadow);
}
.form-card h2 { text-align: left; margin-bottom: 12px; }
.form-intro { line-height: 1.65; margin-bottom: 28px; }
form { display: grid; gap: 20px; }
label, legend { font-weight: 700; }
label span, legend span { color: var(--red); }
input, textarea {
  width: 100%;
  margin-top: 8px;
  padding: 14px 15px;
  border: 1px solid #cdbb9f;
  border-radius: 12px;
  background: white;
  font: inherit;
}
input:focus, textarea:focus {
  outline: 3px solid rgba(214,155,45,.28);
  border-color: var(--gold);
}
fieldset {
  margin: 0;
  padding: 16px;
  border: 1px solid #cdbb9f;
  border-radius: 12px;
}
.choice {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-top: 12px;
  font-weight: 400;
}
.choice input { width: auto; margin: 0; }
.submit { width: 100%; margin-top: 6px; }
.hidden { display: none; }
footer {
  padding: 30px 18px;
  text-align: center;
  color: white;
  background: var(--dark);
}
footer a { color: #ffd66b; }
.small { opacity: .82; font-size: .9rem; }
@media (max-width: 760px) {
  .hero { min-height: 62vh; }
  .detail-grid { grid-template-columns: 1fr; }
  .count-grid { grid-template-columns: repeat(2, 1fr); }
  .invitation-wrap { margin-top: -30px; }
}
