:root {
  color-scheme: light;
  --background: #f5f7f6;
  --surface: #ffffff;
  --surface-alt: #edf2ef;
  --text: #18212a;
  --muted: #5a6672;
  --border: #d7ded9;
  --accent: #0d766d;
  --accent-strong: #174a7c;
  --accent-text: #ffffff;
  --shadow: 0 18px 44px rgba(24, 33, 42, 0.12);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #101418;
  --surface: #1a2027;
  --surface-alt: #202a32;
  --text: #f3f6f8;
  --muted: #b4bec8;
  --border: #33404b;
  --accent: #60d4bd;
  --accent-strong: #8ebcf0;
  --accent-text: #0c1a18;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  transition: background-color 180ms ease, color 180ms ease;
}

a {
  color: inherit;
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
}

.brand {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a,
.site-footer a {
  text-decoration: none;
}

.site-nav a:hover,
.site-footer a:hover {
  color: var(--accent);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(24, 33, 42, 0.08);
}

.theme-toggle:focus-visible,
.button:focus-visible,
a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent), transparent 55%);
  outline-offset: 3px;
}

.theme-toggle__icon {
  width: 1.25em;
  text-align: center;
}

.hero,
.section,
.page {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 28px;
  align-items: stretch;
  padding: 72px 0 48px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.35rem, 4.8vw, 4.6rem);
  line-height: 1.08;
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(1.55rem, 2.7vw, 2.45rem);
  line-height: 1.2;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.lede {
  max-width: 760px;
  margin: 20px 0 30px;
  color: var(--muted);
  font-size: 1.08rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 800;
  text-decoration: none;
}

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

.summary-panel,
.info-card,
.article-list article,
.long-form {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.summary-panel {
  padding: 28px;
}

.summary-panel h2 {
  font-size: 1.25rem;
}

.summary-panel ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.summary-panel li + li {
  margin-top: 12px;
}

.section {
  padding: 50px 0;
}

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

.info-card,
.article-list article {
  padding: 24px;
}

.info-card p,
.article-list p,
.long-form p,
.split-section p {
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 32px;
  align-items: start;
  border-top: 1px solid var(--border);
}

.page {
  padding: 56px 0 72px;
}

.article-list {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.long-form {
  margin-top: 30px;
  padding: 32px;
}

.long-form h2 {
  margin-top: 32px;
  font-size: 1.35rem;
}

.long-form h2:first-child {
  margin-top: 0;
}

.updated {
  font-weight: 700;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 36px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

  .site-nav {
    justify-content: flex-start;
  }

  .hero,
  .content-grid,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 42px;
  }

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

@media (max-width: 520px) {
  .site-header,
  .site-footer,
  .hero,
  .section,
  .page {
    width: min(100% - 28px, 1120px);
  }

  h1 {
    font-size: 2.2rem;
  }

  .summary-panel,
  .info-card,
  .article-list article,
  .long-form {
    padding: 22px;
  }
}
