/* Base theme: dark, minimal, horror-inspired */
:root {
  --bg: #0b0b0d;
  --bg-elev: #121216;
  --text: #e8e8ef;
  --muted: #a6a6b3;
  --brand: #b1003a;
  --accent: #6cf7ff;
  --link: #76e0ff;
  --link-hover: #b6f1ff;
  --border: #22222a;
  --success: #43d17e;
  --warning: #ffb703;
  --danger: #ff3b3b;
  --maxw: 1160px;
}

/* Typography */
html { scroll-behavior: smooth; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.7;
}

/* Headings use Creepster for horror vibe; fall back to Inter */
h1, h2, h3, .display {
  font-family: Creepster, Inter, system-ui, sans-serif;
  letter-spacing: 0.5px;
}

h1 { font-size: 2rem; line-height: 1.2; margin: 0.8rem 0; }
h2 { font-size: 1.35rem; margin: 1.25rem 0 0.5rem; }
h3 { font-size: 1.05rem; margin: 0.9rem 0 0.4rem; color: var(--muted); }

p { margin: 0.75rem 0; }
ul { padding-left: 1.2rem; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
hr { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }

/* Layout */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1rem; }
.grid { display: grid; gap: 1rem; }
.two { grid-template-columns: 1fr; }
@media (min-width: 880px) { .two { grid-template-columns: 2fr 1fr; } }

/* Header / Nav */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(11,11,13,0.86); backdrop-filter: saturate(110%) blur(6px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 0; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; }
.brand .symbol { font-family: "Material Symbols Outlined"; font-size: 1.5rem; color: var(--accent); }
.brand a { color: var(--text); text-decoration: none; }

.nav-links { display: flex; gap: 1rem; align-items: center; }
.nav-links a { color: var(--muted); font-weight: 600; }
.nav-links a:hover { color: var(--text); }

.menu-btn { display: inline-flex; gap: 0.25rem; align-items: center; border: 1px solid var(--border); padding: 0.4rem 0.6rem; border-radius: 6px; background: var(--bg-elev); color: var(--text); }
.menu-btn .symbol { font-family: "Material Symbols Outlined"; }

@media (min-width: 980px) { .menu-btn { display: none; } }

.mobile-drawer { display: none; border-top: 1px solid var(--border); background: var(--bg-elev); }
.mobile-drawer a { display: block; padding: 0.8rem 1rem; border-bottom: 1px solid var(--border); }

/* Hero */
.hero { background: radial-gradient(1200px 400px at 50% -10%, #1b1b21 0%, var(--bg) 70%); padding: 2rem 0 1rem; }
.hero .kicker { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.hero p.lead { color: var(--muted); font-size: 1.05rem; }
.cta { display: inline-flex; gap: 0.6rem; padding: 0.6rem 0.9rem; border-radius: 8px; border: 1px solid var(--border); background: #121219; color: var(--text); font-weight: 700; }
.cta.primary { background: linear-gradient(180deg, #c60042, #82002e); border-color: #6c0026; }
.cta.secondary { background: #121219; }

/* Cards */
.card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 10px; padding: 1rem; }
.card h3 { color: var(--text); }

/* Breadcrumbs */
.breadcrumb { font-size: 0.9rem; color: var(--muted); margin: 0.5rem 0 0.75rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--text); }

/* Footer */
.site-footer { margin-top: 2rem; border-top: 1px solid var(--border); background: #0e0e12; }
.site-footer .inner { padding: 1.2rem 0; }
.footer-content { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 1rem; }
.footer-section h4 { font-size: 0.95rem; color: var(--text); margin: 0 0 0.5rem; font-family: Inter, system-ui, sans-serif; }
.footer-section ul { margin: 0; }
.footer-section a { color: var(--muted); font-size: 0.9rem; }
.footer-section a:hover { color: var(--link); }
small, .note { color: var(--muted); }

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-elev);
  color: var(--text);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--brand);
  border-color: var(--brand);
}
.back-to-top .symbol {
  font-family: "Material Symbols Outlined";
  font-size: 1.2rem;
}

/* Lists */
.list-plain { list-style: none; padding-left: 0; margin: 0; }
.list-plain li { margin: 0.35rem 0; }

/* Lazy image placeholder */
img[loading="lazy"] { filter: saturate(95%); }
.placeholder { background: #1a1a22; border: 1px dashed var(--border); border-radius: 8px; min-height: 160px; display: grid; place-items: center; color: var(--muted); }

/* Content helpers */
.kbd { padding: 0 0.35rem; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 4px; background: #0e0e14; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
.note-box { border-left: 3px solid var(--accent); padding: 0.75rem 1rem; background: #0f1117; border-radius: 6px; }
.warning-box { border-left: 3px solid var(--warning); padding: 0.75rem 1rem; background: #15120d; border-radius: 6px; }

/* Table of contents */
.toc { border: 1px solid var(--border); border-radius: 8px; padding: 0.75rem; background: var(--bg-elev); }
.toc a { display: block; padding: 0.25rem 0; }

/* Code blocks (for snippets/JSON-LD preview) */
pre { background: #0f0f15; border: 1px solid var(--border); border-radius: 8px; padding: 0.9rem; overflow: auto; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; color: #e3f1ff; } 