/* Palette and type from the save-the-date card: dusty-blue paper, ivory tag,
   wine wax seal, sage ribbon, slate lettering. */
:root {
  --backdrop: #97a6b9;
  --backdrop-deep: #8496ad;
  --ivory: #fbf8f3;
  --ivory-2: #f2ede5;
  --ink: #29343b;
  --muted: #56616a;
  --wine: #6b1f2a;
  --sage: #9aa596;
  --sage-ink: #5f6d5a;
  --line: #ddd5c9;
  --serif: 'Frank Ruhl Libre', 'David Libre', Georgia, serif;
  --sans: 'Assistant', 'Segoe UI', system-ui, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--ink);
  font: 17px/1.65 var(--sans);
  /* matched to the blue paper at the edges of the card photo */
  background: radial-gradient(60% 45% at 50% 22%, #a2b0c2, transparent 75%) var(--backdrop);
}
@media (min-width: 900px) {
  body { background: radial-gradient(34% 55% at 68% 42%, #a3b1c3, transparent 75%) var(--backdrop); }
}
a { color: var(--wine); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; border-radius: 2px; }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* ---------- the wax seal ---------- */
.seal {
  display: inline-grid; grid-auto-flow: column; align-items: center; justify-content: center; gap: 3px;
  width: 64px; height: 64px; border-radius: 50%;
  font: 500 22px/1 var(--serif); color: #e9c9c4; text-decoration: none; direction: ltr;
  background:
    radial-gradient(circle at 34% 30%, rgba(255,255,255,.22), transparent 42%),
    radial-gradient(circle, #7d2833 0 58%, #5c1823 60% 100%);
  box-shadow: inset 0 0 0 4px rgba(0,0,0,.12), inset 0 -3px 6px rgba(0,0,0,.25), 0 3px 8px rgba(41,52,59,.25);
}
.seal i { width: 1px; height: 22px; background: currentColor; opacity: .7; }

/* ---------- home ---------- */
.home {
  display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-content: center; gap: 0;
  min-height: 100vh; padding: 24px 16px 40px;
}
@media (min-width: 900px) {
  .home {
    grid-template-columns: minmax(0, 520px) minmax(0, 460px); justify-content: center; align-items: center;
    column-gap: 8px; padding: 40px 32px;
  }
  .home .note { margin-top: 0; }
  .home .foot { grid-column: 1 / -1; }
}
.card-photo {
  width: min(560px, 100%); margin: 0;
  /* let the photo's own blue paper melt into the page */
  --feather: linear-gradient(to right, transparent, #000 11%, #000 89%, transparent),
             linear-gradient(to bottom, transparent, #000 9%, #000 94%, transparent);
  -webkit-mask-image: var(--feather); -webkit-mask-composite: source-in;
          mask-image: var(--feather);         mask-composite: intersect;
}
.card-photo img { display: block; width: 100%; height: auto; }

.note {
  position: relative; width: min(520px, 100%); margin-top: -28px;
  background: var(--ivory); border-radius: 6px; padding: 34px 32px 26px; text-align: center;
  box-shadow: 0 1px 2px rgba(41,52,59,.08), 0 14px 34px rgba(41,52,59,.18);
}
/* a strip of the sage ribbon across the top of the note */
.note::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 6px; border-radius: 6px 6px 0 0;
  background: linear-gradient(90deg, #8c9888, #b4bdb0 50%, #8c9888);
}
.note h1 {
  font: 500 34px/1.15 var(--serif); color: var(--wine); margin: 0;
}
.note h1 .amp { color: var(--sage-ink); font-style: italic; font-weight: 400; margin: 0 .2em; }
.date {
  font: 400 19px/1 var(--serif); letter-spacing: .28em; color: var(--ink); margin: 12px 0 20px;
}
.divider { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 auto 18px; color: var(--wine); }
.divider::before, .divider::after { content: ''; width: 56px; height: 1px; background: var(--line); }
.divider svg { width: 10px; height: 10px; }
.note p { margin: 0 0 12px; text-wrap: pretty; }
.wa-number {
  display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 16px;
  padding: 8px 16px; border-radius: 999px; background: var(--ivory-2);
  font: 600 18px/1.2 var(--sans); color: var(--ink); text-decoration: none;
}
.wa-number svg { width: 18px; height: 18px; color: var(--sage-ink); }
.en { color: var(--muted); font-size: 15px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 8px; }
.foot { margin-top: 22px; font-size: 15px; color: #fff; text-align: center; }
.foot a { color: #fff; }
.foot span { opacity: .6; margin: 0 8px; }
.foot a { white-space: nowrap; }
.sheet header a[lang] { white-space: nowrap; }

/* ---------- privacy ---------- */
.sheet {
  width: min(760px, calc(100% - 32px)); margin: 32px auto 48px;
  background: var(--ivory); border-radius: 6px; padding: 40px clamp(20px, 6vw, 64px) 36px;
  box-shadow: 0 1px 2px rgba(41,52,59,.08), 0 14px 34px rgba(41,52,59,.18);
}
.sheet header { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.sheet .seal { width: 52px; height: 52px; font-size: 18px; flex-shrink: 0; }
.sheet .seal i { height: 18px; }
.sheet h1 { font: 500 32px/1.15 var(--serif); color: var(--wine); margin: 0; }
.sheet header p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.sheet h2 { font: 600 20px/1.3 var(--serif); color: var(--ink); margin: 28px 0 6px; }
.sheet p, .sheet li { max-width: 64ch; }
.sheet ul { padding-inline-start: 1.2em; margin: 6px 0 12px; }
.sheet li { margin-bottom: 4px; }
.sheet li::marker { color: var(--sage-ink); }
.sheet section[lang="en"] { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 12px; font-family: var(--sans); }
.sheet footer { margin-top: 32px; font-size: 15px; }

@media (max-width: 520px) {
  body { font-size: 16px; }
  .note { padding: 30px 20px 22px; }
  .note h1 { font-size: 30px; }
  .sheet { margin-top: 16px; }
  .sheet h1 { font-size: 27px; }
}
@media (prefers-reduced-motion: no-preference) {
  .note { animation: rise .6s ease-out both; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } }
}
