/* Amoret's marketing site.
 *
 * The app's own look, in CSS: the Gilded palette (lib/core/theme/palettes.dart),
 * Cormorant Garamond for display and Plus Jakarta Sans for everything else
 * (lib/core/theme/app_theme.dart), pill buttons, 22px cards with a hairline
 * border. Two departures, both for legibility: small gold text and the gold
 * buttons use a deeper gold than the app's, because #9A7B39 under white text
 * is 4.0:1 and the web's floor for body text is 4.5:1; and the faint ink is
 * a shade darker for the same reason.
 */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/static/fonts/cormorant-500.1f9e84d7c3.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/static/fonts/cormorant-600.ea6f21a14b.woff") format("woff");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/static/fonts/jakarta-400.4cad640650.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/static/fonts/jakarta-600.cf9df094a0.woff") format("woff");
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/static/fonts/jakarta-700.c129c8c2f1.woff") format("woff");
  font-weight: 700 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --gold: #9a7b39;
  --gold-deep: #86692c;
  --gold-light: #d4af37;
  --wash: #f7f0e1;
  --sage: #8b9e87;
  --canvas: #fbf8f3;
  --surface: #ffffff;
  --ink: #221f1b;
  --muted: #6b6459;
  --faint: #7a7368;
  --border: #e9e2d5;
  --on-dark: rgba(255, 255, 255, 0.74);
  --on-dark-faint: rgba(255, 255, 255, 0.58);
  --display: "Cormorant Garamond", "Cormorant", Garamond, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --gutter: 20px;
  --radius: 22px;
  --shadow: 0 10px 28px rgba(34, 31, 27, 0.07);
  --shadow-lift: 0 18px 44px rgba(34, 31, 27, 0.12);
  --bar-height: 74px;
}

@media (min-width: 720px) {
  :root {
    --gutter: 40px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--bar-height) + 16px);
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  /* Cormorant's default figures are old-style: at display sizes "0" reads
     as an O and "1" as a small capital I (AppTheme.display forces lining
     figures for the same reason). Inherited by everything. */
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

/* A class that sets display must never bring back something hidden. */
[hidden] {
  display: none !important;
}

img {
  height: auto;
}

a {
  color: var(--gold-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

p,
h1,
h2,
h3,
h4,
ul,
ol,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

/* ------------------------------------------------------------ type */

.display,
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  font-variant-numeric: lining-nums;
  letter-spacing: -0.012em;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.35rem, 1.5rem + 3.4vw, 3.6rem);
  font-weight: 500;
  line-height: 1.04;
}

h2 {
  font-size: clamp(1.85rem, 1.35rem + 2vw, 2.75rem);
}

h3 {
  font-size: clamp(1.35rem, 1.2rem + 0.5vw, 1.55rem);
}

.lead {
  max-width: 36rem;
  color: var(--muted);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.12rem);
  line-height: 1.65;
  text-wrap: pretty;
}

.center .lead,
.lead.center {
  margin-inline: auto;
}

.body {
  max-width: 40rem;
  color: var(--muted);
  line-height: 1.7;
}

.body p + p {
  margin-top: 0.9em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold-deep);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::after,
.center .eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  flex: none;
  background: currentColor;
  opacity: 0.45;
}

.center .eyebrow {
  justify-content: center;
}

.on-dark .eyebrow {
  color: var(--gold-light);
}

.heading {
  display: grid;
  gap: 14px;
}

.heading .lead {
  margin-top: -2px;
}

.center {
  text-align: center;
}

.center .heading {
  justify-items: center;
}

/* ------------------------------------------------------------ layout */

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap.narrow {
  max-width: 880px;
}

.section {
  padding-block: clamp(64px, 5rem + 3vw, 112px);
}

.section.tight {
  padding-block: clamp(48px, 3rem + 2vw, 80px);
}

.bg-canvas {
  background: linear-gradient(180deg, var(--canvas), #f9f3e9);
}

.bg-surface {
  background: var(--surface);
}

.bg-wash {
  background: var(--wash);
}

.bg-ink {
  background: var(--ink);
  color: #fff;
}

.bg-ink .lead,
.bg-ink .body {
  color: var(--on-dark);
}

.stack > * + * {
  margin-top: var(--gap, 24px);
}

.grid {
  display: grid;
  gap: var(--gap, 20px);
}

.cols-2,
.cols-3,
.cols-4 {
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .cols-2,
  .cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.split {
  display: grid;
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  }

  .split.flip > :first-child {
    order: 2;
  }
}

.mt-s {
  margin-top: 16px;
}

.mt {
  margin-top: 28px;
}

.mt-l {
  margin-top: clamp(36px, 4vw, 56px);
}

/* ------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 14px 26px;
  border: 1.2px solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--gold-deep);
  color: #fff;
}

.btn-primary:hover {
  background: #735a24;
  color: #fff;
  box-shadow: 0 10px 24px rgba(134, 105, 44, 0.28);
}

.btn-outline {
  border-color: rgba(154, 123, 57, 0.5);
  color: var(--ink);
  font-weight: 600;
}

.btn-outline:hover {
  border-color: var(--gold-deep);
  background: rgba(154, 123, 57, 0.06);
  color: var(--ink);
}

.btn-light {
  background: #fff;
  color: var(--ink);
}

.btn-light:hover {
  background: var(--wash);
  color: var(--ink);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  font-weight: 600;
}

.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-block {
  width: 100%;
}

.btn-large {
  min-height: 58px;
  padding-inline: 34px;
  font-size: 0.95rem;
}

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--gold-deep);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.btn-text:hover {
  color: var(--ink);
}

.btn-text .icon {
  transition: transform 0.18s;
}

.btn-text:hover .icon {
  transform: translateX(3px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  align-items: center;
}

.center .actions {
  justify-content: center;
}

.fine {
  color: var(--faint);
  font-size: 0.8rem;
  line-height: 1.5;
}

.on-dark .fine,
.hero .fine {
  color: var(--on-dark-faint);
}

/* ------------------------------------------------------------ header */

.bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  transition: background-color 0.26s, border-color 0.26s, padding 0.26s;
}

.bar-in {
  display: flex;
  align-items: center;
  gap: 6px;
  height: var(--bar-height);
}

.bar.over:not(.solid) {
  border-color: transparent;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
}

.brand-seal {
  width: 23px;
  height: 23px;
  color: var(--gold);
}

.brand-name {
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
}

.bar.over:not(.solid) .brand,
.bar.over:not(.solid) .brand-seal {
  color: #fff;
}

.nav {
  display: none;
  align-items: center;
}

.nav a,
.nav-signin {
  position: relative;
  padding: 8px 14px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.nav a::after,
.nav-signin::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 1.5px;
  background: currentColor;
  transform: translateX(-50%);
  transition: width 0.2s;
}

.nav a:hover,
.nav-signin:hover,
.nav a[aria-current="page"] {
  color: var(--gold-deep);
}

.nav a:hover::after,
.nav-signin:hover::after,
.nav a[aria-current="page"]::after {
  width: 18px;
}

.bar.over:not(.solid) .nav a,
.bar.over:not(.solid) .nav-signin {
  color: rgba(255, 255, 255, 0.82);
}

.bar.over:not(.solid) .nav a:hover,
.bar.over:not(.solid) .nav-signin:hover {
  color: #fff;
}

.nav-signin {
  display: none;
}

.menu-btn {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-inline: 2px 6px;
  padding: 0;
  border: 1px solid rgba(34, 31, 27, 0.2);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.menu-btn .icon {
  width: 19px;
  height: 19px;
}

.bar.over:not(.solid) .menu-btn {
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
}

.bar-cta {
  min-height: 46px;
  padding: 12px 18px;
  font-size: 0.85rem;
}

.bar.over:not(.solid) .bar-cta {
  background: #fff;
  color: var(--ink);
}

.bar-cta .long {
  display: none;
}

@media (min-width: 420px) {
  .nav-signin {
    display: inline-block;
  }
}

@media (min-width: 720px) {
  .bar-cta {
    padding-inline: 24px;
  }

  .bar-cta .long {
    display: inline;
  }

  .bar-cta .short {
    display: none;
  }
}

@media (min-width: 820px) {
  .nav {
    display: flex;
  }

  .nav a:nth-child(n + 3) {
    display: none;
  }
}

@media (min-width: 940px) {
  .nav a:nth-child(3) {
    display: inline-block;
  }
}

@media (min-width: 1080px) {
  .nav a:nth-child(4) {
    display: inline-block;
  }
}

@media (min-width: 1220px) {
  .nav a:nth-child(5) {
    display: inline-block;
  }
}

@media (max-width: 359px) {
  .brand-name {
    font-size: 1.35rem;
  }

  .bar-cta {
    padding-inline: 13px;
  }

  .menu-btn {
    margin-inline: 0 4px;
  }
}

main {
  display: block;
}

.below-bar {
  padding-top: calc(var(--bar-height) + env(safe-area-inset-top, 0px));
}

/* ------------------------------------------------------------ home hero */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(34, 31, 27, 0.74), rgba(34, 31, 27, 0.44) 52%, rgba(154, 123, 57, 0.44));
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
  min-height: min(760px, 100svh);
  padding-block: calc(var(--bar-height) + 34px) 52px;
}

.hero-copy {
  display: grid;
  justify-items: center;
  gap: 0;
  text-align: center;
}

.hero h1 {
  display: grid;
  justify-items: center;
  gap: 24px;
  font-size: clamp(2.35rem, 1.3rem + 4.4vw, 4.15rem);
  font-weight: 500;
  line-height: 1.02;
}

.pill {
  display: inline-block;
  padding: 8px 15px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.14);
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero .lead {
  max-width: 31rem;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.9);
}

.hero .actions {
  margin-top: 34px;
  justify-content: center;
}

.hero .fine {
  margin-top: 24px;
}

.hero-phone {
  display: none;
}

@media (min-width: 1080px) {
  .hero-grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    padding-block: calc(var(--bar-height) + 40px) 64px;
  }

  .hero-copy {
    justify-items: start;
    text-align: left;
  }

  .hero h1 {
    justify-items: start;
  }

  .hero .actions {
    justify-content: flex-start;
  }

  .hero-phone {
    display: grid;
    place-items: center;
  }
}

/* The guest feed on a phone, drawn rather than screenshotted (it was
   lib/ui/marketing/phone_mock.dart). */
.phone {
  width: 292px;
  height: 590px;
  padding: 11px;
  border-radius: 44px;
  background: #15130f;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.45);
  transform: rotate(-2deg);
}

.phone-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 34px;
  background: var(--canvas);
  color: var(--ink);
  text-align: left;
}

.phone-status,
.phone-head,
.phone-compose {
  background: var(--surface);
}

.phone-status {
  display: flex;
  justify-content: space-between;
  padding: 12px 22px 4px;
  font-size: 0.66rem;
  font-weight: 700;
}

.phone-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 6px 18px 14px;
  border-bottom: 1px solid var(--border);
}

.monogram {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
}

.phone-names {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.15;
}

.phone-venue {
  color: var(--faint);
  font-size: 0.58rem;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding: 4px 8px;
  border-radius: 20px;
  background: rgba(46, 125, 79, 0.12);
  color: #2e7d4f;
  font-size: 0.53rem;
  font-weight: 800;
}

.live::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

/* A column that runs off the bottom of the screen, as the app's feed does:
   each post at its own height, the last one cut by the composer. */
.phone-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 0;
  padding: 12px 14px;
  overflow: hidden;
}

.post {
  flex: none;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.post img {
  width: 100%;
  height: 132px;
  object-fit: cover;
}

.post-body {
  padding: 10px 12px 11px;
}

.post-caption {
  font-size: 0.64rem;
  line-height: 1.4;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--faint);
  font-size: 0.56rem;
  font-weight: 700;
}

.post-meta .icon {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 3px;
  color: #d9534f;
  fill: currentColor;
  stroke: none;
  vertical-align: -1px;
}

.phone-compose {
  padding: 12px 16px 22px;
  border-top: 1px solid var(--border);
}

.phone-compose span {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  padding: 12px 16px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

/* The slideshow on the venue's screen (lib/ui/slideshow/slideshow_screen.dart). */
.screen {
  padding: 12px;
  border-radius: 18px;
  background: #15130f;
  box-shadow: 0 26px 60px rgba(34, 31, 27, 0.32);
}

.screen-in {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
  color: #fff;
  aspect-ratio: 16 / 9;
}

.screen-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screen-top,
.screen-caption {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: clamp(10px, 2vw, 18px);
}

.screen-top {
  top: 0;
  align-items: flex-start;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent);
}

.screen-names {
  font-family: var(--display);
  font-size: clamp(0.95rem, 0.8rem + 0.8vw, 1.3rem);
  font-weight: 600;
  line-height: 1.2;
}

.screen-names span {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.screen-code {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 7px 9px;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 0.48rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.screen-code .icon {
  width: clamp(26px, 4vw, 38px);
  height: clamp(26px, 4vw, 38px);
  stroke-width: 2.2;
}

.screen-caption {
  bottom: 0;
  flex-direction: column;
  gap: 6px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.66), transparent);
  font-size: clamp(0.7rem, 0.6rem + 0.5vw, 0.92rem);
  line-height: 1.4;
}

.screen-who {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.85em;
  font-weight: 700;
}

.screen-who .monogram {
  width: 22px;
  height: 22px;
  font-size: 0.55rem;
}

.screen-hearts {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.screen-hearts .icon {
  width: 13px;
  height: 13px;
  color: #ff8a80;
  fill: currentColor;
  stroke: none;
}

/* The wedding page before the day, on a phone. */
.hero-phone-wrap {
  display: grid;
  place-items: center;
}

.site-phone {
  height: 560px;
  transform: rotate(2deg);
}

.site-cover {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 26px 18px 22px;
  background: linear-gradient(150deg, #3b352c, #6e5a33 60%, var(--gold));
  color: #fff;
  text-align: center;
}

.site-kicker {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.site-names {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.05;
}

.site-venue {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.6rem;
}

.site-count {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.site-count span {
  display: grid;
  min-width: 52px;
  padding: 6px 4px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.48rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-count b {
  font-family: var(--display);
  font-size: 1.15rem;
  font-variant-numeric: lining-nums;
  font-weight: 600;
  letter-spacing: 0;
}

.site-rsvp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 9px 16px;
  border-radius: 30px;
  background: #fff;
  color: var(--ink);
  font-size: 0.66rem;
  font-weight: 700;
}

.site-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 14px;
  list-style: none;
}

.site-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
}

.site-list .icon {
  color: var(--gold);
}

@media (max-width: 899px) {
  .hero-phone-wrap {
    display: none;
  }
}

/* The guest book on a phone: each note on the paper its guest chose, in
   GuestbookNote.stationeryOptions' colors. */
.notes-phone {
  height: 560px;
  transform: rotate(2deg);
}

.phone-notes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 0;
  padding: 12px 14px;
  overflow: hidden;
}

.paper {
  flex: none;
  padding: 14px 16px 12px;
  border: 1px solid rgba(42, 37, 32, 0.1);
  border-radius: 6px;
  background: #fbf6ec;
  box-shadow: 0 6px 16px rgba(42, 37, 32, 0.07);
  color: #2a2520;
  font-family: var(--display);
  font-size: 0.86rem;
  line-height: 1.45;
}

.paper .paper-pin {
  margin-bottom: 7px;
  font-family: var(--sans);
  font-size: 0.46rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.paper .paper-who {
  margin-top: 8px;
  font-size: 0.92rem;
  font-style: italic;
}

.paper.foil {
  background: #f4e9ce;
  color: #6b5320;
}

.paper.botanical {
  background: #edf2ea;
  color: #33452c;
}

.paper.blush {
  background: #fbedec;
  color: #6b3f3e;
}

.paper.vellum {
  background: #eff1f4;
  color: #2c3440;
}

/* ------------------------------------------------------------ page hero */

.page-hero {
  padding-block: calc(var(--bar-height) + clamp(36px, 5vw, 72px)) clamp(52px, 6vw, 92px);
  background: linear-gradient(180deg, var(--canvas), #f8f1e5);
}

.page-hero .heading {
  gap: 18px;
}

.page-hero .actions {
  margin-top: 30px;
}

.page-hero .fine {
  margin-top: 16px;
}

.hero-art {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-lift);
}

.hero-art img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.crumbs {
  margin-bottom: 22px;
  color: var(--faint);
  font-size: 0.8rem;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
}

.crumbs li + li::before {
  content: "/";
  margin-right: 6px;
  opacity: 0.6;
}

.crumbs a {
  color: var(--muted);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--gold-deep);
}

/* ------------------------------------------------------------ cards */

.card {
  padding: clamp(22px, 2.4vw, 30px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.card.lift {
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 1.45rem;
}

.card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.card h3 + p,
.card .icon-chip + h3 {
  margin-top: 10px;
}

.icon-chip {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 13px;
  background: var(--wash);
  color: var(--gold);
}

.icon-chip .icon {
  width: 21px;
  height: 21px;
}

.icon-chip.round {
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #fff;
}

.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.step-top .icon-chip {
  margin: 0;
}

.step-num {
  color: rgba(154, 123, 57, 0.28);
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
}

.features {
  display: grid;
  gap: 26px 34px;
}

@media (min-width: 720px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .features.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature .icon-chip {
  width: 40px;
  height: 40px;
  margin: 0;
  border-radius: 12px;
}

.feature .icon-chip .icon {
  width: 19px;
  height: 19px;
}

.feature h3 {
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
}

.feature h3 a {
  color: inherit;
  text-decoration: none;
}

.feature h3 a:hover {
  color: var(--gold-deep);
}

.feature p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.checks {
  display: grid;
  gap: 11px;
  list-style: none;
  padding: 0;
}

.checks li {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.checks .icon {
  margin-top: 0.15em;
  color: var(--gold);
  stroke-width: 2;
}

.checks.strong-last li:last-child {
  color: var(--gold-deep);
  font-weight: 700;
}

/* ------------------------------------------------------------ at a glance */

.facts {
  display: grid;
  gap: 26px;
  padding-block: clamp(30px, 3vw, 44px);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.facts-in {
  display: grid;
  gap: 26px;
}

@media (min-width: 720px) {
  .facts-in {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.fact strong {
  display: block;
  background: linear-gradient(135deg, var(--gold), var(--gold-light) 35%, var(--gold) 60%, var(--gold-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--display);
  font-size: clamp(2rem, 1.6rem + 1.4vw, 2.5rem);
  font-weight: 500;
  line-height: 1.1;
}

.fact span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

/* ------------------------------------------------------------ the four lives */

.phases {
  display: grid;
  gap: 16px;
}

@media (min-width: 720px) {
  .phases {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .phases {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.phase {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
}

.phase-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  font-size: 0.78rem;
  font-weight: 700;
}

.phase h3 {
  margin-top: 18px;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1.15;
}

.phase p {
  margin-top: 12px;
  color: var(--on-dark);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* ------------------------------------------------------------ keepsakes */

.rail-wrap {
  position: relative;
}

/* Under .rail-wrap to outrank the list reset (ul[role="list"] has no
   padding), which had been taking the row's insets away at every width. */
.rail-wrap .rail {
  /* The row's own width, from how many cards it holds (set on the list).
     Centered when the whole row fits the screen; from the gutter, and
     scrolling, when it does not. The snap has the same inset, or it pulls
     the first card off center. */
  --rail-width: calc(var(--rail-items, 6) * 290px + (var(--rail-items, 6) - 1) * 18px);
  --rail-inset: max(var(--gutter), calc((100% - var(--rail-width)) / 2));
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78vw, 290px);
  gap: 18px;
  padding: 4px var(--rail-inset) 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--rail-inset);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  list-style: none;
  margin: 0;
}

.rail > li {
  scroll-snap-align: start;
}

.rail-arrows {
  display: none;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

@media (min-width: 720px) {
  .rail-arrows {
    display: flex;
  }
}

/* Nothing to scroll to: no arrows. */
.rail-wrap.fits .rail-arrows {
  display: none;
}

.round-btn {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(34, 31, 27, 0.1);
  cursor: pointer;
}

.round-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.round-btn.back .icon {
  transform: rotate(180deg);
}

.tile {
  display: block;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.tile:hover {
  color: inherit;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.tile-art {
  position: relative;
}

.tile-art img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--wash);
}

.tile-body {
  padding: 18px 20px 22px;
}

.tile-body h3 {
  font-size: 1.35rem;
}

.tile-body p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.ribbon {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 11px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--gold-deep), var(--gold));
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

/* ------------------------------------------------------------ one design */

/* The home page's card of every piece in the couple's one design, in the
   order they go out. */
.suite {
  padding: 22px;
}

.suite-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.suite-head .icon-chip {
  width: 40px;
  height: 40px;
  margin: 0;
}

/* Under .suite, so .card p does not set them back to body text. */
.suite .suite-label {
  color: var(--gold-deep);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.suite .suite-name {
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.2;
}

.suite-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding-block: 14px;
}

.suite-row + .suite-row {
  border-top: 1px solid var(--border);
}

.suite-row:last-child {
  padding-bottom: 0;
}

.suite-piece {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
}

.suite-line {
  color: var(--muted);
  font-size: 0.78rem;
}

/* ------------------------------------------------------------ plans */

.plans {
  display: grid;
  gap: 18px;
  align-items: stretch;
}

@media (min-width: 900px) {
  .plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.plan.featured {
  border-color: var(--gold);
  box-shadow: var(--shadow);
}

.plan-kicker {
  color: var(--faint);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.plan.featured .plan-kicker {
  color: var(--gold-deep);
}

.plan h3 {
  margin-top: 12px;
  font-size: 1.75rem;
}

.plan-sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.price {
  margin-top: 18px;
  font-family: var(--display);
  font-size: 2.7rem;
  font-weight: 600;
  font-variant-numeric: lining-nums;
  line-height: 1;
}

.price small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 400;
}

.plan-credit {
  margin-top: 16px;
  color: var(--gold-deep);
  font-size: 0.86rem;
  font-weight: 700;
}

.plan .btn {
  margin-top: 18px;
}

.plan .checks {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.mini-plans {
  display: grid;
  gap: 16px;
}

@media (min-width: 720px) {
  .mini-plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.mini-plan {
  display: block;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
}

.mini-plan:hover {
  color: inherit;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.mini-plan.featured {
  border-color: var(--gold);
  box-shadow: var(--shadow);
}

.mini-plan h3 {
  font-size: 1.4rem;
}

.mini-plan .plan-sub {
  font-size: 0.78rem;
}

.mini-plan .price {
  font-size: 2.1rem;
}

.mini-plan .price span {
  margin-left: 2px;
  color: var(--faint);
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 400;
}

.mini-plan .checks {
  gap: 7px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.mini-plan .checks li {
  font-size: 0.8rem;
}

/* ------------------------------------------------------------ trade */

.rows {
  display: grid;
  gap: 12px;
}

.row-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

.row-card strong {
  color: var(--gold-deep);
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.1;
}

.row-card span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.ledger {
  padding: clamp(22px, 2.6vw, 30px);
}

.ledger dl {
  display: grid;
  gap: 14px;
}

.ledger div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.ledger dt {
  color: var(--muted);
  font-size: 0.9rem;
}

.ledger dd {
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  white-space: nowrap;
}

.ledger-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-weight: 700;
}

.ledger-total strong {
  background: linear-gradient(135deg, var(--gold-deep), var(--gold) 40%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--display);
  font-size: 2rem;
  font-variant-numeric: lining-nums tabular-nums;
}

.ledger .fine {
  margin-top: 10px;
}

.credit {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.credit-photo {
  display: flex;
  align-items: flex-end;
  height: 120px;
  padding: 0 22px 14px;
  background: linear-gradient(135deg, rgba(154, 123, 57, 0.6), var(--wash));
  color: #fff;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
}

.credit-line {
  padding: 16px 22px;
  background: var(--ink);
  color: var(--on-dark);
  font-size: 0.82rem;
}

.credit-line b {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.5);
}

.book {
  padding: 8px;
}

.book-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 14px;
}

.book-row + .book-row {
  border-top: 1px solid var(--border);
}

.book-row strong {
  display: block;
  font-size: 0.9rem;
}

.book-row span {
  color: var(--faint);
  font-size: 0.75rem;
}

.phase-badge {
  padding: 5px 10px;
  border-radius: 20px;
  background: var(--wash);
  color: var(--gold-deep);
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}

.phase-badge.live {
  margin: 0;
}

/* ------------------------------------------------------------ products */

.product {
  display: grid;
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
  padding-block: clamp(36px, 4vw, 56px);
  border-top: 1px solid var(--border);
}

.product:first-child {
  border-top: 0;
}

@media (min-width: 900px) {
  .product {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }
}

.product-art {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.product-art img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product h2 {
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.3rem);
}

.product .tagline {
  margin-top: 8px;
  color: var(--gold-deep);
  font-weight: 600;
}

.product .body {
  margin-top: 16px;
}

.product .checks {
  margin-top: 20px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
}

.chips li {
  padding: 6px 12px;
  border-radius: 20px;
  background: var(--wash);
  font-size: 0.78rem;
  font-weight: 600;
}

.label {
  margin-top: 24px;
  margin-bottom: 10px;
  color: var(--faint);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.swatches {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
}

.swatches.wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 560px) {
  .swatches.wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.swatches img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 4px 12px rgba(34, 31, 27, 0.06);
}

.swatches span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.3;
  text-align: center;
}

.when {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--wash);
  font-size: 0.86rem;
  line-height: 1.5;
}

.when .icon {
  margin-top: 0.1em;
  color: var(--gold-deep);
}

.cat-grid {
  display: grid;
  gap: 18px;
  list-style: none;
  padding: 0;
}

@media (min-width: 640px) {
  .cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .cat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ------------------------------------------------------------ prose blocks */

.guide {
  display: grid;
  gap: clamp(28px, 3vw, 40px);
}

@media (min-width: 900px) {
  .guide {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    align-items: start;
  }

  /* The heading stays in view beside a long list. */
  .guide > :first-child {
    position: sticky;
    top: calc(var(--bar-height) + 32px);
  }
}

.guide h2 {
  font-size: clamp(1.7rem, 1.35rem + 1.3vw, 2.4rem);
}

.tips {
  display: grid;
  gap: 18px;
  counter-reset: tip;
  list-style: none;
  padding: 0;
}

.tips li {
  position: relative;
  padding: 20px 22px 20px 64px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  counter-increment: tip;
}

.tips li::before {
  content: counter(tip);
  position: absolute;
  top: 18px;
  left: 20px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--wash);
  color: var(--gold-deep);
  font-size: 0.82rem;
  font-weight: 700;
}

.tips.plain li {
  padding-left: 22px;
}

.tips.plain li::before {
  content: none;
}

.tips strong {
  display: block;
  font-size: 0.98rem;
}

.tips p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.compare {
  display: grid;
  gap: 14px;
}

@media (min-width: 900px) {
  .compare {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.quote {
  font-family: var(--display);
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem);
  font-style: normal;
  font-weight: 500;
  line-height: 1.3;
}

/* ------------------------------------------------------------ faq */

.faq {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin-inline: auto;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 700;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary .icon {
  color: var(--gold);
  transform: rotate(90deg);
  transition: transform 0.2s;
}

.faq details[open] summary .icon {
  transform: rotate(-90deg);
}

.faq .answer {
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.7;
}

.faq .answer p + p {
  margin-top: 0.8em;
}

/* ------------------------------------------------------------ closing */

.cta {
  background: linear-gradient(135deg, #5e4a1f, var(--gold-deep) 55%, #8f7232);
  color: #fff;
}

.cta h2 {
  max-width: 46rem;
  margin-inline: auto;
}

.cta p {
  max-width: 34rem;
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.9);
}

.cta .actions {
  margin-top: 32px;
}

.cta .btn-light {
  color: var(--gold-deep);
}

.box {
  padding: clamp(28px, 3vw, 40px);
  border-radius: 24px;
  background: var(--wash);
  text-align: center;
}

.box h2 {
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem);
}

.box p {
  max-width: 34rem;
  margin: 12px auto 0;
  color: var(--muted);
}

.box .actions {
  margin-top: 24px;
  justify-content: center;
}

.ornament {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ornament::before,
.ornament::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--border);
}

.ornament span {
  width: 6px;
  height: 6px;
  background: rgba(154, 123, 57, 0.5);
  transform: rotate(45deg);
}

/* ------------------------------------------------------------ footer */

.footer {
  padding-block: clamp(44px, 5vw, 64px) calc(28px + env(safe-area-inset-bottom, 0px));
  background: var(--ink);
  color: var(--on-dark);
  font-size: 0.85rem;
}

.footer-top {
  display: grid;
  gap: 34px 48px;
}

@media (min-width: 720px) {
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .footer-top {
    grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
  }
}

.footer .brand {
  margin: 0;
  color: #fff;
}

.footer .brand-seal {
  width: 26px;
  height: 26px;
  color: #fff;
}

.footer-blurb {
  margin-top: 14px;
  color: var(--on-dark-faint);
  line-height: 1.6;
}

.footer h2 {
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer ul {
  display: grid;
  gap: 9px;
  margin-top: 14px;
  list-style: none;
  padding: 0;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------ dialogs */

dialog {
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

dialog::backdrop {
  background: rgba(34, 31, 27, 0.55);
}

body.locked {
  overflow: hidden;
}

/* The menu: the brand's own dark, a sheet under the thumb on a phone and a
   panel from the corner on a wider screen. */
.menu {
  position: fixed;
  inset: auto 0 0;
  width: 100%;
  max-height: 88vh;
  max-height: 88dvh;
}

.menu-in {
  display: flex;
  flex-direction: column;
  max-height: inherit;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  border-radius: 26px 26px 0 0;
  background: var(--ink);
  color: #fff;
}

@media (min-width: 720px) {
  .menu {
    inset: 78px 28px auto auto;
    width: 360px;
    max-height: calc(100vh - 106px);
    max-height: calc(100dvh - 106px);
  }

  .menu-in {
    border-radius: 20px;
  }
}

.menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 14px 6px 24px;
}

.menu-top .brand {
  margin: 0;
  color: #fff;
}

.menu-top .brand-seal {
  color: #fff;
}

.dialog-close {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}

.dialog-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.menu nav {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 6px;
}

.menu-group {
  padding: 16px 26px 4px;
  color: var(--gold-light);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.menu nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 26px;
  color: #fff;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}

.menu nav a:hover,
.menu nav a:focus-visible {
  background: rgba(255, 255, 255, 0.06);
}

.menu nav a .icon {
  color: rgba(255, 255, 255, 0.3);
}

.menu-foot {
  padding: 18px 22px 22px;
}

.menu-foot .btn {
  width: 100%;
}

/* The waiting list. */
.sheet {
  position: fixed;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  padding: 18px;
  overflow-y: auto;
}

.sheet[open] {
  display: grid;
  place-items: center;
}

.sheet-in {
  position: relative;
  width: 100%;
  max-width: 460px;
  padding: 24px 22px 22px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

@media (min-width: 720px) {
  .sheet-in {
    padding: 28px 32px 26px;
  }
}

.sheet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.sheet-top .brand-seal {
  width: 26px;
  height: 26px;
}

.sheet .dialog-close {
  color: var(--faint);
}

.sheet .dialog-close:hover {
  background: var(--wash);
  color: var(--ink);
}

.sheet h2 {
  margin-top: 12px;
  font-size: clamp(1.65rem, 1.4rem + 1vw, 1.9rem);
}

.sheet p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.roles {
  margin: 22px 0 0;
  padding: 0;
  border: 0;
}

.roles legend {
  margin-bottom: 10px;
  padding: 0;
  color: var(--faint);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.role-grid label {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 46px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--canvas);
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
}

.role-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.role-grid label:has(input:checked) {
  border-color: var(--gold);
  background: var(--wash);
  color: var(--gold-deep);
  font-weight: 700;
  box-shadow: inset 0 0 0 0.4px var(--gold);
}

.role-grid label:has(input:focus-visible) {
  outline: 2px solid var(--gold-deep);
  outline-offset: 2px;
}

.pro-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--wash);
  font-size: 0.82rem;
  line-height: 1.45;
}

.pro-note a {
  font-weight: 700;
  white-space: nowrap;
}

.field {
  display: grid;
  gap: 6px;
  margin-top: 16px;
}

.field span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.field input {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.field input:focus {
  border-color: var(--gold);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(154, 123, 57, 0.18);
}

.form-error {
  margin-top: 12px;
  color: #b3261e;
  font-size: 0.84rem;
}

.sheet form .btn {
  margin-top: 18px;
}

.sheet .fine {
  margin-top: 10px;
}

.done-seal {
  display: grid;
  place-items: center;
  margin-top: 6px;
}

.done-seal .brand-seal {
  width: 36px;
  height: 36px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
