:root {
  color-scheme: light;
  --ink: #202321;
  --muted: #626763;
  --accent: #b43926;
  --line: #e0e3e0;
  --paper: #f6f7f6;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family: var(--sans);
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .25em; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { background: #f8dcd5; color: var(--ink); }
.shell { max-width: 1248px; margin: auto; padding: 0 48px; }
.skip-link { position: absolute; top: 8px; left: 16px; z-index: 1; padding: 12px; background: #fff; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.site-header { min-height: 104px; display: flex; justify-content: space-between; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); }
.wordmark { font-family: var(--serif); font-size: 2.5rem; font-weight: 700; letter-spacing: -.07em; text-decoration: none; line-height: 1; }
.wordmark span { color: var(--accent); }
.site-header nav { display: flex; flex-wrap: wrap; gap: 32px; font-size: .9375rem; }
.site-header nav a { text-decoration: none; }
.site-header nav span { margin-left: 4px; }
.hero { padding: 64px 0; text-align: center; }
.eyebrow { font-family: var(--mono); font-size: .75rem; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; }
.intro > .eyebrow { color: var(--accent); margin: 0 0 22px; }
.eyebrow > span { color: #a1a6a1; padding: 0 10px; }
h1 { font-family: var(--serif); font-size: clamp(2.7rem, 5.5vw, 4.5rem); font-weight: 400; line-height: 1.09; letter-spacing: -.048em; margin: 0 0 24px; }
h1 em { color: var(--accent); font-weight: 400; }
.description { max-width: 530px; font-size: 1.0625rem; line-height: 1.75; color: var(--muted); margin: 0 auto 28px; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 18px; border-radius: 3px; font-size: .9375rem; font-weight: 500; text-decoration: none; border: 1px solid var(--ink); }
.primary { background: var(--ink); color: white; }
.primary:hover { background: var(--accent); color: white; border-color: var(--accent); }
.secondary { border-color: var(--line); }
.secondary:hover { border-color: var(--accent); }
.workflow { border-top: 1px solid var(--line); padding: 30px 0 38px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 16px; margin-bottom: 30px; }
.section-heading h2 { font-family: var(--serif); font-size: 1.75rem; font-weight: 400; letter-spacing: -.035em; margin: 0; }
.section-heading a { font-size: .875rem; text-decoration: none; }
.knowledge-flow { display: grid; grid-template-columns: minmax(0, 1fr) 80px minmax(0, 1fr); column-gap: 28px; align-items: start; margin: 0; padding: 18px 0 0; }
.diagram-heading { font-size: 1rem; line-height: 1.5; font-weight: 500; margin: 0 0 30px; }
.page-flow { display: grid; grid-template-columns: 1fr 60px 1.1fr; align-items: center; }
.input-node { padding: 17px 12px; text-align: center; font-size: 1rem; line-height: 1.5; }
.input-node span { display: block; margin-top: 3px; color: var(--muted); font-size: .875rem; }
.graph-node { border: 1px solid var(--accent); background: #fcf4f1; color: var(--accent); font-size: 1rem; font-weight: 400; line-height: 1.5; }
.reader-node { padding: 24px 12px; text-align: center; }
.connector, .result-connector { width: 100%; stroke: #8c938d; stroke-width: 1.2; }
.result-connector { align-self: start; margin-top: 84px; }
.memory-loop { position: relative; height: 106px; margin-top: -1px; color: var(--accent); }
.memory-loop svg { display: block; width: 100%; height: 96px; stroke: currentColor; stroke-width: 1.2; }
.memory-label { position: absolute; left: 50%; top: 50px; transform: translateX(-50%); padding: 0 12px; text-align: center; background: #fff; white-space: nowrap; }
.memory-label strong { display: block; font-size: .875rem; line-height: 1.6; font-weight: 500; }
.memory-label span { display: block; color: var(--muted); font-size: .875rem; line-height: 1.6; }
.output-node { padding: 24px; }
.output-node h4 { margin: 0 0 22px; font: inherit; }
.knowledge-records { display: grid; gap: 18px; margin: 0; }
.knowledge-records dt { font-size: 1rem; font-weight: 400; }
.knowledge-records dd { margin: 3px 0 0; color: var(--muted); font-size: .875rem; }
.knowledge-flow figcaption { grid-column: 1 / -1; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--serif); font-size: 1.375rem; line-height: 1.5; text-align: center; }
.use-cases { border-top: 1px solid var(--line); padding: 30px 0 38px; }
.use-case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px 48px; padding: 24px 0; }
.use-case + .use-case { border-top: 1px solid var(--line); }
.use-case h3 { margin: 0; font-family: var(--serif); font-size: 1.375rem; font-weight: 400; line-height: 1.5; letter-spacing: -.025em; }
.use-case h3 a { text-decoration: none; }
.use-case h3 span { display: inline-block; margin-left: 6px; color: var(--accent); font-family: var(--sans); font-size: 1rem; }
.use-case p { margin: 0; color: var(--muted); font-size: .9375rem; line-height: 1.75; }
.site-footer { border-top: 1px solid var(--line); padding: 25px 0 30px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: .8125rem; line-height: 1.7; }
.site-footer p { margin: 0; }
.site-footer div { display: flex; flex-wrap: wrap; gap: 26px; }
.site-footer a { text-decoration: none; }
@media (max-width: 960px) {
  .shell { padding: 0 32px; }
  .knowledge-flow { grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); column-gap: 20px; }
}
@media (max-width: 720px) {
  .shell { padding: 0 24px; }
  .site-header { min-height: 88px; }
  .site-header nav { gap: 20px; font-size: .875rem; }
  .wordmark { font-size: 2.125rem; }
  .hero { padding: 46px 0; }
  h1 { font-size: clamp(2.25rem, 7.6vw, 3.6rem); }
  .knowledge-flow { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 0; }
  .reading { max-width: 440px; width: 100%; margin: auto; }
  .diagram-heading { margin-bottom: 20px; }
  .result-connector { width: 64px; height: 24px; margin: 0 auto 16px; transform: rotate(90deg); }
  .knowledge-flow figcaption { margin-top: 0; }
  .use-case { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}
@media (max-width: 380px) {
  .shell { padding: 0 18px; }
  .site-header nav { gap: 12px; }
  .actions { flex-direction: column; align-items: stretch; }
}
