:root {
  color-scheme: dark;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f7faf8;
  background: #07110e;
  --green-950: #07110e;
  --green-900: #10251e;
  --green-800: #173f2d;
  --field: #2d7c45;
  --mint: #63dfb6;
  --yellow: #f6c344;
  --muted: #a9b9b3;
  --panel: rgba(16, 37, 30, 0.9);
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 72% 0%, rgba(45, 124, 69, 0.42), transparent 28rem),
    radial-gradient(circle at 8% 22%, rgba(246, 195, 68, 0.08), transparent 21rem),
    linear-gradient(180deg, #10251e 0%, #07110e 52%, #06100d 100%);
}

a { color: inherit; }
a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; border-radius: 5px; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 0.65rem;
  background: var(--yellow);
  color: var(--green-900);
  font-weight: 800;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 1rem; }

.site-shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(7, 17, 14, 0.78);
  backdrop-filter: blur(14px);
}
.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  width: 46px;
  height: 46px;
  display: block;
  flex: 0 0 46px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(246, 195, 68, 0.18);
}
.brand-copy strong { display: block; font-size: 1.05rem; }
.brand-copy span { display: block; margin-top: 2px; color: var(--muted); font-size: 0.78rem; }

.site-nav { display: flex; align-items: center; gap: 18px; }
.site-nav a { color: #dfe8e4; font-size: 0.92rem; font-weight: 700; text-decoration: none; }
.site-nav a:hover { color: var(--yellow); }

main { min-height: calc(100vh - 172px); }

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 12vw, 136px) 0 clamp(66px, 9vw, 108px);
}
.hero::after {
  content: "";
  position: absolute;
  right: -7rem;
  top: 3rem;
  width: 30rem;
  height: 19rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  transform: rotate(-18deg);
  pointer-events: none;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 18px;
  color: var(--mint);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--yellow); }
.hero h1,
.page-hero h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(3rem, 11vw, 7.2rem);
  line-height: 0.88;
  letter-spacing: -0.065em;
}
.hero h1 span { color: var(--yellow); }
.hero h1 small {
  color: var(--mint);
  font-size: 0.24em;
  letter-spacing: -0.02em;
  vertical-align: 0.24em;
  white-space: nowrap;
}
.hero-lead {
  max-width: 690px;
  margin: 30px 0 0;
  color: #d0dcd7;
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  line-height: 1.65;
}
.hero-note {
  max-width: 640px;
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.section { padding: 0 0 clamp(72px, 10vw, 112px); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 0.65fr); gap: 34px; align-items: end; margin-bottom: 28px; }
.section-heading h2 { margin: 0; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1; letter-spacing: -0.04em; }
.section-heading p { margin: 0; color: var(--muted); line-height: 1.6; }

.topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.topic-card {
  position: relative;
  min-height: 220px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(23, 63, 45, 0.9), rgba(16, 37, 30, 0.96));
  box-shadow: var(--shadow);
}
.topic-card::before {
  content: attr(data-number);
  position: absolute;
  right: 18px;
  top: 12px;
  color: rgba(246, 195, 68, 0.18);
  font-size: 4.2rem;
  font-weight: 950;
  letter-spacing: -0.08em;
}
.topic-card h3 { position: relative; margin: 92px 0 9px; font-size: 1.16rem; }
.topic-card p { position: relative; margin: 0; color: #b8c8c2; line-height: 1.55; font-size: 0.94rem; }

.channel-card {
  display: grid;
  grid-template-columns: 1.3fr auto;
  gap: 28px;
  align-items: center;
  padding: clamp(26px, 5vw, 44px);
  border: 1px solid rgba(246, 195, 68, 0.32);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(75, 60, 19, 0.36), rgba(16, 37, 30, 0.9));
}
.channel-card h2 { margin: 0 0 10px; font-size: clamp(1.7rem, 4vw, 2.5rem); letter-spacing: -0.035em; }
.channel-card p { margin: 0; color: #c4d0cc; line-height: 1.6; }
.button-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 14px;
  background: var(--yellow);
  color: var(--green-900);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}
.button-link:hover { filter: brightness(1.05); }

.page-hero { padding: clamp(60px, 9vw, 104px) 0 34px; }
.page-hero h1 { max-width: 850px; font-size: clamp(3rem, 9vw, 6.1rem); }
.page-hero p { max-width: 740px; margin: 24px 0 0; color: #cbd7d2; font-size: 1.08rem; line-height: 1.7; }
.updated { display: block; margin-top: 14px; color: var(--muted); font-size: 0.85rem; }

.prose-wrap { padding: 0 0 clamp(76px, 10vw, 118px); }
.prose {
  max-width: 820px;
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.prose h2 { margin: 2.2rem 0 0.7rem; font-size: 1.35rem; letter-spacing: -0.02em; }
.prose h2:first-child { margin-top: 0; }
.prose p,
.prose li { color: #cbd7d2; line-height: 1.72; }
.prose ul { padding-left: 1.25rem; }
.prose strong { color: #ffffff; }
.prose a { color: #fff0b4; text-underline-offset: 3px; }

.not-found { padding: clamp(90px, 16vw, 160px) 0; }
.not-found strong { color: var(--yellow); font-size: clamp(4rem, 16vw, 10rem); letter-spacing: -0.08em; }
.not-found h1 { margin: 6px 0 14px; font-size: clamp(2rem, 6vw, 4rem); letter-spacing: -0.045em; }
.not-found p { max-width: 620px; color: var(--muted); line-height: 1.65; }

.site-footer { border-top: 1px solid var(--line); background: rgba(4, 12, 9, 0.7); }
.footer-inner { min-height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: #c8d4cf; font-size: 0.9rem; }
.footer-copy { color: var(--muted); font-size: 0.85rem; }

@media (max-width: 860px) {
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .section-heading { grid-template-columns: 1fr; }
  .channel-card { grid-template-columns: 1fr; }
  .channel-card .button-link { justify-self: start; }
}

@media (max-width: 620px) {
  .site-shell { width: min(100% - 24px, 1120px); }
  .header-inner { min-height: auto; padding: 14px 0; align-items: flex-start; }
  .brand-copy span { display: none; }
  .site-nav { gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
  .site-nav a { font-size: 0.84rem; }
  .hero::after { opacity: 0.45; right: -17rem; }
  .topic-grid { grid-template-columns: 1fr; }
  .topic-card { min-height: 180px; }
  .topic-card h3 { margin-top: 66px; }
  .footer-inner { padding: 24px 0; align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
