/* Free guide pages (/guides/<slug>), hosted by Ned. Rendered by lib/guide-page.js.
   Concept: a packing slip for a box of tools. Kraft box, Ned's yellow tape, a contents slip on the side.
   Stands alone (does not load blog.css). */
:root {
  --kraft: #c99a62;
  --kraft-deep: #a8783f;
  --paper: #fbfaf5;
  --ink: #1d1a1f;
  --ink-soft: #4a4450;
  --tape: #ffd23f;
  --note: #fff1a6;
  --sky: #a9cdee;
  --link: #2f5bd0;
  --term: #201c24;
  --rule: #e4ddd0;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Geist', system-ui, sans-serif; font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
code { font-family: 'Geist Mono', ui-monospace, monospace; font-size: .86em; background: #efe9dc; padding: 1px 6px; border-radius: 5px; overflow-wrap: anywhere; }

/* Site header: thin, so the box is the first thing you see */
.site { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px clamp(16px, 4vw, 40px); background: var(--paper); border-bottom: 2px solid var(--ink); }
.site-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; letter-spacing: -0.01em; }
.site-cta { font-weight: 700; font-size: .92rem; color: var(--ink); text-decoration: none; border: 2px solid var(--ink); border-radius: 100px; padding: 7px 16px; background: #fff; }
.site-cta:hover { background: var(--tape); }

/* Hero: the box */
.hero { position: relative; overflow: hidden; background-color: var(--kraft);
  background-image:
    repeating-linear-gradient(92deg, rgba(255,255,255,.035) 0 2px, transparent 2px 7px),
    repeating-linear-gradient(-3deg, rgba(90,55,20,.05) 0 1px, transparent 1px 5px),
    radial-gradient(ellipse at 20% 0%, rgba(255,235,200,.35), transparent 60%);
  padding: 0 clamp(16px, 4vw, 40px); border-bottom: 2px solid var(--ink); }
.tape { display: flex; width: 140%; margin-left: -10%; transform: rotate(-1.6deg); background: var(--tape); border-block: 2px solid var(--ink); box-shadow: 0 6px 0 rgba(29,26,31,.18); margin-top: 26px; white-space: nowrap; overflow: hidden; }
.tape span { font-weight: 900; font-size: .95rem; letter-spacing: .32em; padding: 7px 26px; color: var(--ink); opacity: .85; }
.hero-in { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 40px; align-items: center; padding: 44px 0 40px; }
.hero-kicker { font-weight: 600; color: #3b3027; margin-bottom: 14px; }
.hero h1 { font-weight: 900; font-size: clamp(2.5rem, 5.6vw, 4.6rem); line-height: .96; letter-spacing: -0.045em; color: var(--ink); max-width: 13ch; text-wrap: balance; }
.hero-intro { margin-top: 20px; font-size: 1.12rem; max-width: 36em; color: #2c2620; }
.hero-bubble { margin-top: 22px; display: inline-flex; align-items: center; gap: 12px; max-width: 34em; background: #fff; border: 2px solid var(--ink); border-radius: 100px; padding: 6px 18px 6px 6px; font-weight: 600; }
.hero-bubble img { width: 40px; height: 40px; border-radius: 50%; background: var(--tape); border: 2px solid var(--ink); flex: none; object-fit: cover; object-position: 50% 10%; }
.hero-bubble b { font-family: 'Geist Mono', monospace; background: var(--tape); padding: 1px 8px; border-radius: 6px; }
.hero-covers { position: relative; height: 470px; }
.cover { position: absolute; width: 250px; aspect-ratio: 9 / 16; border: 3px solid var(--ink); border-radius: 18px; background: var(--ink); box-shadow: 10px 10px 0 rgba(29,26,31,.35); }
.cover img { width: 100%; height: 100%; object-fit: cover; border-radius: 15px; }
.cover::before, .cover::after { content: ''; position: absolute; width: 86px; height: 26px; background: rgba(255,210,63,.88); border: 1.5px solid rgba(29,26,31,.35); z-index: 2; }
.cover::before { top: 4px; left: -26px; transform: rotate(-35deg); }
.cover::after { bottom: 4px; right: -26px; transform: rotate(-35deg); }
.covers-1 .cover-0 { left: 50%; top: 4px; transform: translateX(-50%) rotate(3deg); }
.covers-2 .cover-0 { left: 0; top: 18px; transform: rotate(-6deg); }
.covers-2 .cover-1 { right: 0; top: 0; transform: rotate(5deg); }
.hero-ned { width: 380px; margin: 0 auto; }
.label { max-width: 1180px; margin: 0 auto 34px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #fff; border: 2px solid var(--ink); border-radius: 6px; }
.label div { padding: 12px 18px; border-left: 2px dashed var(--ink); }
.label div:first-child { border-left: 0; }
.label dt { font-size: .78rem; font-weight: 600; color: var(--ink-soft); }
.label dd { font-weight: 800; font-size: 1.02rem; }

/* Two columns: the slip, and the box contents */
.layout { max-width: 1180px; margin: 0 auto; padding: 56px clamp(16px, 4vw, 40px) 40px; display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 56px; align-items: start; }
.slip { position: sticky; top: 20px; }
.slip-paper { position: relative; background: #fff; border: 2px solid var(--ink); padding: 18px 18px 20px; border-radius: 4px; }
.slip-paper::before { content: ''; position: absolute; left: 10px; right: 10px; top: -2px; height: 8px; background: radial-gradient(circle 4px at 8px 0, var(--paper) 98%, transparent) 0 0 / 16px 8px repeat-x; }
.slip-head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 900; font-size: 1.15rem; letter-spacing: -0.01em; padding: 8px 0 12px; border-bottom: 2px solid var(--ink); }
.slip-order { font-family: 'Geist Mono', monospace; font-size: .85rem; background: var(--tape); padding: 1px 8px; border-radius: 5px; border: 1.5px solid var(--ink); }
.slip-list { list-style: none; padding: 6px 0; }
.slip-list li + li { border-top: 1px dashed var(--rule); }
.slip-list a { display: flex; align-items: center; gap: 10px; padding: 8px 2px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .93rem; line-height: 1.3; }
.slip-list a:hover .slip-name { text-decoration: underline; }
.slip-no { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--ink); font-size: .75rem; font-weight: 800; }
.is-shipped 
/* "Before you start" folds away for people who already use Claude Code */
.primer { margin-bottom: 40px; border: 2px solid var(--ink); border-radius: 14px; background: #fff; }
.primer summary { cursor: pointer; list-style: none; padding: 14px 48px 14px 18px; position: relative; display: grid; gap: 2px; }
.primer summary::-webkit-details-marker { display: none; }
.primer summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 400; }
.primer[open] summary::after { content: '\2212'; }
.primer summary span:first-child { font-weight: 800; font-size: 1.1rem; }
.primer-hint { color: var(--ink-soft); font-size: .92rem; }
.primer .prose { margin: 0; padding: 0 18px 18px; }

/* Content */
.content { min-width: 0; max-width: 780px; }
.prose { margin-bottom: 48px; }
.prose h2, .faq h2 { font-weight: 900; font-size: clamp(1.7rem, 3vw, 2.2rem); letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 14px; text-wrap: balance; }
.prose p, .prose li { color: #2c2620; }
.prose p + p { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 1.2em; margin-top: 8px; }
.prose li { margin: 8px 0; padding-left: 4px; }
.prose li::marker { color: var(--kraft-deep); font-weight: 800; }
.prose strong { color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1.5px solid var(--rule); vertical-align: top; }
.prose th { border-bottom: 2px solid var(--ink); }

/* One tool = one line item in the box, separated by a cut line */
.item { position: relative; padding: 40px 0 44px; border-top: 2px dashed var(--ink); scroll-margin-top: 16px; }
.prose + .item { border-top: 0; padding-top: 8px; }
.item-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; }
.item-no { font-weight: 900; font-size: 3.4rem; line-height: .9; letter-spacing: -0.05em; color: var(--ink); background: linear-gradient(transparent 52%, var(--tape) 52%, var(--tape) 90%, transparent 90%); padding: 0 4px; min-width: 1ch; text-align: center; font-variant-numeric: tabular-nums; }
.item-no:not(:empty):not([data-n]) { }
.item h3 { font-weight: 800; font-size: 1.9rem; line-height: 1.1; letter-spacing: -0.025em; }
.item h3 a { color: var(--ink); text-decoration: none; background-image: linear-gradient(var(--ink), var(--ink)); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .2s; }
.item h3 a:hover { background-size: 100% 2px; }
.item-by { display: inline-block; vertical-align: middle; font-size: .8rem; font-weight: 700; letter-spacing: 0; padding: 2px 9px; border: 1.5px solid var(--ink); border-radius: 100px; background: #fff; }
.item-lede { margin-top: 8px; font-size: 1.08rem; color: #2c2620; }

.shot { display: block; margin: 24px 0 8px; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 7px 7px 0 var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.shot:hover { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 var(--ink); }
.shot-bar { display: flex; align-items: center; gap: 12px; padding: 9px 12px; background: #efe9dc; border-bottom: 2px solid var(--ink); }
.shot-url { font-family: 'Geist Mono', monospace; font-size: .8rem; color: var(--ink-soft); background: #fff; border: 1.5px solid var(--rule); border-radius: 100px; padding: 2px 12px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shot img { width: 100%; max-height: 330px; object-fit: cover; object-position: top; }
.term-dots { display: inline-flex; gap: 6px; flex: none; }
.term-dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff6159; border: 1px solid rgba(0,0,0,.25); }
.term-dots i:nth-child(2) { background: #ffbd2e; }
.term-dots i:nth-child(3) { background: #28c941; }

/* Steps are a real sequence: install, then try */
.steps { list-style: none; counter-reset: step; margin-top: 26px; display: grid; gap: 26px; }
.step { counter-increment: step; position: relative; padding-left: 46px; }
.step::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--ink); background: #fff; font-weight: 900; font-size: .95rem; }
.step h4 { font-weight: 800; font-size: 1.12rem; margin-bottom: 4px; }
.step > p { color: #2c2620; margin-bottom: 10px; }
.step > p:last-child { margin-bottom: 0; }

.term { margin: 10px 0 12px; background: var(--term); border-radius: 12px; overflow: hidden; border: 2px solid var(--ink); }
.term-bar { display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 12px; background: #2d2833; }
.term-where { font-size: .8rem; font-weight: 700; color: var(--ink); background: #fff; border-radius: 100px; padding: 2px 10px; }
.term-claude .term-where { background: var(--tape); }
.term-browser .term-where { background: var(--sky); }
.term pre { margin: 0; padding: 14px 16px 16px; color: #f3eee2; }
.term pre code, .chat pre code { background: none; padding: 0; font-size: .9rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; color: inherit; }
.copy { margin-left: auto; font: 700 .8rem 'Geist', sans-serif; color: var(--ink); background: var(--tape); border: 1.5px solid var(--ink); border-radius: 8px; padding: 4px 12px; cursor: pointer; }
.copy.ok { background: #bfe8c9; }
.chat { position: relative; margin: 10px 0 12px; max-width: 620px; background: var(--sky); border: 1.5px solid #6f97bf; border-radius: 18px 18px 18px 4px; padding: 10px 16px 14px; }
.chat-who { font-size: .8rem; font-weight: 700; color: #1b3e66; margin-bottom: 4px; padding-right: 70px; }
.chat pre { margin: 0; color: var(--ink); font-family: 'Geist Mono', monospace; }
.chat .copy { position: absolute; top: 8px; right: 10px; }

.sticky-note { position: relative; margin: 24px 0 0; background: var(--note); padding: 14px 18px 12px; transform: rotate(-.6deg); box-shadow: 0 10px 18px -12px rgba(60,40,10,.5); max-width: 640px; }
.sticky-note::before { content: ''; position: absolute; top: -12px; left: 50%; width: 92px; height: 24px; margin-left: -46px; background: rgba(255,255,255,.6); border: 1px solid rgba(0,0,0,.08); transform: rotate(2deg); }
.sticky-note strong:first-child { font-weight: 900; margin-right: 4px; }
details.sticky-note summary { cursor: pointer; list-style: none; }
details.sticky-note summary::-webkit-details-marker { display: none; }
details.sticky-note .more { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
details.sticky-note[open] .more { display: none; }
details.sticky-note[open] summary { margin-bottom: 8px; }
.sticky-note p + p { margin-top: 8px; }
.sticky-note > p:first-of-type { margin-top: 0; }
.sticky-note pre { margin-top: 8px; background: var(--term); color: #f3eee2; padding: 10px 12px; border-radius: 8px; }
.sticky-note pre code { background: none; color: inherit; white-space: pre-wrap; }

.ned-says { display: flex; align-items: center; gap: 12px; margin: 22px 0 0; max-width: 640px; font-weight: 500; color: var(--ink-soft); }
.ned-says img { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--tape); border: 2px solid var(--ink); object-fit: cover; object-position: 50% 10%; }
.ned-says span { background: #fff; border: 1.5px solid var(--rule); border-radius: 14px 14px 14px 4px; padding: 8px 14px; }


/* FAQ */
.faq { margin: 24px 0 0; padding-top: 40px; border-top: 2px dashed var(--ink); }
.faq details { border-bottom: 1.5px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.06rem; padding: 14px 32px 14px 0; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 10px; font-size: 1.5rem; font-weight: 400; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding: 0 0 16px; color: #2c2620; }

/* The bridge to the community */
.bridge { position: relative; margin: 64px 0 0; display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 28px; align-items: end; background: var(--ink); color: #f3eee2; border-radius: 22px; padding: 34px 34px 34px 20px; }
.bridge-ned { width: 210px; margin-bottom: -34px; }
.bridge h2 { font-weight: 900; font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -0.03em; color: #fff; line-height: 1.1; }
.bridge p { margin-top: 10px; color: #d9d2c4; max-width: 34em; }
.bridge-courses { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0 22px; }
.bridge-courses a { color: #fff; text-decoration: none; font-weight: 700; font-size: .9rem; }
.bridge-courses img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; border: 2px solid #3a3440; margin-bottom: 6px; }
.bridge-btn { display: inline-block; font-weight: 800; color: var(--ink); background: var(--tape); border: 2px solid var(--tape); border-radius: 100px; padding: 12px 26px; text-decoration: none; }
.bridge-btn:hover { background: #fff; border-color: #fff; }

/* Email */
.mail { margin: 48px 0 0; padding: 30px; background: var(--kraft); background-image: repeating-linear-gradient(92deg, rgba(255,255,255,.035) 0 2px, transparent 2px 7px); border: 2px solid var(--ink); border-radius: 8px; }
.mail h2 { font-weight: 900; font-size: 1.6rem; letter-spacing: -0.02em; line-height: 1.15; }
.mail > p { margin-top: 6px; color: #2c2620; }
.mail-form { display: flex; gap: 10px; margin-top: 18px; max-width: 520px; }
.mail-form input { flex: 1; min-width: 0; font: 500 1rem 'Geist', sans-serif; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; }
.mail-form button { font: 800 .98rem 'Geist', sans-serif; padding: 12px 18px; border: 2px solid var(--ink); border-radius: 10px; background: var(--tape); cursor: pointer; white-space: nowrap; }
.mail-status { margin-top: 10px; font-weight: 600; }

.site-foot { margin-top: 40px; padding: 28px 16px 36px; text-align: center; border-top: 2px solid var(--ink); color: var(--ink-soft); }
.site-foot a { color: var(--ink); font-weight: 700; }
.site-foot-small { font-size: .82rem; margin-top: 6px; }

@media (max-width: 980px) {
  .hero-in { grid-template-columns: minmax(0, 1fr) 300px; }
  .hero-covers { height: 380px; }
  .cover { width: 190px; }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 28px; }
  .slip { display: none; }
    }
@media (max-width: 680px) {
  body { font-size: 16px; }
  .hero-in { grid-template-columns: minmax(0, 1fr); padding: 30px 0 28px; gap: 8px; }
  .hero-covers { order: -1; height: 220px; margin-bottom: 12px; }
  .cover { width: 104px; border-radius: 12px; }
  .cover::before, .cover::after { width: 50px; height: 18px; }
  .cover img { border-radius: 9px; }
  .covers-2 .cover-0 { left: calc(50% - 116px); top: 14px; }
  .covers-2 .cover-1 { right: calc(50% - 116px); }
  .label { display: none; }
  .hero-in { padding-bottom: 32px; }
  .hero-intro { font-size: 1.02rem; margin-top: 14px; }
  .item { padding: 30px 0 32px; }
  .steps { margin-top: 18px; gap: 18px; }
  .item-no { font-size: 2.6rem; }
  .item h3 { font-size: 1.5rem; }
  .shot { box-shadow: 4px 4px 0 var(--ink); }
  .shot img { max-height: 190px; }
  .shot { margin-top: 18px; }
  .step { padding-left: 0; }
  .step::before { position: static; display: inline-grid; margin-bottom: 6px; }
  .bridge { grid-template-columns: 1fr; padding: 26px 20px; }
  .bridge-ned { width: 130px; margin: -80px 0 0; }
  .mail { padding: 22px 18px; }
  .mail-form { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
    .shot, 