@font-face {
  font-family: "Source Sans 3";
  src: url("assets/fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("assets/fonts/source-serif-4-latin-standard-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
:root {
  --navy: #0B2C40;
  --navy-2: #0F3951;
  --teal: #1C7293;
  --teal-tint: #E8F1F5;
  --orange: #FF6B35;
  --orange-text: #C2410C;
  --orange-button: #C2410C;
  --orange-hover: #AD390B;
  --orange-active: #963309;
  --bg: #F5F7F8;
  --white: #FFFFFF;
  --surface: var(--white);
  --band-copy: var(--bg);
  --ink: var(--navy);
  --slate: #4A5D6B;
  --line: #D9E1E6;
  --black: #111111;
  --sans: "Source Sans 3", sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --size-display: clamp(2.5rem, 5vw + 1rem, 4rem);
  --size-h2: clamp(1.875rem, 2.5vw + 1rem, 2.75rem);
  --size-lead: clamp(1.125rem, .5vw + 1rem, 1.3125rem);
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;
  --container: 1160px;
  --measure: 680px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(64px, 9vw, 128px);
  --radius: 6px;
  --radius-lg: 10px;
  --rule: 1px solid var(--line);
  --header-height: 64px;
  color: var(--ink);
  background-color: var(--surface);
  color-scheme: light dark;
  font-family: var(--sans);
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, figure, dl, dd, ul, ol { margin: 0; }
body { font-size: 1.0625rem; line-height: 1.65; }
p { max-inline-size: min(64ch, var(--measure)); text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 600; }
h1 { max-inline-size: 20ch; font-size: var(--size-display); line-height: 1.05; letter-spacing: -.02em; }
h2 { max-inline-size: 28ch; font-size: var(--size-h2); line-height: 1.12; letter-spacing: -.015em; }
h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.3; letter-spacing: -.005em; }
h4 { font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
a { color: var(--teal); text-underline-offset: 4px; }
a:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
[id] { scroll-margin-top: calc(var(--header-height) + var(--s-4)); }
::selection { background: var(--teal-tint); color: var(--navy); }
.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.section { padding-block: var(--section-y); }
.soft { background: var(--bg); }
.section-heading > h2 { margin-block-start: var(--s-3); }
.section-heading > h2:first-child { margin-block-start: 0; }
.section-heading > h2 + p, .audience h2 + p { margin-block-start: calc(var(--s-3) + var(--s-2)); }
.lead { color: var(--slate); font-size: var(--size-lead); line-height: 1.55; }
.eyebrow, .profile dt { font-size: .8125rem; font-weight: 700; letter-spacing: .14em; line-height: 1.2; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: calc(var(--s-2) + 2px); color: var(--orange-text); }
.eyebrow::before { content: ""; inline-size: var(--s-5); block-size: 2px; flex: none; background: var(--orange); }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link { position: fixed; top: var(--s-2); left: var(--gutter); transform: translateY(-150%); z-index: 3; background: var(--surface); padding: var(--s-2) var(--s-4); }
.skip-link:focus { transform: none; }
.site-header { position: sticky; z-index: 2; top: 0; background: var(--surface); box-shadow: inset 0 -1px transparent; }
.site-header.scrolled { box-shadow: inset 0 -1px var(--line); }
.header-inner { min-block-size: var(--header-height); display: flex; align-items: center; gap: var(--s-6); }
.brand { display: inline-flex; align-items: center; justify-self: start; min-block-size: 44px; }
.brand img { display: block; width: auto; height: 24px; }
.header-inner nav { display: none; }
.header-inner > .button { margin-inline-start: auto; }
.header-inner nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: .9375rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.header-inner nav a:hover, .header-inner nav a:focus-visible { text-decoration: underline 2px var(--orange); text-underline-offset: 6px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-block-size: 48px; padding-inline: calc(var(--s-4) + 6px); border-radius: var(--radius); background: var(--orange-button); color: var(--white); font-size: 1rem; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.button:hover { background: var(--orange-hover); }
.button:active { background: var(--orange-active); }
.button-small { position: relative; min-block-size: 40px; padding-inline: var(--s-4); font-size: .9375rem; }
.button-small::before { content: ""; position: absolute; inset: -2px 0; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-4); }
.text-link { display: inline-flex; align-items: center; gap: var(--s-1); min-block-size: 44px; font-weight: 600; text-decoration-skip-ink: auto; text-decoration-thickness: 1.5px; }
.text-link span { transition: transform 150ms ease; }
.text-link:hover span { transform: translateX(2px); }

.hero { padding-block: var(--s-8); }
.hero-grid { align-items: center; row-gap: var(--s-7); }
.hero h1 { margin-block-start: var(--s-3); }
.hero .lead { margin-block-start: calc(var(--s-3) + var(--s-2)); }
.hero .actions { margin-block-start: var(--s-5); }
.sizing { margin-block-start: var(--s-5); padding-inline-start: var(--s-3); border-inline-start: 3px solid var(--orange); color: var(--slate); font-size: .9375rem; line-height: 1.5; }
.connect { width: 100%; max-width: 560px; }
.connect svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--sans); }
.connect .diagram-desktop { display: none; }
.connectors { fill: none; stroke: var(--teal); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.junction { fill: var(--orange); }
.diagram-inputs rect { fill: var(--surface); stroke: var(--line); }
.diagram-inputs text { fill: var(--slate); font-size: 14px; font-weight: 600; }
.icon, .diagram-inputs use { width: 20px; height: 20px; fill: none; stroke: var(--teal); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.diagram-output rect { fill: var(--navy); }
.diagram-output path { fill: none; stroke: var(--navy-2); }
.diagram-output text { fill: var(--white); font-size: 15px; }
.diagram-output .output-title { font-size: 19px; font-weight: 700; }

.problem-list, .steps, .phases, .tags { list-style: none; padding: 0; }
.problem-list, .steps, .profile, .example-body { margin-block-start: var(--s-7); }
.problem-list { display: grid; }
.problem-list li { display: grid; grid-template-columns: 20px 1fr; align-items: start; gap: var(--s-4); border-block-start: var(--rule); padding-block: var(--s-5); }
.problem-list .icon { margin-block-start: var(--s-1); }
.problem-list p, .steps p, .example-body p, .local dd { margin-block-start: var(--s-1); color: var(--slate); }
.problem-close { max-inline-size: 48ch; color: var(--slate); margin-block-start: var(--s-4); }
.steps li, .phases li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--s-4); position: relative; padding-block-end: var(--s-5); }
.steps li:not(:last-child)::before, .phases li:not(:last-child)::before { content: ""; position: absolute; inset-block: 38px 3px; left: 23px; width: 1px; background: var(--teal); }
.steps li:last-child, .phases li:last-child { padding-block-end: 0; }
.numeral { color: var(--orange-text); font: 600 2.5rem/1 var(--serif); font-variant-numeric: tabular-nums; }
.note { max-inline-size: 760px; margin-block-start: var(--s-6); padding: var(--s-5); background: var(--teal-tint); border: var(--rule); border-radius: var(--radius-lg); }
.example-label { color: var(--slate); font-style: italic; font-size: .9375rem; line-height: 1.5; }
.profile { padding: var(--s-5); border: var(--rule); border-radius: var(--radius-lg); background: var(--surface); align-self: start; }
.profile > div + div { border-block-start: var(--rule); padding-block-start: var(--s-4); margin-block-start: var(--s-4); }
.profile dt { color: var(--slate); }
.profile dd { margin-block-start: var(--s-1); }
.example-body { display: grid; gap: var(--s-6); }
.example-body h3 + p, .example-body h3 + ol, .example-body h3 + ul { margin-block-start: var(--s-3); }
.phases { padding-block-start: var(--s-2); }
.phases .numeral { font-size: 1.625rem; }
.phases li:not(:last-child)::before { inset-block-start: var(--s-6); left: 14px; }
.changes { padding-inline-start: var(--s-5); }
.changes li + li { margin-block-start: var(--s-2); }
.changes li::marker { color: var(--teal); }
.audience h2 { margin-block-start: var(--s-3); }
.tags { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-block-start: var(--s-5); }
.tags li { padding: var(--s-2) var(--s-3); background: var(--bg); border: var(--rule); border-radius: var(--radius); font-size: .875rem; font-weight: 600; line-height: 1.4; }
.local { margin-block-start: var(--s-7); }
.local dl { margin-block-start: var(--s-4); }
.local dl > div { border-block-start: var(--rule); padding-block: var(--s-4); }
.local dt { font-weight: 700; }

.dark { color: var(--white); background: var(--navy); }
.dark .eyebrow { color: var(--orange); }
.dark .section-heading > p:not(.eyebrow) { color: var(--band-copy); }
.dark .text-link { color: var(--white); }
.contact-inner { border-block-start: 1px solid var(--navy-2); }
.contact-inner .actions { margin-block-start: var(--s-5); }
.site-footer { border-block-start: var(--rule); padding-block: calc(var(--s-6) + var(--s-2)); }
.footer-inner, .footer-details { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-4); }
.site-footer .brand img { height: 28px; }
.footer-details, .footer-details small { color: var(--slate); font-size: .9375rem; line-height: 1.5; }
.footer-details a { display: inline-flex; min-block-size: 44px; align-items: center; color: var(--slate); }

@media (min-width: 760px) {
  :root { --header-height: 72px; }
  .brand img { height: 28px; }
  .header-inner nav { display: flex; gap: var(--s-6); margin-inline-start: auto; }
  .header-inner > .button { margin-inline-start: 0; }
  .footer-inner, .footer-details { flex-direction: row; align-items: center; gap: var(--s-5); }
  .footer-inner { justify-content: space-between; }
}
@media (min-width: 960px) {
  .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-5); }
  .section-heading { grid-column: 1 / 8; }
  .full { grid-column: 1 / -1; }
  .hero { padding-block: var(--s-9) calc(var(--s-9) + var(--s-4)); }
  .hero-copy { grid-column: 1 / 7; }
  .connect { grid-column: 7 / -1; }
  .connect .diagram-desktop { display: block; }
  .connect .diagram-mobile { display: none; }
  .problem-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-5); }
  .problem-list li { padding-inline-end: var(--s-5); }
  .steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--s-5); border-block-start: 1px solid var(--teal); }
  .steps li { display: block; padding-block: var(--s-5) 0; }
  .steps .numeral { display: block; margin-block-end: var(--s-3); }
  .steps li:not(:last-child)::before { content: none; }
  .note, .profile { padding: var(--s-6); }
  .profile { grid-column: 1 / 5; }
  .example-body { grid-column: 6 / -1; }
  .audience { grid-column: 1 / 7; }
  .local { grid-column: 8 / -1; margin-block-start: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .connectors path { stroke-dasharray: 100; animation: draw-connector 900ms ease-out both; }
  .connectors path:nth-child(2) { animation-delay: 80ms; }
  .connectors path:nth-child(3) { animation-delay: 160ms; }
  .connectors path:nth-child(4) { animation-delay: 240ms; }
  @keyframes draw-connector { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
}
@media (prefers-reduced-motion: reduce) {
  .text-link span { transition: none; }
  .text-link:hover span { transform: none; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #202020;
    --bg: #282828;
    --ink: #e5f2f9;
    --slate: #b6c5ce;
    --line: #495661;
    --teal: #78c4de;
    --teal-tint: #183846;
    --orange-text: #ffc3ab;
  }

  ::selection { color: var(--white); }
}
