/* =========================================================
   {{BRAND}} — Magazine-Pro template
   Editorial-grade UI, mobile-first, light + auto-dark
   ========================================================= */

/* ---------- 1. Reset + tokens ---------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 4; scroll-behavior: smooth; }
body {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 16px; line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; border-spacing: 0; }

:root {
  --bg: #ffffff;
  --bg-soft: #f3f8fc;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.16);
  --text: #1a1a1a;
  --text-soft: #4a4a4a;
  --text-mute: #6e6e6e;
  --accent: #0891b2;
  --accent-soft: #0891b21a;
  --accent-text: #ffffff;
  --success: #1e9d4f;
  --warn: #c47800;
  --danger: #c92020;

  --font-ui: 'IBM Plex Sans', system-ui, sans-serif;
  --font-serif: 'IBM Plex Serif', Georgia, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;

  --r-sm: 4px;
  --r-md: 7px;
  --r-lg: 9px;
  --r-xl: 14px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.04);

  --container-w: 1180px;
  --container-narrow: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1015;
    --bg-soft: #161922;
    --bg-card: #1a1e29;
    --bg-elevated: #20242f;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text: #e8eaef;
    --text-soft: #a4a9b5;
    --text-mute: #6e7585;
    --accent: #1e40af;
    --accent-soft: #1e40af26;
  }
}

/* ---------- 2. Layout primitives ---------- */
.container { width: 100%; max-width: var(--container-w); margin: 0 auto; padding: 0 var(--s-4); }
.container-narrow { max-width: var(--container-narrow); }
.section { padding: var(--s-7) 0; }
.section + .section { border-top: 1px solid var(--border); }

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(28px, 4.5vw, 44px); }
h2 { font-size: clamp(22px, 3vw, 30px); }
h3 { font-size: clamp(18px, 2.4vw, 22px); }
h4 { font-size: 17px; }
p { margin-bottom: var(--s-4); color: var(--text-soft); }

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
}
.site-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-3) 0; gap: var(--s-4);
}
.brand {
  display: flex; align-items: center; gap: var(--s-2);
  font-weight: 800; font-size: 18px; letter-spacing: -0.02em;
  color: var(--text);
}
.brand-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #7e2bff);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 16px;
}
.nav { display: flex; gap: var(--s-5); align-items: center; }
.nav a {
  font-weight: 500; font-size: 14px; color: var(--text-soft);
  padding: var(--s-2) 0; transition: color 0.15s;
}
.nav a:hover { color: var(--text); }
.search-toggle {
  background: var(--bg-soft); border: 1px solid var(--border);
  padding: var(--s-2) var(--s-3); border-radius: var(--r-md);
  font-size: 13px; color: var(--text-mute); cursor: pointer;
  display: flex; align-items: center; gap: var(--s-2);
}
.menu-toggle { display: none; }
@media (max-width: 768px) {
  .nav { display: none; }
  .menu-toggle {
    display: flex; background: transparent; border: 1px solid var(--border);
    width: 38px; height: 38px; border-radius: var(--r-md);
    align-items: center; justify-content: center; cursor: pointer;
  }
  .nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; right: var(--s-4); left: var(--s-4);
    background: var(--bg-elevated); border: 1px solid var(--border);
    border-radius: var(--r-md); padding: var(--s-4);
    box-shadow: var(--shadow-lg); gap: var(--s-3);
  }
  .nav.open a { padding: var(--s-2); border-radius: var(--r-sm); }
  .search-toggle { display: none; }
}

/* ---------- 5. Hero / featured ---------- */
.hero {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s-6);
  padding: var(--s-6) 0;
}
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }
.hero-featured {
  display: flex; flex-direction: column; gap: var(--s-4);
}
.hero-featured img {
  border-radius: var(--r-lg); aspect-ratio: 16/9; object-fit: cover;
  background: var(--bg-soft);
}
.hero-meta { display: flex; gap: var(--s-3); align-items: center; font-size: 13px; color: var(--text-mute); }
.hero-meta .chip { background: var(--accent-soft); color: var(--accent); padding: 3px 10px; border-radius: 100px; font-weight: 600; }
.hero-featured h1 { font-size: clamp(26px, 3.5vw, 38px); margin-bottom: var(--s-2); }
.hero-featured h1 a { color: var(--text); }
.hero-featured h1 a:hover { color: var(--accent); }
.hero-featured .lead { color: var(--text-soft); font-size: 17px; line-height: 1.55; }

.hero-side { display: flex; flex-direction: column; gap: var(--s-4); }
.hero-side .side-item {
  display: flex; gap: var(--s-3); padding: var(--s-3); border-radius: var(--r-md);
  transition: background 0.15s;
}
.hero-side .side-item:hover { background: var(--bg-soft); }
.hero-side .side-item img { width: 88px; height: 88px; object-fit: cover; border-radius: var(--r-sm); flex-shrink: 0; }
.hero-side .side-item h3 { font-size: 15px; line-height: 1.35; font-weight: 600; }
.hero-side .side-item .meta { font-size: 12px; color: var(--text-mute); margin-top: var(--s-2); }

/* ---------- 6. Article grid ---------- */
.grid-articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); padding: var(--s-6) 0; }
@media (max-width: 900px) { .grid-articles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-articles { grid-template-columns: 1fr; } }

.card-article {
  display: flex; flex-direction: column; gap: var(--s-3);
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card-article:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card-article img { aspect-ratio: 16/10; object-fit: cover; background: var(--bg-soft); }
.card-article .body { padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.card-article .meta { display: flex; gap: var(--s-2); align-items: center; font-size: 12px; color: var(--text-mute); }
.card-article .meta .chip { background: var(--accent-soft); color: var(--accent); padding: 2px 8px; border-radius: 100px; font-weight: 600; font-size: 11px; }
.card-article h3 { font-size: 17px; line-height: 1.35; font-weight: 700; }
.card-article h3 a { color: var(--text); }
.card-article h3 a:hover { color: var(--accent); }
.card-article .desc { font-size: 14px; color: var(--text-soft); line-height: 1.55; flex: 1; }
.card-article .footer-row { display: flex; align-items: center; justify-content: space-between; padding-top: var(--s-2); border-top: 1px solid var(--border); font-size: 12px; color: var(--text-mute); }

/* ---------- 7. Section heading ---------- */
.section-heading {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: var(--s-4); margin-bottom: var(--s-4);
  border-bottom: 2px solid var(--text);
}
.section-heading h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.section-heading a.more { font-size: 14px; color: var(--accent); font-weight: 600; }

/* ---------- 8. Article page ---------- */
.article-page { padding: var(--s-6) 0; }
.breadcrumbs {
  display: flex; gap: var(--s-2); align-items: center;
  font-size: 13px; color: var(--text-mute); margin-bottom: var(--s-5);
  flex-wrap: wrap;
}
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { color: var(--text-mute); }

.article-head { max-width: var(--container-narrow); margin: 0 auto; }
.article-head .category-chip {
  display: inline-block; background: var(--accent-soft); color: var(--accent);
  padding: 4px 12px; border-radius: 100px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: var(--s-3);
}
.article-head h1 { font-size: clamp(28px, 4vw, 42px); margin-bottom: var(--s-4); letter-spacing: -0.02em; }
.article-head .lead { font-size: 20px; line-height: 1.55; color: var(--text-soft); font-family: var(--font-serif); margin-bottom: var(--s-5); }
.article-meta-row {
  display: flex; align-items: center; gap: var(--s-4);
  padding: var(--s-4) 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  font-size: 14px; color: var(--text-mute); flex-wrap: wrap;
}
.article-meta-row .author { display: flex; align-items: center; gap: var(--s-2); }
.article-meta-row .author-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--text); font-weight: 700; font-size: 13px;
  overflow: hidden;
}
.article-meta-row .author-name { color: var(--text); font-weight: 600; }
.article-meta-row .reading-time { display: flex; align-items: center; gap: 4px; }

.article-cover {
  max-width: var(--container-w); margin: var(--s-5) auto;
  border-radius: var(--r-lg); overflow: hidden;
}
.article-cover img { aspect-ratio: 21/9; object-fit: cover; width: 100%; background: var(--bg-soft); }
.article-cover figcaption { padding: var(--s-3); font-size: 13px; color: var(--text-mute); text-align: center; font-style: italic; }

.article-body {
  max-width: var(--container-narrow); margin: 0 auto;
  font-family: var(--font-serif); font-size: 18px; line-height: 1.75;
  color: var(--text);
}
.article-body p { margin-bottom: var(--s-5); }
.article-body h2 { margin-top: var(--s-7); margin-bottom: var(--s-4); font-family: var(--font-ui); font-size: 26px; }
.article-body h3 { margin-top: var(--s-6); margin-bottom: var(--s-3); font-family: var(--font-ui); font-size: 20px; }
.article-body ul, .article-body ol { margin: var(--s-4) 0 var(--s-5) var(--s-5); }
.article-body li { margin-bottom: var(--s-2); }
.article-body blockquote {
  border-left: 4px solid var(--accent); padding: var(--s-4) var(--s-5);
  margin: var(--s-6) 0; background: var(--bg-soft);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-style: italic; font-size: 20px; line-height: 1.55;
}
.article-body .callout {
  background: var(--accent-soft); border-radius: var(--r-md);
  padding: var(--s-5); margin: var(--s-6) 0;
  font-family: var(--font-ui); font-size: 16px; line-height: 1.55;
}
.article-body .callout::before {
  content: "💡  ";
}
.article-body a { color: var(--accent); border-bottom: 1px solid var(--accent-soft); }

/* TOC */
.toc {
  background: var(--bg-soft); border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5); margin: var(--s-5) 0;
  font-family: var(--font-ui); font-size: 14px;
}
.toc-title { font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: 11px; color: var(--text-mute); margin-bottom: var(--s-3); }
.toc ol { margin: 0; padding-left: var(--s-5); }
.toc li { margin-bottom: var(--s-2); list-style: decimal; color: var(--text-mute); }
.toc li a { color: var(--text-soft); }
.toc li a:hover { color: var(--accent); }

/* Share buttons */
.share-row {
  display: flex; gap: var(--s-3); align-items: center;
  padding: var(--s-5) 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin: var(--s-6) 0;
  font-family: var(--font-ui);
}
.share-row .label { font-size: 13px; color: var(--text-mute); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.share-btn {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: var(--s-2) var(--s-3); border-radius: var(--r-md);
  background: var(--bg-soft); border: 1px solid var(--border);
  font-size: 13px; font-weight: 600; color: var(--text);
  cursor: pointer; transition: background 0.15s;
}
.share-btn:hover { background: var(--bg-elevated); border-color: var(--border-strong); }

/* Author bio */
.author-bio {
  display: flex; gap: var(--s-4); align-items: flex-start;
  padding: var(--s-5); background: var(--bg-soft); border-radius: var(--r-lg);
  margin: var(--s-6) 0;
  font-family: var(--font-ui);
}
.author-bio img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-bio .name { font-size: 15px; font-weight: 700; color: var(--text); }
.author-bio .title { font-size: 13px; color: var(--text-mute); margin-bottom: var(--s-2); }
.author-bio .text { font-size: 14px; color: var(--text-soft); line-height: 1.5; }

/* Related articles */
.related {
  margin-top: var(--s-7); padding-top: var(--s-6);
  border-top: 2px solid var(--text);
  font-family: var(--font-ui);
}
.related h3 { margin-bottom: var(--s-5); font-size: 22px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
@media (max-width: 768px) { .related-grid { grid-template-columns: 1fr; } }

/* Tags row */
.tags-row { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: var(--s-5) 0; font-family: var(--font-ui); }
.tag-link {
  font-size: 12px; padding: 5px 12px; border-radius: 100px;
  background: var(--bg-soft); color: var(--text-soft);
  border: 1px solid var(--border); font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.tag-link:hover { background: var(--accent-soft); color: var(--accent); border-color: transparent; }

/* ---------- 9. Newsletter ---------- */
.newsletter {
  background: var(--bg-soft); border-radius: var(--r-lg);
  padding: var(--s-6); text-align: center;
  margin: var(--s-7) 0;
}
.newsletter h3 { font-size: 22px; margin-bottom: var(--s-3); }
.newsletter p { color: var(--text-soft); max-width: 480px; margin: 0 auto var(--s-5); }
.newsletter form { display: flex; gap: var(--s-2); max-width: 420px; margin: 0 auto; }
.newsletter input[type="email"] {
  flex: 1; padding: var(--s-3) var(--s-4); border-radius: var(--r-md);
  border: 1px solid var(--border); background: var(--bg);
  color: var(--text); font-size: 15px;
}
.newsletter input[type="email"]:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.newsletter button {
  padding: var(--s-3) var(--s-5); border-radius: var(--r-md);
  background: var(--accent); color: var(--accent-text); border: 0;
  font-weight: 600; font-size: 15px; cursor: pointer;
  transition: opacity 0.15s;
}
.newsletter button:hover { opacity: 0.9; }
.newsletter .disclaimer { font-size: 12px; color: var(--text-mute); margin-top: var(--s-3); }
@media (max-width: 600px) { .newsletter form { flex-direction: column; } }

/* ---------- 10. FAQ accordion ---------- */
.faq-list { max-width: var(--container-narrow); margin: 0 auto; display: flex; flex-direction: column; gap: var(--s-3); }
.faq-item { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg-card); overflow: hidden; }
.faq-item summary {
  padding: var(--s-4) var(--s-5);
  cursor: pointer; font-weight: 600; font-size: 16px; color: var(--text);
  list-style: none; display: flex; align-items: center; justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--text-mute); transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .answer {
  padding: 0 var(--s-5) var(--s-5);
  color: var(--text-soft); font-size: 15px; line-height: 1.6;
}

/* ---------- 11. Author page ---------- */
.author-header {
  display: flex; gap: var(--s-5); align-items: flex-start;
  padding: var(--s-6) 0; border-bottom: 1px solid var(--border);
}
.author-header img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-header h1 { font-size: 28px; margin-bottom: var(--s-2); }
.author-header .title { font-size: 16px; color: var(--text-mute); margin-bottom: var(--s-3); }
.author-header .bio { color: var(--text-soft); max-width: 600px; }
@media (max-width: 600px) { .author-header { flex-direction: column; align-items: center; text-align: center; } }

/* ---------- 12. Footer ---------- */
.site-footer {
  background: var(--bg-soft); border-top: 1px solid var(--border);
  padding: var(--s-7) 0 var(--s-5); margin-top: var(--s-8);
  font-family: var(--font-ui); font-size: 14px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s-6); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--s-4); color: var(--text); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--s-2); }
.footer-col a { color: var(--text-soft); transition: color 0.15s; }
.footer-col a:hover { color: var(--accent); }
.footer-about p { color: var(--text-soft); line-height: 1.55; margin-bottom: var(--s-3); }
.footer-about .brand { margin-bottom: var(--s-3); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: var(--s-5); margin-top: var(--s-6); border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-mute); flex-wrap: wrap; gap: var(--s-3);
}
.footer-bottom .copyright { font-weight: 500; }
.footer-bottom .legal { display: flex; gap: var(--s-4); flex-wrap: wrap; }

/* ---------- 13. Legal pages ---------- */
.legal-page { max-width: var(--container-narrow); margin: 0 auto; padding: var(--s-6) 0; font-family: var(--font-ui); }
.legal-page h1 { margin-bottom: var(--s-3); }
.legal-page .updated { color: var(--text-mute); font-size: 13px; margin-bottom: var(--s-6); }
.legal-page h2 { margin-top: var(--s-6); margin-bottom: var(--s-3); font-size: 20px; }
.legal-page p { margin-bottom: var(--s-4); color: var(--text-soft); }
.legal-page ul, .legal-page ol { margin: var(--s-4) 0 var(--s-4) var(--s-5); color: var(--text-soft); }
.legal-page li { margin-bottom: var(--s-2); }
.legal-page .requisites {
  background: var(--bg-soft); border-radius: var(--r-md);
  padding: var(--s-5); margin: var(--s-5) 0;
  font-family: var(--font-mono); font-size: 14px; line-height: 1.8;
}
.legal-page .requisites strong { color: var(--text); font-family: var(--font-ui); }

/* ---------- 14. 404 ---------- */
.error-page {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-height: 60vh; text-align: center;
  padding: var(--s-7) var(--s-4);
}
.error-page .code {
  font-size: clamp(80px, 18vw, 180px); font-weight: 800; letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--accent), #7e2bff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1;
}
.error-page h1 { font-size: 28px; margin: var(--s-4) 0 var(--s-3); }
.error-page p { color: var(--text-soft); max-width: 420px; margin: 0 auto var(--s-5); }
.error-page .actions { display: flex; gap: var(--s-3); flex-wrap: wrap; justify-content: center; }
.btn-primary {
  padding: var(--s-3) var(--s-5); background: var(--accent); color: var(--accent-text);
  border-radius: var(--r-md); font-weight: 600; transition: opacity 0.15s;
}
.btn-primary:hover { opacity: 0.9; }
.btn-secondary {
  padding: var(--s-3) var(--s-5); background: transparent;
  border: 1px solid var(--border-strong); color: var(--text);
  border-radius: var(--r-md); font-weight: 600;
}
.btn-secondary:hover { background: var(--bg-soft); }

/* ---------- 15. Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: var(--s-4); right: var(--s-4); bottom: var(--s-4);
  z-index: 100; max-width: 520px; margin: 0 auto;
  background: var(--bg-elevated); border: 1px solid var(--border-strong);
  border-radius: var(--r-lg); padding: var(--s-5);
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: var(--s-3);
  font-size: 14px;
}
.cookie-banner.hidden { display: none; }
.cookie-banner p { color: var(--text-soft); margin: 0; }
.cookie-banner .row { display: flex; gap: var(--s-2); justify-content: flex-end; }
.cookie-banner button {
  padding: var(--s-2) var(--s-4); border-radius: var(--r-md); font-weight: 600;
  cursor: pointer; font-size: 13px; border: 1px solid var(--border-strong);
  background: transparent; color: var(--text);
}
.cookie-banner button.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }

/* ---------- 16. Age gate (18+) ---------- */
.age-gate-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0, 0, 0, 0.7);
  display: flex; align-items: center; justify-content: center;
  padding: var(--s-4);
}
.age-gate-overlay.hidden { display: none; }
.age-gate-modal {
  background: var(--bg-elevated); border-radius: var(--r-lg);
  padding: var(--s-7); max-width: 420px; width: 100%;
  text-align: center; box-shadow: var(--shadow-lg);
}
.age-gate-modal .badge {
  display: inline-block; padding: 6px 16px; border-radius: 100px;
  background: var(--accent); color: white; font-weight: 800; font-size: 14px;
  margin-bottom: var(--s-4);
}
.age-gate-modal h2 { margin-bottom: var(--s-3); font-size: 22px; }
.age-gate-modal p { color: var(--text-soft); margin-bottom: var(--s-5); font-size: 15px; }
.age-gate-modal .row { display: flex; gap: var(--s-3); justify-content: center; }
.age-gate-modal button {
  padding: var(--s-3) var(--s-5); border-radius: var(--r-md); font-weight: 600;
  cursor: pointer; font-size: 15px; border: 1px solid var(--border-strong);
  background: transparent; color: var(--text);
}
.age-gate-modal button.confirm { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }

/* ---------- 17. Archive / pagination ---------- */
.archive-list { display: flex; flex-direction: column; gap: var(--s-5); }
.archive-item {
  display: grid; grid-template-columns: 240px 1fr; gap: var(--s-5);
  padding: var(--s-5) 0; border-bottom: 1px solid var(--border);
}
@media (max-width: 700px) { .archive-item { grid-template-columns: 1fr; } }
.archive-item img { aspect-ratio: 16/10; object-fit: cover; border-radius: var(--r-md); background: var(--bg-soft); }
.archive-item .meta { display: flex; gap: var(--s-3); align-items: center; font-size: 13px; color: var(--text-mute); margin-bottom: var(--s-2); }
.archive-item h3 { font-size: 22px; line-height: 1.3; margin-bottom: var(--s-3); }
.archive-item .desc { color: var(--text-soft); font-size: 15px; line-height: 1.6; }

/* ---------- 18. Search modal ---------- */
.search-modal {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(4px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: var(--s-7) var(--s-4);
}
.search-modal.hidden { display: none; }
.search-box {
  width: 100%; max-width: 640px; background: var(--bg-elevated);
  border-radius: var(--r-lg); padding: var(--s-5); box-shadow: var(--shadow-lg);
}
.search-box input {
  width: 100%; padding: var(--s-3) var(--s-4); border-radius: var(--r-md);
  border: 1px solid var(--border-strong); background: var(--bg);
  font-size: 16px; color: var(--text);
}
.search-results { max-height: 400px; overflow-y: auto; margin-top: var(--s-4); }
.search-results a {
  display: block; padding: var(--s-3); border-radius: var(--r-sm);
  font-size: 14px; transition: background 0.1s;
}
.search-results a:hover { background: var(--bg-soft); }
.search-results .empty { padding: var(--s-5); text-align: center; color: var(--text-mute); }

/* ---------- 19. Utility ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-mute { color: var(--text-mute); }
.text-soft { color: var(--text-soft); }
.divider { height: 1px; background: var(--border); margin: var(--s-5) 0; }

/* ---------- 20. Print ---------- */
@media print {
  .site-header, .site-footer, .cookie-banner, .age-gate-overlay, .share-row, .related, .newsletter { display: none !important; }
  .article-body { font-size: 14px; }
}
