:root {
  --ink: #1b1c28;
  --muted: #5a5d6b;
  --paper: #f6f4f8;
  --card: #ffffff;
  --line: #ddd8e4;
  --accent: #3d3a7a;
  --accent-dark: #2a2758;
  --warn-bg: #efeaf7;
  --warn-border: #c9bddc;
  --focus: #4f46a5;
  --max: 72rem;
  --radius: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
}

img {
  max-width: 100%;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  color: var(--ink);
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

.disclaimer {
  background: var(--warn-bg);
  border-bottom: 1px solid var(--warn-border);
  color: #3d3420;
  font-size: 0.92rem;
  padding: 0.7rem 0;
}

.disclaimer a {
  color: #3d3420;
  font-weight: 700;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  background: var(--accent-dark);
  color: #f7f3ea;
  padding: 1.6rem 0 1.4rem;
}

.brand {
  text-decoration: none;
  color: inherit;
  display: block;
}

.brand-kicker {
  display: block;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  opacity: 0.8;
  margin-bottom: 0.35rem;
  font-family: "Segoe UI", system-ui, sans-serif;
}

.brand-title {
  margin: 0;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 650;
}

.brand-tag {
  margin: 0.4rem 0 0;
  max-width: 46rem;
  opacity: 0.9;
}

.nav-bar {
  background: #10261d;
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.2rem;
}

.nav-toggle {
  display: none;
  background: transparent;
  color: #e8efe9;
  border: 1px solid #4d6d5d;
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  font-family: "Segoe UI", system-ui, sans-serif;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0.55rem 0;
}

.nav-list a {
  color: #d7e6dc;
  text-decoration: none;
  font-size: 0.94rem;
  font-family: "Segoe UI", system-ui, sans-serif;
}

.nav-list a[aria-current="page"] {
  color: #fff;
  border-bottom: 2px solid #c9e2d2;
  padding-bottom: 0.15rem;
}

.nav-list a:hover {
  color: #fff;
}

main {
  padding: 2.4rem 0 3.4rem;
}

.hero,
.article-head {
  border-bottom: 2px solid var(--accent-dark);
  padding-bottom: 1.1rem;
  margin-bottom: 1.6rem;
}

.hero h1,
.article-head h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  line-height: 1.25;
}

.lede {
  font-size: 1.08rem;
  color: var(--muted);
  margin: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  background: #e7eee8;
  color: #2b4639;
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  font-size: 0.82rem;
  font-family: "Segoe UI", system-ui, sans-serif;
}

.grid {
  display: grid;
  gap: 1rem;
}

.cards {
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  margin: 1.5rem 0 2rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  box-shadow: 0 1px 0 rgba(22, 56, 43, 0.05);
}

.card h2,
.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.12rem;
}

.card p {
  margin: 0 0 0.8rem;
  color: var(--muted);
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  padding: 0.55rem 0.9rem;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 0.92rem;
}

.btn:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--accent-dark);
  border: 1px solid var(--accent);
}

.btn-ghost:hover {
  background: #e7eee8;
  color: var(--accent-dark);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.2rem 0 0;
}

.prose h2 {
  margin: 2rem 0 0.8rem;
  font-size: 1.35rem;
  color: var(--accent-dark);
}

.prose h3 {
  margin: 1.5rem 0 0.6rem;
  font-size: 1.12rem;
}

.prose p,
.prose li {
  font-size: 1.02rem;
}

.prose p {
  margin: 0 0 1rem;
}

.note,
.callout {
  background: var(--card);
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.15rem;
  margin: 1.4rem 0;
}

.callout h2,
.callout h3 {
  margin-top: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
}

th,
td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: #e7eee8;
  font-family: "Segoe UI", system-ui, sans-serif;
}

.sources {
  font-size: 0.95rem;
}

.sources a {
  overflow-wrap: anywhere;
}

.form {
  display: grid;
  gap: 0.85rem;
  max-width: 36rem;
}

label {
  display: grid;
  gap: 0.3rem;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 0.92rem;
}

input,
textarea {
  font: inherit;
  padding: 0.6rem 0.7rem;
  border: 1px solid #b7c3bc;
  border-radius: 8px;
  background: #fff;
}

.consent {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
}

.consent input {
  margin-top: 0.3rem;
}

.form button {
  justify-self: start;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 0.65rem 1rem;
  font-family: "Segoe UI", system-ui, sans-serif;
  cursor: pointer;
}

.form-status {
  min-height: 1.3rem;
  color: var(--muted);
}

.site-footer {
  background: #10261d;
  color: #d5e3da;
  padding: 2rem 0 1.4rem;
  font-size: 0.92rem;
}

.site-footer h2 {
  color: #fff;
  font-size: 1rem;
  margin: 0 0 0.7rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1.4rem;
}

.site-footer a {
  color: #d5e3da;
}

.footer-nav {
  display: grid;
  gap: 0.35rem;
}

.copyright {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid #2d4a3c;
  color: #b7c8bc;
}

@media (max-width: 800px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-list {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-bottom: 0.9rem;
  }

  .nav-inner.is-open .nav-list {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  table {
    display: block;
    overflow-x: auto;
  }
}
