:root {
  --bg: #080808;
  --bg-soft: #0e0e0e;
  --bg-card: #121212;
  --bg-elevated: #181818;
  --gold: #c9aa5a;
  --gold-bright: #e8d48b;
  --gold-deep: #8a6f2a;
  --champagne: #ead9b0;
  --cream: #f4ead8;
  --muted: #b7aa94;
  --dim: #7d7364;
  --line: rgba(201, 170, 90, 0.28);
  --line-strong: rgba(201, 170, 90, 0.5);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --header-sans: "Outfit", system-ui, sans-serif;
  --display: "Cormorant Garamond", "Times New Roman", serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--header-sans);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  min-height: 100dvh;
  background:
    radial-gradient(1200px 500px at 50% -80px, rgba(201, 170, 90, 0.08), transparent 60%),
    var(--bg);
}

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

main,
section,
.site-header,
.site-footer,
.collection,
.gallery {
  max-width: 100%;
  min-width: 0;
}

button,
input,
textarea {
  font-family: inherit;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--gold);
  color: #111;
  padding: 8px 12px;
  z-index: 100;
  border-radius: 8px;
  font-size: 0.85rem;
}

.skip-link:focus {
  top: 12px;
}

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

/* Promo banner */
.promo {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(90deg, #1a1508 0%, #3a2d12 50%, #1a1508 100%);
  border-bottom: 1px solid var(--gold);
  overflow: hidden;
  padding-top: var(--safe-top);
  max-width: 100%;
}

.promo-inner {
  position: relative;
  display: block;
  text-align: center;
  min-height: 38px;
  padding: 7px 12px;
  min-width: 0;
  max-width: 100%;
}

.promo p {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--champagne);
  font-weight: 500;
  text-align: center;
  line-height: 1.35;
  max-width: 100%;
}

.promo-code {
  display: inline-block;
  margin: 0 4px;
  padding: 2px 10px 3px;
  border: 1px solid var(--gold-bright);
  background: rgba(0, 0, 0, 0.35);
  color: var(--gold-bright);
  font-weight: 700;
  letter-spacing: 0.22em;
  border-radius: 999px;
  cursor: pointer;
  animation: code-pulse 2.2s ease-in-out infinite;
}

.promo-code:hover,
.promo-code:focus-visible {
  background: var(--gold);
  color: #111;
  outline: none;
}

.promo-spark {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 236, 180, 0.28) 50%, transparent 80%);
  transform: translateX(-100%);
  animation: shine 3.2s ease-in-out infinite;
  pointer-events: none;
}

.promo-copied {
  position: absolute;
  right: 14px;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

@keyframes shine {
  0%, 18% { transform: translateX(-120%); }
  48% { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}

@keyframes code-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 212, 139, 0.0); }
  50% { box-shadow: 0 0 14px 2px rgba(232, 212, 139, 0.35); }
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(201, 170, 90, 0.25));
}

.brand-kicker {
  margin: 0;
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.brand h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.6rem, 4vw, 2.15rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--cream);
  line-height: 1;
}

.live {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(201, 170, 90, 0.06);
  white-space: nowrap;
  flex-shrink: 0;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 0 0 rgba(232, 212, 139, 0.7);
  animation: live-beat 1.8s ease-out infinite;
}

.live-count {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--gold-bright);
  min-width: 1.4em;
  text-align: right;
}

.live-label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

@keyframes live-beat {
  0% { box-shadow: 0 0 0 0 rgba(232, 212, 139, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(232, 212, 139, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 212, 139, 0); }
}

.intro {
  text-align: center;
  padding: 28px 20px 8px;
}

.intro-line {
  margin: 8px 0 0;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  color: var(--champagne);
}

.ornament {
  margin: 0;
  color: var(--gold);
  letter-spacing: 0.4em;
  font-size: 0.7rem;
}

/* Featured */
.featured-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 16px 12px;
  width: 100%;
}

.featured {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: opacity 0.55s ease, transform 0.55s ease;
  min-width: 0;
  max-width: 100%;
}

.featured.is-exiting {
  opacity: 0;
  transform: translateY(12px);
}

.featured.is-entering {
  opacity: 0;
  transform: translateY(16px);
}

.featured-grid {
  display: grid;
}

.featured-media {
  position: relative;
  min-height: 260px;
  overflow: hidden;
}

.featured-media .slider {
  width: 100%;
  aspect-ratio: 16 / 11;
  min-height: 260px;
}

.featured-media::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 170px;
  height: 52px;
  background: linear-gradient(to top left, rgba(8, 8, 8, 0.95), transparent 72%);
  z-index: 1;
  pointer-events: none;
}

.featured-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  z-index: 1;
  background: linear-gradient(to top, rgba(8, 8, 8, 0.72), transparent);
  pointer-events: none;
}

.badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #1a1408;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1a1408;
  animation: live-beat 1.8s ease-out infinite;
}

.featured-body {
  padding: 22px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.featured-body h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--cream);
}

.meta {
  margin: 0;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
}

.blurb {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 48ch;
}

.dish {
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(201, 170, 90, 0.08), rgba(201, 170, 90, 0.02));
  border-radius: 14px;
}

.dish span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.dish p {
  margin: 0;
  font-family: var(--display);
  font-size: 1.2rem;
  color: var(--cream);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
}

.btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

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

.btn-gold {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #1a1408;
  box-shadow: 0 8px 20px rgba(201, 170, 90, 0.22);
}

.btn-gold:hover,
.btn-gold:focus-visible {
  filter: brightness(1.06);
  outline: none;
}

.btn-ghost {
  background: transparent;
  color: var(--gold-bright);
  border-color: var(--gold);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(201, 170, 90, 0.12);
  outline: none;
}

.countdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
  flex-wrap: wrap;
}

.countdown-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.countdown-time {
  font-variant-numeric: tabular-nums;
  color: var(--gold-bright);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.featured-lower {
  display: grid;
  min-width: 0;
}

.map-block {
  min-width: 0;
  border-top: 1px solid var(--line);
  background: #0c0c0c;
}

.map-kicker {
  margin: 0;
  padding: 12px 16px 0;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.map-frame {
  position: relative;
  width: 100%;
  min-width: 0;
  height: 240px;
  overflow: hidden;
  background: #1a1a1a;
}

.map-link {
  display: block;
  padding: 10px 16px 14px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
  text-decoration: none;
}

.map-link:hover,
.map-link:focus-visible {
  color: var(--cream);
  outline: none;
}

.featured-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.35) saturate(0.85) contrast(1.05);
}

/* Collection */
.collection {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 16px 64px;
}

.section-head {
  text-align: center;
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 8px 0 6px;
  font-family: var(--display);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 600;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.gallery {
  display: grid;
  gap: 16px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.card .slider {
  width: 100%;
  aspect-ratio: 16 / 10;
}

/* Image slider */
.slider {
  position: relative;
  overflow: hidden;
  background: #1a1a1a;
}

.slider-viewport {
  height: 100%;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
  cursor: grab;
}

.slider-viewport:active {
  cursor: grabbing;
}

.slider-track {
  display: flex;
  height: 100%;
  will-change: transform;
}

.slider-slide {
  flex: 0 0 100%;
  min-width: 0;
  height: 100%;
}

.slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  background: #1a1a1a;
}

.slider-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: rgba(8, 8, 8, 0.55);
  color: var(--gold-bright);
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.slider-nav svg {
  width: 15px;
  height: 15px;
}

.slider-prev {
  left: 10px;
}

.slider-next {
  right: 10px;
}

.slider-nav:hover,
.slider-nav:focus-visible {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #1a1408;
  outline: none;
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.45);
  border: 1px solid rgba(201, 170, 90, 0.32);
  backdrop-filter: blur(8px);
}

.slider-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.slider-dot.is-active {
  background: var(--gold-bright);
  transform: scale(1.18);
  box-shadow: 0 0 8px rgba(232, 212, 139, 0.55);
}

.slider-dot:hover,
.slider-dot:focus-visible {
  background: var(--gold);
  outline: none;
}

.card-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-body h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.15;
}

.card .blurb {
  font-size: 0.9rem;
}

.card .actions {
  margin-top: auto;
  padding-top: 6px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 20px calc(36px + var(--safe-bottom));
  text-align: center;
  background: var(--bg-soft);
}

.footer-cta {
  display: inline-block;
  margin: 12px 0 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--cream);
  font-family: var(--display);
  font-size: clamp(1.2rem, 3.4vw, 1.7rem);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 6px;
}

.footer-cta:hover,
.footer-cta:focus-visible {
  color: var(--gold-bright);
  outline: none;
}

.footer-hint,
.copyright {
  color: var(--dim);
  font-size: 0.82rem;
}

.copyright {
  margin: 28px 0 0;
  letter-spacing: 0.04em;
}

.form-wrap {
  max-width: 720px;
  margin: 22px auto 0;
  text-align: left;
}

.form-wrap[hidden] {
  display: none !important;
}

.owner-form {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 18px 24px;
}

.owner-form h3 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 1.6rem;
  text-align: center;
}

.form-lede {
  margin: 0 0 18px;
  color: var(--muted);
  text-align: center;
  font-size: 0.92rem;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.owner-form label {
  display: grid;
  gap: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.owner-form input,
.owner-form textarea {
  width: 100%;
  background: #0c0c0c;
  border: 1px solid var(--line);
  color: var(--cream);
  border-radius: 10px;
  padding: 12px 12px;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
}

.owner-form input:focus,
.owner-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 170, 90, 0.15);
}

.form-error {
  color: #e8b4b4;
  font-size: 0.88rem;
  margin: 12px 0 0;
}

.form-submit {
  width: 100%;
  margin-top: 16px;
  border: 0;
}

@media (min-width: 720px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-grid .full {
    grid-column: 1 / -1;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .featured-media .slider {
    aspect-ratio: 16 / 9;
    min-height: 320px;
  }

  .map-frame {
    height: 280px;
  }

  .featured-body {
    padding: 26px 28px 28px;
  }
}

@media (min-width: 980px) {
  .header-inner,
  .featured-section,
  .collection {
    padding-left: 28px;
    padding-right: 28px;
  }

  .brand img {
    width: 88px;
    height: 88px;
  }

  .featured-media .slider {
    aspect-ratio: 16 / 8.2;
    min-height: 380px;
  }

  .featured-lower {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .featured-body {
    padding: 28px 32px 32px;
    justify-content: center;
    border-right: 1px solid var(--line);
  }

  .map-block {
    border-top: 0;
    display: flex;
    flex-direction: column;
  }

  .map-frame {
    height: 100%;
    min-height: 300px;
    flex: 1;
  }

  .gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .gallery .card {
    flex: 0 1 calc(33.333% - 11px);
  }

  .card:hover {
    transform: translateY(-4px);
  }
}

@media (max-width: 480px) {
  .slider-nav {
    width: 30px;
    height: 30px;
  }

  .slider-prev {
    left: 8px;
  }

  .slider-next {
    right: 8px;
  }

  .live-label {
    display: none;
  }

  .promo p {
    font-size: 0.66rem;
    letter-spacing: 0.05em;
  }

  .brand img {
    width: 64px;
    height: 64px;
  }

  .actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .promo-spark,
  .promo-code,
  .live-dot,
  .featured,
  .card,
  .slider-track,
  .slider-nav,
  .slider-dot {
    animation: none !important;
    transition: none !important;
  }
}
