:root {
  color-scheme: light dark;
  --background: #f7f8fa;
  --surface: #ffffff;
  --text: #17202a;
  --muted: #52606d;
  --border: #d8dee7;
  --accent: #0b63ce;
  --accent-strong: #084d9d;
  --code: #eef2f7;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  line-height: 1.65;
}

a { color: var(--accent); }
a:hover { color: var(--accent-strong); }
a:focus-visible, .skip-link:focus { outline: 3px solid #f59e0b; outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 10;
  padding: .65rem 1rem;
  background: var(--surface);
  border: 2px solid var(--accent);
}
.skip-link:focus { top: 1rem; }

.site-header {
  background: #111827;
  color: #fff;
  border-bottom: 1px solid #253247;
}
.site-header__inner {
  width: min(76rem, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}
.site-header a { color: #fff; text-decoration: none; }
.site-brand { font-weight: 750; letter-spacing: .01em; }
.site-header nav { display: flex; flex-wrap: wrap; gap: .45rem 1rem; }
.site-header nav a:hover { text-decoration: underline; }

.page-shell {
  width: min(76rem, calc(100% - 2rem));
  margin: 2rem auto;
  padding: clamp(1rem, 3vw, 3rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: .75rem;
  box-shadow: 0 10px 30px rgb(15 23 42 / 7%);
}

.breadcrumbs { display: flex; flex-wrap: wrap; gap: .45rem; color: var(--muted); font-size: .92rem; }
.workflow-nav,
.deliverable-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin: 1rem 0;
  padding: .65rem .8rem;
  border: 1px solid var(--border);
  border-radius: .5rem;
  background: var(--code);
  font-weight: 650;
}
.deliverable-nav { margin-top: -.5rem; font-weight: 500; }
.deliverable-nav span { color: var(--muted); }
.document-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 2rem; }
.document-meta span { padding: .2rem .55rem; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: .8rem; }

article { max-width: 72rem; }
h1, h2, h3, h4 { line-height: 1.25; margin-top: 1.6em; scroll-margin-top: 1rem; }
h1 { margin-top: 0; font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { border-bottom: 1px solid var(--border); padding-bottom: .25rem; }
p, li { max-width: 82ch; }
blockquote { margin-left: 0; padding: .25rem 1rem; border-left: .25rem solid var(--accent); color: var(--muted); }
code { padding: .1rem .3rem; background: var(--code); border-radius: .25rem; }
pre { overflow-x: auto; padding: 1rem; background: var(--code); border: 1px solid var(--border); border-radius: .5rem; }
pre code { padding: 0; }
table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
th, td { padding: .55rem .7rem; border: 1px solid var(--border); text-align: left; vertical-align: top; }
th { background: var(--code); }

.site-footer {
  width: min(76rem, calc(100% - 2rem));
  margin: 0 auto 2rem;
  color: var(--muted);
  font-size: .9rem;
}

@media (max-width: 48rem) {
  .site-header__inner { align-items: flex-start; flex-direction: column; }
  .page-shell { width: min(100% - 1rem, 76rem); margin: .5rem auto 1.5rem; border-radius: .4rem; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0b111b;
    --surface: #111827;
    --text: #e5e7eb;
    --muted: #a8b3c1;
    --border: #334155;
    --accent: #79b8ff;
    --accent-strong: #a8d1ff;
    --code: #182235;
  }
}
