:root {
  color-scheme: light;
  --ink: #2f231d;
  --muted: #725f55;
  --paper: #fffaf3;
  --soft: #f7efe3;
  --line: #dfc8b6;
  --accent: #8d2430;
  --accent-strong: #671a24;
  --gold: #c89b50;
  --gold-soft: #fff0d2;
  --rose: #d7a9a5;
  --good: #28684d;
  --bad: #a13d35;
  --shadow: 0 18px 40px rgba(75, 38, 28, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #21130f;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

.shell {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  padding-bottom: 36px;
}

.shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(24, 12, 9, 0.08) 0%, rgba(24, 12, 9, 0.12) 44%, rgba(24, 12, 9, 0.34) 58%, rgba(255, 250, 243, 0.82) 70%, rgba(255, 250, 243, 0.96) 100%),
    linear-gradient(90deg, rgba(39, 17, 14, 0.24), rgba(39, 17, 14, 0.06) 58%, rgba(39, 17, 14, 0.2));
}

.hero {
  position: relative;
  min-height: 67vh;
  display: flex;
  align-items: flex-end;
  padding: 34px 20px 42px;
  overflow: visible;
  color: white;
  background: transparent;
}

.hero::before {
  content: none;
}

.hero-slides,
.hero-slide {
  position: fixed;
  inset: 0;
}

.hero-slides {
  z-index: -2;
  background: #42251f;
}

.hero-slide {
  position: absolute;
  background-position: center 42%;
  background-size: cover;
  opacity: 0;
  transform: scale(1.04);
  animation: weddingSlide 36s infinite;
}

.slide-one {
  background-image: url("/assets/wedding/couple-lake-look.jpeg");
  background-position: center 40%;
}

.slide-two {
  background-image: url("/assets/wedding/couple-close-lake.jpeg");
  background-position: center 46%;
  animation-delay: 6s;
}

.slide-three {
  background-image: url("/assets/wedding/couple-smile-lake.jpeg");
  background-position: center 45%;
  animation-delay: 12s;
}

.slide-four {
  background-image: url("/assets/wedding/couple-roses-lake.jpeg");
  background-position: center 43%;
  animation-delay: 18s;
}

.slide-five {
  background-image: url("/assets/wedding/couple-walking-lake.jpeg");
  background-position: center 42%;
  animation-delay: 24s;
}

.slide-six {
  background-image: url("/assets/wedding/couple-confetti.jpeg");
  background-position: center 45%;
  animation-delay: 30s;
}

@keyframes weddingSlide {
  0% {
    opacity: 0;
    transform: scale(1.04);
  }

  8%,
  15% {
    opacity: 1;
  }

  21%,
  100% {
    opacity: 0;
    transform: scale(1.1);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, 720px);
  margin: 0 auto;
  transform: translateY(18px);
  text-shadow: 0 3px 22px rgba(21, 11, 8, 0.7);
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
}

.eyebrow strong {
  font-weight: 800;
  letter-spacing: 0.11em;
}

.eyebrow.dark {
  color: var(--muted);
}

h1 {
  margin: 0;
  font-family: "Great Vibes", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(3.75rem, 13vw, 6.8rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 36rem;
  margin: 22px 0 0;
  font-size: 1rem;
  line-height: 1.5;
}

.hero-copy span {
  display: block;
}

.hero-copy span + span {
  margin-top: 8px;
}

main {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 0 18px 0;
}

.panel {
  display: grid;
  gap: 24px;
}

.guest-box,
.flow,
.status-panel {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 248, 239, 0.88));
  box-shadow: var(--shadow);
  border-radius: 8px;
  padding: 18px;
  backdrop-filter: blur(12px);
}

.guest-box label,
.field label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.text-input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: white;
  color: var(--ink);
  outline: none;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

.counter-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.counter-row .limit {
  color: var(--bad);
}

.actions {
  display: grid;
  gap: 14px;
}

.action-button,
.secondary-button {
  min-height: 54px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 16px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.action-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.5), transparent 44%),
    linear-gradient(135deg, #fff4df, #f3d7bc);
  border-color: rgba(200, 155, 80, 0.88);
  box-shadow: 0 12px 24px rgba(92, 38, 31, 0.16);
  color: var(--accent-strong);
  text-align: left;
}

.action-button:hover {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 44%),
    linear-gradient(135deg, #fff7e8, #edc9ad);
}

.action-button strong {
  display: block;
  font-size: 1rem;
}

.action-button span {
  display: block;
  margin-top: 2px;
  font-size: 0.82rem;
  opacity: 0.82;
}

.action-button > span:last-child {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff8ed;
  font-size: 1.05rem;
  opacity: 1;
}

.action-button:active,
.secondary-button:active {
  transform: scale(0.99);
}

.secondary-button {
  background: var(--gold-soft);
  color: var(--accent-strong);
  border-color: rgba(197, 155, 87, 0.36);
}

.flow {
  display: none;
}

.flow.active {
  display: block;
}

.flow h2 {
  margin: 0 0 8px;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  line-height: 1;
}

.instructions {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.45;
}

.file-input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-drop {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 76px;
  border: 1px dashed rgba(159, 52, 59, 0.72);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  color: var(--accent-strong);
  cursor: pointer;
}

.file-drop.compact {
  min-height: 66px;
}

.file-drop-icon {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--accent-strong);
  font-size: 1.35rem;
  font-weight: 700;
}

.file-drop strong,
.file-drop small {
  display: block;
}

.file-drop small {
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.35;
}

.file-selection {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.primary {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 34%),
    linear-gradient(135deg, #8d2d35, #683126);
  color: white;
  border-color: rgba(197, 155, 87, 0.42);
}

.progress-wrap {
  height: 10px;
  border-radius: 999px;
  background: var(--soft);
  overflow: hidden;
  margin-top: 12px;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: var(--good);
  transition: width 0.2s ease;
}

.status-panel {
  display: grid;
  gap: 10px;
}

.status-line {
  margin: 10px 0 0;
  color: var(--muted);
  white-space: pre-line;
  line-height: 1.45;
}

.summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.summary div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: white;
}

.summary strong {
  display: block;
  font-size: 1.25rem;
}

.summary span {
  color: var(--muted);
  font-size: 0.8rem;
}

.status-actions {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.status-actions p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.status-actions .secondary-button {
  width: 100%;
}

.hidden {
  display: none !important;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  align-items: center;
}

.auth-card {
  width: min(100%, 520px);
  margin: 0 auto;
}

.auth-title {
  color: var(--ink);
  font-size: 2.5rem;
}

.auth-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.auth-form label {
  margin-bottom: 0;
}

.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-header .secondary-button {
  min-height: 44px;
}

.admin-summary {
  margin-top: 16px;
}

.admin-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.error {
  color: var(--bad);
}

.success {
  color: var(--good);
}

@media (min-width: 720px) {
  .hero {
    min-height: 69vh;
    padding: 52px 48px 56px;
  }

  main {
    margin-top: -8px;
    position: relative;
  }

  .actions {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    animation: none;
  }

  .slide-one {
    opacity: 1;
  }
}
