:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Avenir Next", "Segoe UI", sans-serif;
  color: #10264f;
  background: #e8f2ff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --ink: #10264f;
  --body: #385578;
  --blue: #1757bd;
  --muted: #496285;
  --line: #bfd2e9;
  --section-line: #dce6f3;
}
* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; font-size: 17px; line-height: 1.6; background: #e8f2ff; }
button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; font: inherit; cursor: pointer; }
button, summary, .agent-prompt { outline-offset: 5px; }
:focus-visible { outline: 3px solid #2969c8; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { color: var(--ink); text-wrap: balance; }
h2 { font-size: clamp(30px, 3.25vw, 42px); line-height: 1.16; letter-spacing: -.045em; font-weight: 640; }
h3 { font-size: 22px; line-height: 1.35; letter-spacing: -.03em; font-weight: 640; }
.content-width { width: min(960px, calc(100% - 80px)); margin-inline: auto; }

/* A self-contained opening keeps the artwork's atmosphere out of the story. */
.opening { position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; min-height: 100dvh; overflow: hidden; background: #edf5ff; padding-bottom: max(52px, env(safe-area-inset-bottom)); border-bottom: 1px solid var(--section-line); }
.opening::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: url("/static/dotbox-atmosphere-v1.webp") center center / cover no-repeat; opacity: .25; }
.site-header { flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: clamp(32px, 6svh, 72px) 24px 0; text-align: center; }
.brand { display: inline-flex; align-items: center; justify-content: center; gap: 16px; color: var(--ink); }
.brand img { width: 78px; height: 78px; object-fit: contain; }
.brand h1 { font-size: 60px; line-height: 1.08; font-weight: 690; letter-spacing: -.065em; }
.tagline { margin-top: 12px; color: #3e5c82; font-size: 18px; line-height: 1.5; letter-spacing: -.015em; }
.hero { flex: 0 0 auto; padding-top: 0; }
.connections { display: flow-root; width: min(1100px, calc(100% - 40px)); width: min(1100px, calc(100% - 40px), max(280px, calc((100svh - 280px) * 2))); margin: 0 auto; }
.connections-art { width: 100%; margin-top: -6%; object-fit: contain; }
.connection-labels { display: grid; grid-template-columns: 42% 58%; width: 90%; margin: -10px auto 0; text-align: center; }
.connection-label { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 0 12px; }
.connection-label strong { font-size: 18px; line-height: 1.4; letter-spacing: -.018em; font-weight: 620; }
.connection-label > span { color: var(--muted); font-size: 14px; line-height: 1.5; }

/* Every chapter uses the same frame, heading alignment, and breathing room. */
.page-section { padding-block: 100px; border-bottom: 1px solid var(--section-line); }
.setup { background: #f8fbff; }
.continuity { background: #edf4ff; }
.examples { background: #fbfcff; }
.questions { background: #f1f6fd; }
.invitation { background: #e8f2ff; }
.section-intro { max-width: 780px; margin-bottom: 42px; }
.section-lead { max-width: 750px; margin-top: 20px; color: var(--body); font-size: 19px; line-height: 1.65; text-wrap: pretty; }
.eyebrow { margin-bottom: 13px; color: #3e6190; font-size: 12px; line-height: 1.5; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; }

.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.steps > li { display: grid; grid-template-columns: 33px minmax(0, 1fr); gap: 20px; align-items: baseline; padding: 30px 0; border-bottom: 1px solid var(--line); }
.step-number { color: var(--blue); font-size: 16px; line-height: 1.5; font-weight: 600; font-variant-numeric: tabular-nums; }
.step-copy { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.4fr); gap: 35px; align-items: baseline; }
.step-copy p { color: var(--body); font-size: 17px; line-height: 1.65; text-wrap: pretty; }
.architecture-note { margin-top: 30px; color: var(--muted); text-align: center; font-size: 16px; line-height: 1.75; text-wrap: balance; }

.continuity-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr); align-items: center; gap: 68px; }
.person-art img { width: 100%; max-width: 310px; margin-inline: auto; }
.continuity-details { margin: 0; }
.continuity-details > div + div { margin-top: 27px; }
.continuity-details dt { color: var(--ink); font-size: 19px; line-height: 1.4; font-weight: 610; letter-spacing: -.02em; }
.continuity-details dd { margin: 8px 0 0; color: var(--body); font-size: 17px; line-height: 1.65; text-wrap: pretty; }

.examples-intro { margin-bottom: 48px; }
.example { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.example + .example { margin-top: 65px; border-top: 1px solid var(--line); padding-top: 65px; }
.example-art img { width: 100%; max-width: 430px; margin-inline: auto; }
.example-copy h3 { max-width: 470px; font-size: 30px; line-height: 1.2; letter-spacing: -.035em; }
.example-copy > .eyebrow { color: #1757bd; margin-bottom: 11px; }
.example-research .example-art { grid-column: 2; grid-row: 1; }
.example-research .example-copy { grid-column: 1; grid-row: 1; }
.example-research .eyebrow { color: #655399; }
.example-garden .eyebrow { color: #36685c; }
.example-intro { margin-top: 17px; color: var(--body); font-size: 17px; line-height: 1.65; text-wrap: pretty; }
.example-story { margin: 26px 0 0; }
.example-story > div + div { margin-top: 20px; }
.example-story dt { color: var(--muted); font-size: 13px; line-height: 1.5; font-weight: 650; letter-spacing: .01em; }
.example-story dd { margin: 5px 0 0; color: var(--ink); font-size: 16px; line-height: 1.65; text-wrap: pretty; }
.examples-note { max-width: 720px; margin: 48px auto 0; color: var(--body); font-size: 16px; line-height: 1.7; text-align: center; text-wrap: balance; }

.question-list { border-top: 1px solid var(--line); }
.question-list details { border-bottom: 1px solid var(--line); }
.question-list summary { display: list-item; padding: 23px 0; font-size: 20px; line-height: 1.45; letter-spacing: -.018em; font-weight: 580; cursor: pointer; list-style-position: inside; }
.question-list summary:hover { color: var(--blue); }
.question-list details p { max-width: 760px; padding: 0 24px 25px 23px; color: var(--body); font-size: 17px; line-height: 1.7; }

.invitation { padding-bottom: 75px; text-align: center; }
.invitation-mark { width: 70px; height: 70px; object-fit: contain; margin: 0 auto 24px; }
.invitation h2 { font-size: clamp(33px, 3.7vw, 44px); }
.agent-invitation { margin-top: 15px; color: #345b88; font-size: 18px; line-height: 1.55; }
.prompt-area { max-width: 680px; margin: 35px auto 0; }
.prompt-label { margin-bottom: 12px; color: var(--muted); font-size: 14px; font-weight: 550; letter-spacing: .01em; }
.agent-prompt { padding: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: #243f65; font-size: 18px; line-height: 1.65; text-wrap: pretty; user-select: text; }
.copy-button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 46px; min-width: 157px; margin-top: 22px; padding: 11px 22px; border: 1px solid #154fba; border-radius: 999px; color: #fff; background: #195ac7; font-size: 15px; line-height: 1.4; font-weight: 590; box-shadow: 0 3px 8px #2454ab14; transition: background .15s ease, box-shadow .15s ease; }
.copy-button:hover { background: #114aa8; box-shadow: 0 5px 12px #2454ab24; }
.copy-button:active { background: #0f4194; }
.copy-feedback { min-height: 24px; margin-top: 12px; color: #355a84; font-size: 14px; line-height: 1.6; }
.page-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 27px max(30px, env(safe-area-inset-bottom)); color: var(--muted); font-size: 14px; line-height: 1.5; }
.footer-wordmark { color: #183961; font-size: 20px; font-weight: 650; letter-spacing: -.045em; }

@media (max-width: 800px) {
  .content-width { width: min(620px, calc(100% - 64px)); }
  .opening { padding-bottom: max(44px, env(safe-area-inset-bottom)); }
  .brand img { width: 72px; height: 72px; }
  .brand h1 { font-size: 54px; }
  .connection-labels { width: 94%; margin-top: 0; }
  .connection-label strong { font-size: 16px; }
  .connection-label > span { max-width: 190px; font-size: 13px; }
  .page-section { padding-block: 78px; }
  .section-intro { margin-bottom: 35px; }
  .section-lead { font-size: 18px; }
  .step-copy { display: block; }
  .step-copy p { margin-top: 8px; }
  .steps > li { gap: 16px; padding-block: 26px; }
  .continuity-layout { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 30px; }
  .continuity-details dt { font-size: 18px; }
  .continuity-details dd { font-size: 16px; }
  .example { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 30px; }
  .example + .example { margin-top: 52px; padding-top: 52px; }
  .example-copy h3 { font-size: 27px; }
  .example-intro { font-size: 16px; }
  .examples-note { margin-top: 40px; }
  .question-list summary { font-size: 19px; }
  .invitation { padding-bottom: 56px; }
}
@media (max-width: 600px) {
  .continuity-layout { display: flex; flex-direction: column; gap: 31px; }
  .person-art { width: min(250px, 74%); }
  .continuity-copy { width: 100%; }
  .example { display: flex; flex-direction: column; gap: 28px; }
  .example-art { width: min(360px, 100%); }
  .example-copy { width: 100%; }
  .example + .example { margin-top: 42px; padding-top: 42px; }
}
@media (max-width: 480px) {
  .content-width { width: calc(100% - 40px); }
  .opening { padding-bottom: max(35px, env(safe-area-inset-bottom)); }
  .site-header { padding-inline: 20px; }
  .brand { gap: 12px; }
  .brand img { width: 66px; height: 66px; }
  .brand h1 { font-size: 46px; }
  .tagline { margin-top: 10px; font-size: 15px; }
  .connections { width: calc(100% - 24px); }
  .connection-labels { width: 100%; grid-template-columns: 42% 58%; }
  .connection-label { gap: 4px; padding-inline: 7px; }
  .connection-label strong { font-size: 14px; line-height: 1.35; }
  .connection-label > span { font-size: 12px; line-height: 1.45; }
  .page-section { padding-block: 64px; }
  .section-intro { margin-bottom: 30px; }
  h2 { font-size: 30px; }
  h3 { font-size: 21px; }
  .eyebrow { font-size: 11px; margin-bottom: 12px; }
  .section-lead { margin-top: 17px; font-size: 17px; }
  .steps > li { grid-template-columns: 24px minmax(0, 1fr); gap: 12px; padding-block: 24px; }
  .step-number { font-size: 14px; }
  .step-copy p { margin-top: 8px; font-size: 16px; line-height: 1.65; }
  .architecture-note { margin-top: 26px; font-size: 14px; line-height: 1.7; }
  .continuity-details > div + div { margin-top: 25px; }
  .example-copy h3 { font-size: 27px; }
  .example-story { margin-top: 23px; }
  .example-story dt { font-size: 12px; }
  .examples-note { margin-top: 34px; font-size: 15px; }
  .question-list summary { font-size: 18px; padding-block: 20px; }
  .question-list details p { padding: 0 0 22px; font-size: 16px; }
  .invitation { padding-bottom: 43px; }
  .invitation-mark { width: 62px; height: 62px; margin-bottom: 21px; }
  .invitation h2 { font-size: 33px; }
  .agent-invitation { max-width: 290px; margin: 15px auto 0; font-size: 16px; }
  .prompt-area { margin-top: 28px; }
  .prompt-label { font-size: 13px; }
  .agent-prompt { padding: 20px 9px; font-size: 17px; line-height: 1.65; }
  .page-footer { flex-wrap: wrap; gap: 10px 20px; font-size: 13px; padding-block: 24px max(27px, env(safe-area-inset-bottom)); }
  .page-footer p { order: 3; flex-basis: 100%; }
}
@media (max-height: 650px) and (min-width: 481px) {
  .opening { padding-bottom: max(28px, env(safe-area-inset-bottom)); }
  .site-header { padding-top: 20px; }
  .brand img { width: 64px; height: 64px; }
  .brand h1 { font-size: 50px; }
  .tagline { margin-top: 9px; font-size: 16px; }
  .connections { width: min(1100px, calc(100% - 40px), max(280px, calc((100svh - 225px) * 2))); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
