/* ============================================================
   PROMOLOOT — warm editorial design system
   Light ivory / ink / marigold · dark warm charcoal mode
   Mobile-first · vanilla CSS · no frameworks
   Theming via CSS variables: :root = light,
   html[data-theme="dark"] overrides.
   ============================================================ */

:root {
  --bg: #faf7f0;
  --bg-soft: #f2ecdf;
  --bg-raised: #ffffff;
  --ink: #1b1512;
  --ink-dim: #5c5348;
  --ink-faint: #8d8272;
  --marigold: #d97706;
  --marigold-deep: #b45309;
  --marigold-soft: rgba(217, 119, 6, 0.12);
  --grad: linear-gradient(115deg, #d97706, #b45309 70%);
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.85);
  --stroke: rgba(27, 21, 18, 0.12);
  --stroke-soft: rgba(27, 21, 18, 0.07);
  --radius: 18px;
  --radius-sm: 12px;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;
  --shadow-pop: 0 24px 60px -20px rgba(180, 83, 9, 0.35);
  --shadow-card: 0 10px 30px -12px rgba(27, 21, 18, 0.18);
  --header-h: 68px;
}

html[data-theme="dark"] {
  --bg: #161210;
  --bg-soft: #1e1815;
  --bg-raised: #241d17;
  --ink: #f3ead9;
  --ink-dim: #c9bba4;
  --ink-faint: #8f8271;
  --marigold: #e8930c;
  --marigold-deep: #d97706;
  --marigold-soft: rgba(232, 147, 12, 0.14);
  --glass: rgba(36, 29, 23, 0.62);
  --glass-strong: rgba(36, 29, 23, 0.88);
  --stroke: rgba(243, 234, 217, 0.14);
  --stroke-soft: rgba(243, 234, 217, 0.08);
  --shadow-pop: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  --shadow-card: 0 10px 30px -12px rgba(0, 0, 0, 0.55);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
}

/* warm paper grain over the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(120, 84, 40, 0.055) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, black 25%, transparent 92%);
  -webkit-mask-image: linear-gradient(to bottom, black 25%, transparent 92%);
}
html[data-theme="dark"] body::before {
  background-image: radial-gradient(rgba(232, 180, 100, 0.05) 1px, transparent 1px);
}

::selection { background: rgba(217, 119, 6, 0.32); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

.container {
  width: min(1180px, 100% - 40px);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.14;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--grad);
  color: #fffdf8;
  box-shadow: var(--shadow-pop);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost {
  border-color: var(--stroke);
  color: var(--ink);
  background: var(--glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--marigold); color: var(--marigold-deep); }
html[data-theme="dark"] .btn-ghost:hover { color: var(--marigold); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  background: var(--glass);
  border-bottom: 1px solid var(--stroke-soft);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 14px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  margin-right: auto;
}
.wordmark .bolt {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--grad);
  box-shadow: 0 6px 18px -6px rgba(180, 83, 9, 0.65);
}
.wordmark .bolt svg { width: 17px; height: 17px; fill: #fffdf8; }
.wordmark em { font-style: normal; }
.wordmark em span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}

.nav-desktop { display: none; align-items: center; gap: 26px; }
.nav-desktop a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-dim);
  transition: color 0.2s;
  position: relative;
}
.nav-desktop a:hover { color: var(--marigold-deep); }
html[data-theme="dark"] .nav-desktop a:hover { color: var(--marigold); }

.header-cta { margin-left: 4px; }

/* theme toggle — small round button */
.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--stroke);
  background: var(--glass);
  display: grid;
  place-items: center;
  transition: border-color 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--marigold); transform: rotate(12deg); }
.theme-toggle svg { width: 18px; height: 18px; stroke: var(--ink-dim); fill: none; stroke-width: 1.8; stroke-linecap: round; }
.theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.menu-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: var(--glass);
}
.menu-btn svg { width: 20px; height: 20px; stroke: var(--ink); stroke-width: 2; fill: none; stroke-linecap: round; }

.mobile-nav {
  display: none;
  position: sticky;
  top: var(--header-h);
  z-index: 49;
  background: var(--glass-strong);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--stroke-soft);
  padding: 10px 20px 16px;
  flex-direction: column;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 11px 4px;
  font-weight: 600;
  color: var(--ink-dim);
  border-bottom: 1px solid var(--stroke-soft);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--marigold-deep); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  padding: 72px 0 30px;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.orb-a { width: 420px; height: 420px; background: #e9a13b; top: -140px; left: -120px; opacity: 0.28; }
.orb-b { width: 360px; height: 360px; background: #d97706; top: 40px; right: -120px; opacity: 0.2; }
.orb-c { width: 260px; height: 260px; background: #b45309; bottom: -120px; left: 38%; opacity: 0.16; }
html[data-theme="dark"] .orb { opacity: 0.16; }

.hero-grid {
  display: grid;
  gap: 44px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-copy { max-width: 42rem; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  border: 1px solid var(--stroke);
  background: var(--glass);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 12px var(--marigold);
}
.hero h1 {
  font-size: clamp(2.7rem, 8.5vw, 4.4rem);
  font-weight: 800;
  margin-bottom: 18px;
}
.hero h1 .grad-text { font-style: italic; }
.hero .sub {
  font-size: clamp(1.02rem, 2.6vw, 1.2rem);
  color: var(--ink-dim);
  max-width: 34rem;
  margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats {
  display: flex; gap: 34px; margin-top: 40px; flex-wrap: wrap;
}
.hero-stats div b { display: block; font-family: var(--font-display); font-size: 1.5rem; }
.hero-stats div span { font-size: 0.82rem; color: var(--ink-faint); }

.hero-visual { position: relative; min-height: 420px; }
.hero-main-img {
  width: 100%;
  max-width: 400px;
  margin-inline: auto;
  border-radius: 22px;
  box-shadow: var(--shadow-pop);
  border: 1px solid var(--stroke-soft);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--glass-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 10px 16px 10px 10px;
  box-shadow: var(--shadow-card);
  animation: floaty 6s ease-in-out infinite;
}
.float-card img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.float-card b { display: block; font-size: 0.82rem; }
.float-card span { font-size: 0.74rem; color: var(--ink-faint); }
.float-1 { top: 8%; left: 2%; }
.float-2 { bottom: 10%; right: 2%; animation-delay: -3s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------------- Festival countdown strip ---------------- */
.countdown-strip {
  border-top: 1px solid var(--stroke-soft);
  border-bottom: 1px solid var(--stroke-soft);
  background: var(--bg-soft);
  padding: 14px 0;
  position: relative;
  z-index: 1;
}
.countdown-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.countdown-row::-webkit-scrollbar { display: none; }
.countdown-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-raised);
  border: 1px solid var(--stroke-soft);
  border-radius: 999px;
  padding: 8px 18px 8px 10px;
  font-size: 0.85rem;
  white-space: nowrap;
}
.cd-days {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: #fffdf8;
  background: var(--grad);
  border-radius: 999px;
  padding: 4px 12px;
}
.cd-name { font-weight: 700; }
.cd-date { color: var(--ink-faint); font-size: 0.78rem; }

/* ---------------- Sections ---------------- */
.section { padding: 64px 0 8px; position: relative; z-index: 1; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 30px;
}
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.section-head h2 .grad-text { font-style: italic; }
.section-head p { color: var(--ink-dim); margin-top: 8px; max-width: 36rem; }
.link-more {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--marigold-deep);
  white-space: nowrap;
  border-bottom: 2px solid var(--marigold-soft);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}
html[data-theme="dark"] .link-more { color: var(--marigold); }
.link-more:hover { border-color: var(--marigold); }

/* ---------------- Featured card ---------------- */
.featured-card {
  display: grid;
  gap: 0;
  background: var(--bg-raised);
  border: 1px solid var(--stroke-soft);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.featured-media { position: relative; }
.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3.4;
  transition: transform 0.6s ease;
}
.featured-card:hover .featured-media img { transform: scale(1.03); }
.live-badge {
  position: absolute;
  top: 18px; left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(22, 16, 10, 0.72);
  color: #fff8ec;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.pulse {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #f5a524;
  animation: pulseGlow 1.8s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 165, 36, 0.7); }
  50% { box-shadow: 0 0 0 9px rgba(245, 165, 36, 0); }
}
.featured-body { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; }
.featured-body h3 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); margin: 14px 0 12px; }
.featured-body .desc { color: var(--ink-dim); font-size: 1.02rem; margin-bottom: 18px; }
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
  color: var(--ink-faint);
  font-size: 0.86rem;
  margin-bottom: 24px;
}
.meta-row svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; vertical-align: -2px; margin-right: 6px; }
.meta-row a { color: var(--marigold-deep); font-weight: 700; }
html[data-theme="dark"] .meta-row a { color: var(--marigold); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--marigold-deep);
  background: var(--marigold-soft);
  border: 1px solid rgba(217, 119, 6, 0.25);
  padding: 5px 13px;
  border-radius: 999px;
}
html[data-theme="dark"] .tag { color: var(--marigold); }

/* ---------------- Post cards ---------------- */
.post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}
.post-card {
  background: var(--bg-raised);
  border: 1px solid var(--stroke-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  display: flex;
  flex-direction: column;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-pop); }
.card-media { position: relative; overflow: hidden; }
.card-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.55s ease;
}
.post-card:hover .card-media img { transform: scale(1.06); }
.pill {
  position: absolute;
  top: 14px; left: 14px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(22, 16, 10, 0.72);
  color: #fff8ec;
  padding: 6px 14px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-size: 1.28rem; line-height: 1.3; }
.card-body h3 a { transition: color 0.2s; }
.card-body h3 a:hover { color: var(--marigold-deep); }
.card-date { font-size: 0.8rem; color: var(--ink-faint); font-weight: 600; letter-spacing: 0.04em; }
.card-desc { color: var(--ink-dim); font-size: 0.94rem; flex: 1; }

/* ---------------- Category strip & heroes ---------------- */
.cat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--bg-raised);
  font-weight: 700;
  font-size: 0.9rem;
  transition: border-color 0.2s, transform 0.2s;
}
.cat-chip:hover { border-color: var(--marigold); transform: translateY(-2px); }
.cat-chip .count {
  font-size: 0.75rem;
  font-weight: 800;
  color: #fffdf8;
  background: var(--grad);
  border-radius: 999px;
  padding: 2px 10px;
}
.cat-hero, .page-hero {
  position: relative;
  padding: 64px 0 10px;
  z-index: 1;
}
.cat-hero h1, .page-hero h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin: 16px 0 12px; }
.cat-hero p, .page-hero p { color: var(--ink-dim); max-width: 40rem; font-size: 1.05rem; }

/* ---------------- Social CTA ---------------- */
.social-cta {
  text-align: center;
  background: var(--bg-raised);
  border: 1px solid var(--stroke-soft);
  border-radius: 26px;
  padding: clamp(36px, 6vw, 64px) clamp(24px, 5vw, 60px);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.social-cta::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--grad);
}
.social-cta h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin: 18px 0 10px; }
.social-cta h2 .grad-text { font-style: italic; }
.social-cta p { color: var(--ink-dim); max-width: 34rem; margin: 0 auto 26px; }
.brand-icon {
  width: 60px; height: 60px;
  margin: 0 auto;
  display: grid; place-items: center;
  border-radius: 20px;
  background: var(--grad);
  box-shadow: var(--shadow-pop);
}
.brand-icon svg { width: 30px; height: 30px; fill: #fffdf8; }
.handle {
  display: inline-block;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--marigold-deep);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
html[data-theme="dark"] .handle { color: var(--marigold); }

/* ---------------- Footer ---------------- */
.site-footer {
  margin-top: 90px;
  border-top: 1px solid var(--stroke-soft);
  background: var(--bg-soft);
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding: 54px 0 40px;
}
.footer-brand p { color: var(--ink-dim); font-size: 0.94rem; margin: 14px 0 20px; max-width: 26rem; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  transition: border-color 0.2s, transform 0.2s;
}
.footer-social a:hover { border-color: var(--marigold); transform: translateY(-2px); }
.footer-social svg { width: 19px; height: 19px; fill: var(--ink-dim); }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 16px;
}
.footer-col a { display: block; padding: 6px 0; color: var(--ink-dim); font-size: 0.94rem; }
.footer-col a:hover { color: var(--marigold-deep); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  padding: 22px 0 28px;
  border-top: 1px solid var(--stroke-soft);
  font-size: 0.85rem;
  color: var(--ink-faint);
}
.disclaimer { font-style: italic; }

/* ---------------- Post page ---------------- */
.post-hero { margin: 34px 0 8px; position: relative; z-index: 1; }
.post-hero-img {
  width: 100%;
  max-height: 78vh;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--stroke-soft);
}
.post-head { max-width: 780px; margin: 34px auto 8px; text-align: left; }
.post-head h1 { font-size: clamp(2rem, 5.4vw, 3.1rem); margin: 18px 0 16px; }
.lede {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2.6vw, 1.35rem);
  line-height: 1.55;
  color: var(--ink-dim);
}

.article {
  max-width: 780px;
  margin: 30px auto 0;
  font-size: 1.04rem;
  color: var(--ink);
}
.article > * + * { margin-top: 1.25em; }
.article h2 {
  font-size: clamp(1.5rem, 3.4vw, 1.9rem);
  margin-top: 2.2em;
  padding-top: 0.4em;
  border-top: 2px solid var(--marigold-soft);
}
.article h3 { font-size: 1.25rem; margin-top: 1.8em; color: var(--marigold-deep); }
html[data-theme="dark"] .article h3 { color: var(--marigold); }
.article p { color: var(--ink); }
.article ul, .article ol { padding-left: 1.4em; color: var(--ink); }
.article li + li { margin-top: 0.5em; }
.article strong { color: var(--ink); }
.article blockquote {
  border-left: 4px solid var(--marigold);
  background: var(--marigold-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 24px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.12rem;
  color: var(--ink);
}
.article a { color: var(--marigold-deep); font-weight: 700; border-bottom: 1px solid var(--marigold-soft); }
html[data-theme="dark"] .article a { color: var(--marigold); }

/* ---------------- Prompt box ---------------- */
.prompt-box {
  max-width: 780px;
  margin: 54px auto 0;
  background: #1c1611;
  border: 1px solid rgba(217, 119, 6, 0.4);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(217, 119, 6, 0.12), 0 24px 60px -24px rgba(180, 83, 9, 0.5);
}
.prompt-box-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(243, 234, 217, 0.12);
}
.prompt-box-head h2 {
  color: #f7efdd;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.prompt-box-head h2 svg { width: 20px; height: 20px; fill: #e8930c; }
.prompt-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--grad);
  color: #fffdf8;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 20px;
  border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.copy-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px -10px rgba(217, 119, 6, 0.8); }
.copy-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; }
.copy-btn.copied { background: #2e7d4f; }
.prompt-box-head .btn-ghost {
  border-color: rgba(243, 234, 217, 0.25);
  color: #f7efdd;
  background: transparent;
}
.prompt-text {
  padding: 26px 28px 30px;
  color: #e8dcc4;
  font-size: 0.96rem;
  line-height: 1.75;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  white-space: pre-wrap;
}

/* ---------------- Instagram DM CTA ---------------- */
.dm-cta {
  max-width: 780px;
  margin: 34px auto 0;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  border-radius: 20px;
  background: #1c1611;
  border: 1px solid rgba(220, 39, 67, 0.45);
  box-shadow: 0 0 0 1px rgba(220, 39, 67, 0.12), 0 24px 60px -24px rgba(188, 24, 136, 0.5);
}
.dm-cta-icon {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  box-shadow: 0 8px 24px -8px rgba(220, 39, 67, 0.7);
}
.dm-cta-icon svg { width: 28px; height: 28px; fill: #fff; }
.dm-cta-text { flex: 1 1 auto; }
.dm-cta-text h3 { color: #f7efdd; font-size: 1.15rem; margin-bottom: 6px; }
.dm-cta-text p { color: #cbbfa5; font-size: 0.92rem; line-height: 1.6; }
.dm-cta-text p b { color: #f7efdd; }
.dm-cta-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.dm-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(220, 39, 67, 0.8); }
@media (max-width: 640px) {
  .dm-cta { flex-direction: column; text-align: center; padding: 26px 22px; }
}

/* ---------------- Share row ---------------- */
.share-row { max-width: 780px; margin: 46px auto 0; }
.share-row h3 { font-size: 1.3rem; margin-bottom: 16px; }
.share-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--bg-raised);
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--ink-dim);
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.share-btn:hover { border-color: var(--marigold); color: var(--marigold-deep); transform: translateY(-2px); }
html[data-theme="dark"] .share-btn:hover { color: var(--marigold); }
.share-btn svg { width: 16px; height: 16px; fill: currentColor; }
.share-btn.copied { border-color: #2e7d4f; color: #2e7d4f; }

/* ---------------- Prev / next ---------------- */
.prev-next {
  max-width: 780px;
  margin: 54px auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.pn-card {
  display: block;
  background: var(--bg-raised);
  border: 1px solid var(--stroke-soft);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.pn-card:hover { border-color: var(--marigold); transform: translateY(-2px); }
.pn-card small {
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
}
.pn-card b { font-family: var(--font-display); font-size: 1.08rem; line-height: 1.35; }

/* ---------------- Prompt library ---------------- */
.search-wrap {
  position: relative;
  max-width: 560px;
  margin: 26px 0 34px;
}
.search-wrap svg {
  position: absolute;
  left: 18px; top: 50%;
  transform: translateY(-50%);
  width: 19px; height: 19px;
  stroke: var(--ink-faint);
  fill: none;
  stroke-width: 2;
}
.search-wrap input {
  width: 100%;
  padding: 15px 20px 15px 50px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--bg-raised);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-wrap input:focus { border-color: var(--marigold); box-shadow: 0 0 0 4px var(--marigold-soft); }
.search-wrap input::placeholder { color: var(--ink-faint); }

.prompt-lib-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  padding-bottom: 70px;
}
.prompt-card {
  background: var(--bg-raised);
  border: 1px solid var(--stroke-soft);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.prompt-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }
.prompt-card h3 { font-size: 1.3rem; }
.snippet { color: var(--ink-dim); font-size: 0.94rem; }
.full-prompt {
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--ink-faint);
  background: var(--bg-soft);
  border: 1px dashed var(--stroke);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.no-results {
  display: none;
  text-align: center;
  color: var(--ink-dim);
  font-size: 1.05rem;
  padding: 40px 0 70px;
}

/* ---------------- Prose pages ---------------- */
.prose-narrow { max-width: 760px; padding-bottom: 70px; }
.prose-narrow > * + * { margin-top: 1.2em; }
.prose-narrow h2 { font-size: 1.6rem; margin-top: 2em; }
.prose-narrow p, .prose-narrow li { color: var(--ink-dim); }
.prose-narrow ul { padding-left: 1.4em; }
.prose-narrow a { color: var(--marigold-deep); font-weight: 700; }
html[data-theme="dark"] .prose-narrow a { color: var(--marigold); }

/* ---------------- Reveal on scroll ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-card { animation: none; }
  .pulse { animation: none; }
}

/* ---------------- Responsive ---------------- */
@media (min-width: 700px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .prompt-lib-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

@media (min-width: 900px) {
  .nav-desktop { display: flex; }
  .menu-btn { display: none; }
  .mobile-nav.open { display: none; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
  .featured-card { grid-template-columns: 1fr 1fr; }
  .post-grid { grid-template-columns: repeat(3, 1fr); }
  .prompt-lib-grid { grid-template-columns: repeat(3, 1fr); }
  .prev-next { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 899px) {
  .hero { padding-top: 52px; }
  .hero-visual { min-height: 340px; }
  .float-1 { left: 0; }
  .float-2 { right: 0; }
  .header-cta { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; }
}

/* ================= PromoLoot App section ================= */
.app-banner {
  padding: 3.5rem 0;
  background: var(--marigold-soft);
  border-top: 1px solid var(--stroke-soft);
  border-bottom: 1px solid var(--stroke-soft);
}
.app-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.app-banner-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  margin: 0.6rem 0 0.8rem;
}
.app-banner-badge {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-pop);
}
.app-banner-badge svg { width: 40px; height: 40px; margin-left: 4px; }
@media (max-width: 640px) {
  .app-banner-inner { flex-direction: column; text-align: left; }
  .app-banner-badge { display: none; }
}
.app-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.feature-card {
  background: var(--bg-raised);
  border: 1px solid var(--stroke-soft);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  color: var(--marigold-deep);
}
.feature-card p { margin: 0; color: var(--ink-dim); font-size: 0.95rem; }
.store-row { margin: 1.5rem 0; }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: 14px;
  padding: 0.7rem 1.4rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.store-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop); }
.store-btn svg { width: 30px; height: 30px; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.25; }
.store-btn small { font-size: 0.65rem; letter-spacing: 0.12em; opacity: 0.75; }
.store-btn strong { font-size: 1.1rem; }
.app-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 2rem;
  display: grid;
  gap: 0.75rem;
}
.app-steps li {
  counter-increment: step;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--bg-raised);
  border: 1px solid var(--stroke-soft);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
}
.app-steps li::before {
  content: counter(step);
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
}

/* ================= Prompt meta (aspect ratio / negative prompt) ================= */
.prompt-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--stroke-soft);
  font-size: 0.88rem;
  color: var(--ink-dim);
}
.prompt-meta b { color: var(--ink); }

/* ================= Creator byline ================= */
.creator-line { margin-top: 0.5rem; font-size: 0.9rem; color: var(--ink-dim); }
.creator-line strong { color: var(--ink); }

/* ================= Story heading + What Was Used ================= */
.story-heading {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  margin-bottom: 1.2rem;
}
.what-used {
  margin: 2.5rem 0;
  padding: 1.8rem;
  border: 1px solid var(--stroke-soft);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
}
.what-used h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  margin-bottom: 1.1rem;
}
.wu-list { list-style: none; display: grid; gap: 0.7rem; }
.wu-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink-dim);
}
.wu-list li b { color: var(--ink); }
.wu-icon { font-size: 1.15rem; line-height: 1.4; flex-shrink: 0; }

/* ================= Prompt card image ================= */
.prompt-card-img { display: block; margin: -26px -26px 0; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.prompt-card-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform 0.5s ease; }
.prompt-card:hover .prompt-card-img img { transform: scale(1.04); }
.prompt-card h3 a { color: inherit; text-decoration: none; }
.prompt-card h3 a:hover { color: var(--marigold-deep); }

/* ============================================================
   PROMOLOOT polish pass — v2
   Scrollable category strip · richer cards · hero glow · moods
   ============================================================ */

/* category strip: horizontal scroll with edge fades */
.cat-strip {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 6px 4px 14px;
  margin: 0 -4px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, transparent, black 24px, black calc(100% - 24px), transparent);
  mask-image: linear-gradient(to right, transparent, black 24px, black calc(100% - 24px), transparent);
}
.cat-strip::-webkit-scrollbar { display: none; }
.cat-strip .cat-chip { scroll-snap-align: start; flex: 0 0 auto; }
.cat-chip {
  box-shadow: var(--shadow-card);
}
.cat-chip:hover {
  border-color: var(--marigold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-pop);
}

/* richer post cards: gradient legibility + deeper hover */
.card-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background: linear-gradient(to top, rgba(20, 12, 6, 0.42), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.post-card:hover .card-media::after { opacity: 1; }
.card-media .pill { z-index: 2; }
.post-card:hover { transform: translateY(-8px); }
.card-body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* hero: warm radial glow behind the visual */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  top: -140px; right: -120px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, var(--marigold-soft) 0%, transparent 65%);
  pointer-events: none;
}
html[data-theme="dark"] .hero::before {
  background: radial-gradient(circle, rgba(232, 147, 12, 0.16) 0%, transparent 65%);
}
.hero-main-img {
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow-pop);
  border: 1px solid var(--stroke-soft);
}

/* moods index page */
.moods-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 26px;
}
.mood-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-raised);
  border: 1px solid var(--stroke-soft);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.mood-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-pop);
  border-color: var(--marigold);
}
.mood-emoji {
  font-size: 1.9rem;
  line-height: 1;
  filter: saturate(1.1);
}
.mood-card h3 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 4px; }
.mood-card p { color: var(--ink-dim); font-size: 0.93rem; flex: 1; }
.mood-count {
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fffdf8;
  background: var(--grad);
  border-radius: 999px;
  padding: 4px 12px;
  align-self: center;
  white-space: nowrap;
}
.mood-subject {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--marigold-deep);
  margin-bottom: 6px;
}
html[data-theme="dark"] .mood-subject { color: var(--marigold); }

/* section headings: a touch more editorial */
.section-head h2 {
  font-family: var(--font-display);
  letter-spacing: 0.01em;
}

/* prompt cards: image polish to match post cards */
.prompt-card { overflow: hidden; }
.prompt-card-img img { transition: transform 0.55s ease; }
.prompt-card:hover .prompt-card-img img { transform: scale(1.05); }

@media (min-width: 720px) {
  .moods-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) {
  .moods-grid { grid-template-columns: repeat(3, 1fr); }
}

/* stats band — bottom of homepage */
.stats-band {
  display: flex;
  justify-content: center;
  gap: clamp(28px, 8vw, 90px);
  background: var(--bg-raised);
  border: 1px solid var(--stroke-soft);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow-card);
  padding: 30px 20px;
  text-align: center;
}
.stats-band div b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stats-band div span { font-size: 0.85rem; color: var(--ink-faint); font-weight: 600; }

/* ---------------- Instagram Automation tool ---------------- */
.igauto-hero { padding: 90px 0 70px; text-align: center; position: relative; overflow: hidden; }
.igauto-hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin: 18px 0 16px; }
.igauto-badge { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #e8930c; border: 1px solid rgba(217,119,6,0.45); border-radius: 999px; padding: 8px 18px; background: rgba(217,119,6,0.08); }
.igauto-sub { max-width: 640px; margin: 0 auto 34px; font-size: 1.1rem; color: var(--ink-soft); line-height: 1.7; }
.igauto-cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.igauto-section { padding: 70px 0; }
.igauto-alt { background: var(--bg-raised); border-top: 1px solid var(--stroke-soft); border-bottom: 1px solid var(--stroke-soft); }
.igauto-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 40px; }
.igauto-feat { background: var(--card); border: 1px solid var(--stroke-soft); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-card); transition: transform 0.2s; }
.igauto-feat:hover { transform: translateY(-4px); }
.igauto-feat-ico { font-size: 2rem; display: block; margin-bottom: 14px; }
.igauto-feat h3 { font-size: 1.1rem; margin-bottom: 8px; }
.igauto-feat p { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.65; }
.igauto-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 40px; }
.igauto-step { text-align: center; padding: 30px 20px; }
.igauto-step-n { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 1.4rem; font-weight: 800; margin-bottom: 16px; }
.igauto-step h3 { margin-bottom: 8px; }
.igauto-step p { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.65; }
.igauto-auth { padding: 80px 0; }
.igauto-card { max-width: 560px; margin: 0 auto; background: var(--card); border: 1px solid var(--stroke-soft); border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow-card); padding: 40px 36px; }
.igauto-card h1, .igauto-card h3 { margin-bottom: 10px; }
.igauto-muted { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.6; }
.igauto-muted a { color: #e8930c; font-weight: 600; }
.igauto-form { display: grid; gap: 16px; margin-top: 24px; }
.igauto-form label { display: grid; gap: 8px; font-size: 0.88rem; font-weight: 700; }
.igauto-form input, .igauto-form select, .igauto-form textarea { width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--stroke-soft); background: var(--bg); color: var(--ink); font-size: 0.95rem; font-family: inherit; }
.igauto-form input:focus, .igauto-form select:focus, .igauto-form textarea:focus { outline: none; border-color: #e8930c; box-shadow: 0 0 0 3px rgba(217,119,6,0.15); }
.igauto-check { display: flex !important; flex-direction: row !important; align-items: center; gap: 10px !important; font-weight: 600 !important; cursor: pointer; }
.igauto-check input { width: auto !important; }
.igauto-dash { padding: 60px 0 80px; }
.igauto-dash-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 30px; flex-wrap: wrap; }
.igauto-dash-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 6px; }
.igauto-dash .igauto-card { max-width: none; margin: 0 0 26px; }
.igauto-dash-sec { margin: 34px 0; }
.igauto-sec-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 12px; }
.igauto-empty { border: 1px dashed var(--stroke-soft); border-radius: var(--radius); padding: 34px 20px; text-align: center; color: var(--ink-soft); font-size: 0.92rem; }
.igauto-status-off { color: #c0564d; }
@media (max-width: 640px) {
  .igauto-card { padding: 30px 22px; }
  .igauto-hero { padding: 60px 0 50px; }
}
