:root {
  --bg-color: #050505;
  --surface: rgba(28, 28, 32, 0.72);
  --surface-strong: rgba(42, 42, 48, 0.86);
  --text-main: #ffffff;
  --text-sec: rgba(255, 255, 255, 0.68);
  --text-muted: rgba(255, 255, 255, 0.48);
  --accent: #ff3b30;
  --accent-soft: rgba(255, 59, 48, 0.22);
  --border: rgba(255, 255, 255, 0.1);
  --radius: 8px;
  --max: 1080px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(180deg, rgba(92, 15, 10, 0.42), rgba(5, 5, 5, 0) 360px), var(--bg-color);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  letter-spacing: 0;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(5, 5, 5, 0.82);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
  text-decoration: none;
  font-weight: 700;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 59, 48, 0.42);
}

.main-nav,
.lang-switcher,
.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-link,
.lang-switcher a,
.footer-links a,
.chip {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--text-sec);
  text-decoration: none;
  font-size: 14px;
}

.nav-link:hover,
.nav-link.active,
.lang-switcher a:hover,
.footer-links a:hover,
.link-chip:hover {
  color: var(--text-main);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.hero {
  min-height: 68vh;
  display: flex;
  align-items: end;
  padding: clamp(120px, 18vh, 180px) clamp(18px, 5vw, 64px) 54px;
  background-image: linear-gradient(180deg, rgba(5, 5, 5, 0.1), rgba(5, 5, 5, 0.92)), var(--hero-image);
  background-size: cover;
  background-position: center;
}

.hero-content,
.page-hero,
.content-band,
.article,
.footer {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.hero-content {
  margin-inline: 0;
  max-width: 760px;
}

.hero h1,
.page-hero h1,
.article-header h1 {
  margin: 0;
  font-size: clamp(36px, 7vw, 76px);
  line-height: 0.98;
}

.hero p,
.page-hero p,
.article-lead {
  color: var(--text-sec);
  font-size: 18px;
  line-height: 1.6;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

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

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 12px 16px;
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 700;
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.08);
}

.content-band,
.page-hero,
.article {
  padding-block: 54px;
}

.page-hero.compact {
  padding-top: 76px;
  padding-bottom: 28px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 0;
  font-size: 28px;
}

.prose {
  max-width: 780px;
}

.prose.lead {
  font-size: 18px;
}

.prose p,
.prose li {
  color: var(--text-sec);
  line-height: 1.75;
  font-size: 16px;
}

.prose h2 {
  margin: 34px 0 12px;
  color: var(--text-main);
  font-size: 24px;
}

.info-grid,
.link-grid,
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.info-item,
.link-card,
.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
}

.info-item {
  padding: 16px;
  color: var(--text-sec);
}

.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 15px 18px;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.link-card:hover,
.post-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24), 0 0 20px var(--accent-soft);
}

.link-card:active,
.post-card:active,
.button:active {
  transform: scale(0.98);
}

.link-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.link-copy {
  flex: 1;
  display: grid;
  gap: 4px;
}

.link-copy small,
.post-card small,
.article-meta,
.chip {
  color: var(--text-muted);
}

.chevron {
  color: var(--text-sec);
  font-size: 22px;
}

.post-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.post-card {
  min-height: 100%;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.post-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--surface-strong);
}

.post-card-copy {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.post-card-copy span {
  color: var(--text-sec);
  line-height: 1.5;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 28px;
}

.chip {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
}

.article {
  max-width: 860px;
}

.article-header {
  margin-bottom: 26px;
}

.article-image {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 30px;
}

.article-meta {
  margin-top: 16px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 0 52px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

.footer p {
  margin: 6px 0 0;
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand {
    min-width: 0;
  }

  .hero {
    min-height: 72vh;
    padding-top: 110px;
  }

  .hero h1,
  .page-hero h1,
  .article-header h1 {
    font-size: 38px;
  }

  .footer {
    flex-direction: column;
  }
}
