:root {
  color-scheme: light;
  --bg: #f7f4ee;
  --bg-2: #f2eee6;
  --header-bg: rgba(247, 244, 238, 0.88);
  --panel-bg: rgba(255, 255, 255, 0.9);
  --panel-bg-2: rgba(255, 255, 255, 0.72);
  --line: rgba(11, 18, 25, 0.12);
  --line-strong: rgba(11, 18, 25, 0.18);
  --line-hover: rgba(47, 111, 237, 0.26);
  --logo-line: rgba(11, 122, 117, 0.4);
  --text: #0b1219;
  --text-soft: rgba(11, 18, 25, 0.72);
  --accent: #0b7a75;
  --accent-2: #2f6fed;
  --accent-ink: #ffffff;
  --btn-shadow: rgba(11, 122, 117, 0.18);
  --button-line: rgba(11, 18, 25, 0.18);
  --ghost-bg: rgba(47, 111, 237, 0.08);
  --ghost-line: rgba(47, 111, 237, 0.22);
  --dash-line: rgba(11, 18, 25, 0.22);
  --newsletter-a: rgba(11, 122, 117, 0.14);
  --newsletter-b: rgba(47, 111, 237, 0.1);
  --shadow: 0 18px 44px rgba(10, 18, 26, 0.1);
  --shadow-strong: 0 30px 90px rgba(10, 18, 26, 0.16);
  --glow-1: rgba(242, 107, 58, 0.22);
  --glow-2: rgba(11, 122, 117, 0.16);
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --display: "Sora", "Manrope", system-ui, -apple-system, sans-serif;
  --body: "Manrope", "Sora", system-ui, -apple-system, sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0f14;
  --bg-2: #0b0f14;
  --header-bg: rgba(11, 15, 20, 0.78);
  --panel-bg: linear-gradient(140deg, rgba(19, 26, 36, 0.92), rgba(17, 22, 30, 0.84));
  --panel-bg-2: rgba(19, 26, 36, 0.74);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --line-hover: rgba(122, 162, 255, 0.25);
  --logo-line: rgba(98, 246, 201, 0.4);
  --text: #e6edf6;
  --text-soft: #a8b3c7;
  --accent: #62f6c9;
  --accent-2: #7aa2ff;
  --accent-ink: #081017;
  --btn-shadow: rgba(98, 246, 201, 0.15);
  --button-line: rgba(255, 255, 255, 0.2);
  --ghost-bg: rgba(122, 162, 255, 0.12);
  --ghost-line: rgba(122, 162, 255, 0.3);
  --dash-line: rgba(255, 255, 255, 0.15);
  --newsletter-a: rgba(98, 246, 201, 0.15);
  --newsletter-b: rgba(122, 162, 255, 0.12);
  --shadow: 0 30px 80px rgba(4, 8, 12, 0.6);
  --shadow-strong: 0 40px 120px rgba(4, 8, 12, 0.7);
  --glow-1: rgba(98, 246, 201, 0.35);
  --glow-2: rgba(122, 162, 255, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

ul {
  margin: 0;
  padding-left: 18px;
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background:
    radial-gradient(circle at 12% 10%, var(--glow-1) 0%, transparent 56%),
    radial-gradient(circle at 88% 0%, var(--glow-2) 0%, transparent 52%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

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

a:hover {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

img {
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
}

.skip-link:focus {
  left: 16px;
  z-index: 10;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 8vw;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--panel-bg);
  border: 1px solid var(--logo-line);
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.site-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
}

.site-tagline {
  font-size: 0.85rem;
  color: var(--text-soft);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-nav {
  display: flex;
  gap: 18px;
  font-weight: 650;
  color: var(--text-soft);
}

.site-nav a {
  color: inherit;
}

.theme-toggle {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-bg-2);
  color: var(--text-soft);
  font-weight: 750;
  cursor: pointer;
}

.theme-toggle:hover {
  color: var(--text);
  border-color: var(--line-hover);
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 44px 8vw 90px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 800;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
  align-items: center;
  margin-bottom: 56px;
}

.hero h1,
.topic-hero h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 3.4vw, 3.6rem);
  line-height: 1.03;
  margin: 10px 0 14px;
  text-wrap: balance;
}

.hero-text {
  font-size: 1.08rem;
  color: var(--text-soft);
  max-width: 48ch;
  line-height: 1.55;
}

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

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.metric {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--panel-bg-2);
}

.metric-value {
  font-weight: 800;
  font-size: 0.95rem;
}

.metric-label {
  color: var(--text-soft);
  font-size: 0.85rem;
  margin-top: 6px;
}

.mini-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mini-links a {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--panel-bg-2);
  font-weight: 700;
  color: var(--text-soft);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.mini-links a:hover {
  transform: translateY(-1px);
  border-color: var(--line-hover);
  color: var(--text);
}

.button {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 14px 30px var(--btn-shadow);
}

.button.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--button-line);
}

.button.ghost {
  background: var(--ghost-bg);
  color: var(--text);
  border: 1px solid var(--ghost-line);
}

.button.small {
  padding: 8px 14px;
  font-size: 0.85rem;
}

.hero-panel,
.sidebar-card,
.card,
.newsletter-box {
  background: var(--panel-bg);
  border-radius: var(--radius-lg);
  padding: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-panel h2 {
  font-family: var(--display);
  margin: 10px 0 10px;
}

.hero-panel ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--text-soft);
}

.section {
  margin-bottom: 56px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.section-header h2,
.section-header h3 {
  font-family: var(--display);
  margin: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 210px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--line-hover);
}

.card .meta {
  color: var(--accent-2);
  font-size: 0.9rem;
  font-weight: 700;
}

.card h3 {
  margin: 0;
  font-family: var(--display);
  line-height: 1.2;
}

.card p {
  margin: 0;
  color: var(--text-soft);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.feature {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--panel-bg-2);
  box-shadow: 0 12px 28px rgba(10, 18, 26, 0.05);
}

.feature-title {
  font-family: var(--display);
  font-weight: 700;
}

.feature-text {
  margin: 8px 0 0;
  color: var(--text-soft);
  line-height: 1.55;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.topic-card {
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--panel-bg-2);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.topic-card:hover {
  transform: translateY(-2px);
  border-color: var(--logo-line);
}

.topic-card h3 {
  margin: 0 0 8px;
  font-family: var(--display);
}

.newsletter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--newsletter-a), var(--newsletter-b));
  border: 1px solid var(--line);
}

.newsletter h2 {
  font-family: var(--display);
  margin: 0;
}

.newsletter p {
  margin-top: 10px;
}

.newsletter-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 220px;
}

.article-header h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 3vw, 2.9rem);
  line-height: 1.06;
  margin-bottom: 10px;
  text-wrap: balance;
}

.article-header .summary {
  font-size: 1.08rem;
  color: var(--text-soft);
  max-width: 70ch;
  line-height: 1.6;
}

.article-header .meta {
  color: var(--accent-2);
  font-weight: 700;
}

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  margin-top: 24px;
}

.article-body {
  max-width: 82ch;
}

.article-body section {
  margin-bottom: 22px;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  font-family: var(--display);
  margin: 0 0 10px;
}

.article-body p {
  color: var(--text-soft);
  line-height: 1.78;
  font-size: 1.03rem;
  margin: 0 0 14px;
}

.article-body ul {
  color: var(--text-soft);
  line-height: 1.7;
  margin: 0 0 16px;
}

.article-body li {
  margin: 6px 0;
}

.article-body blockquote {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--panel-bg-2);
  border: 1px solid var(--line);
}

.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-links a {
  display: block;
  margin-bottom: 10px;
  color: var(--text-soft);
  font-weight: 700;
}

.topic-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
}

.topic-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  align-items: center;
  margin-bottom: 24px;
}

.page-simple h1 {
  font-family: var(--display);
}

.page-simple {
  max-width: 82ch;
}

.page-simple h1,
.page-simple h2 {
  font-family: var(--display);
  margin: 0 0 12px;
}

.page-simple p {
  margin: 0 0 14px;
  color: var(--text-soft);
  line-height: 1.78;
  font-size: 1.03rem;
}

.page-simple a {
  text-decoration: underline;
  text-decoration-color: var(--line-hover);
  text-underline-offset: 3px;
}

.page-simple a:hover {
  text-decoration-color: var(--accent);
}

.page-simple ul {
  margin: 0 0 16px;
}

.page-simple section {
  margin-bottom: 18px;
}

.ad-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ad-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-soft);
  font-weight: 800;
}

.ad-slot {
  background: var(--panel-bg-2);
  border: 1px dashed var(--dash-line);
  border-radius: var(--radius-md);
  padding: 20px;
  min-height: 120px;
  display: grid;
  place-items: center;
  color: var(--text-soft);
  font-weight: 700;
}

.site-footer {
  padding: 40px 8vw;
  border-top: 1px solid var(--line);
  background: var(--header-bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.footer-title {
  margin-bottom: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--accent);
}

.footer-grid a {
  display: block;
  margin-bottom: 8px;
}

.site-footer p {
  margin: 0 0 10px;
  color: var(--text-soft);
  line-height: 1.6;
}

.footer-meta {
  margin-top: 24px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.faq {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel-bg-2);
  margin-bottom: 12px;
}

.faq h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.muted {
  color: var(--text-soft);
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.reveal-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 980px) {
  .article-grid,
  .topic-layout {
    grid-template-columns: 1fr;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .header-right {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 28px 6vw 64px;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .newsletter {
    flex-direction: column;
    align-items: flex-start;
  }

  .mini-links {
    grid-template-columns: 1fr;
  }
}
