/* Served for a day from cache (Cloudflare ignores query strings): rename the
   file, and the links in index, support and host.html, when pages need a change. */
@font-face {
  font-family: "Special Elite";
  src: url("/legal/fonts/SpecialElite.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #1d1530;
  --bg-2: #261c3f;
  --ink: #f7eee5;
  --ink-dim: #b3a4c2;
  --pink: #ff0089;
  --pink-soft: #ff3fa3;
  --green: #00ff66;
  --rule: rgba(255, 0, 137, 0.22);
  --serif: ui-serif, Charter, "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
  --mono: "Special Elite", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--pink-soft); text-decoration: none; }
a:hover { color: var(--pink); }
img, video { max-width: 100%; display: block; }

/* One gutter for every block, capped at a readable width. */
.nav, .hero, .section, .footer {
  width: min(1080px, 100% - 40px);
  margin-inline: auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
}
.nav nav { display: flex; gap: 22px; font-size: 15px; }
.nav nav a { color: var(--ink-dim); }
.nav nav a:hover { color: var(--ink); }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--mono);
  letter-spacing: 0.12em;
}
.brand-b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 2px solid var(--pink);
  border-radius: 50%;
  color: var(--pink);
  font-size: 15px;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
}
h1 { font-size: clamp(40px, 7vw, 72px); }
h1 em { color: var(--pink); }
h2 { font-size: clamp(30px, 4.5vw, 46px); }
h3 { margin: 0 0 6px; font-size: 18px; }

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(24px, 6vw, 64px) 0 clamp(40px, 8vw, 96px);
}
.lede { margin: 0 0 14px; font-size: clamp(17px, 2vw, 20px); color: var(--ink-dim); max-width: 34em; }
.fine { margin: 14px 0 0; font-size: 14px; color: var(--ink-dim); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.cta-row.center { justify-content: center; }
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 10px;
  background: var(--pink);
  color: #fff;
  font-weight: 600;
}
.btn:hover { background: var(--pink-soft); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--rule); }
.btn.ghost:hover { border-color: var(--pink); color: var(--ink); }

.video { margin: 0; justify-self: center; width: min(100%, 320px); }
.video video {
  width: 100%;
  aspect-ratio: 720 / 1564;
  background: #000;
  border-radius: 28px;
  border: 1px solid var(--rule);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.video figcaption { margin-top: 12px; text-align: center; font-size: 14px; color: var(--ink-dim); }

.section { padding: clamp(40px, 7vw, 88px) 0; border-top: 1px solid var(--rule); }
.section-lede { margin: 0 0 32px; max-width: 40em; font-size: clamp(17px, 2vw, 20px); color: var(--ink-dim); }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.steps li { padding: 22px; background: var(--bg-2); border-radius: 14px; }
.steps p { margin: 0; color: var(--ink-dim); font-size: 15px; }
.num { display: block; margin-bottom: 10px; color: var(--pink); font-family: var(--mono); font-size: 14px; }

/* Photos have mixed orientations, so columns keep each one uncropped. */
.gallery { columns: 3; column-gap: 14px; }
.gallery img {
  width: 100%;
  height: auto;
  margin: 0 0 14px;
  border-radius: 6px;
  break-inside: avoid;
}

/* The Events copy beside its promo video, which has its captions drawn in. */
.events {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}
/* At the top of the page: no rule above it. */
.events.top { border-top: 0; padding-top: clamp(4px, 1.5vw, 16px); }
.events-video { margin: 0; justify-self: center; width: min(100%, 320px); }
.events-video video {
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: 18px;
  border: 1px solid var(--rule);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.checks { margin: 0; padding: 0; list-style: none; max-width: 40em; }
.checks li { position: relative; padding: 0 0 12px 28px; color: var(--ink); }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--green); }

.support-hero { grid-template-columns: 1fr; text-align: center; }
.support-hero .lede { margin-inline: auto; }
.support-hero .cta-row { justify-content: center; }

.faq-list { border-top: 1px solid var(--rule); max-width: 46em; }
.faq-item { padding: 24px 0; border-bottom: 1px solid var(--rule); }
.faq-item p { margin: 0 0 12px; color: var(--ink-dim); }
.faq-item p:last-child { margin-bottom: 0; }

.nav nav a[aria-current="page"] { color: var(--ink); }

/* The host guide (host.html): text beside a screenshot, stacked on phones. */
.steps-5 { grid-template-columns: repeat(5, 1fr); }
.steps h3 { font-size: 17px; }
/* Each step card is a link to its section. */
.step-links li { padding: 0; }
.step-card {
  display: block;
  height: 100%;
  padding: 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--ink);
}
.step-card:hover, .step-card:focus-visible { border-color: var(--pink); color: var(--ink); }
.guide { scroll-margin-top: 12px; }
.guide-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  margin-bottom: 32px;
}
.guide-row:has(.shot.phone) { grid-template-columns: 1.3fr 0.7fr; }
.guide-text p, .guide-p { margin: 0 0 16px; color: var(--ink-dim); max-width: 40em; }
.guide-text strong, .guide-p strong { color: var(--ink); font-weight: 600; }
.guide-text .checks, .checks.guide-p { margin-bottom: 16px; }
.guide-text .checks li, .checks.guide-p li { color: var(--ink-dim); }
.guide-h3 { margin: 40px 0 12px; font-family: var(--serif); font-size: 26px; font-weight: 400; }
.plain-steps { margin: 0 0 16px; padding-left: 22px; color: var(--ink-dim); }
.plain-steps li { margin-bottom: 8px; }
.note {
  padding: 14px 18px;
  border-left: 3px solid var(--green);
  border-radius: 6px;
  background: var(--bg-2);
}
.shot { margin: 0 0 32px; }
.shot img {
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 10px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}
.shot.phone { justify-self: center; width: min(100%, 300px); }
.shot.phone img { border-radius: 24px; }
.shot:not(.phone) { max-width: 920px; }
.shot.narrow { max-width: 620px; }
.shot.center { margin-inline: auto; }
.shot figcaption { margin-top: 10px; text-align: center; font-size: 14px; color: var(--ink-dim); }
.guide-row .shot { margin-bottom: 0; }

.closing { text-align: center; }
.closing .section-lede { margin-inline: auto; }

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px 0 calc(40px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--ink-dim);
}
.footer p { margin: 0; }
.footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer .social { flex-basis: 100%; display: flex; justify-content: center; gap: 22px; }
.footer .social a { display: inline-flex; color: var(--ink-dim); }
.footer .social a:hover { color: var(--ink); }

/* Year-end offer banner, full width above the nav. */
.promo {
  background: var(--bg-2);
  border-bottom: 1px solid var(--pink);
}
.promo-inner {
  width: min(1080px, 100% - 40px);
  margin-inline: auto;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.promo-copy p { margin: 0; }
.promo-title { font-family: var(--serif); font-size: 19px; line-height: 1.35; }
.promo-fine { margin-top: 4px !important; color: var(--ink-dim); font-size: 14px; }
.promo-code {
  margin-top: 8px !important;
  color: var(--green);
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.promo-code strong { font-weight: 400; color: var(--pink-soft); }
.promo .btn { white-space: nowrap; }

@media (max-width: 820px) {
  .hero, .events { grid-template-columns: 1fr; }
  .video { order: 2; }
  .steps { grid-template-columns: 1fr 1fr; }
  .gallery { columns: 2; }
  .guide-row, .guide-row:has(.shot.phone) { grid-template-columns: 1fr; }
  .promo-inner { flex-direction: column; align-items: stretch; gap: 14px; }
  .promo .btn { text-align: center; }
}
@media (max-width: 520px) {
  .nav nav a:not(:last-child) { display: none; }
  .steps { grid-template-columns: 1fr; }
  .btn { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* The About page (about.html): left-aligned prose with a small portrait by the sign-off. */
.about h1 { margin: 0 0 20px; }
.about .signoff { margin: 28px 0 14px; }
.about .signoff .lede { margin: 0 0 14px; }
.about .signoff img { width: 120px; height: 160px; object-fit: cover; border-radius: 10px; }

/* Home page: no rule, and a short gap, between the wedding section, "How it works" and the closing call to action. */
#events, #how { padding-bottom: clamp(24px, 4vw, 40px); }
#how, .closing { border-top: 0; padding-top: 0; }
