:root {
  color-scheme: light;
  --bg: #f7f5ef;
  --surface: #ffffff;
  --text: #1f2933;
  --muted: #5d6673;
  --line: #d8d3c8;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --mark: #b45309;
  font-family: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 18px;
  line-height: 1.65;
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.skip-link {
  left: 1rem;
  position: absolute;
  top: -4rem;
}

.skip-link:focus {
  background: var(--surface);
  border: 2px solid var(--accent);
  padding: 0.5rem;
  top: 1rem;
}

.site-header,
.site-footer {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.site-footer {
  border-bottom: 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  margin-top: 4rem;
  padding: 2rem max(1rem, calc((100vw - 1120px) / 2));
}

.site-footer nav,
.nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
}

.nav {
  margin: 0 auto;
  max-width: 1120px;
  min-height: 4rem;
  padding: 0.75rem 1rem;
}

.brand {
  color: var(--text);
  font-weight: 700;
  margin-right: auto;
  text-decoration: none;
}

main {
  margin: 0 auto;
  max-width: 1120px;
  padding: 2rem 1rem 0;
}

.hero {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: grid;
  min-height: 48vh;
  padding: 4rem 0 3rem;
}

.hero h1,
.article-header h1,
h1 {
  font-size: clamp(2.3rem, 6vw, 4.8rem);
  line-height: 1.05;
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.8rem;
  line-height: 1.2;
  margin-top: 2.5rem;
}

h3 {
  font-size: 1.2rem;
  margin-top: 1.8rem;
}

.ingress {
  color: var(--muted);
  font-size: 1.25rem;
  max-width: 48rem;
}

.eyebrow,
.updated,
.breadcrumbs {
  color: var(--muted);
  font-family: system-ui, sans-serif;
  font-size: 0.9rem;
}

.eyebrow {
  color: var(--mark);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section,
.article {
  max-width: 760px;
}

.article-header {
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
}

.article-body,
.study-section,
.sources,
.faq {
  max-width: 720px;
}

.study-section,
.sources,
.faq {
  border-top: 1px solid var(--line);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
}

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

.link-grid a,
details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1rem;
}

details + details {
  margin-top: 0.75rem;
}

summary {
  cursor: pointer;
  font-weight: 700;
}

.source-list {
  padding-left: 1.2rem;
}

@media (max-width: 700px) {
  body {
    font-size: 17px;
  }

  .brand {
    flex-basis: 100%;
  }

  main {
    padding-top: 1.2rem;
  }

  .hero {
    min-height: 40vh;
    padding: 2.5rem 0 2rem;
  }
}
