:root {
  color-scheme: dark;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f9f2e7;
  background: #0b1812;
  font-synthesis: none;
  --muted: #c5d0c5;
  --gold: #f3d698;
  --line: #a6bcab36;
  --surface: #152920;
  --serif: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  min-height: 100svh;
  display: grid;
  place-items: center;
  margin: 0;
  padding: clamp(1rem, 3vh, 3.25rem) clamp(1rem, 4vw, 3rem);
  background:
    radial-gradient(ellipse at 14% 22%, #2d4028 0%, transparent 49%),
    radial-gradient(ellipse at 95% 92%, #39251d 0%, transparent 47%), #0b1812;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #ffd98b; outline-offset: 4px; }
.invite {
  width: min(100%, 69rem);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  border: 1px solid #e7e2bf4b;
  border-radius: 1.65rem;
  overflow: hidden;
  box-shadow: 0 30px 90px #0006, 0 8px 20px #0004;
}
.cover {
  position: relative;
  display: grid;
  align-items: stretch;
  isolation: isolate;
  min-width: 0;
  background: #172a1c;
}
.cover-image, .cover::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover-image { object-fit: cover; object-position: 54% 55%; z-index: -2; }
.cover::after {
  content: "";
  z-index: -1;
  background: linear-gradient(90deg, #091a11bd 0%, #09171050 57%, transparent 100%),
    linear-gradient(0deg, #091610eb 0%, #0b1a1233 34%, transparent 62%, #091a1273 100%);
}
.cover-content {
  min-height: 39rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  padding: clamp(1.65rem, 4.2vw, 3.4rem);
  padding-top: clamp(1.8rem, 3.7vw, 2.75rem);
}
.ministry {
  align-self: start;
  display: flex;
  align-items: center;
  gap: .65rem;
  color: #ffefd4;
  font-size: .87rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.star { color: var(--gold); font-size: 1.28rem; line-height: 1; }
.event-title { padding-block: 1.75rem; }
.event-title h1 {
  font: 400 clamp(3.4rem, 7.35vw, 6.5rem)/.89 var(--serif);
  letter-spacing: -.065em;
  text-wrap: nowrap;
  text-shadow: 0 4px 22px #06160dd1;
}
.event-title h1 em { display: block; color: var(--gold); }
.event-title p { margin-top: 1.25rem; max-width: 22rem; color: #fff1de; line-height: 1.5; text-wrap: pretty; }
.cover-date { display: grid; gap: .35rem; border-top: 1px solid #f5dfb25e; padding-top: 1.05rem; }
.cover-date time { font-size: 1.04rem; font-weight: 700; }
.cover-date time span { margin-inline: .25em; color: var(--gold); }
.cover-date > span { color: #e2dbcd; font-size: .94rem; }
.reply {
  min-width: 0;
  background: radial-gradient(ellipse at top right, #20372b, transparent 70%), var(--surface);
  padding: clamp(1.6rem, 4vh, 2.55rem) clamp(1.6rem, 3.9vw, 3.05rem);
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.welcome h2 {
  margin-bottom: .65rem;
  font: 400 clamp(2.45rem, 4.5vw, 3.7rem)/.98 var(--serif);
  letter-spacing: -.06em;
}
.welcome p, .confirmation p { color: var(--muted); line-height: 1.55; text-wrap: pretty; }
form { margin-top: 1.6rem; }
.attendance { margin: 0; padding: 0; border: 0; min-width: 0; }
legend, .fields label { font-size: .94rem; font-weight: 650; }
legend { margin-bottom: .5rem; padding: 0; }
.choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .42rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  min-height: 2.8rem;
  padding: .42rem .22rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: #20362b;
  color: #e1e8df;
  font-size: .91rem;
  font-weight: 650;
  text-align: center;
  cursor: pointer;
}
.choice input:checked + span { border-color: #ebcb86; color: #ffdfa0; background: #ebcb8619; }
.choice input:focus-visible + span { outline: 3px solid #ffd98b; outline-offset: 3px; }
.fields { margin-top: .95rem; display: grid; gap: .85rem; }
.fields label { display: grid; gap: .45rem; }
.rsvp-fields small { color: var(--muted); font-weight: 400; line-height: 1.4; }
@media (min-width: 960px) {
  .rsvp-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .rsvp-fields label:last-child { grid-column: 1 / -1; }
}
.fields input, .fields select {
  width: 100%;
  min-width: 0;
  min-height: 2.9rem;
  padding: .61rem .77rem;
  font-size: 1rem;
  font-weight: 400;
  color: #fff8ec;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background-color: #0b1c15a5;
}
.fields input::placeholder, .fields select:invalid { color: #aebeb0; opacity: 1; }
.fields select {
  appearance: none;
  padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23c5d0c5' stroke-width='1.7' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .67rem center;
}
.fields option { background: #172b21; color: #f9f2e7; }
.submit {
  width: 100%;
  min-height: 3rem;
  padding: .62rem .85rem;
  margin-top: 1.04rem;
  border: 1px solid #ffe2aa;
  border-radius: .55rem;
  color: #272013;
  background: #efd391;
  font-weight: 750;
}
.submit:hover { background: #ffe2a5; }
.submit:disabled { opacity: .7; cursor: wait; }
.form-note { color: var(--muted); margin-top: .65rem; font-size: .82rem; line-height: 1.45; }
.form-error { margin-top: .7rem; color: #ffc2b5; font-size: .96rem; }
.venue { display: grid; gap: .48rem; border-top: 1px solid var(--line); margin-top: 1.4rem; padding-top: 1.05rem; }
.venue-text { display: grid; gap: .26rem; }
.venue-text strong { font-size: .98rem; }
.venue-text span { color: var(--muted); font-size: .92rem; }
.venue-actions { display: flex; flex-wrap: wrap; gap: 1.12rem; }
.venue-actions a, .text-button {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--gold);
  font-size: .93rem;
  font-weight: 650;
  text-underline-offset: .23em;
}
.confirmation { margin-top: 1.6rem; padding: 1.15rem; border: 1px solid var(--line); border-radius: .75rem; background: #0e2118; }
.confirmation h3 { margin: .65rem 0 .36rem; font: 400 2rem/1.05 var(--serif); }
.confirmed-mark { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border: 1px solid #eed2a385; border-radius: 50%; color: var(--gold); }
.text-button { background: none; padding: 0; border: 0; text-decoration: underline; }
@media (max-width: 760px) {
  body { padding: .75rem; }
  .invite { max-width: 33rem; grid-template-columns: minmax(0, 1fr); border-radius: 1.13rem; }
  .cover-content { min-height: 24rem; padding: 1.32rem 1.45rem; }
  .cover-image { object-position: 54% 60%; }
  .event-title h1 { font-size: clamp(2.85rem, 11vw, 4.95rem); }
  .event-title p { margin-top: .78rem; max-width: 17rem; }
  .event-title { padding-block: 1.25rem; }
  .cover-date { padding-top: .78rem; }
  .reply { padding: 1.5rem 1.45rem 1rem; }
  .welcome h2 { font-size: 2.6rem; }
}
@media (max-width: 345px) {
  .cover-content, .reply { padding-inline: 1.05rem; }
  .event-title h1 { font-size: clamp(2.35rem, 11.5vw, 3.3rem); }
  .cover-date time { font-size: .92rem; }
}
