:root {
  --maroon: #5C2A2A;
  --ivory: #FFFCF4;
  --soil: #3A1F1F;
  --oat: #EBE4DE;
  --rule: rgba(92,42,42,.2);
  --frame-outer: 6px;
  --frame-inner: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--ivory);
  color: var(--soil);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.doc {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: var(--frame-inner);
  background: var(--ivory);
}

.doc::before,
.doc::after {
  content: "";
  position: absolute;
  border: 1px solid var(--maroon);
  pointer-events: none;
}
.doc::before { inset: var(--frame-outer); }
.doc::after  { inset: var(--frame-inner); }

.inner { position: relative; z-index: 1; }

@media (max-width: 480px) {
  :root { --frame-outer: 4px; --frame-inner: 10px; }
}

/* ----- Hero ----- */
.hero {
  padding: 30px 22px;
  text-align: center;
}
.hero-photo {
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 360px;
  margin: 0 auto 28px;
  background: #2a2a2a url('assets/macie-jackson-hero.jpg') center 30% / cover no-repeat;
}
.names {
  font-family: 'Allura', cursive;
  color: var(--maroon);
  font-size: 64px;
  line-height: 0.95;
  letter-spacing: -1px;
  margin: 0;
  font-weight: 400;
}
.names .and {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 22px;
  letter-spacing: 4px;
  text-transform: lowercase;
  color: var(--maroon);
  margin: 4px 0;
}
.date-line {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--soil);
  margin-top: 18px;
  letter-spacing: 0.5px;
}

/* ----- Countdown ----- */
.countdown {
  margin: 22px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  display: inline-flex;
  gap: 22px;
  justify-content: center;
}
.cd-unit { text-align: center; min-width: 52px; }
.cd-num {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 32px;
  color: var(--maroon);
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}
.cd-label {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--maroon);
  opacity: .7;
  margin-top: 6px;
}

@media (max-width: 480px) {
  .names { font-size: 44px; }
  .countdown { gap: 14px; }
  .cd-num { font-size: 28px; }
}

/* ----- Sections (shared) ----- */
.section {
  padding: 30px 22px;
  text-align: center;
  position: relative;
}
.section.alt  { background: var(--oat); }
.eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--maroon);
  margin: 0 0 10px;
  font-weight: 600;
}
.section h2 {
  font-family: 'Allura', cursive;
  color: var(--maroon);
  font-size: 30px;
  font-weight: 400;
  margin: 0 0 14px;
  line-height: 1;
}
.section p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  color: var(--soil);
  margin: 4px 0;
  line-height: 1.55;
}
.ital { font-style: italic; }

/* ----- Schedule ----- */
.schedule { margin: 18px auto 6px; }
.sched-item { margin: 16px 0; }
.sched-label {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--maroon);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
  opacity: .85;
}
.sched-time {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--soil);
}
.note {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--maroon);
  margin-top: 12px;
  opacity: .85;
}
.venue { margin-top: 18px; }
.venue strong { font-style: italic; font-weight: 600; }

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  background: var(--maroon);
  color: var(--ivory);
  padding: 14px 32px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--maroon);
  margin-top: 14px;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}
.btn:hover { background: var(--soil); border-color: var(--soil); }
.btn:focus-visible { outline: 2px solid var(--ivory); outline-offset: 2px; box-shadow: 0 0 0 4px var(--maroon); }

/* ----- Dark section (reverse panel) ----- */
.section.dark { background: var(--maroon); color: var(--ivory); }
.section.dark p,
.section.dark .ital,
.section.dark h2,
.section.dark .eyebrow,
.section.dark .note { color: var(--ivory); }
.section.dark .eyebrow { opacity: .8; }

/* ----- Form ----- */
.form { max-width: 100%; margin: 18px auto 0; text-align: left; }
.field { margin-bottom: 14px; }
.field > label {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--soil);
  margin-bottom: 6px;
}
.field input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--maroon);
  background: var(--ivory);
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  color: var(--soil);
}
.field input[type="text"]:focus-visible { outline: 2px solid var(--maroon); outline-offset: 2px; }
.radio-group { display: flex; gap: 18px; flex-wrap: wrap; }
.radio-group label {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 15px;
  color: var(--soil);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.radio-group input[type="radio"] { accent-color: var(--maroon); margin: 0; }
.btn--block { display: block; width: 100%; margin-top: 8px; border: none; }
.bot-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ----- Footer ----- */
.footer {
  padding: 28px 18px 24px;
  text-align: center;
}
.footer img {
  width: 160px;
  max-width: 50%;
  opacity: .85;
  display: inline-block;
  height: auto;
}

@media (max-width: 480px) {
  .doc { padding: var(--frame-inner); }
  .hero { padding: 22px 16px; }
  .hero-photo { max-width: 100%; }
  .section { padding: 26px 16px; }
  .section h2 { font-size: 28px; }
  .countdown { gap: 14px; }
  .cd-unit { min-width: 44px; }
  .cd-num { font-size: 28px; }
  .schedule { padding: 0 4px; }
  .form { max-width: 100%; }
}

@media (max-width: 360px) {
  .countdown { gap: 10px; }
  .cd-unit { min-width: 38px; }
}

.radio-group input[type="radio"]:focus-visible {
  outline: 2px solid var(--maroon);
  outline-offset: 3px;
  border-radius: 50%;
}
