/* Static pages (guides, status): the v3 look of the home page and the app,
   kept standalone so these pages need no JS bundle. Pale concrete, graphite,
   one LED green; Archivo + Geist Mono. */
:root {
  --canvas: #eceeeb; --surface: #f7f8f6; --raised: #fff;
  --ink: #0f1511; --ink-2: #33403a; --ink-3: #56635b;
  --line: rgba(15, 21, 17, 0.1); --line-2: rgba(15, 21, 17, 0.2);
  --accent: #0a7040; --accent-hover: #075c34; --led: #3fd67a; --mint: #d5eadc; --mint-2: #bfe0cb;
  --term-bg: #0f1311; --term-ink: #dce3de;
  --sans: "Archivo", system-ui, sans-serif; --mono: "Geist Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(0.23, 1, 0.32, 1); --r: 12px; --maxw: 1180px;
  /* older names still used in page markup */
  --paper: var(--canvas); --paper-2: var(--surface); --paper-3: #e3e7e3; --amber: var(--accent); --amber-deep: var(--accent); --amber-soft: var(--mint);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; line-height: 1.05; font-variation-settings: "wdth" 88; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.7rem); font-weight: 780; }
h2 { font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.6rem); font-weight: 760; }
h3 { font-size: 1.2rem; font-weight: 720; letter-spacing: -0.015em; }
p { margin: 0; }
.riso { text-shadow: none; }
.dim { color: var(--ink-3); }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 1.1rem; border: 1.5px solid transparent; border-radius: 10px; font: 650 0.95rem/1 var(--sans); text-decoration: none; background: var(--raised); color: var(--ink); cursor: pointer; transition: transform 120ms var(--ease), background-color 150ms var(--ease), border-color 150ms var(--ease); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-ink { background: var(--accent); color: #f4f6f4; box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 6px 14px -6px rgba(10,80,45,.6); }
.btn-ink:hover { background: var(--accent-hover); }
.btn-paper { background: var(--raised); border-color: var(--line-2); }
.btn-paper:hover { border-color: var(--ink-3); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: rgba(15,21,17,.06); }

.stamp { display: inline-block; font: 500 0.74rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.stamp.amber { color: var(--accent); }

/* wordmark: the LED dot + "sshguru", same as the home page */
.wordmark { display: inline-flex; align-items: center; gap: 0; font: 780 1.12rem/1 var(--sans); font-variation-settings: "wdth" 110; letter-spacing: -0.02em; text-decoration: none; color: var(--ink); }
.wordmark::before { content: ""; margin-right: 0.5rem; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(10,112,64,.16); }
.wordmark b { font-weight: inherit; color: inherit; }
.wordmark .cursor { display: none; }
.wordmark.small { font-size: 1rem; }

.nav { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 2rem; height: 64px; padding: 0 max(1.25rem, calc((100% - var(--maxw)) / 2 + 1.75rem)); background: color-mix(in oklab, var(--canvas) 90%, transparent); backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--line); }
.nav nav { display: flex; gap: 1.5rem; }
.nav nav a { text-decoration: none; font-weight: 580; font-size: 0.95rem; color: var(--ink-2); }
.nav nav a:hover { color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 0.6rem; }
.nav-cta .btn { height: 40px; }

.hero { max-width: var(--maxw); margin: 0 auto; padding: 3.5rem 1.75rem 3rem; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 2.5rem; align-items: center; }
.hero.single { grid-template-columns: 1fr; }
.eyebrow { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.eyebrow-text { font: 500 0.74rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.eyebrow-text::before { content: "/ "; opacity: .5; }
.lede { margin-top: 1.2rem; font-size: 1.15rem; color: var(--ink-2); max-width: 54ch; }
.cta-row { display: flex; gap: 0.8rem; margin-top: 1.8rem; flex-wrap: wrap; }
.hero-art { position: relative; display: grid; place-items: center; }
.hero-art::before { content: ""; position: absolute; inset: 4% 6%; border-radius: 50% 44% 52% 48% / 46% 54% 46% 54%; background: var(--mint); }
.hero-art img { position: relative; width: min(100%, 400px); filter: drop-shadow(0 16px 18px rgba(20,40,28,.14)); }

.section { max-width: var(--maxw); margin: 0 auto; padding: 4rem 1.75rem; border-top: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 1.8rem; display: grid; gap: 0.7rem; }
.two { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .75fr); gap: 3rem; align-items: start; }
.two .section-head { margin-bottom: 1.3rem; }
.prose { max-width: 66ch; display: grid; gap: 1rem; font-size: 1.08rem; color: var(--ink-2); }
.prose p:first-child { color: var(--ink); }
.need { position: sticky; top: 84px; background: var(--raised); border: 1px solid var(--line); border-radius: 18px; padding: 1.3rem 1.3rem 1.4rem; box-shadow: 0 24px 44px -32px rgba(20,40,28,.45); }
.need h3 { margin-bottom: 0.8rem; }
.need ul { list-style: none; margin: 0 0 1.1rem; padding: 0; display: grid; gap: 0.5rem; }
.need li { position: relative; padding-left: 1.6rem; font-size: 0.97rem; color: var(--ink-2); }
.need li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 1rem; height: 1rem; border-radius: 50%; background: var(--mint-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230a7040' stroke-width='2'/%3E%3C/svg%3E") center / 70% no-repeat; }

.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.card { background: var(--raised); border: 1px solid var(--line); border-radius: 18px; padding: 1.3rem 1.3rem 1.4rem; }
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--ink-2); font-size: 0.97rem; }

.steps { list-style: none; margin: 0; padding: 0; max-width: 960px; counter-reset: step; display: grid; gap: 0.7rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 1rem; align-items: start; background: var(--raised); border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.3rem; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font: 700 0.85rem/1 var(--mono); color: var(--canvas); background: var(--ink); }
.steps b { display: block; font-weight: 720; font-size: 1.08rem; margin: 0.2rem 0 0.3rem; }
.steps p { color: var(--ink-2); font-size: 0.98rem; max-width: 72ch; }
.steps + .cta-row { margin-top: 1.6rem; }

.faq { display: grid; gap: 0.5rem; max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--raised); padding: 0 1.1rem; }
.faq summary { cursor: pointer; padding: 0.95rem 0; font-weight: 680; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 500 1.2rem/1 var(--mono); color: var(--accent); }
.faq details[open] summary::after { content: '-'; }
.faq details p { padding: 0 0 1rem; color: var(--ink-2); font-size: 0.97rem; }

.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; }
.related a { display: block; padding: 1rem 1.1rem; background: var(--raised); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; font-weight: 650; font-size: 0.97rem; transition: border-color 150ms var(--ease), transform 150ms var(--ease); }
.related a:hover { border-color: var(--line-2); transform: translateY(-2px); }

/* where to buy, filled by /parts.js inside "What you need" */
.parts-links { margin: 0 0 1.1rem; padding-top: 0.9rem; border-top: 1px solid var(--line); display: grid; gap: 0.7rem; }
.pl-item { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 0.8rem; align-items: center; }
.pl-item__pic { display: grid; place-items: center; height: 72px; border-radius: 10px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.pl-item__pic img { max-width: 90%; max-height: 62px; object-fit: contain; }
.pl-item__body { display: grid; gap: 0.3rem; justify-items: start; font-size: 0.9rem; }
.pl-item__buy { display: inline-flex; align-items: center; height: 30px; padding: 0 0.7rem; border-radius: 8px; background: var(--accent); color: #f4f6f4; text-decoration: none; font-weight: 650; font-size: 0.82rem; }
.pl-item__buy:hover { background: var(--accent-hover); }
.pl-item__more { font-size: 0.78rem; color: var(--ink-3); }
.pl-item__more a { color: var(--ink-2); font-weight: 600; }
.parts-links__fine { margin: 0.1rem 0 0; font-size: 0.72rem; color: var(--ink-3); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art img { width: min(100%, 280px); }
  .cards3, .related, .two { grid-template-columns: 1fr; }
  .need { position: static; }
}
@media (max-width: 640px) {
  .nav { gap: 1rem; }
  .nav nav { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .section { padding: 3rem 1.25rem; }
  .hero { padding: 2rem 1.25rem; }
}
