@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --canvas: #f4f1ea;
  --paper: #fffdf8;
  --ink: #1d1d1b;
  --muted: #67645d;
  --line: #d9d4c8;
  --line-strong: #918b80;
  --accent: #c95735;
  --accent-dark: #8f341e;
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.68;
}

a { color: var(--accent-dark); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--canvas) 94%, transparent);
}

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

.site-header__inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 750;
  text-decoration: none;
}

.brand__mark {
  width: 15px;
  height: 15px;
  border-radius: 50% 50% 50% 2px;
  background: var(--accent);
  transform: rotate(-45deg);
}

.header-nav { display: flex; align-items: center; gap: 20px; }
.header-nav a { font-size: 14px; font-weight: 650; text-decoration: none; }

.header-nav .button,
.cta .button,
.print-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}

.print-button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.article-shell,
.index-shell {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.index-shell { width: min(980px, calc(100% - 40px)); }

.breadcrumb,
.eyebrow,
.article-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .03em;
}

.breadcrumb a { color: inherit; }
.eyebrow { margin: 32px 0 12px; text-transform: uppercase; letter-spacing: .12em; }

h1,
h2,
h3 {
  line-height: 1.13;
  letter-spacing: -.025em;
}

h1 {
  max-width: 780px;
  margin: 14px 0 22px;
  font-size: clamp(42px, 7vw, 68px);
}

h2 { margin: 60px 0 18px; font-size: clamp(28px, 4vw, 38px); }
h3 { margin: 34px 0 12px; font-size: 22px; }

.lead {
  margin: 0 0 20px;
  font-size: clamp(20px, 3vw, 24px);
  line-height: 1.48;
}

.scope,
.contents,
.callout,
.cta {
  margin: 28px 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  padding: 22px;
}

.scope strong,
.callout strong { display: block; margin-bottom: 6px; }
.contents p { margin-top: 0; font-weight: 700; }
.contents ol { columns: 2; margin-bottom: 0; padding-left: 24px; }
.contents li { break-inside: avoid; margin: 7px 0; }

p, ul, ol { margin-top: 0; }
li + li { margin-top: 8px; }

.table-wrap {
  margin: 24px 0 36px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-size: 13px; letter-spacing: .03em; }
tr:last-child td { border-bottom: 0; }

.step-list { padding-left: 27px; }
.step-list > li { margin: 0 0 26px; padding-left: 8px; }
.step-list strong { display: block; margin-bottom: 4px; font-size: 19px; }

.source-list { font-size: 15px; }
.source-list li { margin-bottom: 12px; }

.cta { margin-top: 64px; padding: 28px; }
.cta h2 { margin-top: 0; font-size: 30px; }
.cta p { max-width: 580px; }

.article-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 42px;
}

.article-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  padding: 26px;
  color: var(--ink);
  text-decoration: none;
}

.article-card:hover { border-color: var(--line-strong); color: var(--ink); }
.article-card h2 { margin: 12px 0; font-size: 30px; }
.article-card p { color: var(--muted); }
.article-card span:last-child { color: var(--accent-dark); font-weight: 700; }

.site-footer { border-top: 1px solid var(--line); }
.site-footer__inner { padding: 30px 0 44px; color: var(--muted); font-size: 14px; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header__inner,
  .site-footer__inner,
  .article-shell,
  .index-shell { width: min(100% - 32px, 760px); }
  .site-header__inner { min-height: 60px; }
  .header-nav > a:first-child { display: none; }
  .article-shell,
  .index-shell { padding: 48px 0 72px; }
  h1 { font-size: 40px; }
  .contents ol { columns: 1; }
  .article-card-grid { grid-template-columns: 1fr; }
  .article-card { min-height: 220px; }
  .cta .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  :root { --canvas: #fff; --paper: #fff; --ink: #000; --muted: #333; --line: #bbb; }
  body { font-size: 11pt; line-height: 1.45; }
  .site-header,
  .site-footer,
  .breadcrumb,
  .contents,
  .cta,
  .print-button { display: none; }
  .article-shell { width: 100%; padding: 0; }
  h1 { font-size: 28pt; }
  h2 { margin-top: 28pt; font-size: 20pt; break-after: avoid; }
  h3 { break-after: avoid; }
  .scope,
  .callout { break-inside: avoid; }
  a { color: #000; text-decoration: none; }
}
