@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Pinyon Script";
  src: url("/fonts/pinyon-script-latin-400-normal.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/fonts/montserrat-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/fonts/montserrat-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  /* Same palette as the invitations; text colors meet WCAG 2.1 AA on --paper. */
  --bg: #efe6d6;
  --paper: #fffcf6;
  --ink: #2e251c;
  --muted: #5e5244;
  --gold: #a8844f; /* lines and ornaments only, never text */
  --gold-dark: #7a5c30;
  --gold-deep: #634a25;
  --line: rgba(168, 132, 79, 0.45);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --script: "Pinyon Script", "Snell Roundhand", cursive;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.55;
  text-align: center;
  -webkit-font-smoothing: antialiased;
}

.card {
  --frame: 10px;
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 7rem 1.6rem 7rem;
  background: var(--paper);
}

.card::before {
  content: "";
  position: absolute;
  inset: var(--frame);
  border: 1px solid var(--line);
  pointer-events: none;
}

@media (min-width: 760px) {
  body {
    padding: 3rem 1rem 0;
  }
  .card {
    --frame: 14px;
    padding: 8rem 4rem;
    box-shadow: 0 30px 60px -30px rgba(58, 48, 38, 0.35), 0 2px 6px rgba(58, 48, 38, 0.06);
  }
}

.orn {
  position: absolute;
  width: clamp(92px, 22vw, 150px);
  height: auto;
  pointer-events: none;
}

.orn-tl {
  top: calc(var(--frame) + 10px);
  left: calc(var(--frame) + 10px);
}

.orn-tr {
  top: calc(var(--frame) + 10px);
  right: calc(var(--frame) + 10px);
  transform: scaleX(-1);
}

.orn-bl {
  bottom: calc(var(--frame) + 10px);
  left: calc(var(--frame) + 10px);
  transform: scaleY(-1);
}

.orn-br {
  bottom: calc(var(--frame) + 10px);
  right: calc(var(--frame) + 10px);
  transform: scale(-1, -1);
}

.eyebrow,
.section-title,
.btn,
.credit {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.28em;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-dark);
}

.brand {
  margin: 0;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(3.4rem, 15vw, 5.2rem);
  line-height: 1.1;
}

.tagline {
  margin: 1.2rem auto 2rem;
  max-width: 26em;
  font-size: 1.3rem;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 2rem;
  border: 1px solid var(--gold-dark);
  border-radius: 2px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
}

.btn-solid {
  background: var(--gold-dark);
  color: #fff;
}

.btn-solid:hover,
.btn-solid:focus-visible {
  background: var(--gold-deep);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.divider {
  position: relative;
  height: 1px;
  width: 70%;
  margin: 3.5rem auto;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
}

.divider span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  background: var(--paper);
  border: 1px solid var(--gold);
  transform: translate(-50%, -50%) rotate(45deg);
}

.section-title {
  margin: 0 0 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-dark);
}

.features ul {
  display: grid;
  gap: 1.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 760px) {
  .features ul {
    grid-template-columns: 1fr 1fr;
    gap: 2.2rem 2.5rem;
  }
}

.features h3 {
  margin: 0 0 0.3rem;
  font-size: 1.4rem;
  font-weight: 600;
}

.features p {
  margin: 0;
  color: var(--muted);
}

.steps ol {
  max-width: 28em;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  margin-bottom: 1.4rem;
}

.steps li::before {
  content: counter(step);
  display: block;
  margin: 0 auto 0.2rem;
  font-size: 2rem;
  font-weight: 600;
  color: var(--gold-dark);
}

.contact {
  margin-top: 3.5rem;
}

.script {
  margin: 0 0 0.5rem;
  font-family: var(--script);
  font-size: clamp(2.3rem, 9vw, 3rem);
  line-height: 1.2;
  color: var(--gold-dark);
}

.contact > p {
  margin: 0 auto 1.5rem;
  max-width: 24em;
  color: var(--muted);
}

.contact .email {
  margin-top: 1.2rem;
}

.email a {
  color: var(--gold-dark);
  font-weight: 600;
}

.credit {
  margin: 0;
  padding: 1.4rem 1rem 1.8rem;
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--muted);
}
