:root {
  color-scheme: light;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  color: #191a16;
  background: #f2f0e9;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
}

main {
  width: min(420px, calc(100% - 40px));
  padding: 36px 0 24px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 24px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.invitation {
  display: block;
  border: 1px solid #d8d6cf;
  background: #fff;
  box-shadow: 6px 6px 0 #e5e2d7;
}

.invitation img {
  display: block;
  width: 100%;
  height: auto;
}

.instructions {
  margin: 27px 0 21px;
  color: #5b5d53;
  font-size: 15px;
  line-height: 1.6;
}

.join {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 14px 22px;
  color: #fff;
  background: #242820;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
}

.join:hover { background: #3a4432; }

.download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin-top: 8px;
  color: #52564a;
  font-size: 13px;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:focus-visible {
  outline: 3px solid #687846;
  outline-offset: 5px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 380px) {
  main { padding-top: 24px; }
  .eyebrow { margin-bottom: 18px; }
}

@media print {
  :root { background: white; }
  main { width: min(100%, 150mm); }
  .invitation { border: 0; box-shadow: none; }
  .eyebrow, .instructions, .join, .download { display: none; }
}
