:root { --ink: #152b2b; --muted: #536c68; --accent: #006552; --paper: #f7f8f2; --line: #cbd5cb; --mint: #a9eebd; --sans: Inter, system-ui, 'Segoe UI', sans-serif; --mono: 'IBM Plex Mono', 'Cascadia Code', Consolas, monospace; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.6; text-size-adjust: 100%; scroll-padding-top: 1.5rem; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1; }
a { color: var(--accent); text-underline-offset: .2em; }
:focus-visible { outline: 3px solid #e98c28; outline-offset: 4px; }
.skip { position: absolute; z-index: 4; top: -6rem; left: 1rem; background: white; padding: .6rem 1rem; }
.skip:focus { top: .5rem; }
.mast { background: #102c2b; color: #f0faef; border-bottom: 3px solid #a9eebd; }
.mast-inner, .foot-inner { width: min(100% - 2.5rem, 77rem); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.mast-inner { min-height: 4.25rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .7rem; font: 650 1.02rem var(--mono); letter-spacing: -.045em; color: inherit; text-decoration: none; }
.prompt-mark { width: 2.1rem; height: 2.1rem; }
.mast nav { display: flex; align-items: center; gap: clamp(1rem, 4vw, 2.75rem); }
.mast nav a { color: #dce8df; font-size: .89rem; text-decoration: none; padding-block: .7rem; }
.mast nav a:hover, .mast nav a[aria-current] { color: var(--mint); text-decoration: underline; }
.reader { display: grid; grid-template-columns: 13rem minmax(0, 47rem); gap: clamp(2rem, 6vw, 6rem); width: min(100% - 2.5rem, 77rem); margin: 3.5rem auto 5rem; align-items: start; }
.guide-nav { position: sticky; top: 2rem; border-left: 1px solid var(--line); }
.guide-nav strong { display: block; padding: 0 1rem .75rem; font: 600 .75rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.guide-nav a { display: block; padding: .45rem 1rem; line-height: 1.4; font-size: .89rem; color: var(--muted); text-decoration: none; }
.guide-nav a:hover, .guide-nav a[aria-current] { color: var(--accent); background: #e6eee3; }
.guide-nav a[aria-current] { box-shadow: inset 3px 0 var(--accent); font-weight: 650; }
.article { min-width: 0; font-size: 1.03rem; overflow-wrap: break-word; }
.article h1, .article h2, .article h3 { line-height: 1.13; letter-spacing: -.035em; text-wrap: balance; }
.article h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); margin: 0 0 1.1rem; }
.article h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); margin: 2.4rem 0 1rem; }
.article h3 { font-size: 1.32rem; margin: 1.75rem 0 .65rem; }
.nacara-heading-anchor { margin-inline-start: .35em; text-decoration: none; font-size: .72em; opacity: 0; }
.nacara-heading-anchor::after { content: '#'; }
:is(h2,h3,h4):hover .nacara-heading-anchor, .nacara-heading-anchor:focus-visible { opacity: 1; }
.article .standfirst { font-size: 1.22rem; color: var(--muted); margin: 0 0 1.8rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.article :is(p, li) > code { background: #e8ede4; padding: .13em .32em; border-radius: 3px; }
code, pre, kbd { font-family: var(--mono); }
.article pre { background: #102a2c; color: #e0f0e6; border: 1px solid #274846; padding: 1.1rem 1.25rem; border-radius: 6px; overflow-x: auto; font-size: .88rem; line-height: 1.6; }
.article pre .tok-keyword { color: #c9aeff; }
.article pre :is(.tok-string,.tok-function) { color: #9fe9ba; }
.article pre :is(.tok-number,.tok-constant) { color: #facb80; }
.article pre .tok-comment { color: #adc3bb; }
.article :is(img,svg) { max-width: 100%; }
.article table { display: block; overflow-x: auto; border-collapse: collapse; }
.article :is(th,td) { padding: .5rem .7rem; border-bottom: 1px solid var(--line); text-align: start; }
.article blockquote { margin-inline: 0; border-left: 3px solid var(--accent); padding-inline: 1rem; }
.site-foot { border-top: 1px solid var(--line); margin-top: auto; color: var(--muted); }
.foot-inner { padding-block: 1.6rem; font: .82rem var(--mono); flex-wrap: wrap; }
@media (max-width: 46rem) {
  .reader { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; margin-block: 2rem 3rem; }
  .guide-nav { position: static; border: 0; display: flex; gap: .4rem; flex-wrap: wrap; }
  .guide-nav strong { width: 100%; padding: 0; }
  .guide-nav a { padding: .25rem .55rem; border: 1px solid var(--line); border-radius: 3px; }
}
@media (max-width: 30rem) {
  .mast-inner { padding-block: .65rem; gap: .2rem .7rem; }
  .mast nav { gap: 1.15rem; }
}
.terminal-home { max-width: 82rem; margin: 0 auto; padding: 0 clamp(1rem,4vw,4rem) 4rem; }
.terminal-hero { display: grid; grid-template-columns: minmax(0,0.83fr) minmax(0,1.17fr); align-items: center; gap: clamp(1.5rem,4vw,4rem); padding: clamp(2.5rem,6vw,6rem) 0; }
.hero-copy h1 { font-family: var(--sans); font-size: clamp(3.4rem,5.5vw,6.4rem); letter-spacing: -.065em; line-height: .99; font-weight: 680; margin: 0; }
.hero-copy h1 em { display: block; font-family: Georgia,serif; font-weight: 500; color: var(--accent); letter-spacing: -.065em; }
.hero-copy > p { max-width: 35ch; margin: 1.4rem 0 1.7rem; line-height: 1.55; font-size: clamp(1.05rem,1.45vw,1.25rem); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; }
.terminal-home .terminal-action { background: var(--accent); color: var(--paper); padding: .78rem 1.15rem; border-radius: .35rem; font-weight: 650; text-decoration: none; }
.terminal-action span { margin-left: .45rem; }
.terminal-home .terminal-link { color: var(--ink); font-weight: 600; text-underline-offset: .24em; }
.terminal-window { margin: 0; background: #242424; color: #e0d1ad; overflow: hidden; border-radius: .65rem; border: 1px solid #33433d; box-shadow: 0 12px 28px #0d302518; }
.window-title, .terminal-window figcaption { padding: .65rem .95rem; margin: 0; font-family: var(--mono); font-size: .75rem; color: #d6ded2; background: #24332e; }
.window-title { display: flex; justify-content: space-between; gap: 1rem; }
.window-title span:last-child { color: #acc3b5; }
.showcase-fallback { width: 100%; height: auto; display: block; }
#showcase-live:has(.native-screen) + .showcase-fallback { display: none; }
.terminal-window figcaption a { color: #c7e2da; }
#showcase-live { container-type: inline-size; background: #0c121d; }
.native-screen { position: relative; margin: 0 auto; width: 48ch; max-width: 100%; font-family: Consolas, 'DejaVu Sans Mono', monospace; font-size: min(3.28cqw,1.35rem); line-height: 1; white-space: pre; font-variant-ligatures: none; font-synthesis: none; }
.native-row { display: grid; grid-template-columns: repeat(48,minmax(0,1fr)); height: 1em; white-space: pre; }
.native-row span { min-width: 0; overflow: hidden; text-align: center; }
.native-checkbox { position: absolute; height: 1em; font: inherit; padding: 0; border: 0; background: transparent; cursor: pointer; }
.native-checkbox:focus-visible { outline: 1px solid #65e0c8; outline-offset: -1px; }
.terminal-window figcaption { border-top: 1px solid #394a41; line-height: 1.4; }
.home-guides { border-top: 1px solid var(--line); padding-top: 1.75rem; }
.home-guides h2 { font-size: clamp(1.65rem,3vw,2.25rem); margin: 0 0 1.15rem; letter-spacing: -.04em; }
.guide-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .85rem; }
.guide-grid a { display: block; border: 1px solid var(--line); padding: 1.2rem; border-radius: .4rem; text-decoration: none; color: var(--ink); }
.guide-grid a:hover, .guide-grid a:focus-visible { border-color: var(--accent); }
.guide-grid h3 { display: flex; justify-content: space-between; gap: .4rem; font-size: 1.08rem; margin: 0 0 .6rem; }
.guide-grid h3 span { font-family: var(--mono); color: var(--accent); }
.guide-grid p { margin: 0; line-height: 1.5; color: var(--muted); }
.preview-frame { margin: 1rem 0; background: #0c121d; overflow: hidden; border-radius: .45rem; }
.preview-frame img { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.preview-frame figcaption { margin: 0; background: #1b2a33; color: #d8e4e9; font-size: .86rem; padding: .65rem 1rem; line-height: 1.5; }
@media (max-width: 56rem) {
  .terminal-hero { grid-template-columns: 1fr; gap: 2rem; }
  .hero-copy h1 em { display: inline; }
  .hero-copy > p { max-width: 55ch; }
  .guide-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 32rem) {
  .guide-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: clamp(2.8rem,13vw,4.2rem); }
}
