﻿:root {
  color-scheme: dark;
  --bg: #10101A;
  --surface: #1D1716;
  --surface-strong: #231A1A;
  --surface-soft: rgba(197, 161, 90, 0.08);
  --text: #F2E6CF;
  --muted: #D8C3A5;
  --accent: #C5A15A;
  --accent-soft: #72548C;
  --accent-hover: #8A6BA8;
  --border: rgba(197, 161, 90, 0.24);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Georgia, "Times New Roman", serif;
  background: radial-gradient(circle at top, rgba(197, 161, 90, 0.12), transparent 30%),
    radial-gradient(circle at 80% 10%, rgba(114, 84, 140, 0.18), transparent 24%),
    var(--bg);
  color: var(--text);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

.site-header {
  background: rgba(20, 18, 25, 0.95);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.inner-wrap {
  width: min(1120px, 100% - 32px);
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  gap: 16px;
  align-items: center;
}

.site-logo {
  width: 60px;
  height: 60px;
  min-width: 60px;
  min-height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid var(--accent);
  overflow: hidden;
  position: relative;
  background: rgba(255, 250, 235, 0.04);
}

.site-logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}

.site-logo-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--accent);
  font-size: 1.8rem;
  font-weight: 700;
}

.site-logo.logo-loaded .site-logo-image {
  display: block;
}

.site-logo.logo-loaded .site-logo-placeholder {
  display: none;
}

.brand .eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.brand h1 {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2.4rem);
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  background: rgba(255, 255, 255, 0.04);
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--accent);
  border-color: var(--accent-hover);
  color: #111;
  transform: translateY(-1px);
}

.cart-count {
  display: inline-flex;
  min-width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--accent);
  color: #111;
  font-weight: 700;
  justify-content: center;
  align-items: center;
  margin-left: 8px;
}

.page-content {
  width: min(1120px, 100% - 32px);
  margin: 0 auto;
  padding: 32px 0 64px;
}

.hero {
  background: linear-gradient(180deg, rgba(16, 16, 26, 0.95), rgba(16, 16, 26, 0.82)),
    radial-gradient(circle at top left, rgba(197, 161, 90, 0.16), transparent 38%),
    radial-gradient(circle at bottom right, rgba(114, 84, 140, 0.14), transparent 34%);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 72px 40px;
  text-align: center;
}

.about-content-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 42px 40px;
  background: rgba(255, 250, 235, 0.04);
  border: 1px solid rgba(197, 161, 90, 0.2);
  border-radius: 32px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}

.about-content-card .section-intro {
  margin-top: 0;
}

.about-content-card .about-section {
  margin-bottom: 3.5rem;
}

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

.about-content-card h2,
.about-content-card h3,
.about-content-card p {
  text-align: left;
}

.about-content-card h2 {
  margin: 0 0 1.5rem;
}

.about-content-card h3 {
  margin: 3rem 0 1rem;
  line-height: 1.45;
}

.about-content-card p {
  max-width: 100%;
  margin: 0 0 1.75rem;
  line-height: 1.95;
}

.about-content-card p:last-child {
  margin-bottom: 0;
}

.merchant-note-card {
  background: rgba(197, 161, 90, 0.06);
  border-color: rgba(197, 161, 90, 0.24);
}

.hero-copy {
  max-width: 760px;
  margin: 0 auto;
}

.section-intro {
  margin-top: 48px;
}

.section-intro h2,
.section-intro h3 {
  margin: 0;
}

.section-intro h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  color: var(--accent);
  text-align: center;
}

.section-intro p {
  max-width: 760px;
  margin: 16px auto 0;
  color: var(--muted);
  text-align: center;
  font-size: 1rem;
}

.hero-buttons,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

.grid {
  display: grid;
  gap: 24px;
  margin-top: 32px;
}

.collection-preview-grid,
.tier-preview-grid,
.featured-grid,
.review-grid,
.collections-grid,
.tiers-grid,
.product-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 26px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.15);
}

.card h3 {
  color: var(--accent);
  margin: 0 0 10px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.merchant-guide-intro {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.merchant-guide-list {
  display: grid;
  gap: 18px;
}

.faq-card {
  background: rgba(255, 250, 235, 0.04);
  border: 1px solid rgba(197, 161, 90, 0.18);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 55px rgba(0, 0, 0, 0.14);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 1.05rem;
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.faq-question:hover,
.faq-card.open .faq-question {
  background: rgba(255, 250, 235, 0.08);
}

.faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(197, 161, 90, 0.18);
  color: var(--accent);
  font-weight: 700;
  transition: transform 0.3s ease, background-color 0.25s ease;
}

.faq-card.open .faq-icon {
  transform: rotate(45deg);
  background: var(--accent);
  color: #111;
}

.faq-answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  padding: 0 32px;
}

.faq-card.open .faq-answer {
  opacity: 1;
  padding-bottom: 26px;
}

.faq-answer p {
  margin: 0;
  line-height: 1.95;
  color: var(--muted);
}

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

.collection-card,
.tier-card,
.review-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.collection-icon,
.tier-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgba(197, 161, 90, 0.16);
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 20px;
}

.product-icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: rgba(197, 161, 90, 0.16);
  display: grid;
  place-items: center;
  font-size: 2rem;
}

.product-icon-large {
  width: 120px;
  height: 120px;
  font-size: 3rem;
}

.product-image {
  width: 100%;
  min-height: 160px;
  display: grid;
  gap: 8px;
}

.product-image img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--border);
}

.image-placeholder-card {
  display: grid;
  place-items: center;
  color: var(--muted);
  padding: 18px;
  border-radius: 12px;
  border: 1px dashed rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}

.product-copy h3 {
  margin-top: 0;
}

.product-copy p {
  margin: 14px 0 16px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.96rem;
}

.product-actions,
.collection-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

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

.button-primary {
  background: var(--accent);
  color: #111;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.tier-card .collection-count,
.collection-card .collection-count,
.review-card footer {
  color: var(--muted);
  margin-top: 20px;
}

.reviews-section .review-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.product-detail-card {
  display: grid;
  gap: 32px;
}

.product-detail-primary {
  display: grid;
  gap: 28px;
}

.product-detail-main {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: 24px;
  align-items: start;
}

.product-gallery {
  display: grid;
  gap: 14px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.gallery-item img {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.image-placeholder {
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 32px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 22px;
}

.product-detail-meta h3 {
  margin-top: 0;
}

.product-detail-meta section {
  margin-top: 24px;
}

.product-detail-meta section:first-child {
  margin-top: 0;
}

.price-detail {
  color: var(--accent);
  font-size: 1.2rem;
  margin: 10px 0;
}

.availability {
  font-style: italic;
  color: var(--muted);
  margin-top: 12px;
}

/* ── Inventory stock notices ────────────────────────────── */
.stock-notice {
  font-size: 0.85rem;
  margin-top: 10px;
  padding: 6px 10px;
  border-radius: 6px;
  line-height: 1.4;
}

.stock-notice--out {
  background: rgba(201, 169, 110, 0.08);
  border: 1px solid rgba(201, 169, 110, 0.25);
  color: var(--gold, #c9a96e);
  font-style: italic;
}

.stock-notice--available {
  background: rgba(100, 200, 120, 0.08);
  border: 1px solid rgba(100, 200, 120, 0.25);
  color: #72a880;
  font-style: italic;
}

.stock-notice--low {
  background: rgba(245, 200, 66, 0.08);
  border: 1px solid rgba(245, 200, 66, 0.3);
  color: #d4a80a;
}

ul {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

li {
  margin-bottom: 10px;
}

.callout {
  background: rgba(197, 161, 90, 0.1);
  border: 1px solid rgba(197, 161, 90, 0.18);
  border-radius: 24px;
  padding: 28px;
}

.cart-items {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.cart-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 120px auto;
  gap: 16px;
  align-items: center;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
}

.cart-row h3 {
  margin: 0 0 8px;
}

.cart-row p {
  margin: 4px 0;
}

.cart-quantity {
  display: grid;
  gap: 8px;
}

.cart-price {
  font-weight: 700;
  color: var(--accent);
}

input[type="number"],
input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

select {
  appearance: none;
}

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

.form-grid {
  display: grid;
  gap: 24px;
  margin-top: 32px;
}

.results-text {
  margin-top: 14px;
  color: var(--muted);
  text-align: center;
}

.form-group {
  display: grid;
  gap: 10px;
}

.form-group label {
  font-size: 0.95rem;
  color: var(--text);
}

.contact-message {
  margin-top: 18px;
  color: var(--muted);
}

.site-footer {
  background: rgba(20, 18, 25, 0.95);
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.site-footer .inner-wrap {
  justify-content: center;
  text-align: center;
}

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

.toast-notice {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(12px);
  padding: 14px 22px;
  border-radius: 999px;
  background: rgba(20, 18, 25, 0.96);
  border: 1px solid var(--accent);
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast-notice.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 900px) {
  .inner-wrap,
  .page-content {
    width: min(100%, 100% - 24px);
  }

  .product-detail-primary,
  .product-detail-main {
    grid-template-columns: 1fr;
  }

  .cart-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .nav-links {
    justify-content: center;
  }

  .hero {
    padding: 60px 24px;
  }

  .grid,
  .product-grid,
  .collection-preview-grid,
  .tier-preview-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }
}
/* ==========================
   Mobile Navigation
========================== */

.menu-toggle {
  display: none;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 1.3rem;
}

@media (max-width: 768px) {

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 16px;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    justify-content: center;
  }

}

/* Helpful Pages search results */

.helpful-pages-summary {
  margin: 0 0 16px;
  font-size: 0.95rem;
}

/* Scoped so the results read left-aligned inside the centred section wrapper */
#helpful-pages-results p {
  max-width: none;
  margin: 0 0 16px;
  text-align: left;
}

#helpful-pages-results p:last-child {
  margin-bottom: 0;
}

.helpful-pages-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.helpful-pages-list li {
  margin: 0;
}

.helpful-page-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface-soft);
  color: var(--text);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.helpful-page-link:hover,
.helpful-page-link:focus-visible {
  border-color: var(--accent);
  background: rgba(197, 161, 90, 0.14);
  transform: translateY(-2px);
}

.helpful-page-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.helpful-page-copy {
  display: grid;
  gap: 4px;
  flex: 1;
}

.helpful-page-title {
  color: var(--accent);
  font-size: 1.05rem;
}

.helpful-page-blurb {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.helpful-page-hint {
  color: var(--accent-hover);
  font-size: 0.85rem;
  font-style: italic;
}

.helpful-page-arrow {
  color: var(--accent);
  flex-shrink: 0;
  opacity: 0.7;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.helpful-page-link:hover .helpful-page-arrow,
.helpful-page-link:focus-visible .helpful-page-arrow {
  transform: translateX(4px);
  opacity: 1;
}

@media (max-width: 768px) {

  .helpful-page-link {
    padding: 14px;
    gap: 12px;
  }

  .helpful-page-arrow {
    display: none;
  }

}
/* ==========================================================
   🕯️ From the Merchant's Desk
   Pages left upon the desk — parchment, candlelight and ink.
   Scoped entirely to .desk-* so nothing else is affected.
========================================================== */

.desk-section {
  margin-top: 64px;
}

.desk-subtitle {
  font-style: italic;
}

.desk-entries {
  width: min(760px, 100%);
  margin: 40px auto 0;
  display: grid;
  gap: 34px;
}

.desk-entry {
  position: relative;
  padding: 46px 40px 34px;
  border: 1px solid rgba(197, 161, 90, 0.26);
  border-radius: 6px 18px 8px 20px;
  color: var(--text);
  background-image:
    /* faint ruled lines, as though the page were torn from a notebook */
    repeating-linear-gradient(
      to bottom,
      transparent 0 37px,
      rgba(197, 161, 90, 0.06) 37px 38px
    ),
    /* candlelight pooling at the top of the page */
    radial-gradient(circle at 18% -10%, rgba(197, 161, 90, 0.14), transparent 46%),
    radial-gradient(circle at 92% 108%, rgba(114, 84, 140, 0.12), transparent 42%),
    linear-gradient(170deg, rgba(255, 246, 226, 0.07), rgba(255, 246, 226, 0.035));
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.34),
    inset 0 0 60px rgba(0, 0, 0, 0.18);
  transition: transform 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease;
}

/* Each page rests at a slightly different angle, as papers do */
.desk-entry:nth-child(odd)  { transform: rotate(-0.35deg); }
.desk-entry:nth-child(even) { transform: rotate(0.4deg); }

.desk-entry:hover,
.desk-entry:focus-within {
  transform: rotate(0deg) translateY(-4px);
  border-color: rgba(197, 161, 90, 0.44);
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.42),
    inset 0 0 60px rgba(0, 0, 0, 0.12);
}

/* A small drop of wax holding the page down */
.desk-pin {
  position: absolute;
  top: 16px;
  left: 50%;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, rgba(255, 226, 168, 0.95), var(--accent) 58%, rgba(120, 88, 40, 0.9));
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45), 0 0 14px rgba(197, 161, 90, 0.35);
}

.desk-entry-header {
  text-align: center;
  margin-bottom: 22px;
}

.desk-entry-date {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Headings keep the site's existing typography */
.desk-entry-title {
  margin: 0;
  color: var(--accent);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  line-height: 1.4;
}

/* The Merchant's own hand — used only for the entries themselves */
.desk-entry-body,
.desk-entry-signoff {
  font-family: "Caveat", "Segoe Script", "Bradley Hand", cursive;
  font-size: clamp(1.35rem, 1rem + 0.9vw, 1.6rem);
  line-height: 1.75;
  letter-spacing: 0.012em;
  color: #F6EDDA;
}

.desk-entry-body p {
  margin: 0 0 18px;
  max-width: none;
  text-align: left;
}

.desk-entry-body p:last-child {
  margin-bottom: 0;
}

.desk-entry-signoff {
  margin: 26px 0 0;
  text-align: right;
  color: var(--muted);
}

/* Reserved for a future pinned entry (Merchant Dashboard) */
.desk-entry--pinned {
  border-color: rgba(197, 161, 90, 0.5);
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.4),
    inset 0 0 60px rgba(0, 0, 0, 0.16),
    0 0 0 1px rgba(197, 161, 90, 0.14);
}

.desk-entry-pinned-note {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-hover);
  font-size: 0.8rem;
  font-style: italic;
  letter-spacing: 0.08em;
}

.desk-closing {
  margin-top: 32px;
  font-style: italic;
  font-size: 0.92rem;
  opacity: 0.85;
}

/* Gentle fade-in on scroll — only armed once JavaScript is present,
   so entries are never left invisible if the script fails to run. */
.desk-entries.reveal-ready .desk-entry {
  opacity: 0;
  transition: opacity 0.9s ease, transform 0.9s ease, box-shadow 0.45s ease, border-color 0.45s ease;
}

.desk-entries.reveal-ready .desk-entry:nth-child(odd) {
  transform: rotate(-0.35deg) translateY(22px);
}

.desk-entries.reveal-ready .desk-entry:nth-child(even) {
  transform: rotate(0.4deg) translateY(22px);
}

.desk-entries.reveal-ready .desk-entry.is-visible:nth-child(odd) {
  opacity: 1;
  transform: rotate(-0.35deg);
}

.desk-entries.reveal-ready .desk-entry.is-visible:nth-child(even) {
  opacity: 1;
  transform: rotate(0.4deg);
}

@media (max-width: 680px) {
  .desk-section {
    margin-top: 48px;
  }

  .desk-entries {
    gap: 26px;
  }

  .desk-entry {
    padding: 40px 22px 28px;
  }

  /* Straighten the pages on small screens so nothing crowds the edges */
  .desk-entry:nth-child(odd),
  .desk-entry:nth-child(even),
  .desk-entries.reveal-ready .desk-entry.is-visible:nth-child(odd),
  .desk-entries.reveal-ready .desk-entry.is-visible:nth-child(even) {
    transform: rotate(0deg);
  }

  .desk-entries.reveal-ready .desk-entry:nth-child(odd),
  .desk-entries.reveal-ready .desk-entry:nth-child(even) {
    transform: translateY(18px);
  }

  .desk-entry:hover,
  .desk-entry:focus-within {
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .desk-entry,
  .desk-entries.reveal-ready .desk-entry {
    transition: none;
  }

  .desk-entries.reveal-ready .desk-entry,
  .desk-entries.reveal-ready .desk-entry.is-visible {
    opacity: 1;
  }

  .desk-entry:hover,
  .desk-entry:focus-within {
    transform: none;
  }

  .desk-entries.reveal-ready .desk-entry:nth-child(odd),
  .desk-entries.reveal-ready .desk-entry.is-visible:nth-child(odd) {
    transform: rotate(-0.35deg);
  }

  .desk-entries.reveal-ready .desk-entry:nth-child(even),
  .desk-entries.reveal-ready .desk-entry.is-visible:nth-child(even) {
    transform: rotate(0.4deg);
  }
}

/* ==========================================================
   ✨ Featured Treasure
   One curiosity lifted into the candlelight — gilt frame,
   a faint sparkle and the Merchant's own hand beneath it.
   Scoped entirely to .featured-treasure* so nothing else is affected.
========================================================== */

.featured-treasure-section {
  margin-top: 64px;
}

.featured-treasure-intro {
  font-style: italic;
}

.featured-treasure-stage {
  width: min(980px, 100%);
  margin: 40px auto 0;
}

.featured-treasure {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 40px;
  align-items: center;
  padding: 46px;
  border: 1px solid rgba(197, 161, 90, 0.34);
  border-radius: 28px;
  background-image:
    /* candlelight gathering at the top of the alcove */
    radial-gradient(circle at 12% -8%, rgba(197, 161, 90, 0.16), transparent 44%),
    radial-gradient(circle at 88% 106%, rgba(114, 84, 140, 0.16), transparent 44%),
    linear-gradient(170deg, rgba(255, 246, 226, 0.06), rgba(255, 246, 226, 0.025));
  background-color: var(--surface);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.34),
    0 0 42px rgba(197, 161, 90, 0.07),
    inset 0 0 70px rgba(0, 0, 0, 0.16);
  transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
}

/* A second, finer rule inside the border — the gilt line of a display case */
.featured-treasure::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(197, 161, 90, 0.16);
  border-radius: 20px;
  pointer-events: none;
}

.featured-treasure:hover,
.featured-treasure:focus-within {
  border-color: rgba(197, 161, 90, 0.5);
  box-shadow:
    0 30px 72px rgba(0, 0, 0, 0.42),
    0 0 60px rgba(197, 161, 90, 0.12),
    inset 0 0 70px rgba(0, 0, 0, 0.12);
}

/* Two small marks of the Merchant's approval, resting in the corners */
.featured-treasure-sparkle {
  position: absolute;
  color: var(--accent);
  font-size: 0.85rem;
  opacity: 0.4;
  pointer-events: none;
  animation: featured-treasure-shimmer 7s ease-in-out infinite;
}

.featured-treasure-sparkle--start {
  top: 20px;
  left: 22px;
}

.featured-treasure-sparkle--end {
  bottom: 20px;
  right: 22px;
  animation-delay: 3.5s;
}

@keyframes featured-treasure-shimmer {
  0%, 100% { opacity: 0.28; }
  50%      { opacity: 0.72; }
}

/* ── The treasure itself ─────────────────────────────────── */
.featured-treasure-frame {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(197, 161, 90, 0.3);
  border-radius: 22px;
  background: rgba(255, 250, 235, 0.04);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
}

.featured-treasure:hover .featured-treasure-frame,
.featured-treasure:focus-within .featured-treasure-frame {
  transform: translateY(-6px);
  border-color: rgba(197, 161, 90, 0.48);
  box-shadow:
    0 26px 54px rgba(0, 0, 0, 0.38),
    0 0 34px rgba(197, 161, 90, 0.14);
}

.featured-treasure-image {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.featured-treasure:hover .featured-treasure-image {
  transform: scale(1.03);
}

.featured-treasure-frame .featured-treasure-placeholder {
  grid-area: 1 / 1;
  margin: 0;
  max-width: 100%;
  padding: 24px;
  color: var(--muted);
  font-size: 0.95rem;
  font-style: italic;
  text-align: center;
}

/* ── The Merchant's words ────────────────────────────────── */
.featured-treasure-copy {
  min-width: 0;
}

.featured-treasure-copy p {
  max-width: none;
  margin: 0;
  text-align: left;
}

.featured-treasure-copy .featured-treasure-eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.featured-treasure-season {
  color: var(--accent-hover);
}

.featured-treasure-name {
  margin: 10px 0 0;
  color: var(--accent);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.3;
}

.featured-treasure-copy .featured-treasure-description {
  margin-top: 14px;
  color: var(--muted);
}

.featured-treasure-copy .featured-treasure-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.96rem;
}

.featured-treasure-copy .featured-treasure-price {
  margin-top: 20px;
  color: var(--text);
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}

.featured-treasure-price-label {
  display: block;
  margin-bottom: 2px;
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Written in the Merchant's own hand, as the desk entries are */
.featured-treasure-note {
  margin-top: 26px;
  padding-left: 22px;
  border-left: 1px solid rgba(197, 161, 90, 0.28);
  font-family: "Caveat", "Segoe Script", "Bradley Hand", cursive;
  font-size: clamp(1.3rem, 1rem + 0.8vw, 1.5rem);
  line-height: 1.7;
  color: #F6EDDA;
}

.featured-treasure-copy .featured-treasure-note p {
  margin: 0 0 14px;
  color: inherit;
}

.featured-treasure-copy .featured-treasure-note p:last-child {
  margin-bottom: 0;
}

.featured-treasure-copy .featured-treasure-signoff {
  margin-top: 14px;
  padding-left: 22px;
  font-family: "Caveat", "Segoe Script", "Bradley Hand", cursive;
  font-size: clamp(1.2rem, 1rem + 0.6vw, 1.35rem);
  color: var(--muted);
}

.featured-treasure-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.featured-treasure-section .featured-treasure-closing {
  margin-top: 32px;
  font-style: italic;
  font-size: 0.92rem;
  opacity: 0.85;
}

/* Gentle fade-in on scroll — only armed once JavaScript is present,
   so the treasure is never left invisible if the script fails to run. */
.featured-treasure-section.reveal-ready .featured-treasure {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease, box-shadow 0.5s ease, border-color 0.5s ease;
}

.featured-treasure-section.reveal-ready .featured-treasure.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .featured-treasure {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 32px;
  }

  .featured-treasure-frame {
    width: min(380px, 100%);
    margin: 0 auto;
    aspect-ratio: 1 / 1;
  }

  .featured-treasure-copy .featured-treasure-eyebrow,
  .featured-treasure-copy .featured-treasure-name,
  .featured-treasure-copy .featured-treasure-price {
    text-align: center;
  }

  .featured-treasure-meta,
  .featured-treasure-actions {
    justify-content: center;
  }
}

@media (max-width: 680px) {
  .featured-treasure-section {
    margin-top: 48px;
  }

  .featured-treasure {
    padding: 34px 22px;
    border-radius: 22px;
  }

  .featured-treasure::before {
    inset: 9px;
    border-radius: 16px;
  }

  .featured-treasure-sparkle--start {
    top: 14px;
    left: 15px;
  }

  .featured-treasure-sparkle--end {
    bottom: 14px;
    right: 15px;
  }

  .featured-treasure-note,
  .featured-treasure-signoff {
    padding-left: 16px;
  }

  .featured-treasure-actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .featured-treasure,
  .featured-treasure-frame,
  .featured-treasure-image,
  .featured-treasure-section.reveal-ready .featured-treasure {
    transition: none;
  }

  .featured-treasure-section.reveal-ready .featured-treasure,
  .featured-treasure-section.reveal-ready .featured-treasure.is-visible {
    opacity: 1;
    transform: none;
  }

  .featured-treasure:hover .featured-treasure-frame,
  .featured-treasure:focus-within .featured-treasure-frame,
  .featured-treasure:hover .featured-treasure-image {
    transform: none;
  }

  .featured-treasure-sparkle {
    animation: none;
    opacity: 0.4;
  }
}

/* ==========================================================
   ✦ Traveller's Keepings
   Account pages: register/sign in/reset, and the Keepings hub
   (Satchel, Map, Messages, Preferences). Scoped to .account-*
   and .form-error/.form-success/.hidden so nothing else is affected.
========================================================== */

.hidden {
  display: none !important;
}

.form-group--checkbox label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.form-group--checkbox input[type="checkbox"] {
  width: auto;
}

.form-error {
  color: #e08a8a;
  font-size: 0.9rem;
  margin: 4px 0 0;
}

.form-success {
  color: #72a880;
  font-size: 0.9rem;
  margin: 4px 0 0;
}

.account-nav-link {
  border: 1px solid rgba(197, 161, 90, 0.3) !important;
}

.merchant-nav-link {
  border: 1px solid rgba(197, 161, 90, 0.3) !important;
  color: var(--accent) !important;
}

.account-hub-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.account-hub-header h2 {
  margin: 0;
  color: var(--accent);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.merchant-welcome-card {
  margin-bottom: 32px;
  text-align: center;
}

.account-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
}

.account-sidebar {
  display: grid;
  gap: 8px;
  position: sticky;
  top: 96px;
}

.account-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.account-nav-item:hover {
  transform: translateY(-1px);
  border-color: var(--border);
}

.account-nav-item.active {
  background: var(--accent);
  border-color: var(--accent-hover);
  color: #111;
}

.account-nav-item .nav-icon {
  font-size: 1.1rem;
}

.account-main {
  min-width: 0;
}

.panel-header {
  margin-bottom: 24px;
}

.panel-header h3 {
  margin: 0;
  color: var(--accent);
}

.panel-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
}

.satchel-grid,
.map-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.messages-list {
  display: grid;
  gap: 18px;
  margin-top: 8px;
}

.message-card {
  display: grid;
  gap: 10px;
}

.message-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.order-badge {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(197, 161, 90, 0.16);
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.message-date {
  color: var(--muted);
  font-size: 0.85rem;
}

.message-items {
  margin: 0;
  color: var(--text);
}

.message-status {
  margin: 0;
  color: var(--muted);
  font-style: italic;
}

@media (max-width: 900px) {
  .account-layout {
    grid-template-columns: 1fr;
  }

  .account-sidebar {
    position: static;
    display: flex;
    flex-wrap: wrap;
  }

  .account-nav-item {
    width: auto;
    flex: 1 1 auto;
    justify-content: center;
  }
}
