/* ============================================================
   MANISH STUFF — Pre-Classifieds MVP
   Colors: locked to Brand Identity System (don't "improve")
   Type:   Playfair Display (heading) + Open Sans (body)
           Per Brand Identity System — web-safe alternative to
           GFS Franklin (heading) + Open Sans (body). Locked.
   ============================================================ */

:root {
  /* Base — locked */
  --charcoal: #2C2C2C;
  --ivory: #F2EFE7;
  --orange: #FF4500;
  --steel: #8C8C8C;
  --bronze: #B8860B;
  --rust: #A0522D;

  /* Dark mode surfaces — layered charcoal */
  --bg: #2C2C2C;          /* page background */
  --surface: #333333;      /* cards, inputs */
  --surface-2: #3a3a3a;    /* raised surfaces, hovers */
  --text: #F2EFE7;        /* primary text on dark */
  --text-dim: #b8b5ad;    /* secondary text on dark */
  --text-faint: #8C8C8C;  /* tertiary / labels */

  /* Convenience */
  --gap: 1.5rem;
  --maxw: 1200px;
  --radius: 6px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Open Sans", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}

h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--ivory); text-decoration: underline; }

/* ---------- Accessibility baseline ---------- */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-radius: 2px;
}
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
.reveal-pending {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-pending.is-revealed {
  opacity: 1; transform: translateY(0);
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: transparent;
  color: var(--ivory);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(140,140,140,0.3);
}
/* On the homepage, the header overlays the hero (full-bleed hero to top:0) */
.home .site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
}
.site-header .row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem; max-width: var(--maxw); margin: 0 auto;
}
.header-search {
  flex: 1; max-width: 360px;
  display: none;
}
.header-search input {
  width: 100%; padding: 0.55rem 1rem; font-size: 0.95rem;
  border: 1px solid rgba(242,239,231,0.3); border-radius: 50px;
  background: rgba(44,44,44,0.55); color: var(--ivory);
  font-family: inherit;
}
.header-search input::placeholder { color: rgba(242,239,231,0.55); }
.header-search input:focus { outline: none; border-color: var(--orange); background: rgba(44,44,44,0.75); }
.wordmark {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem; font-weight: 900; letter-spacing: -0.02em;
  color: var(--ivory);
}
.wordmark .man { color: var(--ivory); }
.wordmark .stuff { color: var(--orange); }
.wordmark .dash { color: var(--steel); }
nav.main a {
  color: var(--ivory); margin-left: 1.25rem; font-size: 0.95rem;
  letter-spacing: 0.02em; font-weight: 600;
}
nav.main a:hover { color: var(--orange); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--ivory);
  padding: 5rem 0 4rem;
  border-bottom: 1px solid rgba(140,140,140,0.4);
  overflow: hidden;
  isolation: isolate;
}
/* Homepage hero has the fixed header overlaying it — needs more top padding */
.home .hero { padding: 11rem 0 6rem; }
.hero-bg {
  position: absolute; inset: 0;
  background-image: url("../assets/Hero 2.png");
  background-size: cover; background-position: center;
  filter: saturate(1.05) contrast(1.05) sepia(0.08);
  transform: scale(1.04);
  transition: transform 12s ease-out;
  z-index: -2;
}
.hero-bg.is-loaded { transform: scale(1); }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(34,28,22,0.55) 0%, rgba(34,28,22,0.78) 60%, rgba(31,26,22,0.96) 100%),
    linear-gradient(90deg, rgba(34,28,22,0.65) 0%, rgba(34,28,22,0.12) 60%);
  z-index: -1;
}
.hero-content { position: relative; }
.hero-eyebrow {
  font-family: "Open Sans", sans-serif;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(8px);
}
.hero h1 {
  color: var(--ivory);
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  max-width: 16ch;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 24px rgba(0,0,0,0.6);
  opacity: 0;
  transform: translateY(16px);
}
.hero h1 em {
  color: var(--orange); font-style: normal;
  position: relative;
}
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -0.12em;
  height: 3px; background: var(--orange);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s;
}
.hero h1 { margin-bottom: 0.4em; }
.hero.is-revealed h1 em::after { transform: scaleX(1); }
.hero-sub {
  margin-top: 1.5rem; font-size: 1.2rem; color: rgba(242,239,231,0.85);
  max-width: 52ch;
  opacity: 0; transform: translateY(12px);
}
.hero.is-revealed .hero-eyebrow,
.hero.is-revealed h1,
.hero.is-revealed .hero-sub {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero.is-revealed .hero-eyebrow { transition-delay: 0.1s; }
.hero.is-revealed h1 { transition-delay: 0.25s; }
.hero.is-revealed .hero-sub { transition-delay: 0.45s; }
.hero .ctas { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Shared card hover behavior (consistent across all card types) ---------- */
.card, .post-card, .event-card, .cat-card, .buy-card, .sell-option {
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.18s ease,
              box-shadow 0.18s ease;
  will-change: transform;
}
.card:hover, .post-card:hover, .event-card:hover, .cat-card:hover, .buy-card:hover, .sell-option:hover {
  transform: translateY(-3px);
  border-color: var(--orange);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  text-decoration: none;
}
.cat-card:hover { border-color: var(--orange); }
.sell-option.secondary:hover { border-color: var(--steel); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 0.85rem 1.6rem;
  font-family: "Open Sans", sans-serif; font-weight: 700;
  letter-spacing: 0.03em; text-transform: uppercase; font-size: 0.85rem;
  border-radius: var(--radius); border: 2px solid transparent;
  transition: transform 0.12s ease, background 0.12s ease, color 0.12s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--orange); color: var(--ivory); }
.btn-primary:hover { background: #e63d00; color: var(--ivory); }
.btn-secondary { background: transparent; color: var(--ivory); border-color: var(--steel); }
.btn-secondary:hover { border-color: var(--orange); color: var(--orange); }
.btn-dark { background: var(--charcoal); color: var(--ivory); }
.btn-dark:hover { background: #1d1d1d; color: var(--ivory); }

/* ---------- Section scaffolding ---------- */
section { padding: 4rem 0; }
section + section { border-top: 1px solid #3a3a3a; }
.section-head { display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 2.5rem; gap: 1rem; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--text); }
.section-head a { font-size: 0.9rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; }

/* ---------- Category strip ---------- */
.categories {
  background: var(--bg);
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.cat-card {
  background: var(--surface); color: var(--text);
  padding: 1.5rem 1.25rem; border-radius: var(--radius);
  border-left: 4px solid var(--orange);
  transition: transform 0.12s ease, border-color 0.12s ease;
}
.cat-card:hover { text-decoration: none; }
.cat-card h3 { color: var(--text); font-size: 1.15rem; margin-bottom: 0.25rem; }
.cat-card span { color: var(--text-faint); font-size: 0.85rem; }

/* ---------- Listings grid ---------- */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}
.card {
  background: var(--surface); border: 1px solid #444;
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.card:hover { text-decoration: none; }
.card .thumb {
  aspect-ratio: 4 / 3; background: #1d1d1d;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-faint); font-family: "Playfair Display", serif; font-size: 1.5rem;
  position: relative; overflow: hidden;
}
.card .thumb .badge {
  position: absolute; top: 0.75rem; left: 0.75rem;
  background: var(--orange); color: var(--ivory);
  font-size: 0.7rem; font-weight: 700; padding: 0.25rem 0.6rem;
  border-radius: 3px; letter-spacing: 0.03em; text-transform: uppercase;
}
.card .heart {
  position: absolute; top: 0.75rem; right: 0.75rem;
  width: 36px; height: 36px; background: rgba(0,0,0,0.6);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--ivory); font-size: 1.1rem; cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
  z-index: 2;
}
.card .heart:hover { color: var(--orange); background: rgba(0,0,0,0.8); transform: scale(1.1); }
.card .body { padding: 1.1rem 1.25rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card .card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; margin-bottom: 0.35rem;
}
.card .cat { color: var(--text-dim); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.verified-badge {
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--bronze);
  border: 1px solid rgba(184,134,11,0.5);
  border-radius: 3px; padding: 0.15rem 0.4rem;
  line-height: 1;
  flex-shrink: 0;
}
.verified-badge svg { color: var(--bronze); }
.card h3 { font-size: 1.15rem; margin: 0.35rem 0 0.5rem; line-height: 1.3; }
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--ivory); text-decoration: none; }
.card .summary { color: var(--text-dim); font-size: 0.95rem; flex: 1; }
.card .meta { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; }
.card .price { font-family: "Playfair Display", serif; font-size: 1.4rem; font-weight: 700; color: var(--text); }
.card .location { color: var(--text-faint); font-size: 0.8rem; }

/* ---------- Story section ---------- */
.story {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120' fill='none'%3E%3Cg stroke='%23FF4500' stroke-width='1.5' stroke-linecap='round' opacity='0.10'%3E%3Cpath d='M20 20 L52 52'/%3E%3Cpath d='M20 52 L52 20'/%3E%3Ccircle cx='20' cy='20' r='8' fill='none'/%3E%3Ccircle cx='52' cy='20' r='4' fill='none'/%3E%3Ccircle cx='20' cy='52' r='4' fill='none'/%3E%3Cpath d='M80 80 L112 112'/%3E%3Cpath d='M80 112 L112 80'/%3E%3Ccircle cx='112' cy='112' r='8' fill='none'/%3E%3Ccircle cx='112' cy='80' r='4' fill='none'/%3E%3Ccircle cx='80' cy='112' r='4' fill='none'/%3E%3C/g%3E%3C/svg%3E") center / 240px 240px,
    #1d1d1d;
  color: var(--ivory);
}
.story h2 { color: var(--ivory); }
.story p { color: var(--text-dim); max-width: 62ch; margin-bottom: 1.25rem; }
.story .pullquote {
  font-family: "Playfair Display", serif; font-size: 1.6rem;
  color: var(--ivory); border-left: 3px solid var(--steel);
  padding-left: 1.25rem; margin: 2rem 0;
}

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid #444; padding: 1.1rem 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; color: var(--text); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+ "; color: var(--ivory); font-weight: 700; }
.faq details[open] summary::before { content: "— "; }
.faq p { margin-top: 0.75rem; color: var(--text-dim); max-width: 70ch; }

/* ---------- Contact ---------- */
.contact { background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-info p { margin-bottom: 0.75rem; }
.contact-info .label { color: var(--text-dim); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.contact-info .val { color: var(--ivory); font-weight: 600; }
.contact-info .val a { color: var(--ivory); }
.contact-info .val a:hover { color: var(--orange); }
.contact form { display: grid; gap: 0.85rem; background: var(--surface); padding: 1.75rem; border-radius: var(--radius); border: 1px solid #444; border-top: 4px solid var(--orange); }
.contact label { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ivory); }
.contact input, .contact textarea, .contact select {
  padding: 0.85rem; border: 1px solid #555; border-radius: var(--radius);
  font-family: inherit; font-size: 1rem; background: var(--bg); color: var(--ivory);
}
.contact input::placeholder, .contact textarea::placeholder { color: var(--text-faint); }
.contact input:focus, .contact textarea:focus, .contact select:focus { outline: none; border-color: var(--orange); }
.contact-info h2 { font-size: 1.5rem; color: var(--ivory); margin-bottom: 1.25rem; }
.contact form { gap: 0.85rem; }
.contact form h2 { font-size: 1.5rem; color: var(--ivory); margin-bottom: 1.25rem; }
.contact form label { margin-top: 0.5rem; }
.contact form .btn { margin-top: 0.75rem; }
.contact-note {
  margin-top: 1rem; font-size: 0.8rem; color: var(--text-faint); line-height: 1.5;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #1d1d1d; color: var(--text-faint);
  padding: 2.5rem 0; border-top: 3px solid var(--orange);
}
.site-footer .row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.site-footer a { color: var(--ivory); }
.site-footer .small { font-size: 0.85rem; }

/* ---------- Product detail page ---------- */
.product-detail { padding: 3rem 0; }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.product-image {
  aspect-ratio: 4 / 3; background: #1d1d1d; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-faint); font-family: "Playfair Display", serif; font-size: 2rem;
}
.product-info h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.5rem; color: var(--text); }
.product-info .cat { color: var(--text-dim); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.product-info .price { font-family: "Playfair Display", serif; font-size: 2.2rem; font-weight: 700; color: var(--text); margin: 1rem 0; }
.product-info .price small { font-size: 0.9rem; color: var(--text-faint); font-weight: 400; }
.spec-table { width: 100%; margin: 1.5rem 0; border-collapse: collapse; }
.spec-table th, .spec-table td { padding: 0.65rem 0; border-bottom: 1px solid #444; text-align: left; font-size: 0.95rem; }
.spec-table th { color: var(--text-faint); font-weight: 600; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.05em; width: 40%; }
.spec-table td { color: var(--text); font-weight: 600; }
.product-story { margin-top: 1.5rem; padding: 1.5rem; background: var(--surface); border-left: 3px solid var(--steel); border-radius: 0 var(--radius) var(--radius) 0; }
.product-story h3 { margin-bottom: 0.5rem; font-size: 1.1rem; color: var(--text); }
.product-story p { color: var(--text-dim); }
.back-link { display: inline-block; margin-bottom: 1.5rem; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text); }

/* ---------- Blog ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.post-card {
  background: var(--surface); border: 1px solid #444;
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.post-card:hover { text-decoration: none; }
.post-card .thumb {
  aspect-ratio: 16 / 9; background: #1d1d1d;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-faint); font-family: "Playfair Display", serif; font-size: 1.5rem;
  position: relative;
}
.post-card .thumb .tag {
  position: absolute; bottom: 0.75rem; left: 0.75rem;
  background: var(--steel); color: var(--ivory);
  font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.55rem;
  border-radius: 3px; letter-spacing: 0.04em; text-transform: uppercase;
}
.post-card .body { padding: 1.25rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.post-card .date { color: var(--text-faint); font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; }
.post-card h3 { font-size: 1.3rem; margin: 0.5rem 0 0.75rem; line-height: 1.3; }
.post-card h3 a { color: var(--text); }
.post-card h3 a:hover { color: var(--ivory); text-decoration: none; }
.post-card .excerpt { color: var(--text-dim); font-size: 0.95rem; flex: 1; }
.post-card .more { margin-top: 1rem; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text); }

/* ---------- Single post ---------- */
.post-article { padding: 3rem 0; }
.post-article .container { max-width: 720px; }
.post-article .meta { color: var(--text-faint); font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.75rem; }
.post-article .meta .tag { color: var(--text-dim); font-weight: 700; margin-right: 0.75rem; }
.post-article h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 1.5rem; line-height: 1.15; color: var(--text); }
.post-article .lead {
  font-family: "Playfair Display", serif; font-size: 1.25rem;
  color: var(--text); line-height: 1.5; margin-bottom: 2rem;
  border-left: 3px solid var(--orange); padding-left: 1.25rem;
}
.post-article p { margin-bottom: 1.25rem; color: var(--text-dim); }
.post-article h2 { font-size: 1.6rem; margin: 2.5rem 0 1rem; color: var(--text); }
.post-article blockquote {
  margin: 2rem 0; padding: 1.25rem 1.5rem;
  background: var(--surface); border-left: 3px solid var(--steel);
  font-family: "Playfair Display", serif; font-size: 1.15rem;
  color: var(--text); font-style: italic;
}
.post-article .post-nav {
  margin-top: 3rem; padding-top: 2rem; border-top: 1px solid #444;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.post-article .post-nav a { font-size: 0.9rem; font-weight: 600; color: var(--text); }

/* ---------- Merch ---------- */
.merch-card .options {
  font-size: 0.8rem; color: var(--steel);
  letter-spacing: 0.04em; text-transform: uppercase;
  margin-top: 0.5rem;
}
.btn-small { padding: 0.55rem 0.95rem; font-size: 0.75rem; }
.merch-card .thumb { cursor: default; }

/* ---------- Events / Community ---------- */
.event-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}
.event-card {
  background: var(--surface); border: 1px solid #444;
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.event-card:hover { text-decoration: none; }
.event-thumb {
  aspect-ratio: 16 / 9; background: #1d1d1d;
  width: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-faint); font-family: "Playfair Display", serif; font-size: 1.1rem;
  position: relative; padding: 1rem; text-align: center;
}
.event-thumb .badge {
  position: absolute; top: 0.75rem; left: 0.75rem;
  font-size: 0.7rem; font-weight: 700; padding: 0.25rem 0.6rem;
  border-radius: 3px; letter-spacing: 0.04em; text-transform: uppercase;
}
.event-thumb .badge.upcoming { background: var(--orange); color: var(--ivory); }
.event-thumb .badge.past { background: var(--steel); color: var(--ivory); }
.event-card .body { padding: 1.4rem 1.5rem 1.6rem; }
.event-card .date { color: var(--text-faint); font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; }
.event-card h3 { font-size: 1.35rem; margin: 0.5rem 0 0.75rem; line-height: 1.3; color: var(--text); }
.event-card .location { color: var(--text-faint); font-size: 0.9rem; margin-bottom: 0.75rem; }
.event-card .summary { color: var(--text-dim); margin-bottom: 1rem; }
.event-details { border-top: 1px solid #444; padding-top: 1rem; margin-top: 0.5rem; }
.event-details summary {
  cursor: pointer; font-weight: 700; font-size: 0.95rem;
  color: var(--text); letter-spacing: 0.04em; text-transform: uppercase;
  list-style: none;
}
.event-details summary::-webkit-details-marker { display: none; }
.event-details summary::before { content: "+ "; color: var(--ivory); }
.event-details[open] summary::before { content: "— "; }
.event-details p { margin-top: 0.85rem; color: var(--text-dim); line-height: 1.6; }
.event-contact { font-size: 0.9rem; }
.empty-state {
  color: var(--text-faint); padding: 2rem; text-align: center;
  border: 1px dashed #555; border-radius: var(--radius);
}

/* ---------- How it works (sell pages) ---------- */
.howitworks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.step {
  background: var(--surface); border: 1px solid #444;
  border-radius: var(--radius); padding: 1.75rem 1.5rem;
  border-top: 3px solid var(--orange);
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--bg); color: var(--ivory);
  font-family: "Playfair Display", serif; font-weight: 900; font-size: 1.1rem;
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.2rem; margin-bottom: 0.5rem; color: var(--text); }
.step p { color: var(--text-dim); font-size: 0.95rem; }
.contact select {
  padding: 0.85rem; border: 1px solid #555; border-radius: var(--radius);
  font-family: inherit; font-size: 1rem; background: var(--surface); color: var(--text);
  cursor: pointer;
}
.contact select:focus { outline: none; border-color: var(--orange); }

/* ---------- Hamburger nav (hidden on desktop) ---------- */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 0.5rem; margin-left: auto;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--ivory);
  margin: 5px 0; transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Sticky mobile CTA on product pages ---------- */
.mobile-cta {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #1d1d1d; padding: 0.75rem 1rem;
  border-top: 2px solid var(--orange); z-index: 90;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.4);
}
.mobile-cta .btn { width: 100%; text-align: center; padding: 1rem; }

/* ---------- Mobile marketplace layout (hidden on desktop) ---------- */
.header-search { display: block; }
.mobile-cat-section {
  display: none;
}
.cat-row {
  display: flex; gap: 0.25rem;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding: 0 0.5rem 0.5rem; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  width: 100%;
}
.cat-row::-webkit-scrollbar { display: none; }
.cat-row-card {
  flex: 0 0 44vw;
  max-width: 240px;
  min-width: 160px;
  scroll-snap-align: start;
  background: var(--surface); border: 1px solid #444;
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
}
.cat-row-card .thumb {
  aspect-ratio: 1 / 1; background: #1d1d1d;
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-faint); font-family: "Playfair Display", serif; font-size: 1rem;
  padding: 0.5rem; text-align: center;
}
.cat-row-card .badge {
  position: absolute; top: 0.5rem; left: 0.5rem;
  background: var(--orange); color: var(--ivory);
  font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.5rem;
  border-radius: 2px; letter-spacing: 0.03em; text-transform: uppercase;
}
.cat-row-card .body { padding: 0.75rem 0.85rem 0.85rem; }
.cat-row-card h3 { font-size: 1.5rem; line-height: 1.2; margin-bottom: 0.35rem; color: var(--text); }
.cat-row-card .price { font-family: "Playfair Display", serif; font-size: 1.5rem; font-weight: 700; color: var(--text); line-height: 1; }
.cat-row-card .heart {
  position: absolute; top: 0.5rem; right: 0.5rem;
  width: 32px; height: 32px; background: rgba(0,0,0,0.6);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--ivory); font-size: 1rem; cursor: pointer;
}
.mobile-cat-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 1.25rem 1rem 0.75rem;
}
.mobile-cat-head h2 { font-size: 1.5rem; color: var(--text); }
.mobile-cat-head a { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--text); }

/* Bottom nav (thumb-reachable) */
.bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #1d1d1d; border-top: 1px solid #444;
  z-index: 95;
  display: none;
}
.bottom-nav-inner {
  display: grid; grid-template-columns: repeat(5, 1fr);
  max-width: var(--maxw); margin: 0 auto;
}
.bottom-nav a {
  color: var(--text-dim); text-align: center; padding: 0.6rem 0.25rem 0.7rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.01em;
  display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
  min-height: 56px; justify-content: center;
  transition: color 0.15s ease;
}
.bottom-nav a:hover { color: var(--ivory); text-decoration: none; }
.bottom-nav a svg {
  color: currentColor;
  transition: color 0.15s ease, transform 0.15s ease;
}
.bottom-nav a:hover svg { transform: translateY(-1px); }
.bottom-nav a.active { color: var(--ivory); }
.bottom-nav a.active svg { color: var(--orange); }

/* ---------- Account page ---------- */
.account-auth {
  max-width: 480px; margin: 0 auto;
}
.auth-card {
  background: var(--surface); border: 1px solid #444;
  border-radius: var(--radius); padding: 2rem;
  border-top: 4px solid var(--orange);
}
.auth-card h2 { font-size: 1.5rem; color: var(--ivory); margin-bottom: 0.5rem; }
.auth-card p { color: var(--text-dim); margin-bottom: 1.25rem; }
.auth-card form { display: grid; gap: 0.85rem; }
.auth-card label {
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ivory);
}
.auth-card input {
  padding: 0.85rem; border: 1px solid #555; border-radius: var(--radius);
  font-family: inherit; font-size: 1rem; background: var(--bg); color: var(--ivory);
}
.auth-card input:focus { outline: none; border-color: var(--orange); }
.auth-card input::placeholder { color: var(--text-faint); }
.auth-card .btn { margin-top: 0.5rem; }
.auth-switch {
  margin-top: 1.5rem; margin-bottom: 0; font-size: 0.9rem;
}
.auth-switch a { color: var(--orange); font-weight: 700; }
.auth-note {
  margin-top: 1.5rem; font-size: 0.8rem; color: var(--text-faint);
  text-align: center; line-height: 1.5;
}

.account-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1rem; margin-bottom: 2.5rem; flex-wrap: wrap;
  padding-bottom: 1.5rem; border-bottom: 1px solid #444;
}
.account-greeting {
  color: var(--text-faint); font-size: 0.8rem; letter-spacing: 0.04em;
  text-transform: uppercase; font-weight: 700; margin-bottom: 0.25rem;
}
.account-head h2 { font-size: 2rem; color: var(--ivory); }
.account-email { color: var(--text-dim); font-size: 0.95rem; margin-top: 0.25rem; }

.account-tabs {
  display: flex; gap: 0.5rem; margin-bottom: 2rem; border-bottom: 1px solid #444;
}
.account-tab {
  background: transparent; border: none; cursor: pointer;
  font-family: inherit; font-size: 0.95rem; font-weight: 700;
  letter-spacing: 0.02em; color: var(--text-dim);
  padding: 0.85rem 1.25rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.account-tab:hover { color: var(--ivory); }
.account-tab.active { color: var(--ivory); border-bottom-color: var(--orange); }

.account-tab-content { display: none; }
.account-tab-content.active { display: block; }

#profile-form { display: grid; gap: 0.85rem; max-width: 480px; }
#profile-form label {
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ivory);
}
#profile-form input {
  padding: 0.85rem; border: 1px solid #555; border-radius: var(--radius);
  font-family: inherit; font-size: 1rem; background: var(--bg); color: var(--ivory);
}
#profile-form input:focus { outline: none; border-color: var(--orange); }
#profile-form input:disabled { color: var(--text-faint); cursor: not-allowed; }

/* ---------- Buy hub ---------- */
.buy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}
.buy-card {
  background: var(--surface); border: 1px solid #444;
  border-radius: var(--radius); padding: 2rem 1.75rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  border-top: 4px solid var(--orange);
}
.buy-card:hover { text-decoration: none; }
.buy-icon {
  color: var(--steel);
  margin-bottom: 0.5rem;
  transition: color 0.18s ease;
}
.buy-card:hover .buy-icon { color: var(--orange); }
.buy-card h3 {
  font-size: 1.35rem; color: var(--text); line-height: 1.25;
}
.buy-card p {
  color: var(--text-dim); font-size: 0.95rem; flex: 1;
}
.buy-card .buy-count {
  color: var(--text-faint); font-size: 0.8rem;
  letter-spacing: 0.04em; text-transform: uppercase; font-weight: 700;
}
.buy-card .buy-go {
  color: var(--ivory); font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  margin-top: 0.5rem;
  transition: color 0.18s ease;
}
.buy-card:hover .buy-go { color: var(--orange); }

/* ---------- Sell page two-option layout ---------- */
.sell-options {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
  margin-top: 2.5rem;
}
.sell-option {
  background: var(--surface); border: 1px solid #444;
  border-radius: var(--radius); padding: 2rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.sell-option.primary { border-top: 4px solid var(--orange); }
.sell-option.secondary { border-top: 4px solid var(--steel); }
.sell-option h2 { font-size: 1.5rem; color: var(--ivory); }
.sell-option p { color: var(--text-dim); font-size: 0.95rem; }
.sell-option .btn { margin-top: auto; align-self: flex-start; }
.sell-option .perks { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.sell-option .perks li { color: var(--text-dim); font-size: 0.9rem; padding: 0.25rem 0; padding-left: 1.25rem; position: relative; }
.sell-option .perks li::before { content: "✓"; color: var(--orange); position: absolute; left: 0; font-weight: 700; }
.sell-option.secondary .perks li::before { color: var(--steel); }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  /* Hamburger nav */
  .nav-toggle { display: block; }
  nav.main {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #1d1d1d; border-bottom: 1px solid #444;
    padding: 1rem 1.5rem; flex-direction: column; gap: 0.25rem;
  }
  nav.main.open { display: flex; }
  nav.main a {
    margin-left: 0; padding: 0.85rem 0; font-size: 1rem;
    border-bottom: 1px solid #333; min-height: 44px;
    display: flex; align-items: center;
  }
  nav.main a:last-child { border-bottom: none; }

  /* Pin search to top of homepage */
  .header-search { display: block; flex: 1; max-width: none; }
  .header-search input {
    padding: 0.7rem 1rem; font-size: 16px;
    background: rgba(44,44,44,0.6);
  }

  /* Mobile marketplace: show carousels, hide desktop grid */
  .mobile-cat-section { display: block; }
  #listings .container > .section-head,
  #listings .container > .listings-grid { display: none; }
  body { padding-bottom: 60px; } /* space for bottom nav */

  /* Hero — tighter, punchier */
  .hero { padding: 4rem 0 3rem; }
  .home .hero { padding: 7rem 0 3rem; }
  .hero-bg { background-position: 65% center; }
  .hero h1 { font-size: clamp(1.9rem, 7.5vw, 2.75rem); }
  .hero-sub { font-size: 1rem; }
  .hero-eyebrow { font-size: 0.7rem; letter-spacing: 0.14em; }
  .hero .ctas { flex-direction: column; }
  .hero .ctas .btn { width: 100%; text-align: center; padding: 1rem; min-height: 48px;
    display: flex; align-items: center; justify-content: center; }

  /* Bottom nav — thumb-reachable */
  .bottom-nav { display: block; }

  /* Sections — tighter spacing */
  section { padding: 2rem 0; }
  .section-head { margin-bottom: 1.5rem; }
  .section-head h2 { font-size: clamp(1.4rem, 5vw, 1.8rem); }
  .section-head a { font-size: 0.8rem; }

  /* Category strip — single column */
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .cat-card { padding: 1.25rem 1rem; }

  /* Other grids stay single column */
  .post-grid, .event-grid, .howitworks, .sell-options {
    grid-template-columns: 1fr; gap: 1.25rem;
  }

  /* Cards — bigger tap targets, more thumb-friendly */
  .card .thumb { aspect-ratio: 16 / 9; }
  .card .body { padding: 1rem; }
  .card h3 { font-size: 1.1rem; }
  .card .price { font-size: 1.25rem; }
  .card .thumb .badge { top: 0.5rem; left: 0.5rem; }

  /* Buttons — 44px+ tap targets */
  .btn { padding: 0.95rem 1.4rem; font-size: 0.85rem; min-height: 44px;
    display: inline-flex; align-items: center; justify-content: center; }
  .btn-small { padding: 0.75rem 1rem; min-height: 40px; }

  /* Contact/sell forms — single column, touch-friendly */
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact input, .contact textarea, .contact select {
    padding: 1rem; font-size: 16px;
    min-height: 48px;
  }
  .contact label { margin-top: 0.5rem; }
  .contact button[type="submit"] { padding: 1.1rem; min-height: 52px; }

  /* Product detail — single column, image on top */
  .product-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .product-image { aspect-ratio: 16 / 9; font-size: 1.5rem; }
  .product-info h1 { font-size: clamp(1.6rem, 5vw, 2rem); }
  .product-info .price { font-size: 1.8rem; margin: 0.75rem 0; }
  .spec-table th, .spec-table td { padding: 0.55rem 0; font-size: 0.9rem; }
  .product-story { padding: 1.25rem; }

  /* Sticky mobile CTA on product pages */
  .mobile-cta { display: block; bottom: 56px; /* sits above bottom nav */ }
  .product-detail { padding-bottom: 6rem; }

  /* Blog post — readable on phone */
  .post-article { padding: 2rem 0; }
  .post-article h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
  .post-article .lead { font-size: 1.1rem; padding-left: 1rem; }
  .post-article h2 { font-size: 1.4rem; margin: 2rem 0 0.75rem; }
  .post-article blockquote { padding: 1rem 1.25rem; font-size: 1.05rem; }
  .post-article .post-nav { flex-direction: column; gap: 0.75rem; }

  /* Event cards — portrait poster image on mobile */
  .event-thumb { aspect-ratio: 9 / 16; font-size: 1rem; padding: 0.75rem; }
  .event-card .body { padding: 1.1rem 1.25rem 1.3rem; }
  .event-card h3 { font-size: 1.2rem; }

  /* Footer — stacked, readable, space for bottom nav */
  .site-footer { padding-bottom: 4.5rem; }
  .site-footer .row { flex-direction: column; gap: 1rem; }
  .site-footer .small { font-size: 0.85rem; line-height: 1.8; }

  /* Step cards on sell pages */
  .step { padding: 1.25rem; }
  .step h3 { font-size: 1.1rem; }

  /* Story section */
  .story .pullquote { font-size: 1.3rem; padding-left: 1rem; }
}

/* ---------- Small phones (<=380px) ---------- */
@media (max-width: 380px) {
  .cat-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.75rem; }
  body { font-size: 16px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-pending,
  .hero-eyebrow,
  .hero h1,
  .hero-sub,
  .hero h1 em::after {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-bg { transform: none !important; transition: none !important; }
}