@font-face {
  font-family: "Source Sans 3";
  src: url("./fonts/source-sans-3-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("./fonts/source-sans-3-semibold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #faf7ef;
  --ink: #262b23;
  --muted: #51584b;
  --rust: #97452f;
  --forest: #273a2d;
  --sage: #e8ecdf;
  --line: #dcd7ca;
  --sans: "Source Sans 3", system-ui, sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

*, *::before, *::after { box-sizing: border-box; }
body, figure { margin: 0; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--rust); }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 5px; }
[id] { scroll-margin-block-start: 1.5rem; }

.wrap { width: min(100% - 3rem, 74rem); margin-inline: auto; }
.skip-link { position: absolute; top: .5rem; left: .5rem; z-index: 1; padding: .5rem 1rem; background: white; }
.skip-link:not(:focus) { clip-path: inset(50%); }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem 1.5rem;
  padding-block: 1.15rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font: bold 1.3rem/1.2 var(--sans);
  text-decoration: none;
}
.brand img { display: block; width: auto; height: 4rem; max-width: 100%; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--forest);
  color: var(--paper);
  font: 1.4rem/1 system-ui, sans-serif;
}
.site-header nav { display: flex; flex-wrap: wrap; gap: .2rem 1.5rem; }
.site-header nav a { padding-block: .4rem; font-size: .925rem; font-weight: 650; text-decoration: none; }
.site-header nav a:hover, .site-header nav [aria-current] { text-decoration: underline; }

.hero {
  display: grid;
  grid-template-columns: 1fr 1.06fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(2.8rem, 6vw, 6rem);
}
.eyebrow {
  margin: 0 0 .9rem;
  color: var(--rust);
  font-size: .875rem;
  font-weight: 750;
  letter-spacing: .095em;
  text-transform: uppercase;
}
h1, h2, h3 { margin: 0; font-family: var(--sans); font-weight: 600; line-height: 1.1; }
h1 { font-size: clamp(2.7rem, 5.6vw, 5.3rem); letter-spacing: -.065em; }
h1 em { color: var(--rust); white-space: nowrap; }
h2 { font-size: clamp(2rem, 3.6vw, 3.4rem); letter-spacing: -.04em; }
h3 { font-size: 1.5rem; letter-spacing: -.025em; }
.lede { max-width: 37rem; margin: 1.35rem 0 0; color: var(--muted); font-size: clamp(1.0625rem, 1.5vw, 1.25rem); }
.button {
  display: inline-block;
  margin-top: 1.65rem;
  border-radius: .35rem;
  padding: .8rem 1.15rem;
  background: var(--forest);
  color: white;
  font-weight: 650;
  text-decoration: none;
}
.button:hover { background: var(--rust); color: white; }
.hero-photo, .article-photo { overflow: hidden; border-radius: .85rem; background: #ded2bd; }
.hero-photo img { aspect-ratio: 6 / 5; object-fit: cover; }

.basics { background: var(--sage); padding-block: clamp(2.6rem, 5vw, 4.5rem); }
.topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 1.75rem; }
.topic-grid section { border-top: 1px solid #a1ac99; padding-top: 1rem; }
.topic-grid p { margin: .5rem 0 0; color: var(--muted); }

.article-header { padding-block: clamp(2.5rem, 5vw, 4.5rem) 2rem; }
.article-header h1 { max-width: 62rem; font-size: clamp(2.6rem, 5.9vw, 5.1rem); }
.article-photo img { aspect-ratio: 3 / 1; object-fit: cover; }
.article-layout {
  display: grid;
  grid-template-columns: minmax(11rem, 1fr) minmax(0, 3fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
  padding-block: clamp(2rem, 5vw, 4.5rem);
}
.contents { padding: 1.2rem; background: var(--sage); border-radius: .5rem; }
.contents ul { list-style: none; padding: 0; margin: 0; }
.contents li + li { margin-top: .35rem; }
.article-body { max-width: 66ch; font-size: 1.125rem; line-height: 1.7; }
.article-body section + section { margin-top: 2rem; }
.article-body h2 { font-size: clamp(1.85rem, 3.2vw, 2.55rem); }
.article-body p { margin: .75rem 0 0; }
.callout { margin-top: 1.4rem; padding: 1rem 1.25rem; border-left: .25rem solid var(--rust); background: var(--sage); }
.article-sources { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.article-sources ul { padding-left: 1.25rem; }
.back-link { font-weight: 650; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { flex-wrap: wrap; }
.footer-inner p { margin: 0; font-size: .925rem; color: var(--muted); }

@media (max-width: 56rem) {
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 43rem) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { flex-wrap: wrap; }
  .hero, .article-layout { grid-template-columns: 1fr; }
  .hero-photo img { aspect-ratio: 4 / 3; }
  .article-photo img { aspect-ratio: 16 / 9; }
}
@media (max-width: 32rem) {
  .topic-grid { grid-template-columns: 1fr; }
}
