/* Scary Theme — dark-first, accessible, logical properties for RTL. */
@font-face { font-family: 'Rubik'; src: url('fonts/Rubik-Variable.woff2') format('woff2-variations'); font-weight: 300 900; font-display: swap; }
:root {
  --st-bg: #0b0b0d; --st-bg-2: #141418; --st-border: #2e2e36; --st-text: #ececec; --st-muted: #a3a3ad; --st-accent: #c1121f; --st-focus: #ffd166;
  --st-font: 'Rubik', system-ui, -apple-system, 'Segoe UI', Roboto, 'Heebo', Arial, sans-serif; --st-radius: 0.75rem; --st-max: 72rem;
}
* { box-sizing: border-box; }
html { background: var(--st-bg); color-scheme: dark; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--st-font); font-size: 1rem; line-height: 1.6; color: var(--st-text); background: var(--st-bg); min-block-size: 100vh; display: flex; flex-direction: column; }
img, video { max-inline-size: 100%; block-size: auto; }
a { color: #ff8c8c; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--st-focus); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); inline-size: 1px; block-size: 1px; overflow: hidden; white-space: nowrap; }
.screen-reader-text:focus { clip: auto; clip-path: none; inline-size: auto; block-size: auto; inset-block-start: 0.5rem; inset-inline-start: 0.5rem; background: #000; color: #fff; padding: 0.5rem 1rem; z-index: 100000; }
.skip-link { position: absolute; inset-inline-start: -999px; inset-block-start: 0; background: var(--st-accent); color: #fff; padding: 0.75rem 1rem; z-index: 100001; }
.skip-link:focus { inset-inline-start: 0.5rem; inset-block-start: 0.5rem; }
.wrap { inline-size: min(100% - 2rem, var(--st-max)); margin-inline: auto; }
.site-main { flex: 1; padding-block: 1.5rem 3rem; }

/* Header */
.site-header { position: sticky; inset-block-start: 0; z-index: 50; background: rgba(11, 11, 13, 0.92); backdrop-filter: blur(8px); border-block-end: 1px solid var(--st-border); }
.header-inner { display: flex; align-items: center; gap: 1rem; min-block-size: 64px; flex-wrap: wrap; }
.site-title { font-weight: 900; font-size: 1.35rem; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; text-decoration: none; }
.site-title::before { content: '◉ '; color: var(--st-accent); }
.custom-logo { max-block-size: 48px; inline-size: auto; }
.menu-toggle { margin-inline-start: auto; background: none; border: 1px solid var(--st-border); color: #fff; font-size: 1.4rem; inline-size: 44px; block-size: 44px; border-radius: 0.5rem; cursor: pointer; }
.primary-nav { display: none; flex-basis: 100%; padding-block: 0.5rem 1rem; }
.primary-nav.is-open { display: block; }
.primary-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.primary-nav .menu a { display: block; padding: 0.7rem 0.75rem; color: var(--st-text); text-decoration: none; border-radius: 0.5rem; min-block-size: 44px; }
.primary-nav .menu a:hover, .primary-nav .current-menu-item > a { background: var(--st-bg-2); color: #fff; }
.member-links { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-block-start: 0.75rem; }
@media (min-width: 900px) {
  .menu-toggle { display: none; }
  .primary-nav { display: flex; flex-basis: auto; flex: 1; align-items: center; justify-content: space-between; padding: 0; }
  .primary-nav .menu { flex-direction: row; gap: 0.15rem; }
  .member-links { margin: 0; }
}
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; min-block-size: 40px; padding: 0.5rem 1rem; border-radius: 0.5rem; background: var(--st-accent); color: #fff; text-decoration: none; font-weight: 700; border: 1px solid transparent; cursor: pointer; font: inherit; }
.btn:hover { background: #e63946; color: #fff; }
.btn-ghost { background: transparent; border-color: var(--st-border); color: var(--st-text); }
.btn-ghost:hover { background: var(--st-bg-2); }
.btn-blood { background: #4a0f14; }
.btn-lg { font-size: 1.15rem; padding: 0.85rem 1.6rem; min-block-size: 52px; }

/* Content */
.page-title { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 0 0 1rem; color: #fff; }
.entry, .page-content, .single-post { max-inline-size: 48rem; margin-inline: auto; }
.entry :is(h2, h3) { color: #fff; margin-block: 1.5em 0.5em; }
.entry :is(table) { border-collapse: collapse; inline-size: 100%; }
.entry :is(th, td) { border: 1px solid var(--st-border); padding: 0.5rem; text-align: start; }
.hero { text-align: center; padding: 3rem 1rem 2rem; }
.hero h1 { font-size: clamp(2.2rem, 7vw, 4.5rem); margin: 0; text-transform: uppercase; letter-spacing: 0.06em; color: #fff; text-shadow: 0 0 40px rgba(193, 18, 31, 0.5); }
.hero-tagline { color: var(--st-muted); font-size: 1.2rem; }
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1rem; }
.card { background: var(--st-bg-2); border: 1px solid var(--st-border); border-radius: var(--st-radius); padding: 1rem; }
.card-title { margin: 0.5rem 0; font-size: 1.2rem; }
.card-title a { color: #fff; text-decoration: none; }
.meta { color: var(--st-muted); font-size: 0.9rem; }
.featured { border-radius: var(--st-radius); margin-block: 1rem; }
.pagination .nav-links { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-block: 1.5rem; }
.pagination .page-numbers { padding: 0.5rem 0.9rem; border: 1px solid var(--st-border); border-radius: 0.5rem; text-decoration: none; min-block-size: 40px; display: inline-flex; align-items: center; }
.search-form { display: flex; gap: 0.5rem; max-inline-size: 30rem; }
.search-field { flex: 1; min-block-size: 44px; background: var(--st-bg-2); color: var(--st-text); border: 1px solid var(--st-border); border-radius: 0.5rem; padding: 0.5rem 0.8rem; font: inherit; }
.not-found { text-align: center; padding-block: 3rem; }
.nf-code { font-size: 6rem; font-weight: 900; color: #2e2e36; margin: 0; line-height: 1; }
.not-found .search-form { margin: 1.5rem auto; }

/* Comments (blog posts only) */
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { border-block-start: 1px solid var(--st-border); padding-block: 1rem; }
.comment-form textarea, .comment-form input:not([type="checkbox"]):not([type="submit"]) { inline-size: 100%; background: var(--st-bg-2); color: var(--st-text); border: 1px solid var(--st-border); border-radius: 0.5rem; padding: 0.6rem; font: inherit; }
.comment-form .submit { background: var(--st-accent); color: #fff; border: 0; border-radius: 0.5rem; padding: 0.6rem 1.2rem; min-block-size: 44px; font: inherit; font-weight: 700; }

/* Footer */
.site-footer { border-block-start: 1px solid var(--st-border); background: #08080a; padding-block: 2rem; color: var(--st-muted); font-size: 0.9rem; }
.footer-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.5rem; margin-block-end: 1.5rem; }
.footer-nav .menu { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.footer-nav a { color: var(--st-text); }
.footer-note { margin: 0; }

/* Age gate */
body.has-age-gate { overflow: hidden; }
.age-gate { position: fixed; inset: 0; z-index: 99999; background: rgba(0, 0, 0, 0.96); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.age-gate-box { max-inline-size: 30rem; background: var(--st-bg-2); border: 1px solid var(--st-accent); border-radius: var(--st-radius); padding: 2rem; text-align: center; }
.age-gate-box h2 { margin-block-start: 0; color: #fff; font-size: 1.8rem; }
.age-gate-box form { display: flex; flex-direction: column; gap: 0.75rem; margin-block: 1.25rem; }
.age-gate-legal { font-size: 0.85rem; color: var(--st-muted); }

/* Accessibility widget */
.a11y { position: fixed; inset-block-end: 1rem; inset-inline-start: 1rem; z-index: 9999; }
.a11y-toggle { inline-size: 52px; block-size: 52px; border-radius: 50%; background: #1d4ed8; color: #fff; border: 2px solid #fff; font-size: 1.5rem; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5); }
.a11y-panel { position: absolute; inset-block-end: 60px; inset-inline-start: 0; inline-size: 16rem; background: #fff; color: #111; border-radius: 0.75rem; padding: 1rem; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5); display: flex; flex-direction: column; gap: 0.5rem; }
.a11y-title { margin: 0 0 0.25rem; font-size: 1.1rem; color: #111; }
.a11y-row { display: flex; justify-content: space-between; align-items: center; }
.a11y-row button, .a11y-opt { min-block-size: 40px; border: 1px solid #999; background: #f4f4f4; color: #111; border-radius: 0.4rem; padding: 0.4rem 0.75rem; font: inherit; cursor: pointer; }
.a11y-row button { margin-inline-start: 0.25rem; }
.a11y-opt[aria-pressed="true"] { background: #1d4ed8; color: #fff; border-color: #1d4ed8; }
.a11y-link { color: #1d4ed8; font-size: 0.9rem; }
html.a11y-contrast { --st-bg: #000; --st-bg-2: #000; --st-border: #fff; --st-text: #fff; --st-muted: #fff; --st-accent: #ffff00; }
html.a11y-contrast .btn { color: #000; }
html.a11y-contrast a { color: #ffff00; text-decoration: underline; }
html.a11y-links a { text-decoration: underline !important; outline: 1px dashed currentColor; outline-offset: 2px; }
html.a11y-font body, html.a11y-font * { font-family: Arial, Helvetica, sans-serif !important; letter-spacing: 0.02em; }
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; } }
@media (forced-colors: active) { .btn, .a11y-toggle { border: 1px solid ButtonText; } }
@media print { .site-header, .site-footer, .a11y, .age-gate { display: none !important; } body { background: #fff; color: #000; } }

/* Front page */
.hero-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; margin-block: 2rem; }
.feature-icon { font-size: 2rem; margin: 0; }
.member-home { display: grid; gap: 2rem; }
@media (min-width: 1100px) { .member-home { grid-template-columns: minmax(0, 1fr) 22rem; align-items: start; } .member-side { position: sticky; inset-block-start: 5rem; } }
.page-content-full, .entry-full { max-inline-size: none; }
