:root {
  --cream: #f4efe4;
  --paper: #fffaf0;
  --ink: #2f3030;
  --muted: #777068;
  --gold: #b58c3c;
  --line: #403d39;
  --shadow: 0 24px 80px rgba(32, 28, 23, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(181,140,60,.15), transparent 36%),
    linear-gradient(120deg, rgba(255,255,255,.65), rgba(244,239,228,.5)),
    var(--cream);
  font-family: Georgia, "Times New Roman", "Malgun Gothic", serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .11;
  background-image: repeating-linear-gradient(0deg, rgba(47,48,48,.13) 0 1px, transparent 1px 4px);
  mix-blend-mode: multiply;
}

.page-shell {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 28px 16px 48px;
}

.card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,250,240,.95), rgba(246,240,228,.95));
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
  padding: clamp(24px, 5vw, 58px);
}

.card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(64,61,57,.55);
  pointer-events: none;
}

.hero { min-height: 92vh; display: flex; flex-direction: column; justify-content: space-between; gap: 34px; }
.top-mark { display: flex; align-items: center; justify-content: space-between; gap: 20px; position: relative; z-index: 1; }
.proclub-logo { width: min(270px, 48vw); height: auto; object-fit: contain; }
.event-label { font-size: clamp(17px, 3vw, 28px); letter-spacing: .14em; font-weight: 700; text-align: right; }

.hero-center { text-align: center; position: relative; z-index: 1; }
.anniversary-logo { width: min(250px, 55vw); height: auto; margin: 0 auto 10px; display: block; }
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .22em; font-size: 12px; font-weight: 700; margin: 0 0 12px; }
h1, h2 { margin: 0; line-height: 1.05; font-weight: 500; }
h1 { font-size: clamp(40px, 7vw, 78px); }
h2 { font-size: clamp(30px, 5vw, 52px); }
.intro { font-size: clamp(18px, 2.4vw, 25px); color: var(--muted); margin: 16px auto 0; max-width: 680px; }

.event-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(64,61,57,.38); border-bottom: 1px solid rgba(64,61,57,.38); position: relative; z-index: 1; }
.event-grid div { padding: 18px 16px; border-right: 1px solid rgba(64,61,57,.3); }
.event-grid div:last-child { border-right: 0; }
.event-grid span { display: block; font-size: 12px; color: var(--gold); text-transform: uppercase; letter-spacing: .16em; margin-bottom: 7px; }
.event-grid strong { display: block; font-size: 16px; line-height: 1.35; }

.button {
  align-self: center;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 210px;
  border: 1px solid #836323;
  background: linear-gradient(180deg, #c9a559, #a77d2f);
  color: #fffaf0;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  padding: 16px 24px;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.rsvp-card { margin-top: 26px; }
.section-title { position: relative; z-index: 1; max-width: 780px; margin-bottom: 26px; }
.section-title p:not(.eyebrow) { color: var(--muted); font-size: 18px; }
form { position: relative; z-index: 1; display: grid; gap: 17px; }
label, legend { font-size: 15px; color: var(--ink); font-weight: 700; }
label span, legend span { color: var(--gold); }
input, select, textarea {
  width: 100%; margin-top: 7px; padding: 14px 13px; border: 1px solid rgba(64,61,57,.55); background: rgba(255,255,255,.55); color: var(--ink); font: 16px Arial, sans-serif; border-radius: 0;
}
fieldset { border: 1px solid rgba(64,61,57,.45); padding: 14px; margin: 0; }
.radio { display: flex; gap: 10px; align-items: center; font-weight: 500; margin-top: 12px; }
.radio input { width: auto; margin: 0; }
.guest-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.submit { border: 0; margin-top: 6px; }
.status { min-height: 24px; color: var(--muted); font-family: Arial, sans-serif; }
.status.error { color: #8a2d2d; }
.status.success { color: #42612e; }
.thank-you { margin-top: 26px; text-align: center; }
.signature { margin-top: 26px; font-size: 24px; font-style: italic; }

@media (max-width: 760px) {
  .page-shell { padding: 12px; }
  .hero { min-height: auto; }
  .top-mark { align-items: flex-start; }
  .event-grid { grid-template-columns: 1fr 1fr; }
  .event-grid div:nth-child(2) { border-right: 0; }
  .event-grid div:nth-child(-n+2) { border-bottom: 1px solid rgba(64,61,57,.3); }
  .guest-fields { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
  .card { padding: 28px 22px; }
  .top-mark { flex-direction: column; align-items: center; text-align: center; }
  .event-label { text-align: center; }
  .event-grid { grid-template-columns: 1fr; }
  .event-grid div { border-right: 0; border-bottom: 1px solid rgba(64,61,57,.3); }
  .event-grid div:last-child { border-bottom: 0; }
}

.rsvp-deadline {
  display: inline-block;
  margin: 18px auto 0;
  padding: 10px 16px;
  border-top: 1px solid rgba(181,140,60,.55);
  border-bottom: 1px solid rgba(181,140,60,.55);
  color: var(--ink);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 14px;
}
.small-note {
  margin: 0;
  color: var(--gold);
  font-style: italic;
  font-size: 14px;
}
