:root {
  --paper: #f6ecd9;
  --paper-deep: #eadcc0;
  --maroon: #8b1030;
  --gold: #b8892b;
  --ink: #4a2a2a;
}

* { box-sizing: border-box; margin: 0; }

html { background: var(--paper-deep); }

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  padding: clamp(16px, 4vw, 48px) clamp(16px, 4vw, 48px) 20px;
  color: var(--ink);
  font-family: "Jost", system-ui, sans-serif;
  /* soft paper: warm light in the centre, deeper at the edges */
  background:
    radial-gradient(ellipse at 50% 40%, #fbf4e4 0%, var(--paper) 55%, var(--paper-deep) 100%);
}

/* The invitation card */
.card {
  position: relative;
  width: min(760px, 100%);
  padding: clamp(28px, 6vw, 56px) clamp(20px, 6vw, 64px) clamp(32px, 6vw, 52px);
  text-align: center;
  background: #fbecd5;
  border: 1px solid var(--gold);
  /* second, inner hairline gives the double-border of a printed card */
  outline: 1px solid var(--gold);
  outline-offset: -9px;
  box-shadow:
    0 1px 0 #fff8 inset,
    0 24px 40px -28px rgba(80, 40, 20, .45);
  animation: rise .9s ease-out both;
}

/* small gold ticks in the corners */
.corner {
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--gold);
  background: var(--paper);
  transform: rotate(45deg);
}
.tl { top: -8px; left: -8px; }
.tr { top: -8px; right: -8px; }
.bl { bottom: -8px; left: -8px; }
.br { bottom: -8px; right: -8px; }

.logo {
  display: block;
  width: min(560px, 100%);
  height: auto;
  margin: 0 auto;
  /* melt the cropped photo's edges into the card */
  -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 62%, transparent 100%);
          mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 62%, transparent 100%);
}

.line {
  margin-top: clamp(8px, 2vw, 20px);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(22px, 4.4vw, 32px);
  line-height: 1.3;
  color: var(--maroon);
}
.line em { font-style: italic; }

.rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: clamp(20px, 4vw, 30px) auto 18px;
  width: min(320px, 70%);
}
.rule i { flex: 1; height: 1px; background: var(--gold); }
.rule b {
  width: 8px; height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}

.soon {
  font-size: 12px;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--ink);
  padding-left: .38em; /* optically re-centre after letter-spacing */
}

footer {
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: .12em;
  color: #8a6a5a;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .card { animation: none; } }
