:root {
  --bg: #f5ebd6;
  --bg-soft: #fff8eb;
  --paper: rgba(255, 251, 241, 0.92);
  --paper-solid: #fff9ee;
  --olive: #4e5527;
  --olive-2: #6b6f3a;
  --gold: #bd842c;
  --gold-soft: #e7c478;
  --brown: #765331;
  --text: #353321;
  --muted: #7a735b;
  --danger: #a43f32;
  --success: #547432;
  --line: rgba(189, 132, 44, 0.35);
  --shadow: 0 24px 70px rgba(88, 65, 28, 0.18);
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 14px;
  font-family: Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(circle at 10% 5%, rgba(232, 202, 139, .45), transparent 32rem), radial-gradient(circle at 90% 15%, rgba(107, 111, 58, .18), transparent 28rem), linear-gradient(180deg, #f7efdf 0%, #efe1c6 100%);
  min-height: 100vh;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
.site-hero { position: relative; overflow: hidden; min-height: 100svh; padding: 18px 16px 36px; }
.site-hero::before, .site-hero::after {
  content: ''; position: absolute; width: 180px; height: 180px; border-radius: 999px;
  background: linear-gradient(145deg, rgba(188, 132, 44, .42), rgba(107, 111, 58, .36)); opacity: .5; z-index: 0;
}
.site-hero::before { left: -70px; bottom: 40px; }
.site-hero::after { right: -90px; bottom: 180px; }
.hero-glow { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(255, 255, 255, .42), transparent 40%, rgba(255, 245, 218, .55)); z-index: 0; }
.topbar {
  position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 1120px; margin: 0 auto 26px; padding: 10px; background: rgba(255, 249, 238, .72);
  border: 1px solid rgba(189, 132, 44, .25); border-radius: 999px; box-shadow: 0 12px 35px rgba(88, 65, 28, .08); backdrop-filter: blur(12px);
}
.brand, .admin-brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; text-decoration: none; color: var(--olive); }
.brand-mark, .admin-brand span {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #fff8e4;
  background: linear-gradient(145deg, var(--gold), #d9ae5b); box-shadow: inset 0 2px 9px rgba(255,255,255,.35), 0 10px 22px rgba(146, 93, 25, .18);
}
.nav-confirm, .btn-primary, .btn-secondary, .btn-text {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 12px 18px;
  border-radius: 999px; text-decoration: none; border: 0; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.nav-confirm, .btn-primary { background: linear-gradient(135deg, var(--olive), var(--olive-2)); color: #fffaf0; box-shadow: 0 14px 30px rgba(78, 85, 39, .25); }
.btn-primary:hover, .nav-confirm:hover, .btn-secondary:hover { transform: translateY(-2px); }
.btn-secondary { color: var(--olive); border: 1px solid var(--line); background: rgba(255, 251, 241, .8); }
.btn-text { color: var(--olive); background: transparent; min-height: 0; padding: 10px; }
.btn-large { margin-top: 12px; width: 100%; }
.hero-grid { position: relative; z-index: 2; display: grid; gap: 28px; align-items: center; max-width: 1120px; margin: 0 auto; }
.invite-frame { position: relative; border-radius: 34px; padding: 8px; background: linear-gradient(145deg, rgba(225, 193, 117, .9), rgba(255, 247, 230, .65), rgba(181, 126, 38, .75)); box-shadow: var(--shadow); }
.invite-frame::before { content: ''; position: absolute; inset: 18px; border: 1px solid rgba(189, 132, 44, .55); border-radius: 24px; pointer-events: none; z-index: 2; }
.invite-frame img { border-radius: 28px; width: 100%; height: auto; }
.hero-copy { text-align: center; padding: 8px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: .76rem; }
.eyebrow::before, .eyebrow::after { content: '✦'; font-size: .72rem; }
.hero-copy h1, .form-heading h2, .section-card h2, .thanks-card h1, .install-card h1, .login-card h1, .admin-heading h1 { margin: 10px 0 12px; color: var(--olive); line-height: .98; font-weight: 400; }
.hero-copy h1 { font-size: clamp(3.2rem, 16vw, 7rem); }
.hero-copy h1 strong { display: block; color: var(--gold); font-size: .78em; text-shadow: 0 2px 0 #fff4d5, 0 12px 24px rgba(146, 93, 25, .14); }
.hero-subtitle { margin: 0 auto 20px; color: var(--olive); font-style: italic; font-size: clamp(1.2rem, 6vw, 2.2rem); }
.event-cards { display: grid; gap: 12px; margin: 24px 0; }
.event-cards article { padding: 18px; border: 1px solid var(--line); background: rgba(255, 251, 241, .75); border-radius: var(--radius-md); box-shadow: 0 10px 30px rgba(88, 65, 28, .08); }
.event-icon { width: 40px; height: 40px; margin: 0 auto 8px; display: grid; place-items: center; color: var(--gold); border: 1px solid var(--line); border-radius: 50%; }
.event-cards small, .stat-card span, .panel-title a { display: block; color: var(--muted); font-size: .82rem; }
.event-cards strong { display: block; color: var(--olive); font-size: 1.12rem; }
.intro-section, .rsvp-section { padding: 34px 16px; }
.section-card, .form-shell, .thanks-card, .install-card, .login-card, .panel-card, .filter-card, .stat-card { border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.section-card, .form-shell, .thanks-card, .install-card, .login-card { max-width: 760px; margin: 0 auto; border-radius: var(--radius-lg); padding: clamp(24px, 6vw, 44px); text-align: center; }
.ornament { display: grid; width: 42px; height: 42px; margin: 0 auto 12px; place-items: center; color: var(--gold); border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .35); }
.section-card h2, .form-heading h2, .thanks-card h1, .install-card h1, .login-card h1 { font-size: clamp(2rem, 9vw, 3.6rem); }
.section-card p, .form-heading p, .thanks-card p, .install-card p, .login-card p { color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.rsvp-form, .admin-form { display: grid; gap: 16px; margin-top: 28px; text-align: left; }
.field-group, .admin-form label, .filter-card label { display: grid; gap: 8px; color: var(--olive); font-weight: 700; }
.field-group input, .field-group textarea, .field-group select, .admin-form input, .filter-card input, .filter-card select { width: 100%; min-height: 50px; border: 1px solid rgba(107, 111, 58, .22); border-radius: var(--radius-sm); padding: 13px 15px; background: rgba(255, 255, 255, .72); color: var(--text); outline: none; transition: box-shadow .2s ease, border .2s ease; }
.field-group textarea { resize: vertical; }
.field-group input:focus, .field-group textarea:focus, .field-group select:focus, .admin-form input:focus, .filter-card input:focus, .filter-card select:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(189, 132, 44, .12); }
.radio-card {
  grid-column: 1 / -1;
  border: 1px solid rgba(107, 111, 58, .22);
  border-radius: var(--radius-sm);
  padding: 14px;
  background: rgba(255, 255, 255, .42);
  gap: 10px;
}
.radio-card legend { padding: 0 8px; color: var(--olive); font-weight: 700; }
.radio-card label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  color: var(--text);
  font-weight: 400;
  line-height: 1.25;
  border: 1px solid rgba(107, 111, 58, .18);
  border-radius: 12px;
  background: rgba(255, 255, 255, .48);
  cursor: pointer;
}
.radio-card input[type="radio"] {
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  flex: 0 0 20px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  accent-color: var(--olive);
  box-shadow: none;
}
.radio-card input[type="radio"]:focus { box-shadow: 0 0 0 4px rgba(189, 132, 44, .14); }
.btn-submit { width: 100%; min-height: 56px; font-weight: 700; }
.notice { text-align: left; border-radius: var(--radius-sm); padding: 14px 16px; margin: 18px 0; line-height: 1.5; }
.notice.success { background: rgba(84, 116, 50, .12); border: 1px solid rgba(84, 116, 50, .32); color: #354d20; }
.notice.error { background: rgba(164, 63, 50, .1); border: 1px solid rgba(164, 63, 50, .28); color: #7b2d24; }
.site-footer { display: grid; gap: 8px; place-items: center; padding: 28px 16px 40px; color: var(--muted); text-align: center; }
.site-footer a, .back-link { color: var(--olive); font-weight: 700; }
.thanks-page, .install-page, .admin-login-page { display: grid; place-items: center; padding: 24px 16px; }
.thanks-card, .install-card, .login-card { width: min(100%, 620px); }
.actions-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.small-warning { font-size: .92rem; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay { transition-delay: .12s; }
@media (min-width: 680px) {
  .site-hero { padding: 24px 24px 56px; }
  .hero-grid { grid-template-columns: minmax(280px, 0.86fr) minmax(320px, 1fr); }
  .hero-copy { text-align: left; }
  .hero-subtitle { margin-left: 0; }
  .event-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .event-cards article { text-align: center; }
  .btn-large { width: auto; }
  .rsvp-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-group.full, .btn-submit { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .hero-grid { gap: 54px; }
  .invite-frame { max-width: 470px; }
  .site-hero::before, .site-hero::after { width: 260px; height: 260px; }
}
