:root,
body[data-theme="rose"] {
  --bg0: #14080e;
  --bg1: #3a1526;
  --bg2: #7a3450;
  --ink: #fff8f3;
  --muted: rgba(255, 236, 226, 0.74);
  --gold: #f0d2a8;
  --gold-deep: #c8925a;
  --petal: #f3b7c8;
  --petal-deep: #d45d7e;
  --leaf: #7d9a78;
  --box: #c24b6a;
  --box-light: #e38aa0;
  --box-dark: #8d2c49;
  --ribbon: #f3d7a6;
  --ribbon-dark: #c89a55;
  --glass: rgba(255, 248, 244, 0.12);
  --line: rgba(255, 244, 236, 0.18);
  --shadow: rgba(28, 6, 14, 0.45);
  --sans: "Outfit", "Segoe UI", sans-serif;
  --serif: "Cormorant Garamond", Palatino, "Palatino Linotype", Georgia, serif;
  --display: "Cormorant Garamond", Palatino, Georgia, serif;
  --script: "Great Vibes", "Segoe Script", cursive;
  color-scheme: dark;
}

body[data-theme="midnight"] {
  --bg0: #070b16;
  --bg1: #16213d;
  --bg2: #46588a;
  --ink: #f6f7ff;
  --muted: rgba(226, 232, 255, 0.74);
  --gold: #f0e2c4;
  --gold-deep: #b9a27a;
  --petal: #d9e2fb;
  --petal-deep: #8ea2d6;
  --leaf: #8aa399;
  --box: #24345c;
  --box-light: #546892;
  --box-dark: #141e38;
  --ribbon: #f4e6c8;
  --ribbon-dark: #bba57a;
  --glass: rgba(244, 247, 255, 0.1);
  --line: rgba(236, 242, 255, 0.16);
  --shadow: rgba(4, 8, 20, 0.5);
}

body[data-theme="lavender"] {
  --bg0: #140f1c;
  --bg1: #342246;
  --bg2: #74508f;
  --ink: #fbf7ff;
  --muted: rgba(240, 226, 255, 0.76);
  --gold: #f2d7ef;
  --gold-deep: #c9a0c4;
  --petal: #e7c6f3;
  --petal-deep: #b57cc8;
  --leaf: #8e9a86;
  --box: #8d5ea8;
  --box-light: #c49ad6;
  --box-dark: #5c3974;
  --ribbon: #f7e2f4;
  --ribbon-dark: #d2a8cc;
  --glass: rgba(250, 244, 255, 0.12);
  --line: rgba(246, 236, 255, 0.18);
  --shadow: rgba(20, 8, 28, 0.48);
}

body[data-theme="emerald"] {
  --bg0: #071410;
  --bg1: #12352c;
  --bg2: #1f6a52;
  --ink: #f4fff9;
  --muted: rgba(214, 240, 226, 0.76);
  --gold: #f0ddb0;
  --gold-deep: #c6a56a;
  --petal: #f2c7cf;
  --petal-deep: #d67a8c;
  --leaf: #8fbf9a;
  --box: #1f6b52;
  --box-light: #3e9a78;
  --box-dark: #0e3d2e;
  --ribbon: #f3e0b4;
  --ribbon-dark: #c6a15e;
  --glass: rgba(236, 255, 246, 0.1);
  --line: rgba(226, 255, 240, 0.16);
  --shadow: rgba(4, 16, 12, 0.48);
}

body[data-font="modern"] {
  --display: "Outfit", "Segoe UI", sans-serif;
  --serif: "Outfit", "Segoe UI", sans-serif;
  --script: "Outfit", "Segoe UI", sans-serif;
}

body[data-font="script"] {
  --display: "Great Vibes", "Segoe Script", cursive;
  --script: "Great Vibes", "Segoe Script", cursive;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg0);
  color: var(--ink);
}

body {
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

img {
  max-width: 100%;
  display: block;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(820px 520px at 50% 8%, color-mix(in srgb, var(--bg2) 82%, white) 0%, transparent 58%),
    radial-gradient(640px 480px at 110% 100%, var(--bg1), transparent 55%),
    radial-gradient(520px 420px at -10% 80%, var(--bg1), transparent 52%),
    var(--bg0);
}

body.has-photo .ambient {
  background:
    linear-gradient(180deg, rgba(8, 4, 8, 0.42), rgba(8, 4, 8, 0.78)),
    var(--photo-bg) center / cover no-repeat,
    var(--bg0);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.55;
  pointer-events: none;
}

.orb-a {
  width: min(54vw, 320px);
  height: min(54vw, 320px);
  left: 50%;
  top: 6%;
  background: radial-gradient(circle, color-mix(in srgb, var(--gold) 55%, transparent), transparent 68%);
  transform: translateX(-50%);
  animation: drift-a 16s ease-in-out infinite;
}

.orb-b {
  width: 220px;
  height: 220px;
  right: -40px;
  bottom: 8%;
  background: radial-gradient(circle, color-mix(in srgb, var(--petal-deep) 50%, transparent), transparent 70%);
  animation: drift-b 18s ease-in-out infinite;
}

.orb-c {
  width: 180px;
  height: 180px;
  left: -50px;
  bottom: 18%;
  background: radial-gradient(circle, color-mix(in srgb, var(--bg2) 70%, white), transparent 70%);
  animation: drift-a 20s ease-in-out infinite reverse;
}

.wash,
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.wash {
  z-index: 1;
  background: radial-gradient(900px 520px at 50% 18%, rgba(255, 255, 255, 0.05), transparent 46%);
}

.vignette {
  z-index: 2;
  background: radial-gradient(ellipse at center, transparent 46%, rgba(0, 0, 0, 0.38) 100%);
}

#dust {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.quiet {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 24px;
  position: relative;
  z-index: 3;
}

.quiet .mark {
  margin: 0 0 8px;
  font-family: var(--script);
  font-size: clamp(3rem, 10vw, 4.6rem);
  line-height: 1;
  color: var(--gold);
}

.quiet h1 {
  margin: 0;
  max-width: 12em;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.7rem, 5vw, 2.7rem);
  line-height: 1.25;
  letter-spacing: 0.01em;
}

@keyframes drift-a {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-46%) translateY(18px); }
}

@keyframes drift-b {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-22px); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
