/* ============================================================
   Horror Facts — Pastel (standalone) v1.0.3
   Design tokens from the approved mockups (2026-10-31):
   pastel trans-flag light mode, plum dark mode. Flag blue/pink
   are DECOR only (raw pastel text fails contrast); deep blue /
   deep pink carry links and buttons.
   ============================================================ */

:root {
  --hf-blue: #5bcefa;
  --hf-pink: #f5a9b8;
  --hf-white: #ffffff;
  --hf-flag-gradient: linear-gradient(90deg, var(--hf-blue) 0%, var(--hf-white) 50%, var(--hf-pink) 100%);
}

html[data-hf-theme="light"] {
  --hf-paper: #fffbfc;
  --hf-ink: #26202e;
  --hf-ink-muted: #5c5468;
  --hf-accent: #a4264a;
  --hf-accent-ink: #0b6b8c;
  --hf-border: #f0d9e2;
  --hf-surface: #ffffff;
  --hf-blue-mist: #eaf7fd;
  --hf-pink-blush: #fdeef1;
  --hf-hero-gradient: linear-gradient(135deg, var(--hf-blue-mist) 0%, var(--hf-paper) 55%, var(--hf-pink-blush) 100%);
  --hf-toggle-bg: #26202e;
  --hf-toggle-ink: #fffbfc;
}

html[data-hf-theme="dark"] {
  --hf-paper: #1d1824;
  --hf-ink: #f4eef7;
  --hf-ink-muted: #c4b8cf;
  --hf-accent: #a4264a;
  --hf-accent-ink: #8fd8f7;
  --hf-border: #3d3049;
  --hf-surface: #241d30;
  --hf-blue-mist: #22303c;
  --hf-pink-blush: #33222c;
  --hf-hero-gradient: linear-gradient(135deg, #241d30 0%, #1d1824 55%, #2a2033 100%);
  --hf-toggle-bg: #f4eef7;
  --hf-toggle-ink: #26202e;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--hf-paper);
  background-image: linear-gradient(90deg, var(--hf-blue-mist) 0%, var(--hf-paper) 18%, var(--hf-paper) 82%, var(--hf-pink-blush) 100%);
  color: var(--hf-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }
a { color: var(--hf-accent-ink); }
a:hover { color: var(--hf-accent); }

/* ------------------------------------------------ progress bar */
.hf-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 6px;
  z-index: 999999;
  background: rgba(38, 32, 46, 0.30);
  pointer-events: none;
}
html[data-hf-theme="dark"] .hf-progress { background: rgba(255, 255, 255, 0.20); }
.hf-progress__bar {
  height: 100%;
  width: 0%;
  background: var(--hf-flag-gradient);
  box-shadow: 0 0 6px rgba(91, 206, 250, 0.65);
}

/* ------------------------------------------------ header */
.site-header {
  background-color: var(--hf-surface);
  border-top: 5px solid transparent;
  border-image: var(--hf-flag-gradient) 1;
  border-bottom: 1px solid var(--hf-border);
}
.site-header__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.9rem 20px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.site-branding { margin-right: auto; }
.site-branding__home {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--hf-ink);
}
.site-branding__icon { max-height: 64px; width: auto; border-radius: 50%; }
.site-branding__name {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.custom-logo { max-height: 84px; width: auto; }

/* nav */
.hfp-menu {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.hfp-menu li { position: relative; }
.hfp-menu a {
  color: var(--hf-ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.3rem 0.1rem;
  display: inline-block;
}
.hfp-menu a:hover { color: var(--hf-accent); }
.hfp-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  min-width: 210px;
  list-style: none;
  margin: 0; padding: 0.5rem 0;
  background-color: var(--hf-surface);
  border: 1px solid var(--hf-border);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(38, 32, 46, 0.16);
  z-index: 1000;
}
.hfp-menu li:hover > .sub-menu,
.hfp-menu li:focus-within > .sub-menu { display: block; }
.hfp-menu .sub-menu a { display: block; padding: 0.4rem 1rem; font-weight: 400; }

.site-header__actions { display: flex; gap: 0.5rem; }
.hf-search-toggle, .hf-menu-toggle {
  background: var(--hf-surface);
  color: var(--hf-ink);
  border: 1px solid var(--hf-border);
  border-radius: 999px;
  width: 42px; height: 42px;
  font-size: 1.05rem;
  cursor: pointer;
}
.hf-menu-toggle { display: none; }
.site-search {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px 1rem;
}
.search-form { display: flex; gap: 0.5rem; }
.search-field {
  flex: 1;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--hf-border);
  border-radius: 999px;
  background: var(--hf-paper);
  color: var(--hf-ink);
  font-size: 1rem;
}
.search-submit {
  background: var(--hf-accent);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.6rem 1.3rem;
  font-weight: 700;
  cursor: pointer;
}

/* off-canvas */
.hfp-offcanvas {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(320px, 85vw);
  background: var(--hf-surface);
  color: var(--hf-ink);
  z-index: 999998;
  padding: 1rem 1.2rem 2rem;
  overflow-y: auto;
  box-shadow: 8px 0 30px rgba(38, 32, 46, 0.25);
}
.hfp-offcanvas__close {
  background: none; border: 0;
  color: var(--hf-ink);
  font-size: 1.8rem;
  cursor: pointer;
  display: block;
  margin-left: auto;
}
.hfp-menu--stack { flex-direction: column; gap: 0.4rem; }
.hfp-menu--stack .sub-menu {
  display: block;
  position: static;
  box-shadow: none;
  border: 0;
  padding-left: 1rem;
  background: transparent;
}

/* ------------------------------------------------ layout */
.site-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 20px 3rem;
}

/* ------------------------------------------------ hero + cards */
.hf-hero__card {
  background: var(--hf-hero-gradient);
  border: 1px solid var(--hf-border);
  border-radius: 18px;
  padding: 1.4rem;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.6rem;
  align-items: center;
  margin-bottom: 2rem;
}
.hf-hero__media img, .hf-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  background-color: var(--hf-blue-mist);
  display: block;
}
.hf-hero__title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2.2rem;
  line-height: 1.12;
  margin: 0 0 0.4rem;
}
.hf-hero__title a, .hf-card__title a { color: var(--hf-ink); text-decoration: none; }
.hf-hero__title a:hover, .hf-card__title a:hover { color: var(--hf-accent); }
.hf-hero__date, .hf-card__date { color: var(--hf-ink-muted); font-size: 0.9rem; margin: 0.3rem 0; }
.hf-hero__excerpt, .hf-card__excerpt { color: var(--hf-ink-muted); }

.hf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.4rem;
}
.hf-card {
  background-color: var(--hf-surface);
  border: 1px solid var(--hf-border);
  border-radius: 16px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.hf-card__media { display: block; aspect-ratio: 16 / 10; margin-bottom: 0.9rem; }
.hf-card__body { display: flex; flex-direction: column; flex: 1; }
.hf-card__title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.35rem;
  line-height: 1.25;
  margin: 0 0 0.3rem;
}
.hf-card__excerpt { flex: 1; }
.hf-card__excerpt p { margin: 0.4rem 0; }

/* chips */
.hf-chips { display: flex; flex-wrap: wrap; gap: 0.4em; margin: 0.35em 0 0.6em; }
.hf-chips a {
  display: inline-block;
  background: var(--hf-blue);
  color: #26202e;
  border-radius: 999px;
  padding: 0.22em 0.8em;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hf-chips a:nth-child(even) { background: var(--hf-pink); }

/* read-more pill */
a.read-more {
  display: inline-block;
  margin-top: 0.7em;
  background-color: var(--hf-accent);
  color: #ffffff;
  padding: 0.5em 1.15em;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}
a.read-more:hover { color: #ffffff; opacity: 0.88; }

/* ------------------------------------------------ archive head */
.hf-archive-head { margin-bottom: 1.6rem; }
.hf-archive-head__title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2.3rem;
  margin: 0 0 0.4rem;
}
.hf-archive-head__desc { color: var(--hf-ink-muted); }

/* pagination */
.pagination, .nav-links { margin-top: 2rem; }
.nav-links { display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: center; }
.page-numbers {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--hf-border);
  border-radius: 999px;
  background: var(--hf-surface);
  color: var(--hf-ink);
  text-decoration: none;
}
.page-numbers.current { background: var(--hf-accent); color: #fff; border-color: var(--hf-accent); }

/* ------------------------------------------------ single */
.hf-single { max-width: 42rem; margin: 0 auto; }
.hf-single__title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2.5rem;
  line-height: 1.1;
  margin: 0 0 0.5rem;
}
.hf-single__meta { color: var(--hf-ink-muted); margin: 0.2rem 0 1.2rem; }
.hf-single__sep { margin: 0 0.5rem; }
.hf-single__media { margin: 0 0 1.6rem; }
.hf-single__media img {
  width: 100%;
  border-radius: 14px;
  background-color: var(--hf-blue-mist);
}
.entry-content { font-size: 1.22rem; line-height: 1.78; }
.entry-content h2, .entry-content h3, .entry-content h4 {
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.25;
  margin: 1.6em 0 0.5em;
  border-bottom: 2px solid var(--hf-pink);
  padding-bottom: 0.25em;
}
html[data-hf-theme="dark"] .entry-content h2,
html[data-hf-theme="dark"] .entry-content h3,
html[data-hf-theme="dark"] .entry-content h4 { border-bottom-color: #6d4a5e; }
.entry-content img { border-radius: 10px; }
.entry-content iframe { max-width: 100%; }
.entry-content blockquote {
  border-left: 4px solid var(--hf-blue);
  margin: 1.4em 0;
  padding: 0.2em 0 0.2em 1em;
  color: var(--hf-ink-muted);
  font-style: italic;
}
/* GenerateBlocks content inside posts: inherit the theme, no dark boxes */
.entry-content .gb-container, .entry-content .gb-grid-wrapper,
.entry-content .gb-grid-column, .entry-content .gb-inside-container {
  background-color: transparent;
  color: inherit;
}
.entry-content .gb-headline { color: inherit; }

.hf-tags a {
  display: inline-block;
  border: 1px solid var(--hf-border);
  border-radius: 999px;
  padding: 0.2em 0.8em;
  margin: 0 0.3em 0.3em 0;
  color: var(--hf-ink-muted);
  text-decoration: none;
  font-size: 0.85rem;
}

.post-navigation { max-width: 42rem; margin: 2rem auto 0; }
.post-navigation .nav-links { justify-content: space-between; }
.post-navigation a { color: var(--hf-accent-ink); text-decoration: none; font-weight: 700; }

/* comments */
.hf-comments { max-width: 42rem; margin: 2.5rem auto 0; }
.hf-comments__title { font-family: Georgia, 'Times New Roman', serif; }
.hf-comments__list { list-style: none; padding: 0; }
.hf-comments__list .comment {
  background: var(--hf-surface);
  border: 1px solid var(--hf-border);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
}
.comment-form input[type="text"], .comment-form input[type="email"],
.comment-form input[type="url"], .comment-form textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--hf-border);
  border-radius: 10px;
  background: var(--hf-paper);
  color: var(--hf-ink);
}
.comment-form .submit {
  background: var(--hf-accent);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  font-weight: 700;
  cursor: pointer;
}

/* ------------------------------------------------ footer + toggle */
.site-footer {
  border-top: 1px solid var(--hf-border);
  background-color: var(--hf-surface);
  text-align: center;
  padding: 2rem 20px 3rem;
  color: var(--hf-ink-muted);
}
.site-footer__credit {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--hf-ink);
  font-size: 1.1rem;
  margin: 0 0 0.3rem;
}
.site-footer__tagline { margin: 0; font-style: italic; }
.site-footer__widgets { max-width: 1120px; margin: 0 auto 1.5rem; text-align: left; }

.hf-theme-toggle {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 999997;
  background-color: var(--hf-toggle-bg);
  color: var(--hf-toggle-ink);
  border: 1px solid var(--hf-border);
  border-radius: 999px;
  padding: 0.65rem 1.2rem;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(38, 32, 46, 0.28);
}

/* 404 */
.hf-404 { max-width: 42rem; margin: 0 auto 2.5rem; text-align: center; }
.hf-404 h1 { font-family: Georgia, 'Times New Roman', serif; font-size: 2.2rem; }

/* ------------------------------------------------ responsive */
@media (max-width: 900px) {
  .hf-hero__card { grid-template-columns: 1fr; }
  .hf-hero__title { font-size: 1.8rem; }
}
@media (max-width: 765px) {
  .site-nav { display: none; }
  .hf-menu-toggle { display: inline-block; }
  .hf-single__title { font-size: 2rem; }
  .entry-content { font-size: 1.12rem; }
}

@media print {
  .hf-progress, .hf-theme-toggle, .site-header, .site-footer,
  .hfp-offcanvas, .post-navigation { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ------------------------------------------------ pages */
.hf-page__title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2.4rem;
  line-height: 1.12;
  margin: 0 0 1rem;
}
.entry-content--page { font-size: 1.1rem; }
.hf-card__more, .hf-hero__more { margin: auto 0 0; padding-top: 0.4rem; }
