﻿:root {
  --bg: #f5f6f8;
  --bg-soft: #eef1f5;
  --ink: #2a2d34;
  --ink-soft: #5a5f6a;
  --gold: #b08a3c;
  --gold-deep: #8f6c28;
  --gold-bright: #d4af5a;
  --gold-glow: rgba(176, 138, 60, 0.22);
  --line: rgba(143, 108, 40, 0.18);
  --card: rgba(255, 255, 255, 0.72);
  --card-solid: #ffffff;
  --focus: #b08a3c;
  --danger: #9b3d3d;
  --font-display: "Cormorant Garamond", "Iowan Old Style", Palatino, Georgia, serif;
  --font-body: Manrope, "Segoe UI", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font: 400 17px/1.55 var(--font-body);
  color-scheme: light;
  background:
    radial-gradient(120% 80% at 50% -20%, #ffffff 0%, transparent 55%),
    linear-gradient(165deg, #fafbfd 0%, var(--bg) 42%, var(--bg-soft) 100%);
  overflow-x: hidden;
}

/*
  Wedding gold theme — floral abstract backdrop for guest/admin event chrome.
  Soft white base + peony/leaf motifs with ~30% blur. Marketing homepage uses marketing.css.
*/
body.theme-wedding-gold::before,
body.theme-wedding-gold::after {
  content: "";
  position: fixed;
  inset: -18% -12%;
  z-index: -1;
  pointer-events: none;
}

body.theme-wedding-gold::before {
  opacity: 0.72;
  filter: blur(12px);
  background-color: transparent;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 800' fill='none'%3E%3Cg opacity='0.55'%3E%3Cellipse cx='160' cy='170' rx='70' ry='42' fill='%23d4af5a' transform='rotate(-28 160 170)'/%3E%3Cellipse cx='210' cy='150' rx='62' ry='38' fill='%23c9a24a' transform='rotate(18 210 150)'/%3E%3Cellipse cx='185' cy='205' rx='58' ry='36' fill='%23b08a3c' transform='rotate(52 185 205)'/%3E%3Ccircle cx='188' cy='172' r='18' fill='%238f6c28' opacity='0.55'/%3E%3C/g%3E%3Cg opacity='0.42'%3E%3Cellipse cx='620' cy='220' rx='78' ry='46' fill='%23d4af5a' transform='rotate(22 620 220)'/%3E%3Cellipse cx='670' cy='195' rx='64' ry='40' fill='%23c4a05a' transform='rotate(-35 670 195)'/%3E%3Cellipse cx='640' cy='255' rx='60' ry='38' fill='%23b08a3c' transform='rotate(60 640 255)'/%3E%3Ccircle cx='642' cy='220' r='16' fill='%238f6c28' opacity='0.5'/%3E%3C/g%3E%3Cg opacity='0.38'%3E%3Cellipse cx='480' cy='620' rx='74' ry='44' fill='%23d4af5a' transform='rotate(-18 480 620)'/%3E%3Cellipse cx='530' cy='600' rx='60' ry='36' fill='%23b8974a' transform='rotate(40 530 600)'/%3E%3Cellipse cx='500' cy='655' rx='56' ry='34' fill='%23b08a3c' transform='rotate(-55 500 655)'/%3E%3Ccircle cx='502' cy='622' r='15' fill='%238f6c28' opacity='0.48'/%3E%3C/g%3E%3Cg opacity='0.34'%3E%3Cpath d='M95 480c40-55 95-40 110 8 12 38-18 78-58 92-48 16-88-18-52-100z' fill='%2394a88a'/%3E%3Cpath d='M720 480c-38-50-90-36-104 10-11 36 16 72 54 84 46 14 84-20 50-94z' fill='%23a3b598'/%3E%3Cpath d='M340 110c48-20 88 8 82 52-5 36-42 55-78 42-42-15-48-58-4-94z' fill='%239db08e'/%3E%3Cpath d='M120 680c36-42 82-28 92 14 8 34-20 64-54 72-40 10-72-22-38-86z' fill='%23a8b89c'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600' fill='none'%3E%3Cg opacity='0.32'%3E%3Cellipse cx='120' cy='90' rx='48' ry='28' fill='%23d4af5a' transform='rotate(35 120 90)'/%3E%3Cellipse cx='155' cy='78' rx='40' ry='24' fill='%23b08a3c' transform='rotate(-20 155 78)'/%3E%3Cellipse cx='130' cy='115' rx='36' ry='22' fill='%23c9a24a' transform='rotate(70 130 115)'/%3E%3C/g%3E%3Cg opacity='0.28'%3E%3Cpath d='M480 140c32-38 72-22 78 18 5 32-22 58-50 62-34 5-58-24-28-80z' fill='%239db08e'/%3E%3Cpath d='M70 420c28-34 66-18 72 16 5 28-18 52-44 56-32 5-54-22-28-72z' fill='%23a3b598'/%3E%3Cpath d='M520 460c-30-36-68-20-74 14-5 28 16 50 42 54 30 5 52-20 32-68z' fill='%2394a88a'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat, repeat;
  background-size: min(92vw, 56rem) min(92vw, 56rem), 28rem 28rem;
  background-position: 8% 12%, 70% 55%;
  /* Restrained floral drift — slow and subtle, event theme only */
  animation: drift-a 48s ease-in-out infinite alternate;
}

body.theme-wedding-gold::after {
  opacity: 0.85;
  filter: blur(18px);
  background:
    radial-gradient(42% 36% at 18% 28%, rgba(255, 255, 255, 0.78) 0%, transparent 70%),
    radial-gradient(38% 32% at 82% 18%, rgba(248, 246, 240, 0.7) 0%, transparent 68%),
    radial-gradient(48% 40% at 55% 78%, rgba(245, 240, 228, 0.42) 0%, transparent 72%),
    radial-gradient(36% 30% at 72% 62%, rgba(255, 255, 255, 0.65) 0%, transparent 70%),
    radial-gradient(44% 36% at 48% 32%, rgba(212, 175, 90, 0.1) 0%, transparent 70%);
  animation: drift-b 56s ease-in-out infinite alternate;
}

/* Default event theme — clean slate, no floral gold chrome */
body.theme-default {
  --ink: #1a2332;
  --ink-soft: #5a6578;
  --gold: #2f5d74;
  --gold-deep: #1f4558;
  --gold-bright: #4a7f98;
  --gold-glow: rgba(47, 93, 116, 0.18);
  --line: rgba(26, 35, 50, 0.12);
  --focus: #2f5d74;
  --font-display: Manrope, "Segoe UI", "Helvetica Neue", sans-serif;
  background:
    radial-gradient(90% 70% at 50% -15%, #ffffff 0%, transparent 55%),
    linear-gradient(165deg, #fbfcfe 0%, #f3f5f8 48%, #e9eef3 100%);
}

body.theme-default h1 {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: var(--ink);
}

body.theme-default button,
body.theme-default .button {
  background: linear-gradient(160deg, var(--gold-bright), var(--gold-deep));
  box-shadow: 0 8px 18px rgba(31, 69, 88, 0.2);
}

@keyframes drift-a {
  from { transform: translate3d(-1.2%, -0.6%, 0) scale(1); }
  to { transform: translate3d(1.8%, 1.4%, 0) scale(1.03); }
}

@keyframes drift-b {
  from { transform: translate3d(1.2%, 0.6%, 0) scale(1.02); }
  to { transform: translate3d(-1.6%, -1.2%, 0) scale(1); }
}

.sheet {
  position: relative;
  max-width: 40rem;
  margin: 0 auto;
  padding: 2.4rem 1.25rem 4rem;
  animation: rise-in 0.55s ease-out both;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Soft section reveals on guest/admin (shared chrome; floral stays backdrop-only) */
[data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--gold-deep);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

h1 {
  font-size: clamp(2.15rem, 5vw, 2.85rem);
  margin: 0.15rem 0 0.55rem;
  background: linear-gradient(135deg, var(--gold-deep) 0%, var(--gold-bright) 48%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

h2 { font-size: 1.55rem; margin: 0 0 0.55rem; color: var(--gold); }
h3 { font-size: 1.25rem; margin: 0 0 0.4rem; color: var(--gold); }

a {
  color: var(--gold-deep);
  text-underline-offset: 0.15em;
  transition: color 0.2s ease;
}
a:hover { color: var(--gold); }

.eyebrow, .zone, footer {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--gold);
}

.snippet {
  font-size: 1.12rem;
  color: var(--ink-soft);
}

.cover {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 1rem 0 1.4rem;
  box-shadow: 0 18px 40px rgba(42, 45, 52, 0.08);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.cover:hover {
  box-shadow: 0 20px 44px rgba(42, 45, 52, 0.1);
  transform: translateY(-1px);
}

.rule {
  width: 4.5rem;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-bright), var(--gold), transparent);
  border: 0;
  margin: 0 0 1.2rem;
}

article, fieldset, .card, .banner {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.95rem 1.05rem;
  margin: 0 0 0.85rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(42, 45, 52, 0.04);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

article:hover, .card:hover {
  border-color: rgba(143, 108, 40, 0.28);
  box-shadow: 0 12px 30px rgba(42, 45, 52, 0.06);
}

body.theme-default article:hover,
body.theme-default .card:hover {
  border-color: rgba(47, 93, 116, 0.28);
}

article[data-state="current"] {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold-glow), 0 12px 30px rgba(42, 45, 52, 0.05);
}

.when, .venue { margin: 0.2rem 0; color: var(--ink-soft); }

form { margin: 0 0 1.2rem; }

label, .choice {
  display: block;
  margin: 0.7rem 0;
}

input, textarea, select, button {
  font: inherit;
  color: inherit;
}

input, textarea, select {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
  outline: none;
}

textarea { min-height: 7rem; resize: vertical; }

button, .button {
  display: inline-block;
  background: linear-gradient(160deg, var(--gold-bright), var(--gold-deep));
  color: #fffef9;
  border: 0;
  border-radius: 10px;
  padding: 0.72rem 1.1rem;
  text-decoration: none;
  cursor: pointer;
  font-weight: 500;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 18px rgba(143, 108, 40, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

button:hover, .button:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(143, 108, 40, 0.28);
}

button:active, .button:active {
  transform: translateY(1px);
}

body.theme-default button:hover,
body.theme-default .button:hover {
  box-shadow: 0 10px 22px rgba(31, 69, 88, 0.26);
}

button.secondary, a.secondary {
  background: transparent;
  color: var(--gold-deep);
  border: 1px solid var(--gold);
  box-shadow: none;
}

button.secondary:hover, a.secondary:hover {
  background: rgba(212, 175, 90, 0.1);
  filter: none;
}

.choice input { width: auto; margin-right: 0.4rem; }

.alert {
  background: rgba(255, 244, 244, 0.92);
  border: 1px solid rgba(155, 61, 61, 0.35);
  color: var(--danger);
  border-radius: 10px;
  padding: 0.75rem 0.95rem;
}

.preview-banner {
  background: rgba(255, 250, 236, 0.92);
  border: 1px solid var(--gold);
  color: var(--gold-deep);
  border-radius: 10px;
  padding: 0.75rem 0.95rem;
}

dl { display: grid; grid-template-columns: 7rem 1fr; gap: 0.35rem 0.8rem; }
dt { color: var(--gold); font-weight: 500; }

table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td {
  text-align: left;
  padding: 0.45rem 0.35rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th { color: var(--gold); font-weight: 560; }

footer {
  margin-top: 2.2rem;
  color: var(--gold);
}

.countdown {
  color: var(--gold-deep);
  font-family: var(--font-display);
  font-size: 1.2rem;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  body.theme-wedding-gold::before,
  body.theme-wedding-gold::after,
  .sheet,
  .cover,
  article,
  .card,
  button,
  .button {
    transform: none !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 40rem) {
  h1 { font-size: 2.15rem; }
  dl { grid-template-columns: 1fr; }
  .sheet { padding-top: 1.8rem; }
}

/* Removed: marketing homepage styles live in marketing.css */
