/* Halloween 2026: Costumes & Parties — magazine look, playful Halloween palette */
:root {
  --ink: #241a2e;
  --muted: #6b5d78;
  --accent: #f97316;
  --accent-deep: #c2410c;
  --purple: #4c1d95;
  --purple-deep: #2e1065;
  --bg: #fffdf8;
  --wash: #f7f0ff;
  --line: #eadff8;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.68;
}
.wrap { max-width: 880px; margin: 0 auto; padding: 0 22px; }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,253,248,.97);
  border-bottom: 2px solid var(--line);
  padding: 12px 0;
}
.site-header .wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.logo { width: 44px; height: 44px; flex: 0 0 auto; }
.brand {
  font-size: 1.3rem; font-weight: 800; letter-spacing: -0.01em;
  color: var(--purple-deep); text-decoration: none; white-space: nowrap;
}
.tagline { color: var(--muted); margin: 0; font-size: .92rem; }

/* ---- hero ---- */
main { padding: 0 0 56px; }
.hero {
  margin: 26px 0 8px;
  border-radius: 18px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(1000px 340px at 85% -10%, rgba(249,115,22,.55), transparent 60%),
    linear-gradient(140deg, var(--purple-deep) 0%, var(--purple) 55%, #6d28d9 100%);
}
.hero-text { padding: 46px 44px 8px; }
.eyebrow {
  display: inline-block; font-size: .76rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.4);
  padding: 6px 14px; border-radius: 999px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.1;
  letter-spacing: -0.025em; margin: 16px 0 14px; max-width: 15em;
}
.hero p { color: rgba(255,255,255,.92); font-size: 1.06rem; max-width: 42em; margin: 0 0 20px; }
.cta {
  display: inline-block; background: var(--accent); color: #fff;
  font-weight: 800; text-decoration: none; padding: 13px 28px;
  border-radius: 999px; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.35); background: var(--accent-deep); }
.hero-img { display: block; width: 100%; height: auto; }

/* ---- card grid ---- */
.posts h2 {
  font-size: 1.3rem; margin: 44px 0 20px; letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 14px;
}
.posts h2::after { content: ""; flex: 1; height: 2px; background: var(--line); border-radius: 2px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: #fff;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(76,29,149,.16); border-color: #d9c6f5; }
.card img.thumb { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.card-body { padding: 18px 20px 22px; }
.badge {
  display: inline-block; font-size: .72rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--accent-deep); background: #ffedd5;
  border-radius: 999px; padding: 4px 13px;
}
.card h3 { margin: 10px 0 8px; font-size: 1.1rem; line-height: 1.35; letter-spacing: -0.01em; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card:hover h3 a { color: var(--purple); }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---- articles ---- */
.post { padding-top: 30px; }
.post-hero { border-radius: 14px; overflow: hidden; margin: 8px 0 6px; border: 1px solid var(--line); }
.post-hero img { display: block; width: 100%; height: auto; }
.post h1 {
  font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.18;
  letter-spacing: -0.025em; margin: 20px 0 12px; color: var(--purple-deep);
}
.meta {
  display: inline-block; color: var(--accent-deep); background: #ffedd5;
  font-size: .85rem; font-weight: 600; border-radius: 999px;
  padding: 5px 15px; margin-bottom: 26px;
}
.post h2 {
  font-size: 1.35rem; margin: 40px 0 14px; letter-spacing: -0.01em;
  padding-bottom: 10px; border-bottom: 2px solid var(--wash); position: relative;
}
.post h2::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 64px; height: 2px; background: var(--accent);
}
.post ul li { margin-bottom: 9px; }
.post .tip {
  background: var(--wash); border-left: 4px solid var(--purple);
  border-radius: 0 10px 10px 0; padding: 14px 18px; margin: 22px 0;
}
.post .tip strong { color: var(--purple-deep); }
.back {
  display: inline-block; margin-bottom: 22px; color: var(--purple);
  text-decoration: none; font-weight: 600; font-size: .95rem;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px;
  transition: border-color .18s ease, background .18s ease;
}
.back:hover { border-color: var(--purple); background: var(--wash); }
.next-link {
  display: block; margin: 42px 0 8px; padding: 24px 26px;
  border-radius: var(--radius); text-decoration: none; color: #fff;
  font-weight: 700; font-size: 1.12rem;
  background: linear-gradient(135deg, var(--purple-deep) 0%, var(--purple) 100%);
  transition: transform .18s ease, box-shadow .18s ease;
}
.next-link small {
  display: block; font-weight: 600; font-size: .8rem; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.82); margin-bottom: 6px;
}
.next-link:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(76,29,149,.35); }

/* ---- footer ---- */
.site-footer {
  background: var(--purple-deep); border-top: 4px solid var(--accent);
  padding: 28px 0 38px; color: rgba(255,255,255,.78); font-size: 0.9rem;
}
.site-footer a { color: #fbbf24; }
.footer-nav { margin-top: 10px; }
.site-footer .ai-disclosure { font-size: .85em; opacity: .85; }
.site-footer .disclaimer { font-size: .85em; opacity: .8; max-width: 60em; }

/* ---- mobile ---- */
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .tagline { display: none; }
  .hero { margin: 16px 0 4px; border-radius: 14px; }
  .hero-text { padding: 34px 26px 6px; }
  .card-grid { grid-template-columns: 1fr; }
  .posts h2 { margin: 34px 0 16px; }
}
