:root {
  color-scheme: light;
  --cream: #f4efe6;
  --navy: #19364f;
  --ink: #253849;
  --muted: #565e61;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--cream);
}
* { box-sizing: border-box; }
body { margin: 0; }
.masthead, main { width: min(1100px, 91%); margin-inline: auto; }
.masthead {
  min-height: 91px; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; border-bottom: 1px solid #cfc6b7;
}
.masthead img { width: min(300px, 59%); height: auto; }
.masthead span, .host-label, .year {
  font-size: .71rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
}
.masthead span { color: var(--muted); white-space: nowrap; }
.invitation {
  display: grid; grid-template-columns: 1.04fr 1fr; margin-top: 30px;
  background: #fffcf6; border: 1px solid #d4caba;
}
.poster {
  display: flex; align-items: flex-end; min-height: 550px;
  background: linear-gradient(0deg, #081825e8, #0d243746 54%, transparent 82%),
    #0b1927 url("./assets/new-year-sparkler.webp") 50% 30% / cover no-repeat;
  color: #fff8e9;
}
.poster-copy { padding: clamp(30px, 4.5vw, 64px); }
.year { display: flex; align-items: center; gap: 14px; color: #f1ce86; margin: 0 0 19px; }
.year span { width: 33px; height: 1px; background: currentColor; }
h1, h2, h3, .hosts span { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
h1 { font-size: clamp(4.1rem, 6.5vw, 5.9rem); line-height: .99; letter-spacing: -.055em; margin: 0; }
h1 em { color: #f0ce90; }
.invite { max-width: 31ch; margin: 22px 0 0; font-size: 1.05rem; line-height: 1.5; }
.reply { padding: clamp(30px, 3.8vw, 54px); align-self: center; min-width: 0; }
h2 { margin: 0; font-size: clamp(2.4rem, 3.5vw, 3.05rem); letter-spacing: -.05em; }
.intro { margin: 8px 0 27px; color: var(--muted); line-height: 1.5; }
label { display: block; font-size: .91rem; font-weight: 700; margin-bottom: 8px; }
input { display: block; width: 100%; min-height: 46px; padding: 11px 13px; margin-bottom: 19px;
  font: inherit; color: var(--ink); background: #fffefa; border: 1px solid #a8a399; border-radius: 4px; }
input::placeholder { color: #6f7271; }
.hint, .preview-note { font-size: .815rem; color: var(--muted); line-height: 1.45; }
.hint { margin: -3px 0 9px; }
.guest-count { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 19px; }
.guest-count input { width: 4rem; margin: 0; padding-inline: 4px; text-align: center; appearance: textfield; }
.guest-count input::-webkit-inner-spin-button { appearance: none; }
.guest-count button { width: 46px; height: 46px; padding: 0; font-size: 1.4rem; }
.guest-count button:disabled { color: #676760; background: #e7e2d8; cursor: default; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
button { width: 100%; padding: 14px 20px; border: 0; border-radius: 4px; background: var(--navy);
  color: white; font: 700 .96rem Arial, sans-serif; cursor: pointer; }
button span { margin-left: 9px; }
button:hover { background: #284d68; }
:focus-visible { outline: 3px solid #967023; outline-offset: 3px; }
.preview-note { margin: 10px 0 0; text-align: center; font-size: .75rem; }
h3 { font-size: 1.75rem; margin: 10px 0 20px; }
dl { margin: 0 0 24px; }
dt { font-weight: bold; font-size: .85rem; }
dd { margin: 5px 0 14px; overflow-wrap: anywhere; }
footer { text-align: center; padding: 26px 0 31px; }
.host-label { color: #635e53; margin: 0 0 12px; font-size: .65rem; }
.hosts { display: flex; align-items: center; justify-content: center; gap: 17px; }
.hosts img { height: 36px; width: auto; max-width: 38%; object-fit: contain; }
.hosts span { color: #8b682c; font-size: 1.5rem; font-style: italic; }
@media (max-width: 700px) {
  .masthead, main { width: min(92%, 550px); }
  .masthead { min-height: 70px; }
  .masthead img { width: 61%; }
  .masthead span { font-size: .60rem; letter-spacing: .09em; }
  .invitation { grid-template-columns: 1fr; margin-top: 16px; }
  .poster { min-height: 304px; background-position: center, 50% 20%; }
  .poster-copy { padding: 26px; }
  .year { margin-bottom: 14px; }
  h1 { font-size: clamp(3.55rem, 12vw, 4.5rem); }
  .invite { font-size: .93rem; margin-top: 13px; }
  .reply { padding: 26px 24px; }
  .intro { margin-bottom: 21px; }
  footer { padding-block: 23px; }
  .hosts { gap: 11px; }
  .hosts img { height: 30px; }
}
