@page {
  size: A4 portrait;
  margin: 0;
}

:root {
  --black: #080808;
  --soft-black: #11100f;
  --burgundy: #720d18;
  --deep-burgundy: #4d0710;
  --event: #650d18;
  --gold: #c7a052;
  --light-gold: #d9be78;
  --cream: #f4eee3;
  --warm-cream: #ece0cc;
  --ivory: #faf7f0;
  --text: #211d19;
  --muted: #706960;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "DM Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  padding: 0;
}

.ack-screen {
  position: relative;
  z-index: 60;
  background: var(--soft-black);
  padding: 1.5rem 1rem 4rem;
}

body.is-invitation .site-header,
body.is-invitation #main,
body.is-invitation .footer,
body.is-invitation .music-toggle,
body.is-invitation .mobile-cta {
  display: none !important;
}

.print-page {
  width: 210mm;
  min-height: 297mm;
  margin: 0 auto;
  background-color: var(--cream);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'><g fill='none' stroke='%23720d18' stroke-width='0.6' opacity='0.28'><circle cx='110' cy='110' r='46'/><circle cx='110' cy='110' r='28'/><path d='M110 58c8 16 8 28 0 44 8-16 20-20 36-16-16 8-20 20-16 36-16-8-28-8-44 0 4-16 0-28-16-36 16-4 28 0 36 16z'/></g></svg>");
  background-size: 180px 180px;
  color: var(--text);
  font-family: var(--sans);
  overflow: hidden;
}

.ack-hero {
  display: block;
  width: 100%;
  height: 82mm;
  object-fit: cover;
  object-position: center top;
}

.ack-confirm {
  padding: 4.5mm 14mm 1mm;
  text-align: center;
}

.ack-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  color: var(--gold);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.ack-kicker::before,
.ack-kicker::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.ack-title {
  margin: 3mm 0 2mm;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.ack-thanks,
.ack-ref,
.ack-closing p,
.detail span,
.event-meta span {
  font-family: var(--sans);
}

.ack-thanks {
  max-width: 118mm;
  margin: 0 auto;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.ack-ref {
  margin: 2.5mm 0 0;
  color: var(--burgundy);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ack-block {
  padding: 2.5mm 14mm 0.5mm;
  break-inside: avoid;
  page-break-inside: avoid;
}

.ack-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 3mm;
  color: var(--burgundy);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
}

.ack-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(114, 13, 24, 0.45), rgba(199, 160, 82, 0.2));
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12mm;
}

.detail {
  padding: 1.6mm 0 1.4mm;
  border-bottom: 1px solid rgba(114, 13, 24, 0.16);
}

.detail span {
  display: block;
  color: var(--muted);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.detail strong {
  display: block;
  margin-top: 0.8mm;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.15;
}

.ack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 2mm;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ack-pills li {
  padding: 1.6mm 3.2mm;
  background: var(--burgundy);
  color: var(--ivory);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ack-note {
  margin: 0;
  padding: 2.4mm 4mm;
  border: 1px solid rgba(199, 160, 82, 0.65);
  background: rgba(250, 247, 240, 0.72);
  color: var(--text);
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  line-height: 1.4;
  white-space: pre-wrap;
}

.ack-note::before {
  content: "“";
  display: block;
  color: var(--gold);
  font-size: 22px;
  line-height: 0.8;
  font-style: normal;
}

.ack-event {
  position: relative;
  display: grid;
  grid-template-columns: auto 1px minmax(0, 1fr);
  gap: 6mm;
  align-items: center;
  margin: 3mm 14mm 1mm;
  padding: 4mm 6mm;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 20%, rgba(199, 160, 82, 0.16), transparent 32%),
    var(--event);
  color: var(--ivory);
  break-inside: avoid;
  page-break-inside: avoid;
}

.ack-event__art {
  position: absolute;
  right: -8mm;
  bottom: -8mm;
  width: 52mm;
  color: rgba(217, 190, 120, 0.16);
  pointer-events: none;
}

.ack-date {
  display: flex;
  align-items: flex-end;
  gap: 2.5mm;
  position: relative;
}

.ack-day {
  font-family: var(--sans);
  font-size: 52px;
  font-weight: 500;
  line-height: 0.75;
  color: var(--gold);
  font-variant-numeric: lining-nums;
}

.ack-month {
  margin: 0 0 1mm;
  font-size: 10px;
  letter-spacing: 0.16em;
  line-height: 1.25;
  text-transform: uppercase;
}

.ack-divider {
  align-self: stretch;
  background: rgba(244, 238, 227, 0.28);
}

.ack-event h2,
.ack-event h3 {
  margin: 0.5mm 0 0;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 0.95;
}

.ack-event .ack-kicker {
  justify-content: flex-start;
  margin-bottom: 1mm;
}

.ack-event .ack-kicker::after { display: none; }

.event-meta {
  display: grid;
  gap: 1.6mm;
  margin-top: 2.5mm;
}

.event-meta p {
  display: grid;
  grid-template-columns: 14px auto;
  gap: 0 2mm;
  margin: 0;
  font-size: 12px;
}

.event-meta svg {
  grid-row: span 2;
  align-self: center;
  width: 14px;
  height: 14px;
}

.event-meta span {
  color: var(--light-gold);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.event-meta strong { font-weight: 400; }

.ack-closing {
  padding: 2mm 14mm 4mm;
  text-align: center;
}

.ack-closing h2 {
  margin: 2mm 0 2mm;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
}

.ack-closing p {
  max-width: 125mm;
  margin: 0 auto;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.ack-closing a {
  color: var(--burgundy);
  text-decoration: none;
}

.ack-signoff {
  margin-top: 2mm !important;
  color: var(--text) !important;
  font-family: var(--serif) !important;
  font-size: 16px !important;
  font-style: italic;
}

.ack-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 7mm;
}

.ack-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  margin: 0;
  padding: 12px 18px;
  background: var(--black);
  color: var(--ivory);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

.ack-cta--download {
  background: var(--burgundy);
}

.ack-closing .ack-cta,
.ack-closing .ack-cta:visited {
  color: var(--ivory);
}

.ack-actions .register-again {
  min-width: 240px;
  justify-content: center;
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(33, 29, 25, 0.28);
}

@media screen and (max-width: 1080px) {
  .ack-screen { padding: 1rem 0.75rem 2.5rem; }
  .print-page {
    width: 100%;
    min-height: 0;
  }
  .ack-hero { height: min(52vw, 320px); object-position: center top; }
  .ack-title { font-size: clamp(2rem, 6vw, 2.8rem); }
}

@media screen and (max-width: 760px) {
  .ack-confirm,
  .ack-block,
  .ack-closing { padding-left: 1.05rem; padding-right: 1.05rem; }

  .ack-event {
    margin-left: 0.8rem;
    margin-right: 0.8rem;
    grid-template-columns: 1fr;
    padding: 1.1rem 1rem;
  }

  .detail-grid { grid-template-columns: 1fr; }

  .ack-divider { width: 100%; height: 1px; }

  .ack-day { font-size: 4.2rem; }
  .ack-actions { width: 100%; }
  .ack-cta,
  .ack-actions .register-again { width: 100%; min-width: 0; }
}

@media print {
  .ack-screen { background: transparent; padding: 0; }
  .print-page { box-shadow: none; }
  .ack-actions { display: none; }
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
