:root {
  --royal-blue: #1c2f6b;
  --royal-blue-bright: #3a56b0;
  --bamboo: #d7bd8c;
  --bamboo-light: #ecdcb8;
  --brass: #b8893f;
  --brass-bright: #e0ac5c;
  --moss: #4b5d3a;
  --charcoal: #17140f;
  --charcoal-soft: #241f18;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: radial-gradient(ellipse at center, var(--charcoal-soft) 0%, var(--charcoal) 70%);
  font-family: 'Cormorant Garamond', serif;
  color: var(--bamboo-light);
  overflow-x: hidden;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  position: relative;
}

body::before, body::after {
  content: "";
  position: fixed;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(75,93,58,0.35) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}
body::before { top: -100px; left: -100px; }
body::after { bottom: -100px; right: -100px; }

.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 620px;
  padding: 64px 48px;
  text-align: center;
  background-color: var(--bamboo);
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0px, rgba(255,255,255,0.05) 2px, transparent 2px, transparent 6px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,0.06) 0px, rgba(0,0,0,0.06) 2px, transparent 2px, transparent 6px);
  border: 2px solid var(--brass);
  border-radius: 4px;
  box-shadow:
    0 0 0 1px rgba(184,137,63,0.35),
    0 0 60px rgba(184,137,63,0.12),
    0 30px 60px rgba(0,0,0,0.55);
}

.ornament {
  color: var(--moss);
  font-size: 1.6rem;
  letter-spacing: 0.5em;
  margin-bottom: 18px;
  opacity: 0.85;
}

h1 {
  font-family: 'UnifrakturMaguntia', cursive;
  line-height: 1;
  margin: 0 0 6px;
  color: var(--royal-blue);
  text-shadow:
    0 1px 0 rgba(255,255,255,0.15),
    0 2px 8px rgba(184,137,63,0.45);
}

h1.big { font-size: 4.2rem; }
h1.small { font-size: 2.1rem; }

.subtitle {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 1.35rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal);
  opacity: 0.75;
  margin: 0 0 32px;
}

.divider {
  width: 140px;
  height: 2px;
  margin: 0 auto 32px;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
  position: relative;
}
.divider::before {
  content: "❦";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bamboo);
  padding: 0 12px;
  color: var(--moss);
  font-size: 1.1rem;
}

.tagline {
  font-size: 1.7rem;
  font-style: italic;
  color: var(--royal-blue);
  margin: 0 0 8px;
}

.sub-tagline {
  font-size: 1.15rem;
  color: var(--charcoal);
  opacity: 0.7;
  margin: 0 0 40px;
}

.footer {
  margin-top: 44px;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--charcoal);
  opacity: 0.55;
}

/* rabbit hole */
.hole-wrap {
  display: inline-block;
  text-decoration: none;
}

.rabbithole {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  margin: 0 auto;
  background: repeating-radial-gradient(
    circle at center,
    var(--charcoal) 0 6px,
    var(--brass) 6px 8px,
    var(--charcoal-soft) 8px 15px,
    var(--moss) 15px 17px
  );
  box-shadow:
    inset 0 0 45px rgba(0,0,0,0.9),
    0 0 10px rgba(184,137,63,0.25),
    0 0 40px rgba(184,137,63,0.15);
  animation: spin 22s linear infinite;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.hole-wrap:hover .rabbithole {
  box-shadow:
    inset 0 0 45px rgba(0,0,0,0.9),
    0 0 18px rgba(224,172,92,0.55),
    0 0 60px rgba(224,172,92,0.3);
  transform: scale(1.03);
}

.rabbithole.small {
  width: 90px;
  height: 90px;
  animation-duration: 16s;
}

.divider.small-divider {
  width: 90px;
  margin: 32px auto 24px;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hole-caption {
  margin-top: 18px;
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--moss);
  letter-spacing: 0.08em;
}

/* continue arrow (page 1) */
.continue-wrap {
  display: inline-block;
  text-decoration: none;
  margin-top: 12px;
}

.continue-ring {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 1px solid var(--brass);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: var(--brass-bright);
  font-size: 1.6rem;
  background: var(--charcoal);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.continue-wrap:hover .continue-ring {
  transform: translateY(4px);
  box-shadow: 0 0 22px rgba(224,172,92,0.4);
}

/* invite gate (page 2) */
.key-icon {
  font-size: 2.4rem;
  color: var(--brass);
  margin-bottom: 18px;
  display: block;
}

.invite-box {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  background: var(--charcoal);
  border: 1px solid var(--brass);
  border-radius: 3px;
  padding: 8px 8px 8px 20px;
  margin-top: 8px;
}

.invite-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--bamboo-light);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  width: 200px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.invite-box input::placeholder { color: rgba(236,220,184,0.4); }

.invite-box button {
  font-family: 'IM Fell English', serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
  background: var(--charcoal-soft);
  color: rgba(224,172,92,0.5);
  border: 1px solid var(--brass);
  border-radius: 2px;
  padding: 10px 20px;
  cursor: not-allowed;
}

.gate-note {
  margin-top: 24px;
  font-size: 0.95rem;
  color: var(--charcoal);
  opacity: 0.65;
  font-style: italic;
}

.scan-btn {
  font-family: 'IM Fell English', serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
  background: var(--royal-blue);
  color: var(--brass-bright);
  border: 1px solid var(--brass);
  border-radius: 2px;
  padding: 12px 30px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.scan-btn:hover { background: var(--royal-blue-bright); color: #fff; }

.camera-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,8,5,0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.camera-overlay.open { opacity: 1; pointer-events: auto; }

.camera-frame {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--brass);
  box-shadow: 0 0 40px rgba(184,137,63,0.4), inset 0 0 30px rgba(0,0,0,0.6);
}
.camera-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.camera-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: transparent;
  border: 1px solid var(--brass);
  color: var(--brass-bright);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.scan-status {
  margin-top: 22px;
  font-family: 'IM Fell English', serif;
  font-style: italic;
  color: var(--bamboo-light);
  font-size: 1.1rem;
  text-align: center;
  padding: 0 20px;
  max-width: 320px;
}

/* --- shop floor page --- */
body.shop-page {
  display: block;
  padding: 0;
  min-height: auto;
  background: linear-gradient(180deg, var(--charcoal) 0%, var(--charcoal-soft) 40%, #1c1712 100%);
}
body.shop-page::before, body.shop-page::after { display: none; }

.shop-header {
  text-align: center;
  padding: 48px 24px 18px;
}
.shop-header h1 { color: var(--brass-bright); text-shadow: 0 0 24px rgba(224,172,92,0.35); }
.shop-tag {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  color: var(--bamboo-light);
  opacity: 0.75;
  font-size: 1.1rem;
  margin: 6px 0 0;
}

.hanging-herbs {
  display: flex;
  justify-content: center;
  gap: 60px;
  padding: 10px 160px 0 24px;
  position: relative;
}
.hanging-herbs::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brass), var(--brass), transparent);
}
.herb-bundle {
  font-size: 1.6rem;
  margin-top: 22px;
  filter: drop-shadow(0 6px 6px rgba(0,0,0,0.5));
  opacity: 0.9;
}

.shelf-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 28px;
  margin-bottom: 44px;
  position: relative;
  z-index: 1;
}

.shelf-row::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brass), var(--brass), transparent);
}

.shelf-item {
  background-color: var(--bamboo);
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0px, rgba(255,255,255,0.05) 2px, transparent 2px, transparent 6px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,0.06) 0px, rgba(0,0,0,0.06) 2px, transparent 2px, transparent 6px);
  border: 1px solid var(--brass);
  border-radius: 3px;
  padding: 26px 16px 20px;
  text-align: center;
  box-shadow: 0 12px 24px rgba(0,0,0,0.35);
}

.item-icon { font-size: 2.2rem; margin-bottom: 10px; }

.item-label {
  font-family: 'IM Fell English', serif;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--charcoal);
}

.item-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--charcoal);
  opacity: 0.65;
  margin-top: 4px;
}

.shop-note {
  text-align: center;
  font-family: 'IM Fell English', serif;
  font-style: italic;
  color: var(--moss);
  opacity: 0.85;
  padding: 24px 24px 60px;
  position: relative;
  z-index: 1;
}

.shop-links-mobile {
  display: none;
}

@media (max-width: 700px), (hover: none) {
  .shop-links-mobile {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 1120px;
    margin: -20px auto 40px;
    padding: 0 24px;
    position: relative;
    z-index: 1;
  }
  .shop-links-mobile a {
    display: block;
    text-align: center;
    font-family: 'IM Fell English', serif;
    font-size: 1.05rem;
    color: var(--brass-bright);
    text-decoration: none;
    background: var(--charcoal);
    border: 1px solid var(--brass);
    border-radius: 6px;
    padding: 14px 18px;
    letter-spacing: 0.03em;
    transition: background 0.2s ease, border-color 0.2s ease;
  }
  .shop-links-mobile a:active {
    background: rgba(224,172,92,0.15);
    border-color: var(--brass-bright);
  }
  .shop-links-mobile .exit-link {
    color: var(--bamboo-light);
    opacity: 0.75;
    border-color: rgba(224,172,92,0.25);
    font-style: italic;
    font-size: 0.95rem;
  }
}

/* shop scene — illustrated interior with hover hotspots */
.shop-scene-wrap {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 30px auto 0;
  padding: 0 40px;
}

.shop-scene {
  position: relative;
  width: 100%;
  border: 2px solid var(--brass);
  border-radius: 4px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(184,137,63,0.35),
    0 0 60px rgba(184,137,63,0.12),
    0 30px 60px rgba(0,0,0,0.55);
}

.shop-photo {
  display: block;
  width: 100%;
  height: auto;
}

.hotspot {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px dashed rgba(224,172,92,0.3);
  border-radius: 8px;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.hotspot:hover {
  background: rgba(224,172,92,0.1);
  border-color: var(--brass-bright);
  box-shadow: inset 0 0 30px rgba(224,172,92,0.25);
}

.hotspot-label {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  background: var(--charcoal);
  color: var(--brass-bright);
  border: 1px solid var(--brass);
  border-radius: 3px;
  padding: 8px 14px;
  font-family: 'IM Fell English', serif;
  font-size: 0.9rem;
  line-height: 1.45;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}

.hotspot-label em {
  display: block;
  margin-top: 2px;
  color: var(--bamboo-light);
  font-style: italic;
  opacity: 0.8;
  font-size: 0.78rem;
}

.hotspot:hover .hotspot-label {
  opacity: 1;
  transform: translateY(0);
}

/* category product grid pages */
.category-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 70px;
  position: relative;
  z-index: 1;
}

.category-intro {
  text-align: center;
  margin-bottom: 8px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 260px));
  justify-content: center;
  gap: 30px;
  margin-top: 36px;
}

.product-card {
  background-color: var(--bamboo);
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0px, rgba(255,255,255,0.05) 2px, transparent 2px, transparent 6px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,0.06) 0px, rgba(0,0,0,0.06) 2px, transparent 2px, transparent 6px);
  border: 1px solid var(--brass);
  border-radius: 4px;
  padding: 18px 18px 20px;
  text-align: center;
  box-shadow: 0 12px 24px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--brass);
  margin-bottom: 14px;
  background: var(--charcoal);
}

.product-title {
  font-family: 'IM Fell English', serif;
  font-size: 1.02rem;
  color: var(--charcoal);
  line-height: 1.32;
  margin: 0 0 8px;
  flex-grow: 1;
}

.product-price {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--royal-blue);
  margin: 0 0 12px;
}

.product-link {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  color: var(--charcoal);
  text-decoration: none;
  border-top: 1px solid rgba(28,47,107,0.25);
  padding-top: 10px;
  opacity: 0.85;
}
.product-link:hover { color: var(--royal-blue); opacity: 1; }

.category-back {
  text-align: center;
  margin-top: 50px;
}

/* category placeholder pages */
.back-link {
  display: inline-block;
  margin-top: 36px;
  font-family: 'IM Fell English', serif;
  font-style: italic;
  color: var(--brass-bright);
  text-decoration: none;
  letter-spacing: 0.05em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.back-link:hover { border-color: var(--brass-bright); }
