/* Hostwell website draft (Step 4). Not deployed. One stylesheet for every page.
   Built from concept A (concepts/a) plus concept C's Plus backdrop preview.
   Sections: 1 base · 2 theme palettes · 3 home (from concept A) · 4 site additions */

/* ===================== 1. BASE ===================== */
:root {
  /* Default palette: the sample invitation, Colonial Fruit & Evergreen */
  --scene-1: #0c1c14;
  --scene-2: #15392a;
  --glow-1: rgba(122, 24, 38, 0.55);
  --glow-2: rgba(214, 160, 72, 0.45);
  --sheet: #fbf7ef;
  --paper: #fffdf8;
  --ink: #1e1a16;
  --ink-soft: #3f382f;
  --muted: #5b5246;
  --line: #e6dcc8;
  --accent: #1c5a3f;
  --on-accent: #ffffff;
  --kicker: #861d2c;
  --foil: #c8a560;
  --foil-deep: #a9792c;
  --seal-1: #a3561f;
  --seal-2: #6e300f;
  --on-seal: #fff6e8;
  --focus: #1c5a3f;

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-flourish: "Cormorant Garamond", Garamond, Georgia, serif;

  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --radius: 1.25rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--scene-1);
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  font-optical-sizing: auto;
}

p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
svg,
canvas {
  max-width: 100%;
}

[id] {
  scroll-margin-top: 4.5rem;
}

/* ---------- Focus ---------- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.on-dark a:focus-visible,
.on-dark button:focus-visible {
  outline-color: #ffe7a8;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem; /* 44 px */
  min-width: 2.75rem;
  padding: 0.625rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 1rem/1.3 var(--font-body);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn-solid {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}

.btn-paper {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
}

.btn[aria-disabled="true"] {
  cursor: not-allowed;
}

@media (prefers-reduced-motion: no-preference) {
  .btn {
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background-color 0.2s;
  }

  .btn:hover:not([aria-disabled="true"]) {
    transform: translateY(-1px);
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.18);
  }
}

/* ---------- Concept banner (meta words, not site copy) ---------- */

.concept-banner {
  position: relative;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 1rem;
  padding: 0.375rem clamp(10px, 3vw, 20px);
  background: #fff3c4;
  color: #2b2210;
  font-size: 0.8125rem;
  line-height: 1.4;
  text-align: center;
}

.concept-banner a,
.concept-banner button {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.5rem;
  border: 0;
  background: none;
  color: #2b2210;
  font: 700 0.8125rem/1.3 var(--font-body);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.concept-banner a:focus-visible,
.concept-banner button:focus-visible {
  outline-color: #2b2210;
}

/* ---------- Word provenance markers ----------
   data-copy="draft"  : new words drafted in Step 3, not approved
   data-copy="ref"    : words read off reference/screens, not in APPROVED-COPY.md
   data-copy="price"  : a price read off reference/screens/about-1280.png
   no attribute       : word for word from APPROVED-COPY.md                       */

.show-drafts [data-copy="draft"] {
  background: #fff1a6 !important;
  color: #1a1400 !important;
  box-shadow: 0 0 0 2px #fff1a6;
  border-radius: 2px;
  text-decoration: underline dotted #8a6d00;
}

.show-drafts [data-copy="ref"] {
  background: #d7ecff !important;
  color: #0b2238 !important;
  box-shadow: 0 0 0 2px #d7ecff;
  border-radius: 2px;
}

.confirm-price {
  display: inline-block;
  margin-left: 0.375rem;
  padding: 0 0.375rem;
  border: 1px dashed currentColor;
  border-radius: 0.375rem;
  font: 600 0.6875rem/1.6 var(--font-body);
  letter-spacing: 0.02em;
  vertical-align: middle;
  white-space: nowrap;
}

.kims-call {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border: 1.5px dashed currentColor;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

.mock-note {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.9;
}

.billing-terms {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.billing-terms .kims-call {
  margin-top: 0.375rem;
  color: var(--kicker);
}

/* ---------- Seal ---------- */

.seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--seal-1), var(--seal-2) 85%);
  box-shadow: 0 0.25rem 0.5rem rgba(60, 20, 5, 0.4), inset 0 0 0 2px rgba(255, 220, 170, 0.3);
  color: var(--on-seal);
  font: 600 0.9375rem/1 var(--font-head);
  letter-spacing: 0.02em;
}

/* ---------- Utilities ---------- */

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.no-js .js-only {
  display: none !important;
}

.js .no-js-only {
  display: none !important;
}

/* ---------- Reduced motion: the floor for every concept ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- High contrast ---------- */

@media (forced-colors: active) {
  .btn,
  .confirm-price,
  .kims-call {
    border: 1px solid CanvasText;
  }
}

/* ===================== 2. THEME PALETTES =====================
   Theme NAMES are approved words. These COLOURS are a coder's draft read loosely
   from each name; they are not the app's real palettes (Kim's call). */

[data-theme="velvet-masquerade"] {
  --scene-1: #160818; --scene-2: #3a1236;
  --glow-1: rgba(150, 30, 90, 0.5); --glow-2: rgba(212, 150, 70, 0.45);
  --sheet: #24112a; --paper: #2d1633; --ink: #f6e9d7; --ink-soft: #e8d6c4; --muted: #d4bfae; --line: #4d2b52;
  --accent: #e2b25c; --on-accent: #24112a; --kicker: #f0c27a; --foil: #d7a64d; --foil-deep: #b98a3a;
  --seal-1: #8e1f4f; --seal-2: #4a0d29; --focus: #f0c27a;
}

[data-theme="nye-midnight"] {
  --scene-1: #05081a; --scene-2: #141c3a;
  --glow-1: rgba(240, 205, 120, 0.4); --glow-2: rgba(120, 140, 230, 0.35);
  --sheet: #0d1330; --paper: #121a3b; --ink: #f7efd9; --ink-soft: #e6dec7; --muted: #cbc2a8; --line: #2a3561;
  --accent: #e7c46a; --on-accent: #0d1330; --kicker: #eccd7f; --foil: #e0bd62; --foil-deep: #c19b45;
  --seal-1: #b8902f; --seal-2: #6d5214; --focus: #eccd7f;
}

[data-theme="icy-blue"] {
  --scene-1: #0b1d2f; --scene-2: #1f4b6e;
  --glow-1: rgba(200, 230, 255, 0.45); --glow-2: rgba(140, 190, 230, 0.4);
  --sheet: #f2f7fb; --paper: #fbfdff; --ink: #12263a; --ink-soft: #2a4055; --muted: #435a6e; --line: #d3e1ec;
  --accent: #1f5f8f; --on-accent: #ffffff; --kicker: #1f5f8f; --foil: #9fbad0; --foil-deep: #6f8fa8;
  --seal-1: #3d6f99; --seal-2: #1b3d5c; --focus: #1f5f8f;
}

[data-theme="christmas-tree"] {
  --scene-1: #0a1b11; --scene-2: #173b26;
  --glow-1: rgba(255, 190, 90, 0.5); --glow-2: rgba(200, 40, 40, 0.35);
  --sheet: #fbf6ea; --paper: #fffcf3; --ink: #1c2a1f; --ink-soft: #33402f; --muted: #4a5547; --line: #e3dcc7;
  --accent: #1f5c3a; --on-accent: #ffffff; --kicker: #9b1d1d; --foil: #c9a24e; --foil-deep: #a07a2c;
  --seal-1: #a32020; --seal-2: #5c0f0f; --focus: #1f5c3a;
}

[data-theme="tartan-classic"] {
  --scene-1: #2a0b0e; --scene-2: #5a1419;
  --glow-1: rgba(40, 110, 70, 0.45); --glow-2: rgba(230, 190, 110, 0.35);
  --sheet: #fbf5ec; --paper: #fffaf2; --ink: #2a1213; --ink-soft: #432a2a; --muted: #5a4442; --line: #e7d9cb;
  --accent: #8f1c24; --on-accent: #ffffff; --kicker: #1d5a3a; --foil: #c79b45; --foil-deep: #9b7430;
  --seal-1: #1d5a3a; --seal-2: #0c2e1c; --focus: #8f1c24;
}

[data-theme="merry-maximalism"] {
  --scene-1: #2c0830; --scene-2: #0b5a52;
  --glow-1: rgba(255, 110, 170, 0.5); --glow-2: rgba(255, 200, 70, 0.45);
  --sheet: #fff4e6; --paper: #fffaf2; --ink: #2b1028; --ink-soft: #452a41; --muted: #5a3c55; --line: #efd8e2;
  --accent: #b0215f; --on-accent: #ffffff; --kicker: #0b6b60; --foil: #e0a93b; --foil-deep: #b07f1c;
  --seal-1: #b0215f; --seal-2: #5e0d31; --focus: #b0215f;
}

[data-theme="cozy-woodland"] {
  --scene-1: #24130a; --scene-2: #4d2c12;
  --glow-1: rgba(220, 130, 50, 0.5); --glow-2: rgba(170, 60, 20, 0.4);
  --sheet: #fbf3e4; --paper: #fffaf0; --ink: #2e1d10; --ink-soft: #46331f; --muted: #5b4532; --line: #eadcc4;
  --accent: #8f4415; --on-accent: #ffffff; --kicker: #8f4415; --foil: #c58b3e; --foil-deep: #996628;
  --seal-1: #9a4a17; --seal-2: #52240a; --focus: #8f4415;
}

[data-theme="espresso"] {
  --scene-1: #110a07; --scene-2: #2c1a12;
  --glow-1: rgba(230, 170, 90, 0.45); --glow-2: rgba(150, 60, 40, 0.35);
  --sheet: #1f1410; --paper: #271a14; --ink: #f3e4d2; --ink-soft: #e3d2bf; --muted: #cdb8a3; --line: #45302a;
  --accent: #d9a25b; --on-accent: #1f1410; --kicker: #e3b273; --foil: #c99555; --foil-deep: #a8783c;
  --seal-1: #7a3b1f; --seal-2: #3d1a0b; --focus: #e3b273;
}

[data-theme="candlelit-dinner"] {
  --scene-1: #1b120d; --scene-2: #3a2a1d;
  --glow-1: rgba(255, 200, 120, 0.45); --glow-2: rgba(180, 80, 50, 0.35);
  --sheet: #fbf6ec; --paper: #fffbf3; --ink: #2a1f17; --ink-soft: #40332a; --muted: #594a3d; --line: #e9ddcb;
  --accent: #7a3b2a; --on-accent: #ffffff; --kicker: #7a3b2a; --foil: #c9a15a; --foil-deep: #9f7a38;
  --seal-1: #7a3b2a; --seal-2: #3f1a10; --focus: #7a3b2a;
}

[data-theme="birthday-toast"] {
  --scene-1: #2a1240; --scene-2: #7a2f5f;
  --glow-1: rgba(255, 200, 90, 0.5); --glow-2: rgba(255, 130, 170, 0.45);
  --sheet: #fff7ef; --paper: #fffbf6; --ink: #2c1838; --ink-soft: #432f4e; --muted: #5b4766; --line: #ecdbe6;
  --accent: #9e2f66; --on-accent: #ffffff; --kicker: #9e2f66; --foil: #e0b04a; --foil-deep: #b28427;
  --seal-1: #9e2f66; --seal-2: #521232; --focus: #9e2f66;
}

[data-theme="garden-patio"] {
  --scene-1: #0e2218; --scene-2: #2d4a2a;
  --glow-1: rgba(255, 230, 150, 0.55); --glow-2: rgba(255, 200, 120, 0.4);
  --sheet: #fafaef; --paper: #fdfdf6; --ink: #1e2b1c; --ink-soft: #334030; --muted: #4b5a47; --line: #dfe3cf;
  --accent: #3a662d; --on-accent: #ffffff; --kicker: #3a662d; --foil: #c4ad5a; --foil-deep: #96822f;
  --seal-1: #5d7a2a; --seal-2: #2c3d10; --focus: #3a662d;
}

[data-theme="navy-brass"] {
  --scene-1: #091326; --scene-2: #15284a;
  --glow-1: rgba(200, 160, 80, 0.4); --glow-2: rgba(90, 120, 190, 0.35);
  --sheet: #f8f5ee; --paper: #fdfbf6; --ink: #13213a; --ink-soft: #2b3850; --muted: #46536a; --line: #e2ddd0;
  --accent: #1b2f57; --on-accent: #ffffff; --kicker: #8a6a24; --foil: #b8913f; --foil-deep: #8e6d27;
  --seal-1: #9a7a33; --seal-2: #5a4415; --focus: #1b2f57;
}

/* ===================== 3. HOME (from concept A) ===================== */
:root {
  --on-scene: #fbf3e4;
  --on-scene-soft: #eadfcd;
  --on-scene-kicker: #f2d9a2;
}

body {
  position: relative;
  min-height: 100vh;
  color: var(--ink);
}

/* The scene: deep colour with soft candle-light glows, kept to the far edges so
   text never sits on a bright patch. Fixed layer, so it never scrolls sideways. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 4% 12%, var(--glow-1) 0, transparent 16rem),
    radial-gradient(circle at 97% 18%, var(--glow-2) 0, transparent 14rem),
    radial-gradient(circle at 2% 70%, var(--glow-2) 0, transparent 12rem),
    radial-gradient(circle at 98% 82%, var(--glow-1) 0, transparent 15rem),
    linear-gradient(180deg, var(--scene-1) 0%, var(--scene-2) 50%, var(--scene-1) 100%);
}

.on-dark {
  color: var(--on-scene);
}

.wrap {
  max-width: 68rem;
  margin: 0 auto;
}

.narrow {
  max-width: 36rem;
}

.center {
  text-align: center;
}

/* ---------- Top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.375rem clamp(10px, 4vw, 32px);
  background: color-mix(in srgb, var(--scene-1) 88%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font: 600 1.25rem/1 var(--font-head);
  color: inherit;
  text-decoration: none;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-large {
  padding: 0.875rem 1.75rem;
  font-size: 1.0625rem;
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(12px, 4vw, 32px) 3rem;
  text-align: center;
}

.kicker {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-scene-kicker);
}

.hero h1 {
  margin: 0.75rem auto 0;
  max-width: 16ch;
  font-size: min(clamp(2.25rem, 1.2rem + 3.4vw, 3.5rem), 13vw);
  letter-spacing: -0.01em;
}

.lede {
  margin: 1rem auto 0;
  max-width: 38rem;
  font-size: 1.125rem;
  color: var(--on-scene-soft);
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.hero .btn-solid {
  background: var(--on-scene);
  color: var(--scene-1);
}

/* ---------- Stage: envelope over invitation ---------- */

.stage {
  position: relative;
  max-width: 32rem;
  margin: 1.75rem auto 0;
}

.envelope {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.env {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  max-height: 100%;
  perspective: 1400px;
  pointer-events: auto;
  cursor: pointer;
}

.env-back,
.env-pocket,
.env-flap {
  position: absolute;
  left: 0;
  right: 0;
}

.env-back {
  inset: 0;
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--paper) 82%, var(--foil));
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.45);
}

.env-pocket {
  inset: 0;
  border-radius: 0.75rem;
  background:
    linear-gradient(160deg, transparent 49.6%, rgba(0, 0, 0, 0.06) 50%) left / 50% 100% no-repeat,
    linear-gradient(200deg, transparent 49.6%, rgba(0, 0, 0, 0.06) 50%) right / 50% 100% no-repeat,
    color-mix(in srgb, var(--paper) 90%, var(--foil));
  clip-path: polygon(0 38%, 50% 72%, 100% 38%, 100% 100%, 0 100%);
}

.env-flap {
  top: 0;
  height: 64%;
  background: color-mix(in srgb, var(--paper) 74%, var(--foil));
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: 50% 0;
  transform: rotateX(0deg);
  border-radius: 0.75rem 0.75rem 0 0;
  z-index: 2;
}

.env-seal {
  position: absolute;
  top: 64%;
  left: 50%;
  z-index: 4;
  width: clamp(3.5rem, 14vw, 4.75rem);
  height: clamp(3.5rem, 14vw, 4.75rem);
  font-size: 1.125rem;
  transform: translate(-50%, -50%);
}

/* The invitation card (always in normal flow, so it can grow with big text) */
.invite {
  position: relative;
  z-index: 1;
  padding: 2rem clamp(10px, 4vw, 24px) 1.75rem;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--foil);
  border-radius: 0.5rem;
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.35);
  text-align: center;
  isolation: isolate;
}

.invite::before {
  content: "";
  position: absolute;
  inset: 0.5rem;
  border: 1px solid var(--foil);
  border-radius: 999rem 999rem 0.75rem 0.75rem;
  z-index: -1;
}

.invite-theme {
  margin-top: 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--kicker);
}

.invite-inner {
  margin: 1.25rem auto 0;
  max-width: 26rem;
  padding: 1.75rem clamp(8px, 3vw, 16px) 2rem;
  background: var(--sheet);
  border-radius: 1rem;
}

.invite-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.invite-title {
  margin-top: 0.625rem;
  font-size: min(clamp(1.75rem, 1.3rem + 2vw, 2.375rem), 9vw);
  line-height: 1.2;
}

.keep {
  display: inline-block;
}

.chips {
  margin-top: 1.125rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.chips li {
  padding: 0.3rem 0.875rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.9375rem;
}

/* Sealed state (JS only, from first paint): card hidden inside, envelope showing */
.js .stage:not(.is-open) .invite {
  opacity: 0;
  transform: translateY(14%) scale(0.92);
}

.js .stage .invite {
  transition: opacity 0.6s var(--ease-out) 0.55s, transform 0.9s var(--ease-out) 0.45s;
}

.js .stage .env-flap {
  transition: transform 0.6s var(--ease-out) 0.15s, z-index 0s linear 0.45s;
}

.js .stage .env-seal {
  transition: transform 0.35s var(--ease-out), opacity 0.35s;
}

.js .stage .envelope {
  transition: transform 0.8s var(--ease-out) 0.55s, opacity 0.6s 0.7s;
}

.js .stage.is-open .env-seal {
  transform: translate(-50%, -50%) scale(1.25);
  opacity: 0;
}

.js .stage.is-open .env-flap {
  transform: rotateX(180deg);
  z-index: 0;
}

.js .stage.is-open .envelope {
  transform: translateY(45%);
  opacity: 0;
}

.js .stage.is-done .envelope {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .js .stage:not(.is-open) .env-seal {
    animation: seal-breathe 2.4s ease-in-out 1.2s 2;
  }
}

@keyframes seal-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.06); }
}

/* ---------- Cream bands floating on the scene ---------- */

main > .band:not(.on-dark) {
  max-width: 72rem;
  margin: 0 auto 1.5rem;
  margin-left: max(clamp(6px, 2vw, 24px), calc((100% - 72rem) / 2));
  margin-right: max(clamp(6px, 2vw, 24px), calc((100% - 72rem) / 2));
  padding: clamp(1.75rem, 5vw, 3.5rem) clamp(12px, 4vw, 48px);
  background: var(--sheet);
  color: var(--ink);
  border-radius: 1.5rem;
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.3);
}

.band h2 {
  font-size: min(clamp(1.75rem, 1.2rem + 2vw, 2.5rem), 10vw);
}

.band-sub {
  margin-top: 0.625rem;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.0625rem;
}

.band-sub.center {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Themes ---------- */

.swatches {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.swatch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.375rem 0.875rem 0.375rem 0.375rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: 500 0.875rem/1.3 var(--font-body);
  text-align: left;
  cursor: pointer;
}

.swatch::before {
  content: "";
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: conic-gradient(var(--sw1) 0 50%, var(--sw2) 0 80%, var(--sw3) 0);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.swatch[aria-pressed="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
  font-weight: 700;
}

.now-showing {
  margin-top: 1rem;
  color: var(--muted);
}

.now-showing strong {
  color: var(--ink);
}

.theme-names {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  column-gap: 1.5rem;
}

.theme-names li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

/* ---------- Guests ---------- */

.wrap-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 2rem 3rem;
  align-items: start;
}

.count {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.count-label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--kicker);
}

.count-num {
  font: 600 min(clamp(1.75rem, 1.2rem + 2vw, 2.5rem), 10vw)/1.2 var(--font-head);
}

.note {
  position: relative;
  padding: 1.75rem clamp(12px, 4vw, 24px) 2rem;
  background-color: #fbf0d8;
  background-image: repeating-linear-gradient(180deg, transparent 0, transparent calc(2.4rem - 1px), rgba(160, 120, 60, 0.16) calc(2.4rem - 1px), rgba(160, 120, 60, 0.16) 2.4rem);
  background-position: 0 1.2rem;
  border-left: 3px solid #a9792c;
  color: #2a241d;
  box-shadow: 0 0.75rem 1.75rem rgba(0, 0, 0, 0.2);
}

.clip {
  position: absolute;
  top: -0.875rem;
  left: 1rem;
  width: 0.875rem;
  height: 2.25rem;
  border: 2px solid #a9792c;
  border-radius: 0.5rem;
}

.guest {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.125rem 0.75rem;
  padding: 0.35rem 0;
  line-height: 1.7;
}

.guest-text {
  flex: 1 1 14rem;
  color: #3d3428;
}

.guest-text strong {
  color: #1e1a16;
}

.rsvp {
  flex: none;
  padding: 0 0.625rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.7;
}

.rsvp-yes {
  background: #1c5a3f;
  color: #ffffff;
}

.rsvp-maybe {
  border: 1.5px dashed #6b5a2e;
  color: #4f4220;
}

.js [data-guests] .rsvp {
  opacity: 0;
  transform: translateY(0.25rem) scale(0.9);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

.js [data-guests] .rsvp.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Seal & Send ---------- */

.send-band {
  padding: clamp(2.5rem, 7vw, 4.5rem) clamp(12px, 4vw, 32px);
}

.send-band h2 {
  margin: 1.25rem auto 1.5rem;
  font-size: min(clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem), 10vw);
}

.big-seal {
  width: 6rem;
  height: 6rem;
  font-size: 1.5rem;
}

.send-band .btn-solid {
  background: var(--on-scene);
  color: var(--scene-1);
}

.fine {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--on-scene-soft);
}

@media (prefers-reduced-motion: no-preference) {
  .big-seal.is-stamped {
    animation: stamp 0.55s var(--ease-out);
  }
}

@keyframes stamp {
  0% { transform: scale(1.6) rotate(-8deg); box-shadow: 0 1.5rem 2rem rgba(0, 0, 0, 0.4); }
  60% { transform: scale(0.94) rotate(0deg); }
  100% { transform: scale(1); }
}

.burst {
  position: fixed;
  inset: 0;
  z-index: 100;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: none;
}

.burst.is-on {
  display: block;
}

/* ---------- Proof ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 0.75rem;
}

.pillar {
  padding: 1.25rem clamp(12px, 3vw, 20px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.pillar h3 {
  font: 700 1.0625rem/1.4 var(--font-body);
}

.pillar p {
  margin-top: 0.25rem;
  color: var(--ink-soft);
}

.epigraph {
  margin-top: 2.5rem;
  text-align: center;
}

.epigraph blockquote {
  margin: 0 auto;
  max-width: 40rem;
  font: italic 500 min(1.75rem, 12vw)/1.4 var(--font-flourish);
}

.epigraph figcaption {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
}

/* ---------- Plans ---------- */

.plans {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1rem;
  align-items: stretch;
}

.plan,
.pass {
  display: flex;
  flex-direction: column;
  padding: 1.5rem clamp(12px, 3.5vw, 24px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
}

.plan-featured {
  border: 2px solid var(--accent);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.12);
}

.plan-name {
  font: 700 1.25rem/1.3 var(--font-body);
}

.plan-price {
  margin-top: 0.5rem;
  font: 600 min(1.75rem, 9vw)/1.3 var(--font-head);
}

.plan-terms {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.plan-for {
  margin-top: 0.75rem;
  color: var(--ink-soft);
}

.ticks-head {
  margin-top: 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--kicker);
}

.ticks {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.375rem;
  font-size: 0.9375rem;
}

.ticks li {
  position: relative;
  padding-left: 1.5rem;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.35em;
  width: 0.4rem;
  height: 0.75rem;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.plan-btn {
  margin-top: auto;
  align-self: stretch;
}

.plan .ticks {
  margin-bottom: 1.5rem;
}

.pass {
  margin-top: 1rem;
  gap: 0.5rem;
}

.pass .plan-btn {
  margin-top: 0.75rem;
  align-self: flex-start;
}

.mock-note {
  color: var(--muted);
}

.mock-note.nudge {
  color: var(--kicker);
}

@media (prefers-reduced-motion: no-preference) {
  .mock-note.nudge {
    animation: nudge 0.4s var(--ease-out);
  }
}

@keyframes nudge {
  0%, 100% { transform: none; }
  30% { transform: translateX(-4px); }
  60% { transform: translateX(4px); }
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 2.5rem clamp(12px, 4vw, 32px) 3rem;
}

.kims-calls {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-footer .kims-call {
  color: var(--on-scene);
}

/* ===================== 4. SITE ADDITIONS ===================== */

/* Skip link: hidden until focused */
.skip {
  position: absolute;
  left: 0.5rem;
  top: -10rem;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1rem;
  border-radius: 0.5rem;
  background: #fffdf8;
  color: #1e1a16;
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 0.5rem;
  outline: 3px solid #1c5a3f;
  outline-offset: 2px;
}

/* Header navigation */
.topbar {
  flex-wrap: wrap;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  color: var(--on-scene);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
}

.site-nav .nav-cta {
  border: 1px solid currentColor;
}

/* ---------- Themes band: swatches + live preview with Plus backdrop ---------- */

.themes-split {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 1.5rem 2.5rem;
  align-items: start;
}

.themes-split .swatches {
  margin-top: 0;
}

.preview {
  position: relative;
  padding: clamp(1.25rem, 4vw, 2.5rem) clamp(10px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--paper);
  isolation: isolate;
  overflow: hidden;
}

.preview-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background:
    radial-gradient(circle at 15% 20%, var(--glow-1) 0, transparent 45%),
    radial-gradient(circle at 85% 25%, var(--glow-2) 0, transparent 40%),
    radial-gradient(circle at 70% 90%, var(--glow-1) 0, transparent 45%),
    linear-gradient(160deg, var(--scene-2), var(--scene-1));
}

@media (prefers-reduced-motion: no-preference) {
  .preview-backdrop {
    transition: opacity 0.5s var(--ease-out);
  }
}

.preview.has-backdrop .preview-backdrop {
  opacity: 1;
}

.plus-tag {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.125rem 0.625rem;
  border-radius: 999px;
  background: #e2b25c;
  color: #24180a;
  font-size: 0.75rem;
  font-weight: 700;
  visibility: hidden;
}

.preview.has-backdrop .plus-tag {
  visibility: visible;
}

.mini {
  max-width: 22rem;
  margin: 0 auto;
  padding: 1.5rem clamp(8px, 3vw, 18px);
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--foil);
  border-radius: 0.5rem;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
  text-align: center;
}

.mini .seal {
  width: 2.75rem;
  height: 2.75rem;
  font-size: 0.8125rem;
}

.mini-theme {
  margin-top: 0.625rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--kicker);
}

.mini-eyebrow {
  margin-top: 0.875rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mini-title {
  margin-top: 0.375rem;
  font: 600 min(1.5rem, 8vw)/1.2 var(--font-head);
}

.mini-when {
  margin-top: 0.625rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  margin-top: 1rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: 600 0.9375rem/1.3 var(--font-body);
  text-align: left;
  cursor: pointer;
}

.switch:focus-visible {
  border-radius: 0.5rem;
  outline-offset: 4px;
}

.switch-track {
  position: relative;
  flex: none;
  width: 3rem;
  height: 1.75rem;
  border-radius: 999px;
  background: var(--line);
  box-shadow: inset 0 0 0 1.5px var(--muted);
}

.switch-thumb {
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 1.5px var(--muted);
}

@media (prefers-reduced-motion: no-preference) {
  .switch-thumb {
    transition: transform 0.25s var(--ease-out);
  }
}

.switch[aria-checked="true"] .switch-track {
  background: var(--accent);
  box-shadow: none;
}

.switch[aria-checked="true"] .switch-thumb {
  transform: translateX(1.25rem);
  box-shadow: none;
}

.switch-note {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted);
}

/* ---------- Plans: built to buy ---------- */

.assure {
  margin: 1.75rem auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 0.5rem 1.5rem;
  max-width: 60rem;
}

.assure li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.assure li::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.3em;
  width: 0.45rem;
  height: 0.8rem;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.assure strong {
  color: var(--ink);
}

.plan-cta-note {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.policy-links {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.on-dark .text-link {
  color: var(--on-scene);
}

/* FAQ */
.faq {
  margin-top: 2.5rem;
}

.faq h2 {
  font-size: min(clamp(1.5rem, 1.1rem + 1.6vw, 2rem), 10vw);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.75rem;
  padding: 0.75rem 0;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 0.6rem;
  height: 0.6rem;
  margin-right: 0.35rem;
  border: solid var(--ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
}

.faq summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 0.25rem;
}

.faq details p {
  padding: 0 0 1rem;
  color: var(--ink-soft);
}

/* ---------- Inner pages ---------- */

.page-hero {
  padding: clamp(2rem, 6vw, 3.5rem) clamp(12px, 4vw, 32px) 2rem;
  text-align: center;
}

.page-hero h1 {
  margin: 0.75rem auto 0;
  max-width: 20ch;
  font-size: min(clamp(2rem, 1.2rem + 3vw, 3.25rem), 12vw);
}

.page-hero .lede {
  margin-top: 1rem;
}

.prose {
  max-width: 44rem;
  margin: 0 auto;
}

.prose h2 {
  margin-top: 2.25rem;
  font-size: min(clamp(1.375rem, 1.1rem + 1.2vw, 1.75rem), 9vw);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose ul {
  margin-top: 0.75rem;
  color: var(--ink-soft);
}

.prose ul {
  padding-left: clamp(14px, 4vw, 20px);
  list-style: disc;
}

.prose li + li {
  margin-top: 0.375rem;
}

.prose .kims-call {
  color: var(--kicker);
}

.draft-notice {
  max-width: 44rem;
  margin: 0 auto 2rem;
  padding: 1rem clamp(10px, 3vw, 20px);
  border: 2px dashed var(--kicker);
  border-radius: 1rem;
  background: var(--paper);
  color: var(--ink);
}

.draft-notice strong {
  display: block;
  font-size: 1.125rem;
  color: var(--kicker);
}

.draft-notice p + p {
  margin-top: 0.5rem;
}

.stripe-box {
  max-width: 44rem;
  margin: 2.5rem auto 0;
  padding: 1rem clamp(10px, 3vw, 20px);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--paper);
  font-size: 0.9375rem;
}

.stripe-box h2 {
  font: 700 1rem/1.4 var(--font-body);
}

.stripe-box ul {
  margin-top: 0.5rem;
  padding-left: clamp(14px, 4vw, 20px);
  list-style: disc;
  color: var(--ink-soft);
}

.contact-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.contact-list li {
  display: grid;
  gap: 0.25rem;
  padding: 1rem clamp(10px, 3vw, 20px);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--paper);
}

.contact-list .label {
  font-weight: 700;
  color: var(--ink);
}

.center-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 0.75rem;
}

.launch {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.launch-note {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--on-scene-kicker);
}

.page-hero .btn-solid {
  background: var(--on-scene);
  color: var(--scene-1);
}

/* ---------- Footer ---------- */

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1.5rem 2.5rem;
}

.footer-nav ul {
  display: grid;
  gap: 0;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--on-scene);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer-head {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-scene-kicker);
}

.site-footer .kims-calls {
  flex-direction: column;
  align-items: flex-start;
}

.site-footer .fine {
  margin-top: 1.5rem;
}

/* On narrow screens the header wraps to two rows; let it scroll away instead of
   pinning a fifth of the screen. */
@media (max-width: 40rem) {
  .topbar {
    position: static;
  }
}
