:root {
  color-scheme: dark;
  --bg: #111111;
  --panel: #1b1b1f;
  --panel-soft: #242329;
  --text: #f5f1ea;
  --muted: #bdb5a9;
  --line: rgba(245, 241, 234, 0.16);
  --accent: #d94d45;
  --accent-strong: #ff665c;
  --teal: #3fb7a3;
  --gold: #d6aa58;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(17, 17, 17, 0.86);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #211918;
  color: var(--accent-strong);
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

.button,
.telegram-float {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid transparent;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  line-height: 1.15;
  box-shadow: 0 12px 32px rgba(217, 77, 69, 0.25);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  box-shadow: none;
}

.hero {
  position: relative;
  min-height: clamp(560px, 72vh, 760px);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
  content: "";
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(9, 9, 10, 0.92) 0%, rgba(9, 9, 10, 0.72) 42%, rgba(9, 9, 10, 0.22) 100%),
    linear-gradient(180deg, rgba(17, 17, 17, 0.12) 0%, #111111 100%);
  content: "";
}

.hero-inner {
  display: grid;
  align-content: center;
  width: min(1160px, calc(100% - 32px));
  min-height: inherit;
  margin: 0 auto;
  padding: 72px 0 118px;
}

.eyebrow {
  width: fit-content;
  margin: 0 0 18px;
  border: 1px solid rgba(214, 170, 88, 0.42);
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.28);
  color: #f4d898;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin: 22px 0 0;
  color: #ded6ca;
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.section {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-heading h2,
.page-title h1,
.story-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.section-heading h2 {
  font-size: clamp(30px, 4vw, 48px);
}

.section-heading.compact {
  margin-top: 44px;
}

.section-heading.compact h2 {
  font-size: clamp(28px, 3vw, 38px);
}

.section-heading p,
.page-title p {
  max-width: 640px;
  margin: 8px 0 0;
  color: var(--muted);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.story-card {
  overflow: hidden;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.story-card-image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0c0c0d;
}

.story-card-image img,
.story-cover {
  width: 100%;
  object-fit: cover;
}

.story-card-image img {
  height: 100%;
}

.story-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.story-card h3 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1.1;
}

.story-card p {
  margin: 0;
  color: var(--muted);
}

.story-card .read-link {
  margin-top: auto;
  padding-top: 20px;
  color: var(--teal);
  font-weight: 800;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 14px;
}

.page-title {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0 28px;
}

.page-title h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 300px;
  gap: 42px;
  align-items: start;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0 72px;
}

.story-article {
  min-width: 0;
}

.story-title {
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1;
}

.story-description {
  color: var(--muted);
  font-size: 20px;
}

.story-cover {
  aspect-ratio: 16 / 9;
  height: auto;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c0c0d;
  box-shadow: var(--shadow);
}

.prose {
  margin-top: 34px;
  color: #e8e1d6;
  font-size: 19px;
}

.prose h2 {
  margin-top: 42px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1.15;
}

.prose p {
  margin: 18px 0;
}

.prose blockquote {
  margin: 30px 0;
  border-left: 3px solid var(--accent);
  padding-left: 18px;
  color: #f3d9d6;
}

.story-note,
.author-box,
.author-card {
  margin-top: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.04);
}

.story-note h2,
.author-box h2,
.author-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.story-note p,
.author-box p,
.author-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.related-stories {
  margin-top: 10px;
}

.related-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.author-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.sidebar {
  position: sticky;
  top: 88px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: var(--panel-soft);
}

.sidebar h2 {
  margin: 0 0 8px;
  font-size: 19px;
}

.sidebar p {
  margin: 0 0 16px;
  color: var(--muted);
}

.sidebar-button {
  width: 100%;
  margin-top: 10px;
}

.legal-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #171719;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.legal-item {
  border-left: 3px solid var(--teal);
  padding-left: 16px;
}

.legal-item h3 {
  margin: 0 0 6px;
}

.legal-item p {
  margin: 0;
  color: var(--muted);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 94px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  font-size: 14px;
}

.telegram-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  border-radius: 999px;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(12px);
}

.gate-open .age-gate {
  display: flex;
}

.age-dialog {
  width: min(520px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.age-dialog h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.age-dialog p {
  margin: 0 0 18px;
  color: var(--muted);
}

.age-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero-inner {
    padding-top: 42px;
  }

  .story-grid,
  .related-grid,
  .author-list,
  .legal-grid,
  .story-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .footer-inner,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .button {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }

  .telegram-float {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }
}
