:root {
  --ink: #1c1418;
  --ink-soft: #3a2c32;
  --muted: #6b5a62;
  --line: rgba(28, 20, 24, 0.1);
  --paper: #faf6f1;
  --paper-deep: #f0e8df;
  --surface: rgba(255, 255, 255, 0.82);
  --garnet: #8e2444;
  --garnet-deep: #641830;
  --gold: #c4a35a;
  --gold-deep: #9a7a3c;
  --copper: #b08a5a;
  --copper-soft: rgba(196, 163, 90, 0.16);
  --shadow: 0 1px 0 rgba(28, 20, 24, 0.04);
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --radius: 12px;
  --header-h: 4.35rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.6;
  background: var(--paper);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body.page-home {
  background: #fffdfb;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--garnet);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--garnet-deep);
}

/* —— Header —— */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0.85rem clamp(1rem, 4vw, 2.75rem);
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 244, 239, 0.82);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.15rem;
  align-items: center;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav-auth {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  margin-left: 0.35rem;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0.9rem 1.35rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-small {
  padding: 0.45rem 0.85rem;
  font-size: 0.88rem;
}

.btn-primary {
  background: var(--garnet);
  color: #fff8f5;
}

.btn-primary:hover {
  background: var(--garnet-deep);
  color: #fff8f5;
}

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

.btn-ghost:hover {
  border-color: rgba(122, 31, 61, 0.35);
  color: var(--garnet-deep);
}

.btn-text {
  background: transparent;
  color: #f3ebe3;
  border: 0;
  padding-left: 0.4rem;
  padding-right: 0.4rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 500;
}

.btn-text:hover {
  color: #fff;
}

.btn-danger {
  background: transparent;
  border-color: #e8b4b4;
  color: #9b1c1c;
}

/* —— Home hero: editorial full-bleed —— */
.home-shell {
  padding: 0;
  max-width: none;
}

.site-header-home {
  position: absolute;
  inset: 0 0 auto;
  background: linear-gradient(180deg, rgba(250, 246, 241, 0.72), rgba(250, 246, 241, 0));
  backdrop-filter: none;
}

.site-header-home.is-scrolled {
  position: sticky;
  background: rgba(250, 246, 241, 0.94);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom-color: var(--line);
}

.hero.hero-centered {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--ink);
  text-align: center;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 48% 58% at 50% 44%, rgba(255, 252, 248, 0.72), rgba(250, 246, 241, 0.28) 58%, transparent 78%),
    linear-gradient(180deg, rgba(250, 246, 241, 0.35) 0%, rgba(250, 246, 241, 0.12) 42%, rgba(250, 246, 241, 0.86) 86%, #faf6f1 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  padding: calc(var(--header-h) + 1.25rem) clamp(1.15rem, 5vw, 2.5rem) clamp(2.5rem, 7vw, 4rem);
  display: grid;
  justify-items: center;
}

.hero-logo {
  width: min(300px, 62vw);
  height: auto;
  margin: 0 0 0.5rem;
  filter: drop-shadow(0 16px 36px rgba(100, 24, 48, 0.16));
  animation: hero-in 0.95s var(--ease) both;
}

.hero-line {
  margin: 0.1rem 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.4vw, 2.15rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.25;
  color: var(--ink-soft);
  max-width: 16ch;
  animation: hero-in 0.95s 0.06s var(--ease) both;
}

.hero-sub {
  margin: 0;
  max-width: 30ch;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.55;
  animation: hero-in 0.95s 0.12s var(--ease) both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.35rem;
  align-items: center;
  justify-content: center;
  margin-top: 1.75rem;
  animation: hero-in 0.95s 0.18s var(--ease) both;
}

.btn-hero {
  min-width: 160px;
  padding: 1rem 1.6rem;
  border-radius: 999px;
}

.hero .btn-primary {
  background: var(--garnet);
  color: #fff8f5;
  box-shadow: 0 14px 32px rgba(142, 36, 68, 0.2);
}

.hero .btn-primary:hover {
  background: var(--garnet-deep);
  color: #fff8f5;
}

.btn-link {
  color: var(--ink-soft);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(28, 20, 24, 0.22);
  padding-bottom: 0.1rem;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn-link:hover {
  color: var(--garnet);
  border-bottom-color: var(--garnet);
}

/* —— Page sections —— */
.page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 1.5rem clamp(1rem, 4vw, 2.5rem) 3.5rem;
}

.home-sections {
  max-width: 980px;
  margin: 0 auto;
  padding: 4.25rem clamp(1.15rem, 4vw, 2.5rem) 5rem;
}

.section {
  margin-bottom: 3.75rem;
}

.section:last-child {
  margin-bottom: 0;
}

.section-head {
  margin-bottom: 1.5rem;
  text-align: center;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 2.65rem);
  font-weight: 600;
  margin: 0 0 0.4rem;
  letter-spacing: 0.01em;
}

.section-lead {
  color: var(--muted);
  margin: 0 auto;
  max-width: 40ch;
  font-size: 1.02rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.25rem, 3vw, 1.85rem);
  box-shadow: var(--shadow);
}

.brand-mark {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.05;
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.kicker {
  color: var(--garnet);
  font-weight: 600;
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

/* —— Selection options —— */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.occasion-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  gap: 0.85rem;
}

.treat-stack,
.list-stack {
  display: grid;
  gap: 0.75rem;
}

.option-card,
.chip,
.card-option,
.list-card,
.action-card {
  position: relative;
  background: rgba(255, 255, 255, 0.62);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease),
    transform 0.18s var(--ease),
    box-shadow 0.2s var(--ease);
}

.option-card:hover,
.chip:hover,
.card-option:hover,
.list-card:hover {
  border-color: rgba(122, 31, 61, 0.35);
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.option-card:active,
.chip:active,
.list-card:active {
  transform: scale(0.97);
}

.option-card.selected,
.chip.selected,
.card-option.selected,
.list-card.selected,
.option-card[aria-pressed='true'] {
  border-color: rgba(122, 31, 61, 0.55);
  background: #fff;
  box-shadow: 0 0 0 2px rgba(122, 31, 61, 0.18);
  transform: translateY(-1px);
}

.option-card.selected .opt-mark,
.chip.selected .opt-mark {
  background: rgba(122, 31, 61, 0.14);
  color: var(--garnet-deep);
  border-color: rgba(122, 31, 61, 0.35);
}

.option-card.selected .opt-check,
.list-card.selected .opt-check {
  opacity: 1;
  transform: scale(1);
}

.occasion-card {
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  min-height: 128px;
  padding: 1.15rem 0.85rem 1rem;
  text-align: center;
}

.occasion-card strong {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.25;
}

.treat-card,
.list-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.95rem;
  width: 100%;
  margin: 0;
  padding: 1rem 1.1rem;
}

.treat-card .opt-body,
.list-card .opt-body {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.treat-card .muted,
.list-card .muted {
  font-size: 0.9rem;
}

.opt-mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(122, 31, 61, 0.12);
  background: rgba(255, 255, 255, 0.85);
  color: var(--garnet);
  flex-shrink: 0;
  overflow: hidden;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.occasion-card .opt-mark {
  width: 48px;
  height: 48px;
}

.opt-svg {
  width: 22px !important;
  height: 22px !important;
  max-width: 22px;
  max-height: 22px;
  display: block;
  flex: none;
}

.opt-mark > *:not(.opt-svg) {
  font-size: 1rem;
  line-height: 1;
}

.opt-check {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: var(--garnet);
  color: #fff;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}

.opt-check::after {
  content: '';
  position: absolute;
  left: 0.42rem;
  top: 0.3rem;
  width: 0.32rem;
  height: 0.58rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.list-card .price,
.treat-card .price {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}

.chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 110px;
}

.chip .emoji {
  font-size: 1.65rem;
  line-height: 1;
}

.chip strong,
.list-card strong {
  font-weight: 600;
}

.actions-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.action-card {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.5);
}

.action-card .emoji {
  font-size: 1.4rem;
}

/* —— Wizard —— */
.wizard-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 1.25rem 0 1.5rem;
}

.wizard-steps span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  background: transparent;
  border: 1px solid transparent;
  text-transform: capitalize;
}

.wizard-steps span.active {
  color: var(--garnet-deep);
  border-color: rgba(122, 31, 61, 0.35);
  background: rgba(122, 31, 61, 0.06);
}

.wizard-steps span.done {
  color: var(--ink-soft);
}

.field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.field label {
  font-weight: 600;
  font-size: 0.9rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.8rem 0.95rem;
  font: inherit;
  background: #fff;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid rgba(122, 31, 61, 0.25);
  outline-offset: 1px;
  border-color: rgba(122, 31, 61, 0.4);
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 700px) {
  .row-2 {
    grid-template-columns: 1fr;
  }

  .nav-main a:not([aria-current="page"]):not(.btn):nth-child(n + 5) {
    display: none;
  }
}

.wizard-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.price-box {
  margin-top: 1rem;
  padding: 1rem 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
}

.price-box div {
  display: flex;
  justify-content: space-between;
  margin: 0.25rem 0;
}

.price-box .total {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}

.legal {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem clamp(1rem, 4vw, 2.5rem) 4rem;
}

.legal h1,
.page h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.85rem);
  margin: 0 0 0.35rem;
  font-weight: 600;
}

.legal .updated {
  color: var(--muted);
  margin-bottom: 2rem;
}

.legal section {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0 0 0.55rem;
  font-weight: 600;
}

.site-footer {
  padding: 2rem clamp(1rem, 4vw, 2.5rem) 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  background: rgba(255, 255, 255, 0.35);
}

.site-footer .footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--garnet);
}

.toast-host {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 100;
  display: grid;
  gap: 0.5rem;
}

.toast {
  background: var(--ink);
  color: #fff;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: 0.25s var(--ease);
  max-width: 320px;
}

.toast.show {
  opacity: 1;
  transform: none;
}

.toast-error {
  background: #9b1c1c;
}

.toast-success {
  background: #1f6b4a;
}

.empty {
  text-align: center;
  padding: 2rem 1rem;
}

#payment-element {
  margin: 1rem 0 1.25rem;
  padding: 0.5rem 0;
}

.artist-card {
  display: grid;
  gap: 0.35rem;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background: rgba(122, 31, 61, 0.08);
  color: var(--garnet-deep);
  font-size: 0.78rem;
  font-weight: 600;
}

.form-error {
  margin: 0 0 0.9rem;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  background: rgba(155, 28, 28, 0.08);
  color: #9b1c1c;
  font-size: 0.92rem;
  font-weight: 500;
}

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

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

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