/* ============================================================
   THE SEASONAL SPELL — Theme System
   Halloween is default. Other seasons override via [data-season].
   ============================================================ */

:root {
  /* Halloween (default) */
  --bg: #16121e;
  --bg-soft: #1e1828;
  --bg-card: #221b30;
  --ink: #f3ead9;
  --ink-dim: #b8a98f;
  --accent: #e8702a;
  --accent-deep: #b34a12;
  --accent-soft: #f5a86b;
  --plum: #6d4a7a;
  --line: #332a44;
  --glow: rgba(232, 112, 42, 0.14);
  --season-emoji: "🎃";
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Serif 4", Georgia, serif;
  --font-ui: -apple-system, "Segoe UI", system-ui, sans-serif;
}

/* Christmas override (activate later via data-season="christmas") */
[data-season="christmas"] {
  --bg: #10231a;
  --bg-soft: #143026;
  --bg-card: #1a3a2e;
  --ink: #f5f0e1;
  --ink-dim: #b9c4ad;
  --accent: #c8322b;
  --accent-deep: #96221d;
  --accent-soft: #e88f7f;
  --plum: #2f6b4f;
  --line: #24402f;
  --glow: rgba(200, 50, 43, 0.14);
  --season-emoji: "🎄";
}

/* Eid override */
[data-season="eid"] {
  --bg: #101c2e;
  --bg-soft: #16263e;
  --bg-card: #1d3049;
  --ink: #f7f1de;
  --ink-dim: #c0b691;
  --accent: #d4a72c;
  --accent-deep: #a37f1d;
  --accent-soft: #f0d488;
  --plum: #2c4a6b;
  --line: #2a3c55;
  --glow: rgba(212, 167, 44, 0.14);
  --season-emoji: "🌙";
}

/* ---------- Base ---------- */
* { 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: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-soft); text-decoration: none; }
a:hover { color: var(--accent); }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(22, 18, 30, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-inner {
  max-width: 1180px; margin: 0 auto; padding: 14px 22px;
  display: flex; align-items: center; gap: 26px;
}
.brand {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 700; color: var(--ink);
  letter-spacing: 0.5px; white-space: nowrap;
}
.brand em { color: var(--accent); font-style: normal; }
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a {
  font-family: var(--font-ui); font-size: 14px; font-weight: 500;
  color: var(--ink-dim); padding: 8px 13px; border-radius: 8px;
  white-space: nowrap;
}
.nav a:hover, .nav a.active { color: var(--ink); background: var(--bg-card); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-img {
  position: absolute; inset: 0;
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; opacity: 0.42; }
.hero-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,18,30,0.25) 0%, var(--bg) 96%);
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 1180px; margin: 0 auto; padding: 96px 22px 72px;
  max-width: 760px;
}
.kicker {
  font-family: var(--font-ui); font-size: 13px; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent-soft);
  margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(38px, 6vw, 64px); line-height: 1.08;
  letter-spacing: -0.5px; margin-bottom: 20px;
}
.hero h1 em { color: var(--accent); font-style: italic; }
.hero p.lead { font-size: 19px; color: var(--ink-dim); max-width: 560px; }

/* ---------- Layout ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.section { padding: 56px 0 8px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 26px; flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--font-display); font-size: 30px; font-weight: 700;
}
.section-head .more {
  font-family: var(--font-ui); font-size: 14px; font-weight: 600;
}

/* ---------- Cards (varied, not uniform) ---------- */
.grid {
  display: grid; gap: 26px;
  grid-template-columns: repeat(3, 1fr);
}
.card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent-deep); }
.card .ph { overflow: hidden; position: relative; background: var(--bg-soft); }
.card .ph img { width: 100%; height: auto; object-fit: contain; display: block; }
.card-body { padding: 20px 22px 22px; }
.card .cat {
  font-family: var(--font-ui); font-size: 12px; font-weight: 700;
  letter-spacing: 1.8px; text-transform: uppercase; color: var(--accent-soft);
  margin-bottom: 8px; display: block;
}
.card h3 {
  font-family: var(--font-display); font-size: 21px; line-height: 1.3;
  margin-bottom: 10px;
}
.card h3 a { color: var(--ink); }
.card p { font-size: 15px; color: var(--ink-dim); line-height: 1.65; }
.card .meta {
  font-family: var(--font-ui); font-size: 13px; color: var(--ink-dim);
  margin-top: 14px; display: flex; gap: 14px; align-items: center;
}
/* Featured card spans wider */
.card.featured { grid-column: span 2; }
/* Featured card shows full image too */
.card.featured h3 { font-size: 27px; }

/* ---------- Post page ---------- */
.post-hero { max-width: 860px; margin: 0 auto; padding: 56px 22px 0; }
.post-hero .cat {
  font-family: var(--font-ui); font-size: 13px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--accent-soft);
}
.post-hero h1 {
  font-family: var(--font-display); font-size: clamp(32px, 5vw, 48px);
  line-height: 1.12; margin: 14px 0 16px; letter-spacing: -0.5px;
}
.post-meta {
  font-family: var(--font-ui); font-size: 14px; color: var(--ink-dim);
  display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 28px;
}
.post-img { border-radius: 14px; overflow: hidden; margin-bottom: 12px; }
.post-img img { width: 100%; }

.btn {
  font-family: var(--font-ui); font-size: 14px; font-weight: 600;
  padding: 10px 20px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--bg-card); color: var(--ink); cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn:hover { border-color: var(--accent); color: var(--accent-soft); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #1a0f06; }
.btn.primary:hover { background: var(--accent-soft); }
.article { max-width: 720px; margin: 0 auto; padding: 0 22px; }
.article h2 {
  font-family: var(--font-display); font-size: 27px; margin: 44px 0 16px;
  padding-top: 8px;
}
.article h3 { font-family: var(--font-display); font-size: 22px; margin: 32px 0 12px; }
.article p { margin-bottom: 20px; }
.article ul, .article ol { margin: 0 0 24px 24px; }
.article li { margin-bottom: 10px; }
.article li strong { color: var(--accent-soft); }

.disclosure {
  font-size: 13px; color: var(--ink-dim); font-style: italic;
  border-top: 1px solid var(--line); padding-top: 18px; margin-top: 40px;
}

/* Ad slots */

/* Like + comments */

/* Related */
.related { max-width: 1180px; margin: 64px auto 0; padding: 0 22px; }
.related h2 { font-family: var(--font-display); font-size: 26px; margin-bottom: 22px; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line); margin-top: 72px;
  background: var(--bg-soft);
}
.foot-inner {
  max-width: 1180px; margin: 0 auto; padding: 48px 22px 28px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px;
}
.foot-inner h4 {
  font-family: var(--font-ui); font-size: 13px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--ink-dim);
  margin-bottom: 16px;
}
.foot-inner ul { list-style: none; }
.foot-inner li { margin-bottom: 10px; }
.foot-inner a { color: var(--ink-dim); font-size: 15px; }
.foot-inner a:hover { color: var(--accent-soft); }
.foot-brand p { color: var(--ink-dim); font-size: 15px; max-width: 320px; margin-top: 12px; }
.copy {
  max-width: 1180px; margin: 0 auto; padding: 20px 22px 28px;
  border-top: 1px solid var(--line);
  font-family: var(--font-ui); font-size: 13px; color: var(--ink-dim);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

/* ---------- Static pages ---------- */
.page { max-width: 760px; margin: 0 auto; padding: 64px 22px; }
.page h1 { font-family: var(--font-display); font-size: 40px; margin-bottom: 24px; }
.page h2 { font-family: var(--font-display); font-size: 24px; margin: 36px 0 14px; }
.page p { margin-bottom: 18px; }
.page ul { margin: 0 0 20px 24px; }
.page li { margin-bottom: 8px; }

/* Category hero (slimmer than home) */
.cat-hero { padding: 64px 0 8px; }
.cat-hero h1 { font-family: var(--font-display); font-size: clamp(34px, 5vw, 52px); margin-bottom: 14px; }
.cat-hero p { color: var(--ink-dim); font-size: 18px; max-width: 620px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .card.featured { grid-column: span 2; }
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-soft); padding: 12px 22px 18px; border-bottom: 1px solid var(--line); }
  .menu-btn { display: inline-flex !important; }
  .foot-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  .card.featured { grid-column: span 1; }
  .hero-inner { padding: 72px 22px 56px; }
  .foot-inner { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}
.menu-btn {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--line); color: var(--ink);
  border-radius: 8px; padding: 8px 14px; font-size: 18px; cursor: pointer;
  font-family: var(--font-ui);
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Lightbox (click image → fullscreen → download) ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 7, 14, 0.94);
  display: none; align-items: center; justify-content: center;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw; max-height: 88vh; object-fit: contain;
  border-radius: 10px; cursor: default;
}
.lightbox .lb-close {
  position: absolute; top: 18px; right: 22px;
  background: none; border: none; color: var(--ink);
  font-size: 34px; cursor: pointer; line-height: 1;
  font-family: var(--font-ui);
}
.lightbox .lb-dl {
  position: absolute; bottom: 26px; right: 26px;
  background: var(--accent); color: #1a0f06;
  border: none; border-radius: 50%; width: 58px; height: 58px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(232, 112, 42, 0.4);
}
.lightbox .lb-dl svg { width: 26px; height: 26px; }
.lightbox .lb-dl:hover { background: var(--accent-soft); }
.lightbox .lb-cap {
  position: absolute; bottom: 30px; left: 26px;
  color: var(--ink-dim); font-family: var(--font-ui); font-size: 14px;
  max-width: 60vw;
}
/* Make post/card images clickable */
.ph img, .post-img img { cursor: zoom-in; }
.lightbox .lb-share {
  position: absolute; bottom: 26px; right: 96px;
  background: var(--accent); color: #1a0f06;
  border: none; border-radius: 50%; width: 58px; height: 58px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(232, 112, 42, 0.4);
}
.lightbox .lb-share svg { width: 26px; height: 26px; }
.lightbox .lb-share:hover { border-color: var(--accent); color: var(--accent-soft); }

/* === Animations === */

/* Page load fade-in */
@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
body {
  animation: pageIn 0.5s ease-out;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Card hover lift */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.card .ph img {
  transition: transform 0.4s ease;
}
.card:hover .ph img {
  transform: scale(1.05);
}

/* Hero subtle float */
.hero-img img {
  animation: heroFloat 8s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

/* Button hover */
.btn, .lb-dl, .lb-share {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover, .lb-dl:hover, .lb-share:hover {
  transform: scale(1.08);
}

/* Nav link underline slide */
.nav a {
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.nav a:hover::after, .nav a.active::after {
  width: 100%;
}

/* Gallery image stagger */
.grid .card:nth-child(1) { transition-delay: 0.02s; }
.grid .card:nth-child(2) { transition-delay: 0.04s; }
.grid .card:nth-child(3) { transition-delay: 0.06s; }
.grid .card:nth-child(4) { transition-delay: 0.08s; }
.grid .card:nth-child(5) { transition-delay: 0.10s; }
.grid .card:nth-child(6) { transition-delay: 0.12s; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* === Unique: Spell Particles (magical floating embers) === */
.spell-particle {
  position: fixed;
  bottom: -20px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  animation: spellRise linear forwards;
}
@keyframes spellRise {
  0% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0;
    filter: brightness(1.4);
  }
  15% {
    opacity: 0.9;
    filter: brightness(1.3);
  }
  40% {
    opacity: 0.7;
    filter: brightness(1.1);
  }
  60% {
    opacity: 0.5;
    filter: brightness(0.9);
  }
  80% {
    opacity: 0.25;
    filter: brightness(0.6);
  }
  100% {
    transform: translateY(var(--rise, -20vh)) translateX(20px) scale(0.2);
    opacity: 0;
    filter: brightness(0.3);
  }
}
@keyframes spellRise {
  0% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0;
  }
  10% { opacity: 0.8; }
  90% { opacity: 0.3; }
  100% {
    transform: translateY(-105vh) translateX(40px) scale(0.3);
    opacity: 0;
  }
}

/* Keep content above spell particles */
main, header, footer { position: relative; z-index: 2; }
/* Gallery cards above particles (dots go behind images) */
.card, .grid { position: relative; z-index: 10; }
/* Hero text below particles (dots show in front of hero text) */
.hero { position: relative; z-index: 1; }

/* ── Idea items: clear visual separation between numbered ideas ── */
.idea {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 26px 24px;
  margin: 36px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
  position: relative;
  overflow: hidden;
}
/* Orange accent bar on the left edge */
.idea::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, #e8702a, #f5a623);
}
/* Item title: bigger, bolder, with divider below */
.idea h3 {
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 14px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--line);
}
/* Item description: normal body size, comfortable reading */
.idea > p:first-of-type {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-dim);
}
/* Item image: full width inside card, rounded */
.idea .item-img {
  margin: 20px 0;
  border-radius: 10px;
  overflow: hidden;
}
.idea .item-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}
/* "You'll need" label: small caps, orange */
.idea p:has(> strong:first-child) {
  margin-top: 20px;
}
.idea p > strong:first-child {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-soft);
}
/* "You'll need" list: dark warm-tinted box */
.idea ul {
  background: rgba(232, 112, 42, 0.08);
  border: 1px solid rgba(232, 112, 42, 0.25);
  border-radius: 10px;
  padding: 16px 18px 16px 38px;
  margin: 8px 0 18px;
}
.idea ul li {
  margin: 4px 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--ink-dim);
}
/* "How to" paragraph: distinct dark box with orange left border */
.idea p:last-child {
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 14px 16px;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--ink-dim);
  margin: 0;
}
/* Mobile: tighter padding */
@media (max-width: 600px) {
  .idea { padding: 20px 16px 18px; margin: 28px 0; }
  .idea h3 { font-size: 1.3rem; }
}

/* ── Accessibility & mobile (360px) ── */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
body { overflow-x: hidden; }
img { max-width: 100%; height: auto; }
/* Minimum 44px tap targets for interactive elements */
a, button, .btn, .menu-btn, .lb-close, .lb-share, .lb-dl {
  min-height: 44px;
  min-width: 44px;
}
.menu-btn { display: inline-flex; align-items: center; justify-content: center; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; }
/* Visible focus for keyboard navigation */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
/* 360px width: prevent horizontal scroll */
@media (max-width: 400px) {
  .wrap, .head-inner, .foot-inner, .page, .article, .post-hero {
    padding-left: 14px; padding-right: 14px;
  }
  .hero-inner { padding: 56px 14px 44px; }
  .idea { padding: 18px 14px 16px; margin: 24px 0; }
  .idea h3 { font-size: 1.2rem; }
  .grid { grid-template-columns: 1fr; }
  .card-body { padding: 16px; }
}
/* Disclosure text in footer */
.disclosure { font-size: 12px; color: var(--ink-dim); }
.disclosure a { color: var(--accent-soft); }

/* ============================================================
   DESIGN POLISH — uniform cards, typography scale, nav dropdown,
   sticky actions, 44px targets, header/footer refinements
   ============================================================ */

/* --- SVG icons: consistent size, aligned with text --- */
.icon { flex-shrink: 0; vertical-align: middle; }
.btn .icon, .download-btn .icon, .dl-btn .icon { width: 20px; height: 20px; }
.menu-btn .icon { width: 24px; height: 24px; }
.kicker { display: flex; align-items: center; gap: 8px; }
.kicker .icon { width: 16px; height: 16px; }

/* --- Header: logo left, menu right, no scroll at 360px --- */
.head-inner { justify-content: space-between; }
@media (max-width: 400px) {
  .brand { font-size: 20px; }
  .head-inner { gap: 12px; padding: 12px 14px; }
}

/* --- Typography scale: clear H1 > H2 > H3 --- */
body { font-size: 17px; line-height: 1.65; }
.article, .page { max-width: 70ch; }
.page h1 { font-size: 2.5rem; }
.post-hero h1 { font-size: clamp(2rem, 5vw, 2.5rem); }
.cat-hero h1 { font-size: clamp(2rem, 5vw, 2.5rem); }
.section-head h2, .article h2, .page h2, .related h2 { font-size: 1.8rem; }
.card h3, .article h3, .idea h3 { font-size: 1.3rem; }

/* --- Uniform cards: 4:3 image, cover crop, equal height --- */
.card { display: flex; flex-direction: column; }
.card.featured { grid-column: span 1; }
.card.featured h3 { font-size: 1.3rem; }
.card .ph { aspect-ratio: 4 / 3; }
.card .ph a { display: block; width: 100%; height: 100%; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.card-body { flex: 1; display: flex; flex-direction: column; }
.card p { flex: 1; }

/* --- Buttons & links: 44px targets, visible hover/focus --- */
.more { display: inline-flex; align-items: center; min-height: 44px; }
.btn:focus-visible, .card a:focus-visible, .nav-more-btn:focus-visible,
.download-btn:focus-visible, .dl-btn:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px;
}
.card h3 a:hover { color: var(--accent-soft); }
.download-btn, .dl-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-family: var(--font-ui); font-size: 14px; font-weight: 600;
  padding: 10px 20px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--bg-card); color: var(--ink); cursor: pointer;
}
.download-btn:hover, .dl-btn:hover { border-color: var(--accent); color: var(--accent-soft); }

/* --- Nav "More" dropdown (desktop hover/click, mobile nested) --- */
.nav-more { position: relative; }
.nav-more-btn {
  font-family: var(--font-ui); font-size: 14px; font-weight: 500;
  color: var(--ink-dim); padding: 8px 13px; border-radius: 8px;
  background: none; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px;
  white-space: nowrap;
}
.nav-more-btn:hover, .nav-more-btn.active { color: var(--ink); background: var(--bg-card); }
.nav-more-menu {
  display: none; position: absolute; top: 100%; right: 0; min-width: 180px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px;
  padding: 8px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4); z-index: 60;
  flex-direction: column;
}
.nav-more.open .nav-more-menu, .nav-more:focus-within .nav-more-menu { display: flex; }
.nav-more-menu a {
  display: flex; align-items: center; min-height: 44px;
  padding: 8px 13px; border-radius: 8px;
  font-family: var(--font-ui); font-size: 14px; font-weight: 500;
  color: var(--ink-dim); white-space: nowrap;
}
.nav-more-menu a:hover, .nav-more-menu a.active { color: var(--ink); background: var(--bg-card); }
.nav-more-menu a::after { display: none; }
@media (max-width: 900px) {
  .nav-more { width: 100%; }
  .nav-more-menu {
    position: static; box-shadow: none; border: none;
    background: transparent; padding: 0 0 0 16px;
  }
}

/* --- Sticky "Pin it" (mobile posts only) + Back to top --- */
.pin-float { display: none; }
@media (max-width: 767px) {
  .pin-float {
    display: inline-flex; position: fixed; right: 16px; bottom: 16px; z-index: 90;
    box-shadow: 0 4px 16px rgba(232, 112, 42, 0.4);
  }
}
.back-to-top {
  position: fixed; left: 16px; bottom: 16px; z-index: 90;
  width: 48px; height: 48px; min-width: 48px; min-height: 48px; padding: 0;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--bg-card); border: 1px solid var(--line); color: var(--ink);
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35); cursor: pointer;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { border-color: var(--accent); color: var(--accent-soft); }

/* --- Author avatar (initial, replaces emoji) --- */
.author-ava {
  width: 56px; height: 56px; border-radius: 50%; background: var(--accent);
  color: #1a0f06; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 26px; font-weight: 700; flex-shrink: 0;
}

/* --- 404 ghost icon --- */
.not-found .ghost svg { width: 72px; height: 72px; color: var(--accent-soft); }

/* --- Homepage "View all guides" --- */
.view-all { text-align: center; margin: 36px 0 8px; }

/* Costume cards: show faces (top of photo), not body/legs */
body.costumes .card .ph img,
.womens-costumes .card .ph img,
.mens-costumes .card .ph img {
  object-position: top center;
}
