/* A warm technical field guide: native CSS, quiet surfaces, copper accents. */
:root {
  color-scheme: light;
  --canvas: #f6f5f0;
  --paper: #fbfaf7;
  --surface: #edede5;
  --ink: #252b25;
  --muted: #62675e;
  --line: #d7d9ce;
  --accent: #b74729;
  --accent-soft: #f0e3d9;
  --code-bg: #252c28;
  --code-text: #e4e8de;
  --radius-small: 4px;
  --radius-medium: 8px;
  --font: "Avenir Next", "Trebuchet MS", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 110px; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: var(--font); font-size: 15px; line-height: 1.8; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
::selection { color: var(--ink); background: #e8c3a7; }
a { color: inherit; text-decoration: none; }
button, summary, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; }
button, a, summary { transition: transform 140ms cubic-bezier(.16,1,.3,1); }
button:active, a:active { transform: translateY(1px); }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; transition: none; }
button:focus-visible:active, a:focus-visible:active { transform: none; }
button:disabled { cursor: wait; opacity: .55; }
[hidden] { display: none !important; }
svg { display: block; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { display: inline-block; flex: 0 0 auto; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.icon.small { width: 16px; height: 16px; }
.container { width: min(1160px, calc(100% - 96px)); margin-inline: auto; }
.mono, code, pre { font-family: var(--mono); }
p, h1, h2, h3, figure { margin: 0; }
h1, h2, h3 { font-weight: 600; text-wrap: balance; }
p { text-wrap: pretty; }
.skip-link { position: fixed; top: 12px; left: 16px; z-index: 20; padding: 8px 16px; background: var(--ink); color: var(--paper); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.section-space { padding-block: 96px; }
.eyebrow { color: var(--accent); font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .13em; line-height: 1.6; }
.text-link { display: inline-flex; min-height: 40px; align-items: center; gap: 9px; font-size: 13px; font-weight: 500; }
.text-link .icon { color: var(--accent); }
.site-header { position: sticky; top: 0; z-index: 10; background: var(--canvas); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; min-height: 82px; align-items: center; gap: 44px; }
.brand { display: inline-flex; min-height: 44px; align-items: center; gap: 11px; white-space: nowrap; font-size: 24px; font-weight: 650; letter-spacing: -.06em; line-height: 1; }
.brand-mark { width: 33px; height: 33px; color: var(--accent); }
.brand-core { font-weight: 400; color: var(--muted); font-size: 19px; letter-spacing: -.035em; }
.main-nav { display: flex; gap: 30px; margin-left: auto; }
.main-nav a { display: flex; align-items: center; min-height: 44px; font-size: 13px; color: var(--muted); }
.main-nav a[aria-current] { color: var(--accent); }
.tools-menu { position: relative; }
.tools-menu > summary { display: flex; align-items: center; gap: 7px; min-height: 44px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.tools-menu > summary::after { content: ""; width: 6px; height: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.tools-menu[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.tools-menu[open] > summary, .tools-menu[data-current] > summary { color: var(--accent); }
.tools-menu-list { position: absolute; top: calc(100% + 8px); right: 0; width: 264px; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--paper); }
.main-nav .tools-menu-list a { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 64px; padding: 8px 12px; color: var(--ink); }
.tools-menu-list a + a { border-top: 1px solid var(--line); }
.tools-menu-list small { color: var(--muted); font-size: 11px; }
.main-nav .tools-menu-list a[aria-current="page"] { color: var(--accent); }
.source-link { display: flex; align-items: center; gap: 8px; min-height: 40px; padding-left: 26px; border-left: 1px solid var(--line); font-size: 13px; }
.source-link > .small { margin-left: 2px; }

.hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 52px; padding-block: 74px 72px; }
.hero-copy { padding-bottom: 6px; }
.release-link { display: inline-flex; align-items: center; gap: 10px; min-height: 32px; font-size: 11px; color: var(--muted); }
.release-link .mono { color: var(--ink); font-size: 11px; }
.status-dot { display: inline-block; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: #58714e; }
.release-divider { height: 12px; width: 1px; margin-inline: 1px; background: var(--line); }
.hero .eyebrow { margin-top: 35px; margin-bottom: 17px; }
.hero h1 { font-size: clamp(38px, 4vw, 54px); font-weight: 600; line-height: 1.42; }
.hero h1 [lang="en"] { font-weight: 650; letter-spacing: -.055em; }
.hero-period { color: var(--accent); }
.hero-description { max-width: 395px; margin-top: 22px; color: var(--muted); font-size: 15px; line-height: 1.95; }
.button { display: inline-flex; min-height: 48px; justify-content: center; align-items: center; gap: 28px; padding: 10px 19px; border: 1px solid transparent; border-radius: var(--radius-small); font-size: 13px; font-weight: 500; }
.button:active { transform: scale(.97); }
.button-primary { margin-top: 29px; background: var(--accent); color: #fff5ec; }
.hero-footnote { display: flex; align-items: center; gap: 12px; margin-top: 17px; color: var(--muted); font-size: 10px; }
.hero-footnote > span:nth-child(2) { color: #8b8d80; }
.composition { position: relative; padding: 23px 26px 19px; background-color: #eeeee5; background-image: linear-gradient(#d9dccb55 1px, transparent 1px), linear-gradient(90deg, #d9dccb55 1px, transparent 1px); background-size: 22px 22px; border: 1px solid #dfe1d4; border-radius: var(--radius-medium); }
.diagram-topline { display: flex; justify-content: space-between; gap: 8px; font-size: 8px; color: var(--muted); letter-spacing: .08em; }
.diagram-index { font-family: var(--mono); color: #737969; }
.profile-node { display: flex; align-items: center; justify-content: center; gap: 10px; width: fit-content; min-height: 37px; margin: 28px auto 0; padding: 6px 12px; border: 1px solid #c7cdb9; border-radius: var(--radius-small); background: var(--paper); font-size: 10px; }
.file-glyph { color: var(--muted); font-size: 20px; line-height: 1; }
.node-dot { display: inline-block; width: 5px; height: 5px; background: var(--accent); border-radius: 50%; }
.profile-node .node-dot { margin-left: 5px; }
.connector { width: 1px; margin-inline: auto; background: #939e84; }
.connector-top { height: 23px; }
.connector-bottom { height: 23px; }
.application-frame { position: relative; padding: 14px; border: 1px solid #b5bea5; background: #f8f8f1b3; }
.frame-label { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 11px; color: #626c59; font-size: 10px; }
.frame-label .mono { font-size: 8px; letter-spacing: .06em; }
.domain-nodes { display: flex; gap: 6px; margin-bottom: 13px; }
.domain-nodes > span { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 31px; flex: 1; border: 1px dashed #bbc3ac; background: #f8f8f3; color: #5c6653; font-size: 11px; white-space: nowrap; }
.domain-nodes > span:last-child { flex: 2.1; }
.domain-nodes .icon { width: 13px; height: 13px; }
.core-block { overflow: hidden; background: var(--code-bg); color: var(--code-text); border-radius: var(--radius-small); }
.core-title { display: flex; align-items: center; gap: 13px; padding: 23px 20px 20px; }
.core-cube { display: flex; width: 42px; height: 42px; align-items: center; justify-content: center; background: #c35a37; color: #fff1db; border-radius: var(--radius-small); font-size: 34px; font-weight: 500; line-height: 1; }
.core-title strong { display: block; font-size: 25px; line-height: 1.2; font-weight: 550; letter-spacing: -.045em; }
.core-title div > span { display: block; margin-top: 7px; color: #b1b8a7; font-size: 9px; letter-spacing: .05em; }
.core-version { margin-left: auto; align-self: flex-start; color: #9ca891; font-size: 9px; }
.core-components { display: grid; grid-template-columns: repeat(3, 1fr); padding: 10px 16px 14px; border-top: 1px solid #ffffff18; gap: 6px; }
.core-components span { padding: 4px; border: 1px solid #ffffff13; text-align: center; color: #c0c8b4; font-size: 9px; }
.official-nodes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; padding-top: 12px; }
.official-nodes span { border: 1px solid #c5ccb8; background: #e8eddf; color: #556348; padding: 3px 1px; text-align: center; font-size: 9px; }
.frame-corner { position: absolute; width: 6px; height: 6px; border: 1px solid #8e9c7e; background: var(--paper); }
.corner-tl { top: -3px; left: -3px; }.corner-tr { top: -3px; right: -3px; }.corner-bl { bottom: -3px; left: -3px; }.corner-br { bottom: -3px; right: -3px; }
.output-nodes { display: flex; justify-content: center; align-items: center; gap: 15px; color: #626d59; font-size: 8px; }
.output-nodes > span { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.output-nodes .node-dot { width: 4px; height: 4px; background: #7d8a6f; }
.composition figcaption { display: flex; align-items: center; gap: 8px; padding-top: 25px; margin-top: 22px; border-top: 1px solid #d6dcca; color: #6b7261; font-size: 9px; }
.small-cross { font-family: var(--mono); color: var(--accent); font-size: 14px; }
.composition figcaption .mono { margin-left: auto; font-size: 8px; }
.tech-strip { display: flex; align-items: center; gap: 25px; border-block: 1px solid var(--line); padding-block: 24px; }
.tech-label { color: var(--muted); font-size: 10px; }
.tech-items { display: flex; flex: 1; align-items: center; justify-content: center; gap: 33px; font-size: 15px; font-weight: 550; letter-spacing: -.02em; }
.tech-items small { font-family: var(--mono); font-size: 9px; font-weight: 400; }
.license-tag { font-size: 9px; color: var(--muted); }

.section-heading { margin-bottom: 39px; }
.section-heading h2 { margin-top: 13px; font-size: 31px; line-height: 1.5; }
.section-heading > p:last-child:not(.eyebrow) { margin-top: 13px; color: var(--muted); font-size: 13px; }
.split-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.split-heading > p { max-width: 365px; padding-bottom: 4px; line-height: 1.9; }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.principle-grid article { display: flex; flex-direction: column; align-items: flex-start; border-top: 1px solid var(--line); padding-top: 23px; }
.item-index { color: var(--muted); font-size: 9px; letter-spacing: .08em; }
.principle-grid h3 { margin-top: 17px; font-size: 18px; }
.principle-grid p { margin-top: 11px; margin-bottom: 14px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.principle-grid .text-link { margin-top: auto; }
.architecture-section { background: var(--surface); border-block: 1px solid var(--line); }
.architecture-grid { display: grid; grid-template-columns: 1.8fr 1fr; gap: 64px; }
.directory-heading { display: grid; grid-template-columns: 1fr 1.1fr; gap: 10px; padding-bottom: 13px; color: var(--muted); font-size: 9px; letter-spacing: .07em; }
.core-directory > a { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: 10px; align-items: center; min-height: 62px; padding-right: 20px; border-top: 1px solid #cfd3c4; }
.core-directory > a:last-child { border-bottom: 1px solid #cfd3c4; }
.core-directory code { font-size: 12px; white-space: nowrap; }
.core-directory code > span { color: var(--muted); }
.core-directory a > span { font-size: 11px; color: var(--muted); }
.core-directory a > .icon { position: absolute; right: 0; color: #68735b; width: 14px; }
.boundary-note { padding: 14px 0 0; }
.boundary-symbol { display: block; color: #8a9679; font-family: var(--mono); font-size: 42px; letter-spacing: -.12em; line-height: 1.1; margin-bottom: 23px; }
.boundary-note .eyebrow { font-size: 8px; color: #61714d; }
.boundary-note h3 { margin-top: 14px; font-size: 23px; line-height: 1.65; }
.boundary-note > p:not(.eyebrow) { margin-top: 15px; max-width: 270px; color: var(--muted); font-size: 12px; line-height: 1.95; }
.boundary-note .text-link { margin-top: 18px; }
.lifecycle { margin-top: 44px; padding: 23px 28px; background: #293129; color: #e0e5d6; border-radius: var(--radius-small); }
.lifecycle-label { font-size: 8px; letter-spacing: .12em; color: #b1bca3; }
.lifecycle ol { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; padding: 0; margin: 15px 0 17px; list-style: none; }
.lifecycle li { display: flex; flex: 1; align-items: center; gap: 12px; white-space: nowrap; font-size: 12px; }
.lifecycle li:not(:last-child)::after { content: "→"; color: #94a081; font-size: 16px; margin-left: auto; }
.lifecycle li:last-child { flex: 0 0 auto; }
.lifecycle > p { color: #afbaa2; font-size: 10px; }
.lifecycle code { color: #d4ddc7; }

.modules-layout { display: grid; grid-template-columns: 1.23fr 1fr; gap: 76px; align-items: start; }
.module-detail { border-top: 1px solid var(--line); }
.module-detail:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.module-detail summary { display: flex; align-items: center; min-height: 87px; gap: 20px; }
.module-detail summary:active, .guide-details summary:active { transform: translateY(1px); }
.module-detail summary:focus-visible:active, .guide-details summary:focus-visible:active { transform: none; }
.module-number { font-size: 10px; color: var(--muted); }
.module-name { display: flex; flex-direction: column; font-size: 16px; font-weight: 500; }
.module-name code { color: var(--muted); font-size: 10px; font-weight: 400; }
.module-category { margin-left: auto; color: var(--muted); font-size: 10px; }
.module-detail summary > .icon { width: 18px; height: 18px; margin-left: 4px; color: var(--muted); }
.module-detail[open] summary > .icon, .guide-details details[open] summary > .icon { transform: rotate(45deg); color: var(--accent); }
.module-detail[open] .module-name { color: var(--accent); }
.module-description { padding: 0 0 19px 35px; color: var(--muted); font-size: 12px; }
.module-description > p { margin-bottom: 14px; line-height: 1.95; }
.module-description dl { margin: 0 0 7px; }
.module-description dl > div { display: flex; gap: 16px; margin-top: 4px; }
.module-description dt { flex: 0 0 54px; color: var(--muted); font-size: 10px; }
.module-description dd { margin: 0; overflow-wrap: anywhere; font-size: 10px; color: var(--ink); }
.module-description .text-link { min-height: 36px; font-size: 11px; color: var(--ink); }
.profile-example { padding-top: 1px; }
.code-window { min-width: 0; overflow: hidden; border-radius: var(--radius-medium); background: var(--code-bg); color: var(--code-text); }
.code-heading { display: flex; min-height: 47px; align-items: center; justify-content: space-between; gap: 8px; padding-inline: 21px 12px; border-bottom: 1px solid #ffffff15; color: #b3bdaa; font-family: var(--mono); font-size: 10px; }
.code-heading > span { display: flex; align-items: center; gap: 10px; }
.code-file-dot { width: 7px; height: 7px; border: 1px solid #808e6c; border-radius: 1px; }
.terminal-sign { font-size: 14px; color: #bcc4b0; }
.copy-button { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: var(--radius-small); background: transparent; color: inherit; cursor: pointer; }
.code-window pre { margin: 0; padding: 23px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; tab-size: 4; font-size: 11px; line-height: 2; }
.code-window pre code { font-family: inherit; }
.syntax-key { color: #c6cda9; }
.syntax-string { color: #c1cd9d; }
.syntax-section { color: #e2b89b; }
.syntax-comment { color: #a0ac94; }
.light-code { background: #eeefe7; color: #46503e; border: 1px solid var(--line); }
.light-code .code-heading { border-color: var(--line); color: #69735f; }
.light-code .syntax-key { color: #765941; }
.light-code .syntax-string { color: #49623c; }
.light-code .syntax-section { color: var(--accent); }
.light-code .syntax-comment { color: #707963; }
.code-footnote { display: flex; align-items: center; gap: 8px; padding: 14px 21px; border-top: 1px solid var(--line); font-size: 10px; color: #626e56; }
.code-footnote .status-dot { width: 5px; height: 5px; }
.profile-note { max-width: 360px; padding-top: 18px; color: var(--muted); font-size: 11px; line-height: 1.95; }
.profile-note code { font-size: 10px; color: #46503e; }

.quickstart-section { background: var(--paper); border-block: 1px solid var(--line); }
.quickstart-section .section-heading { margin-bottom: 46px; }
.start-step { display: grid; grid-template-columns: .8fr 1.6fr; gap: 72px; align-items: start; padding-block: 27px; border-top: 1px solid var(--line); }
.step-description { position: relative; padding-left: 41px; padding-top: 3px; }
.step-number { position: absolute; left: 0; top: 7px; display: flex; width: 24px; height: 24px; align-items: center; justify-content: center; color: var(--accent); background: var(--accent-soft); border-radius: var(--radius-small); font-size: 10px; }
.step-description h3 { margin-top: 0; font-size: 18px; }
.step-description > p { margin-top: 10px; max-width: 245px; color: var(--muted); font-size: 12px; line-height: 1.95; }
.step-description .text-link { margin-top: 13px; font-size: 11px; }
.inline-note { display: inline-block; margin-top: 16px; color: var(--accent); font-size: 10px; }
.endpoint-labels { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 15px; font-size: 9px; }
.endpoint-labels > span { padding: 3px 7px; background: var(--surface); border-radius: 2px; color: #56624d; }
.start-step .code-window pre { padding: 19px 23px 23px; }
.next-step-note { display: flex; align-items: center; gap: 12px; margin-top: 13px; padding: 17px 21px; background: #e9eddf; border-radius: var(--radius-small); color: #4d6040; font-size: 11px; }
.next-step-note > .icon { width: 17px; }
.next-step-note > a { display: flex; align-items: center; min-height: 40px; flex: 0 0 auto; gap: 7px; margin-left: auto; white-space: nowrap; }
.next-step-note code { font-size: 10px; }

.guide-layout { display: grid; grid-template-columns: .8fr 1.6fr; gap: 72px; align-items: start; }
.project-tree { background: #ecede4; border-radius: var(--radius-small); padding: 25px; }
.tree-title { color: #5f6b52; font-size: 9px; letter-spacing: .09em; }
.project-tree pre { margin: 22px 0 19px; font-size: 11px; line-height: 2; color: #66725a; }
.project-tree pre > span { color: var(--ink); }
.project-tree p { padding-top: 16px; border-top: 1px solid #d2d8c7; font-size: 11px; color: var(--muted); line-height: 1.95; }
.guide-details { min-width: 0; }
.guide-details details { border-top: 1px solid var(--line); }
.guide-details details:last-child { border-bottom: 1px solid var(--line); }
.guide-details summary { display: flex; min-height: 69px; align-items: center; justify-content: space-between; gap: 16px; font-size: 15px; font-weight: 500; }
.guide-details summary > .icon { width: 18px; height: 18px; color: var(--muted); }
.guide-content { padding-bottom: 24px; color: var(--muted); font-size: 12px; line-height: 1.95; }
.guide-content > p + p { margin-top: 13px; }
.guide-content > p > code, .guide-content li > code { font-size: 11px; color: var(--ink); overflow-wrap: anywhere; }
.guide-content > p > a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.guide-content .code-window { margin-block: 18px; }
.guide-content .code-window pre { font-size: 10px; }
.guide-content ol { padding-left: 21px; margin: 0 0 18px; }
.guide-content li { padding-left: 4px; margin-bottom: 10px; }
.guide-content .text-link { color: var(--ink); }
.config-list { margin-block: 18px; }
.config-list > div { padding-block: 10px; border-top: 1px solid var(--line); }
.config-list dt { color: var(--ink); font-size: 11px; }
.config-list dd { margin: 3px 0 0; font-size: 11px; }
.closing { display: flex; align-items: center; justify-content: space-between; gap: 38px; padding: 43px 46px 45px; margin-bottom: 65px; background: #e9e9df; border: 1px solid #d8dbcc; border-radius: var(--radius-medium); }
.closing .eyebrow { color: #60714d; font-size: 9px; }
.closing h2 { margin-top: 14px; font-size: 27px; }
.closing p:last-child { margin-top: 11px; color: var(--muted); font-size: 12px; }
.button-dark { flex: 0 0 auto; color: #e7ecdc; background: #303a2b; gap: 16px; font-size: 12px; }
.site-footer { display: flex; align-items: center; min-height: 95px; gap: 25px; border-top: 1px solid var(--line); }
.footer-brand { font-size: 21px; }
.footer-brand .brand-core { font-size: 17px; }
.footer-description { color: var(--muted); font-size: 10px; }
.footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; margin-left: auto; color: var(--muted); font-size: 10px; }
.footer-links a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; gap: 4px; }
.footer-links a:first-child { margin-right: 10px; color: var(--ink); }
.footer-links .icon { width: 13px; }
.copy-status { position: fixed; z-index: 15; bottom: max(24px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); padding: 12px 20px; color: #edf2e5; background: #303a2b; border-radius: var(--radius-small); box-shadow: 0 4px 18px #252b2526; font-size: 12px; }
.copy-status[data-state="error"] { background: #763721; }

@media (hover: hover) {
  .tools-menu-list a:hover { background: var(--surface); }
  .main-nav a:hover, .source-link:hover, .text-link:hover, .footer-links a:hover { color: var(--accent); }
  .button-primary:hover { background: #a73d22; }
  .button-dark:hover { background: #445338; }
  .core-directory a:hover { background: #e5e8da; }
  summary:hover { color: var(--accent); }
  .copy-button:hover { background: #ffffff12; }
  .light-code .copy-button:hover { background: #dce1d0; }
}

@media (min-width: 1100px) {
  .hero-copy { animation: hero-enter 650ms cubic-bezier(.16,1,.3,1) both; }
  .composition { animation: hero-enter 750ms 90ms cubic-bezier(.16,1,.3,1) both; }
}
@keyframes hero-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1100px) {
  .container { width: calc(100% - 64px); }
  .header-inner { gap: 25px; }
  .main-nav { gap: 23px; }
  .hero { gap: 30px; padding-block: 57px; }
  .hero h1 { font-size: 40px; }
  .hero-description { font-size: 13px; }
  .composition { padding-inline: 19px; }
  .core-title { padding-inline: 16px; }
  .core-title strong { font-size: 23px; }
  .core-cube { width: 36px; height: 36px; font-size: 30px; }
  .output-nodes { gap: 10px; font-size: 7px; }
  .tech-strip { gap: 16px; }
  .tech-items { gap: 22px; font-size: 13px; }
  .tech-label { font-size: 9px; }
  .license-tag { display: none; }
  .architecture-grid { gap: 38px; grid-template-columns: 1.8fr 1fr; }
  .core-directory code { font-size: 10px; }
  .core-directory a > span { font-size: 10px; }
  .modules-layout { gap: 42px; }
  .module-detail summary { gap: 13px; }
  .module-description { padding-left: 27px; }
  .start-step, .guide-layout { gap: 42px; grid-template-columns: .9fr 1.5fr; }
  .lifecycle { padding-inline: 22px; }
  .lifecycle li { font-size: 10px; gap: 10px; }
  .closing { padding-inline: 30px; }
}

@media (max-width: 800px) {
  html { scroll-padding-top: 135px; }
  .container { width: calc(100% - 48px); }
  .header-inner { flex-wrap: wrap; min-height: 112px; column-gap: 20px; row-gap: 0; padding-top: 11px; padding-bottom: 5px; }
  .brand { font-size: 23px; }
  .brand-core { font-size: 18px; }
  .brand-mark { width: 29px; height: 29px; }
  .source-link { margin-left: auto; padding-left: 0; border-left: 0; font-size: 12px; }
  .main-nav { order: 3; justify-content: space-between; width: 100%; gap: 12px; margin-left: 0; }
  .main-nav a { font-size: 12px; min-height: 44px; }
  .tools-menu > summary { font-size: 12px; }
  .hero { grid-template-columns: 1fr; gap: 42px; padding-block: 42px; }
  .hero h1 { font-size: clamp(36px, 6vw, 49px); }
  .hero .eyebrow { margin-top: 25px; }
  .hero-description { max-width: 440px; font-size: 14px; }
  .hero-copy { padding-bottom: 0; }
  .composition { width: 100%; max-width: 520px; margin-inline: auto; padding: 22px 28px 18px; }
  .core-title { padding: 23px; }
  .core-title strong { font-size: 27px; }
  .core-cube { width: 43px; height: 43px; font-size: 35px; }
  .core-components span { font-size: 10px; }
  .output-nodes { gap: 20px; font-size: 9px; }
  .tech-strip { align-items: flex-start; flex-direction: column; gap: 10px; padding-block: 20px; }
  .tech-label { font-size: 10px; }
  .tech-items { justify-content: space-between; width: 100%; flex-wrap: wrap; gap: 14px; font-size: 14px; }
  .section-space { padding-block: 64px; }
  .section-heading h2 { font-size: 27px; }
  .split-heading { flex-direction: column; align-items: flex-start; gap: 1px; }
  .split-heading > p { max-width: 100%; }
  .split-heading > p br { display: none; }
  .principle-grid { grid-template-columns: 1fr; gap: 27px; }
  .principle-grid article { padding-top: 19px; }
  .principle-grid h3 { margin-top: 11px; }
  .principle-grid p { margin-bottom: 8px; }
  .architecture-grid { grid-template-columns: 1fr; gap: 32px; }
  .directory-heading { grid-template-columns: 1fr 1fr; }
  .core-directory > a { grid-template-columns: 1fr 1fr; min-height: 65px; }
  .core-directory code { font-size: 11px; }
  .core-directory a > span { font-size: 11px; }
  .boundary-note { padding: 24px 27px; border: 1px solid #cfd4c2; border-radius: var(--radius-small); }
  .boundary-symbol { float: right; margin: 8px 5px 0 20px; }
  .boundary-note h3 { font-size: 21px; }
  .boundary-note h3 br { display: none; }
  .boundary-note > p:not(.eyebrow) { max-width: 100%; }
  .boundary-note .text-link { margin-top: 12px; }
  .lifecycle { margin-top: 29px; }
  .lifecycle ol { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 25px; }
  .lifecycle li { font-size: 11px; justify-content: space-between; }
  .lifecycle li:not(:last-child)::after { margin-left: 5px; }
  .lifecycle li:last-child::after { content: "✓"; color: #a7b895; }
  .modules-layout { grid-template-columns: 1fr; gap: 32px; }
  .module-detail summary { gap: 20px; }
  .module-description { padding-left: 34px; }
  .profile-note { max-width: 100%; }
  .start-step, .guide-layout { grid-template-columns: 1fr; gap: 24px; }
  .step-description > p { max-width: 100%; }
  .start-step { padding-block: 27px 32px; }
  .step-description .text-link { margin-top: 7px; }
  .inline-note { margin-top: 10px; }
  .next-step-note { flex-wrap: wrap; gap: 8px; padding: 16px; }
  .next-step-note p { flex: 1; min-width: 70%; }
  .next-step-note > a { margin-left: 25px; }
  .project-tree { padding: 24px; }
  .project-tree pre { margin-block: 15px; }
  .project-tree p { max-width: 100%; }
  .closing { align-items: flex-start; flex-direction: column; padding: 32px 26px; gap: 22px; margin-bottom: 40px; }
  .closing h2 { font-size: 24px; }
  .site-footer { flex-wrap: wrap; gap: 0 19px; padding-block: 20px; }
  .footer-links { margin-left: 0; flex-basis: 100%; }
}

@media (max-width: 420px) {
  .header-inner { position: relative; }
  .main-nav { flex-wrap: wrap; justify-content: flex-start; column-gap: 18px; row-gap: 0; }
  .tools-menu { position: static; }
  .tools-menu-list { top: 100%; right: 0; left: 0; width: 100%; }
  html { scroll-padding-top: 180px; }
  .container { width: calc(100% - 40px); }
  .hero h1 { font-size: 35px; }
  .hero-description { font-size: 13px; }
  .release-link { gap: 8px; font-size: 10px; }
  .composition { padding-inline: 16px; }
  .diagram-topline { font-size: 7px; letter-spacing: .03em; }
  .application-frame { padding: 12px; }
  .core-title { gap: 11px; padding: 21px 14px; }
  .core-title strong { font-size: 24px; }
  .core-title div > span { font-size: 8px; }
  .core-cube { width: 36px; height: 36px; font-size: 30px; }
  .core-components { padding-inline: 12px; }
  .core-components span { font-size: 8px; }
  .domain-nodes > span { font-size: 9px; }
  .output-nodes { gap: 10px; font-size: 7px; }
  .tech-items { gap: 10px; font-size: 11px; }
  .tech-items small { font-size: 8px; }
  .section-heading h2 { font-size: 24px; }
  .section-heading > p:last-child:not(.eyebrow) { font-size: 12px; }
  .directory-heading { grid-template-columns: 1fr 1fr; }
  .core-directory > a { column-gap: 15px; }
  .core-directory code { font-size: 9px; }
  .core-directory a > span { font-size: 10px; }
  .boundary-note { padding-inline: 21px; }
  .boundary-note h3 { font-size: 18px; }
  .module-category { font-size: 9px; }
  .module-detail summary { gap: 14px; }
  .module-name { font-size: 15px; }
  .module-name code { font-size: 9px; }
  .module-description { padding-left: 28px; }
  .code-window pre { padding-inline: 17px; font-size: 10px; }
  .start-step .code-window pre { padding-inline: 17px; font-size: 10px; }
  .code-heading { padding-left: 17px; font-size: 9px; }
  .closing h2 { font-size: 21px; }
  .footer-description { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .site-header { position: static; }
  .container { width: 100%; }
  .section-space { padding-block: 30px; }
  .hero { padding-block: 25px; }
  .copy-button, .copy-status, .skip-link { display: none !important; }
  .code-window pre { white-space: pre-wrap; overflow-wrap: anywhere; }
  .code-window, .composition, .project-tree { break-inside: avoid; }
}
