:root {
  --bg: #0b0b0c;
  --bg-elev: #141416;
  --bg-elev-2: #1c1c1f;
  --border: #26262b;
  --text: #e8e8ea;
  --muted: #8a8a92;
  --accent: #e10600;
  --accent-hover: #ff1a12;
}

* { -webkit-font-smoothing: antialiased; }
html, body { background: var(--bg); color: var(--text); }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; }

h1, h2, h3, h4, .brand { font-family: 'Archivo Black', sans-serif; letter-spacing: -0.5px; }
code, pre, .mono { font-family: 'JetBrains Mono', monospace; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* --- 60% width containers --- */
.container,
.container-fluid,
.container-narrow {
  width: 60% !important;
  max-width: 60% !important;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (max-width: 992px) {
  .container,
  .container-fluid,
  .container-narrow {
    width: 92% !important;
    max-width: 92% !important;
  }
}

/* --- Header --- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(11,11,12,0.85);
  backdrop-filter: blur(8px);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.site-header .brand { font-size: 1.5rem; color: var(--text); text-transform: uppercase; }
.site-header .brand:hover { color: var(--accent); }
.site-header .brand i { color: var(--accent); font-size: 0.85em; margin-right: 0.5rem; }
.nav-link { color: var(--muted) !important; font-weight: 500; }
.nav-link:hover { color: var(--accent) !important; }

/* --- Buttons & forms --- */
.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }

.form-control,
.form-control:focus {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: none;
}
.form-control:focus { border-color: var(--accent); }
.form-control::placeholder { color: #55555c; }

/* --- Post cards --- */
.post-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.post-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.post-card .thumb {
  aspect-ratio: 16 / 9;
  background: var(--bg-elev-2);
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border);
  display: block;
}
.post-card .body {
  padding: 1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-card .date {
  font-size: 0.78rem;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.post-card .title { font-size: 1.05rem; margin: 0.35rem 0 0.5rem; line-height: 1.25; }
.post-card .title a { color: var(--text); }
.post-card .title a:hover { color: var(--accent); }
.post-card .excerpt { color: var(--muted); font-size: 0.9rem; flex: 1; }
.post-card .read-more {
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- Hero / page headers --- */
.page-hero {
  padding: 3rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-hero .lede { color: var(--muted); max-width: 640px; }

/* --- Pagination --- */
.pagination .page-link {
  background: var(--bg-elev);
  border-color: var(--border);
  color: var(--text);
}
.pagination .page-link:hover {
  background: var(--bg-elev-2);
  color: var(--accent);
  border-color: var(--accent);
}
.pagination .page-item.active .page-link {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.pagination .page-item.disabled .page-link {
  background: var(--bg);
  color: #444;
  border-color: var(--border);
}

/* --- Post body --- */
.post-body { font-size: 1.03rem; line-height: 1.75; color: #d6d6da; }
.post-body h1,
.post-body h2,
.post-body h3 { margin-top: 2rem; margin-bottom: 0.9rem; color: var(--text); }
.post-body h2 { font-size: 1.5rem; }
.post-body h3 { font-size: 1.2rem; }
.post-body p { margin-bottom: 1.15rem; }
.post-body a { text-decoration: underline; text-underline-offset: 3px; }
.post-body code {
  background: var(--bg-elev-2);
  padding: 0.12em 0.35em;
  border-radius: 4px;
  font-size: 0.9em;
  color: #ff8b87;
}
.post-body pre {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.1rem;
  border-radius: 8px;
  overflow-x: auto;
}
.post-body pre code { background: none; color: var(--text); padding: 0; }
.post-body blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  color: var(--muted);
  margin: 1.4rem 0;
}
.post-body img { max-width: 100%; height: auto; border-radius: 8px; }

.post-hero {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
  background: var(--bg-elev);
  margin-bottom: 2rem;
  background-size: cover;
  background-position: center;
}
.post-title { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.1; }
.post-meta {
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 4rem;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* --- Empty state --- */
.empty { padding: 4rem 1rem; text-align: center; color: var(--muted); }
.empty i { font-size: 2.5rem; color: var(--accent); margin-bottom: 1rem; display: block; }

/* --- Age gate --- */
#age-gate {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1080;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
#age-gate.show { display: flex; }
#age-gate .gate-box {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 10px;
  padding: 2rem 1.75rem;
  width: 100%;
  max-width: 380px;
  text-align: center;
}
#age-gate h2 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
#age-gate p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
#age-gate .gate-actions {
  display: flex;
  gap: 0.5rem;
}
#age-gate .gate-actions .btn { flex: 1; }
#age-gate .btn-deny {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
}
#age-gate .btn-deny:hover {
  border-color: var(--muted);
  color: var(--text);
}
body.age-locked { overflow: hidden; }

/* --- Featured image: true blood red --- */
.post-card .thumb,
.post-hero {
  position: relative;
  /* No sepia. Desaturate fully, then shift to red and saturate hard. */
  filter: grayscale(1) contrast(1.2) brightness(0.7) sepia(1) hue-rotate(-50deg) saturate(8);
}

.post-card .thumb::after,
.post-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Uses your exact button red, blended hard to lock in the hue */
  background: rgba(225, 6, 0, 0.7); 
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* --- Post body: tick list --- */
.post-body ul.tick-list {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
  list-style: none;
}

.post-body ul.tick-list li {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.6rem;
  padding-left: 1.75rem; /* Slightly more space for the wider checkmark */
  position: relative;
  cursor: default;
  transition: color 0.2s ease;
}

/* The red tick */
.post-body ul.tick-list li::before {
  content: "\f00c"; /* FontAwesome check */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--accent);
  transition: color 0.2s ease;
}

/* Hover states: text and tick go white, no underline */
.post-body ul.tick-list li:hover,
.post-body ul.tick-list li:hover a,
.post-body ul.tick-list li a:hover {
  color: #ffffff;
  text-decoration: none;
}

/* --- Link list with favicons --- */
.post-body ul.link-list {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
  list-style: none;
}

.post-body ul.link-list li {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  padding-left: 2rem; /* Make room for the image */
  position: relative;
  display: flex;
  align-items: flex-start; /* Aligns to the top of the container */
}

/* The favicon */
.post-body ul.link-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25rem; /* Pushes the icon down slightly to align with the first line */
  width: 20px;
  height: 20px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 4px;
  background-image: var(--favicon);
}

/* Hover: text goes white, no underline */
.post-body ul.link-list li a:hover {
  color: #ffffff;
  text-decoration: none;
}

/* --- Post body: card list --- */
.post-body ul.post-list {
  padding-left: 0;
  margin: 2rem 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.post-body ul.post-list li {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.25rem 1.25rem 3.5rem; /* Left padding leaves room for the icon */
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  position: relative;
  transition: all 0.2s ease;
}

/* The graphic: a red glowing checkmark inside a circle */
.post-body ul.post-list li::before {
  content: "\f00c"; /* FontAwesome check */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background: rgba(225, 6, 0, 0.15); /* Faint red background */
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

/* Hover effects: card lifts, border turns red, icon glows */
.post-body ul.post-list li:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.post-body ul.post-list li:hover::before {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 10px rgba(225, 6, 0, 0.4);
}

/* --- Make whole post-list cards clickable --- */
.post-body ul.post-list li {
  position: relative; /* Already has this, but just ensuring it */
}

.post-body ul.post-list li a {
  color: inherit;
  text-decoration: none;
}

/* Stretch the link to fill the card */
.post-body ul.post-list li a::after {
  content: "";
  position: absolute;
  inset: 0; /* Fills the entire relative parent */
  z-index: 1;
}

/* --- Bootstrap Accordion Overrides --- */
.accordion-button {
  background-color: var(--bg-elev) !important;
  color: var(--text) !important;
  border: none !important;
  box-shadow: none !important;
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
}

.accordion-button:not(.collapsed) {
  background-color: var(--bg-elev-2) !important;
  color: var(--accent) !important;
}

/* Remove the default Bootstrap focus ring */
.accordion-button:focus {
  box-shadow: none !important;
  border-color: var(--border) !important;
}

/* The custom red arrow */
.accordion-button::after {
  background-image: none !important;
  content: "\f107"; /* FontAwesome chevron-down */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--accent);
  transition: transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
}

/* Rotate the arrow when open */
.accordion-button:not(.collapsed)::after {
  transform: rotate(-180deg);
}

/* The content text */
.accordion-body {
  background-color: var(--bg-elev);
  color: var(--muted) !important;
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 1rem 1.25rem 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
}

/* The link inside the content */
.accordion-body a {
  color: var(--accent) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.accordion-body a:hover {
  color: #ffffff !important;
  text-decoration: none;
}