:root {
  color-scheme: dark;

  --bg-canvas: #0b0807;
  --bg-surface: #14100d;
  --bg-elevated: #1c1612;
  --border-subtle: rgba(212, 175, 106, 0.2);
  --border-strong: rgba(212, 175, 106, 0.45);

  --text-primary: #f6f0e6;
  --text-muted: #bcae9c;
  --text-subtle: #8b7d6d;

  --gold-300: #ebd197;
  --gold-400: #d4af6a;
  --gold-500: #b88f46;

  --accent-crimson: #9e3141;
  --accent-forest: #2f4f42;
  --accent-copper: #b87344;

  --error-text: #ff9c96;
  --error-border: #d9534f;
  --error-bg: rgba(217, 83, 79, 0.12);

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --container-max: 1160px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
}

body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(212, 175, 106, 0.08), transparent 65%),
    var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

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

.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.container {
  width: min(100% - 2.5rem, var(--container-max));
  margin-inline: auto;
}

/* Language Switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.25rem;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: rgba(20, 16, 13, 0.85);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn[aria-pressed="true"] {
  background: var(--gold-400);
  color: #140f0a;
}

/* Password Gate */
.auth-gate {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
  position: relative;
}

.auth-gate[hidden] {
  display: none;
}

.gate-lang-bar {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
}

.gate-card {
  width: min(100%, 420px);
  background: linear-gradient(180deg, rgba(28, 22, 18, 0.96), rgba(17, 13, 10, 0.98));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2rem 2.25rem;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
}

.gate-logo {
  width: 210px;
  margin: 0 auto 1.5rem;
}

.gate-eyebrow {
  color: var(--gold-400);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.gate-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.gate-copy {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.75rem;
}

.gate-form {
  text-align: left;
  display: grid;
  gap: 0.85rem;
}

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

.gate-input {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.gate-input:focus {
  outline: 2px solid var(--gold-400);
  outline-offset: 2px;
  border-color: var(--gold-400);
}

.gate-input:is(:user-invalid, [aria-invalid="true"]) {
  border-color: var(--error-border);
  background-color: var(--error-bg);
}

.error-msg {
  display: none;
  color: var(--error-text);
  font-size: 0.85rem;
  line-height: 1.4;
}

.gate-input:is(:user-invalid, [aria-invalid="true"]) + .error-msg {
  display: block;
}

.btn-gold {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1.4rem;
  border: 1px solid var(--gold-400);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  color: #161009;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.2s ease;
}

.btn-gold:hover {
  filter: brightness(1.07);
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 8, 7, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}

.brand-link {
  display: flex;
  align-items: center;
}

.header-logo {
  width: 155px;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--gold-300);
}

/* Hero */
.hero {
  padding: 4.5rem 0 3.5rem;
  text-align: center;
}

.hero-eyebrow {
  color: var(--gold-400);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.06;
  max-width: 16ch;
  margin: 0 auto 1.25rem;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 58ch;
  margin: 0 auto 2rem;
}

.ornament-divider {
  width: min(100%, 420px);
  margin: 0 auto 2rem;
  opacity: 0.85;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.hero-pill {
  padding: 0.6rem 1.15rem;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: rgba(28, 22, 18, 0.75);
  font-size: 0.86rem;
  color: var(--text-primary);
}

.hero-pill strong {
  color: var(--gold-300);
  font-weight: 600;
}

.hero-cta {
  width: auto;
  padding-inline: 2rem;
}

/* Collection Showcase */
.collection {
  padding: 2rem 0 4.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-eyebrow {
  color: var(--gold-400);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.15;
}

.cake-list {
  display: grid;
  gap: 4rem;
}

.cake-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 3rem;
  align-items: center;
  padding: 2.25rem;
  background: linear-gradient(145deg, rgba(28, 22, 18, 0.75), rgba(16, 12, 10, 0.92));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.cake-card--reversed .cake-media {
  order: 2;
}

.cake-card--reversed .cake-details {
  order: 1;
}

/* Media column */
.cake-media {
  display: grid;
  gap: 1rem;
  justify-items: center;
}

.video-frame {
  width: min(100%, 330px);
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #060403;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-strip {
  width: min(100%, 330px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.thumb-btn {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-canvas);
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 9 / 14;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.thumb-btn:hover {
  border-color: var(--gold-400);
  transform: translateY(-2px);
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-label {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 0.35rem 0.25rem 0.25rem;
  background: linear-gradient(to top, rgba(11, 8, 7, 0.92), transparent);
  color: var(--text-primary);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
}

/* Details column */
.cake-index {
  display: inline-block;
  color: var(--gold-400);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.cake-name {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.65rem);
  font-weight: 500;
  line-height: 1.12;
  margin-bottom: 0.85rem;
}

.cake-desc {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 1.75rem;
}

.layers-heading {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 0.85rem;
}

.layers-list {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

.layers-list li {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(212, 175, 106, 0.1);
  font-size: 0.93rem;
}

.layer-num {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--gold-400);
  min-width: 1.6rem;
}

/* Ordering Section */
.ordering {
  padding: 4rem 0 5rem;
  border-top: 1px solid var(--border-subtle);
}

.ordering-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.schedule-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.schedule-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--gold-300);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.schedule-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.schedule-rows {
  display: grid;
  gap: 0.75rem;
}

.schedule-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(212, 175, 106, 0.12);
}

.schedule-row span {
  color: var(--text-muted);
}

.schedule-row strong {
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
}

.location-banner {
  background: linear-gradient(135deg, rgba(212, 175, 106, 0.1), rgba(28, 22, 18, 0.9));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.location-banner h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.location-banner p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Lightbox Dialog */
.lightbox {
  margin: auto;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--text-primary);
  max-width: min(92vw, 480px);
  overflow: hidden;
}

.lightbox::backdrop {
  background: rgba(5, 4, 3, 0.85);
  backdrop-filter: blur(6px);
}

.lightbox-inner {
  position: relative;
  display: grid;
}

.lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(11, 8, 7, 0.85);
  color: var(--text-primary);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.lightbox-caption {
  padding: 0.85rem 1.15rem;
  font-size: 0.9rem;
  color: var(--gold-300);
  text-align: center;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2rem 0 2.5rem;
  text-align: center;
  color: var(--text-subtle);
  font-size: 0.85rem;
}

@media (max-width: 860px) {
  .cake-card {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem;
  }

  .cake-card--reversed .cake-media,
  .cake-card--reversed .cake-details {
    order: initial;
  }

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

@media (max-width: 600px) {
  .site-nav {
    display: none;
  }

  .header-logo {
    width: 130px;
  }

  .hero {
    padding-top: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .thumb-btn,
  .btn-gold,
  .lang-btn {
    transition: none;
  }
}
