@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=Source+Serif+4:opsz,wght@8..60,400;8..60,600&display=swap");

:root {
  --bg: #0f1419;
  --surface: #1a222c;
  --surface-2: #232d3a;
  --paper: #f7f5f2;
  --paper-text: #1c1c1c;
  --accent: #d4a574;
  --accent-dim: #b8895a;
  --teal: #3d8b7a;
  --text: #e8eaed;
  --muted: #9aa3ad;
  --border: rgba(255, 255, 255, 0.08);
  --max: 1180px;
  --article: 42rem;
  --font-ui: "Manrope", system-ui, sans-serif;
  --font-read: "Source Serif 4", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

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

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 20, 25, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}
.brand { display: flex; flex-direction: column; gap: 0.1rem; }
.brand a {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}
.brand a span { color: var(--accent); }
.brand small {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 1.25rem;
}
.main-nav {
  display: none;
  position: fixed;
  inset: 0;
  top: 3.5rem;
  background: rgba(15, 20, 25, 0.98);
  padding: 1.5rem 1.25rem 2rem;
  overflow-y: auto;
  border-top: 1px solid var(--border);
}
.main-nav.is-open { display: block; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav li { border-bottom: 1px solid var(--border); }
.main-nav a {
  display: block;
  padding: 0.85rem 0;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}
.main-nav a:hover { color: var(--accent); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .main-nav {
    display: block;
    position: static;
    inset: auto;
    background: transparent;
    padding: 0;
    border: none;
    overflow: visible;
  }
  .main-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
    justify-content: flex-end;
  }
  .main-nav li { border: none; }
  .main-nav a { padding: 0.35rem 0; font-size: 0.82rem; font-weight: 600; color: var(--muted); }
  .main-nav a:hover { color: var(--accent); }
}

/* Hero */
.page-hero {
  padding: 2.5rem 0 2rem;
  background: linear-gradient(165deg, #1a222c 0%, #0f1419 55%, #141a22 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero.compact { padding: 2rem 0 1.5rem; }
.hero-kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 0.5rem;
}
.page-hero h1 {
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
  max-width: 20ch;
}
.page-hero .hero-lead {
  margin: 0.85rem 0 0;
  max-width: 48ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}
.hero-actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: #1a1208; }
.btn-primary:hover { background: var(--accent-dim); color: #1a1208; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Home grid */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 2.5rem 0 1.25rem;
}
.section-head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.badge-new {
  font-size: 0.65rem;
  background: var(--teal);
  color: #fff;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  vertical-align: middle;
  margin-left: 0.35rem;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 165, 116, 0.35);
}
.card-thumb {
  height: 100px;
  background: linear-gradient(135deg, var(--surface-2), #2a3544 40%, rgba(61, 139, 122, 0.25));
}
.card-body { padding: 1rem 1.1rem 1.15rem; }
.card-cat {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0 0.35rem;
}
.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Article */
.article-wrap {
  background: var(--paper);
  color: var(--paper-text);
  padding: 2.5rem 0 3.5rem;
}
.article-layout {
  display: grid;
  gap: 2rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 960px) {
  .article-layout.has-sidebar {
    grid-template-columns: 1fr 240px;
    align-items: start;
  }
}
.breadcrumb {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--teal); }
.article-main {
  max-width: var(--article);
  font-family: var(--font-read);
  font-size: 1.08rem;
  line-height: 1.78;
}
.article-main h2 {
  font-family: var(--font-ui);
  font-size: 1.35rem;
  font-weight: 800;
  margin: 2rem 0 0.75rem;
  color: #111;
}
.article-main h3 {
  font-family: var(--font-ui);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
}
.article-main p { margin: 0 0 1rem; }
.article-main a { color: #1a5f4a; text-decoration: underline; text-underline-offset: 2px; }
.article-main ul, .article-main ol { margin: 0 0 1rem 1.25rem; }

/* Targets block */
.targets-block {
  margin: 2rem auto;
  padding: 1.25rem 1.35rem;
  background: #eef6f3;
  border: 1px solid #c5ddd5;
  border-radius: 12px;
  max-width: 52rem;
  text-align: center;
}
.targets-block h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 800;
  color: #1a3d34;
}
.targets-intro { margin: 0 auto 1rem; font-size: 0.9rem; color: #555; max-width: 36rem; }
.targets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.65rem;
  justify-items: center;
  text-align: left;
  max-width: 48rem;
  margin: 0 auto;
}
.target-card {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  width: 100%;
  max-width: 220px;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid #d0d0d0;
  background: #fff;
  transition: box-shadow 0.15s ease;
}
.target-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
.target-clearnet { border-left: 3px solid var(--teal); }
.target-onion { border-left: 3px solid #6b5b95; }
.target-badge {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #888;
}
.target-name { font-weight: 700; font-size: 0.95rem; color: #111; }
.target-url { font-size: 0.75rem; color: #1a5f4a; word-break: break-all; }

/* FAQ */
.faq-block {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #ddd;
}
.faq-block > h2 {
  font-family: var(--font-ui);
  font-size: 1.2rem;
  margin: 0 0 1rem;
}
.faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  margin-bottom: 0.5rem;
  background: #fff;
  overflow: hidden;
}
.faq-item button {
  width: 100%;
  text-align: left;
  padding: 0.85rem 1rem;
  border: none;
  background: #fafafa;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  color: #222;
}
.faq-item .faq-answer {
  padding: 0 1rem 1rem;
  display: none;
  font-size: 0.98rem;
}
.faq-item.is-open .faq-answer { display: block; }
.faq-item.is-open button { background: #fff; border-bottom: 1px solid #eee; }

.related {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #ddd;
  font-size: 0.9rem;
  color: #555;
}
.related h2 {
  font-family: var(--font-ui);
  font-size: 1rem;
  margin: 0 0 0.75rem;
  color: #333;
}
.sidebar {
  font-family: var(--font-ui);
  font-size: 0.88rem;
}
.sidebar h2 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888;
  margin: 0 0 0.75rem;
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { margin-bottom: 0.5rem; }
.sidebar a { color: #1a5f4a; font-weight: 600; }

.site-footer {
  padding: 2rem 1.25rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

.access-strip {
  margin: 2rem 0 3rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-align: center;
}
.access-strip .targets-block {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
}
.access-strip .targets-block h3,
.access-strip .targets-intro {
  color: var(--text);
}
.access-strip .targets-intro { color: var(--muted); }

/* matanga-24.cloud — neon nightlife */
body.theme-m24 {
  --bg: #090d16;
  --surface: #121a28;
  --surface-2: #1a2436;
  --accent: #ff4d8d;
  --accent-dim: #e03d78;
  --teal: #00d4aa;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --paper: #f4f4f8;
  --paper-text: #121212;
}
body.theme-m24 .card-thumb {
  background: linear-gradient(135deg, #1a2436, #ff4d8d33 50%, #00d4aa22);
}
body.theme-m24 .btn-primary {
  background: linear-gradient(90deg, #ff4d8d, #ff0055);
  color: #fff;
}
.access-strip h2 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
