:root {
  --page: #fbfaf7;
  --paper: #fff;
  --text: #242321;
  --muted: #66625d;
  --line: #ddd8d0;
  --accent: #245fc5;
  --code: #f1eee8;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--page);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-color: #aaa49b; text-underline-offset: 4px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.skip-link {
  position: absolute;
  top: 8px;
  left: 12px;
  z-index: 5;
  padding: 8px 16px;
  background: var(--paper);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner, .text-column {
  width: min(760px, calc(100% - 48px));
  margin-inline: auto;
}
.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header-inner { min-height: 62px; }
.home-link { font-weight: 600; text-decoration: none; white-space: nowrap; }
nav { display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; }
nav a { text-decoration: none; }
nav a:hover { color: var(--accent); }
h1, h2, p { margin-top: 0; }
h1 {
  margin-bottom: 24px;
  font-size: clamp(2.5rem, 7vw, 4.1rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.06;
}
h2 { margin-bottom: 16px; font-size: 25px; line-height: 1.3; font-weight: 650; letter-spacing: -0.025em; }
p { margin-bottom: 18px; color: var(--muted); }
.hero { padding: 78px 0 58px; }
.eyebrow { margin-bottom: 18px; font-size: 13px; color: var(--muted); letter-spacing: 0.04em; }
.lead { max-width: 700px; margin-bottom: 20px; color: var(--text); font-size: clamp(1.3rem, 3vw, 1.65rem); line-height: 1.45; }
.hero-links { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin: 30px 0 26px; font-size: 15px; }
.primary-link {
  display: inline-block;
  padding: 10px 17px;
  border-radius: 6px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  text-decoration: none;
}
.primary-link:hover { background: #194eab; }
.project-facts { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: 13px; }
.workflow-section { padding-bottom: 58px; }
.section-intro { padding-top: 38px; border-top: 1px solid var(--line); }
.section-intro .eyebrow { margin-bottom: 10px; }
.diagram { width: min(1080px, calc(100% - 48px)); margin: 30px auto 0; }
.diagram-link { display: block; border-radius: 8px; }
.diagram img { display: block; width: 100%; height: auto; border: 1px solid #dcdce8; border-radius: 8px; background: #f8f9ff; }
figcaption { margin-top: 14px; color: var(--muted); text-align: center; font-size: 13px; }
.page-section { padding: 46px 0; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.findings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 32px; margin: 30px 0; }
.findings dt { margin-bottom: 8px; font-weight: 600; font-size: 16px; }
.findings dd { margin: 0; color: var(--muted); font-size: 15px; }
.number { color: #657466; font: 12px var(--font-mono); margin-right: 8px; }
.note { margin-top: 30px; padding: 16px 20px; border-left: 3px solid #9fc3ad; background: #eff5ef; color: #475248; font-size: 14px; }
.note strong { color: #293e2d; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.subtle-label { font-size: 12px; color: var(--muted); white-space: nowrap; }
code, pre { font-family: var(--font-mono); }
code { font-size: 0.9em; }
p code, li code, dd code { overflow-wrap: anywhere; }
.code-block, .report-block { margin: 24px 0 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--code); }
.code-header, .report-header { min-height: 42px; padding: 8px 16px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.code-header button {
  border: 1px solid #c9c4bc;
  border-radius: 4px;
  padding: 4px 10px;
  background: var(--paper);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.code-header button:hover { border-color: var(--accent); color: var(--accent); }
pre { margin: 0; padding: 20px; max-width: 100%; overflow-x: auto; font-size: 13px; line-height: 1.8; tab-size: 2; }
pre code { font-size: inherit; }
.report-block { background: #f3f6f5; border-color: #d0dbd6; }
.report-header { border-color: #d0dbd6; }
.report-block strong, .local-label { color: #2a6852; }
.small { font-size: 14px; }
details { margin: 24px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
summary { padding: 16px 0; cursor: pointer; font-size: 15px; font-weight: 500; }
details pre { margin: 0 0 20px; border-radius: 6px; background: var(--code); }
.copy-status { margin: 0; }
.copy-status:not(:empty) { padding-top: 16px; }
.exit-codes { width: 100%; margin: 28px 0 18px; border-collapse: collapse; text-align: left; font-size: 14px; }
.exit-codes caption { text-align: left; font-weight: 600; margin-bottom: 12px; }
.exit-codes th, .exit-codes td { border-bottom: 1px solid var(--line); padding: 12px 14px 12px 0; vertical-align: top; }
.exit-codes thead { color: var(--muted); font-size: 12px; }
.exit-codes tbody th { width: 64px; }
.plain-list { padding-left: 21px; margin: 24px 0; color: var(--muted); }
.plain-list li + li { margin-top: 16px; }
.plain-list strong { color: var(--text); }
.resource-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; font-size: 15px; }
footer { padding: 28px 0 36px; margin-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

@media (max-width: 600px) {
  .header-inner, .footer-inner, .text-column, .diagram { width: calc(100% - 32px); }
  .header-inner { gap: 16px; }
  nav { gap: 16px; font-size: 13px; }
  .hero { padding: 54px 0 40px; }
  .hero-links { gap: 18px; }
  .project-facts { gap: 8px 16px; }
  .workflow-section { padding-bottom: 40px; }
  .section-intro { padding-top: 30px; }
  .diagram { margin-top: 24px; }
  figcaption { font-size: 12px; }
  .page-section { padding: 36px 0; }
  .findings { grid-template-columns: 1fr; gap: 24px; }
  .section-heading { display: block; }
  .section-heading h2 { margin-bottom: 6px; }
  .subtle-label { display: block; margin-bottom: 16px; }
  pre { padding: 16px; font-size: 12px; }
  .resource-links { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 360px) {
  .header-inner { align-items: flex-start; padding-block: 14px; flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
