/* RJ Computers — Blog stylesheet. Shares tokens with the homepage. */
:root{
  --ink:#132033;
  --ink-soft:#2b3a4f;
  --paper:#EEF0EC;
  --paper-raised:#F8F9F6;
  --amber:#F2A22A;
  --amber-ink:#5C3A05;
  --teal:#0B6E63;
  --steel:#5B6570;
  --line:#C9CDC3;
  --alert:#C1443C;
  --radius:2px;
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion: reduce){ html{scroll-behavior:auto;} *{animation:none !important; transition:none !important;} }
body{ margin:0; background:var(--paper); color:var(--ink); font-family:'IBM Plex Sans', sans-serif; font-size:16px; line-height:1.6; -webkit-font-smoothing:antialiased; }
h1,h2,h3{ font-family:'Space Grotesk', sans-serif; margin:0; color:var(--ink); letter-spacing:-0.01em; }
.mono{ font-family:'IBM Plex Mono', monospace; letter-spacing:0.02em; }
a{ color:inherit; }
img{ max-width:100%; display:block; }
:focus-visible{ outline:3px solid var(--teal); outline-offset:2px; }
.wrap{ max-width:1180px; margin:0 auto; padding:0 28px; }

/* Top strip + header (identical to homepage, kept in sync) */
.topstrip{ background:var(--ink); color:#DCE3E0; font-family:'IBM Plex Mono', monospace; font-size:12.5px; letter-spacing:0.03em; }
.topstrip .wrap{ display:flex; justify-content:space-between; align-items:center; padding:8px 28px; flex-wrap:wrap; gap:6px; }
.topstrip a{ color:var(--amber); text-decoration:none; }
.topstrip a:hover{ text-decoration:underline; }
header.site{ background:var(--paper-raised); border-bottom:1px solid var(--line); position:sticky; top:0; z-index:50; }
header.site .wrap{ display:flex; align-items:center; justify-content:space-between; padding-top:16px; padding-bottom:16px; }
.brand{ display:flex; align-items:baseline; gap:10px; text-decoration:none; }
.brand .mark{ font-family:'Space Grotesk', sans-serif; font-weight:700; font-size:22px; color:var(--ink); }
.brand .mark span{ color:var(--teal); }
.brand .tag{ font-family:'IBM Plex Mono', monospace; font-size:11px; color:var(--steel); text-transform:uppercase; letter-spacing:0.08em; display:none; }
@media(min-width:640px){ .brand .tag{ display:inline; } }
nav.main{ display:none; gap:28px; font-size:14.5px; font-weight:500; }
nav.main a{ text-decoration:none; color:var(--ink-soft); padding:4px 2px; border-bottom:2px solid transparent; }
nav.main a:hover{ border-bottom-color:var(--amber); color:var(--ink); }
nav.main a.active{ color:var(--ink); border-bottom-color:var(--teal); }
@media(min-width:900px){ nav.main{ display:flex; } }
.btn{ display:inline-flex; align-items:center; gap:8px; font-family:'IBM Plex Mono', monospace; font-weight:600; font-size:13.5px; text-decoration:none; padding:11px 18px; border-radius:var(--radius); border:1.5px solid transparent; letter-spacing:0.02em; white-space:nowrap; }
.btn-amber{ background:var(--amber); color:var(--amber-ink); border-color:var(--amber); }
.btn-amber:hover{ background:#e0921c; }
.btn-ghost{ background:transparent; color:var(--ink); border-color:var(--ink); }
.btn-ghost:hover{ background:var(--ink); color:var(--paper-raised); }
.btn-teal{ background:var(--teal); color:#EAF3F1; border-color:var(--teal); }
.btn-teal:hover{ background:#095950; }

/* Breadcrumb */
.crumb{ font-family:'IBM Plex Mono', monospace; font-size:12px; color:var(--steel); padding:18px 0 0; }
.crumb a{ color:var(--steel); text-decoration:none; }
.crumb a:hover{ color:var(--teal); }

/* Article header — reuses the "ticket" motif from the homepage */
.post-hero{ padding:28px 0 40px; border-bottom:1px solid var(--line); }
.post-meta{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; font-family:'IBM Plex Mono', monospace; font-size:12px; color:var(--steel); margin-bottom:18px; }
.post-meta .serial{ border:1px solid var(--line); padding:3px 8px; border-radius:2px; color:var(--amber-ink); background:rgba(242,162,42,0.14); }
.post-hero h1{ font-size:clamp(28px,4.2vw,44px); line-height:1.12; font-weight:700; max-width:20ch; }
.post-hero .dek{ margin-top:18px; font-size:18px; color:var(--ink-soft); max-width:60ch; }

/* Article body */
.post-body{ padding:48px 0 64px; }
.post-layout{ display:grid; grid-template-columns:1fr; gap:48px; }
@media(min-width:960px){ .post-layout{ grid-template-columns:1fr 300px; } }
.prose{ max-width:70ch; font-size:16.5px; }
.prose h2{ font-size:24px; font-weight:600; margin-top:42px; margin-bottom:14px; }
.prose h2:first-child{ margin-top:0; }
.prose h3{ font-size:18px; font-weight:600; margin-top:26px; margin-bottom:10px; }
.prose p{ margin:0 0 16px; color:var(--ink-soft); }
.prose ul, .prose ol{ margin:0 0 20px; padding-left:22px; color:var(--ink-soft); }
.prose li{ margin-bottom:8px; }
.prose strong{ color:var(--ink); }

/* Sidebar */
.sidebar{ display:flex; flex-direction:column; gap:20px; }
.side-card{ background:var(--paper-raised); border:1.5px solid var(--ink); border-radius:var(--radius); padding:22px; box-shadow:5px 5px 0 rgba(19,32,51,0.08); }
.side-card h3{ font-size:16px; margin-bottom:10px; }
.side-card p{ font-size:14px; color:var(--ink-soft); margin:0 0 16px; }
.side-card .cta-row{ display:flex; flex-direction:column; gap:10px; }
.side-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; font-size:14px; }
.side-list a{ text-decoration:none; color:var(--ink-soft); display:flex; justify-content:space-between; }
.side-list a:hover{ color:var(--teal); }

/* FAQ (shared with homepage look) */
.faq-list{ display:flex; flex-direction:column; }
.faq-item{ border-bottom:1px solid var(--line); }
.faq-item:first-child{ border-top:1px solid var(--line); }
.faq-q{ width:100%; text-align:left; background:none; border:none; padding:20px 4px; display:flex; justify-content:space-between; align-items:center; gap:16px; cursor:pointer; font-family:'Space Grotesk',sans-serif; font-size:16.5px; font-weight:600; color:var(--ink); }
.faq-q .plus{ font-family:'IBM Plex Mono',monospace; font-size:18px; color:var(--amber-ink); flex-shrink:0; transition:transform .15s ease; }
.faq-item.open .faq-q .plus{ transform:rotate(45deg); }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .2s ease; }
.faq-item.open .faq-a{ max-height:260px; }
.faq-a p{ margin:0 0 20px; color:var(--ink-soft); font-size:15px; max-width:70ch; }

/* CTA banner */
.cta-banner{ background:var(--teal); color:#EAF3F1; padding:56px 0; }
.cta-banner .wrap{ display:flex; flex-direction:column; gap:22px; align-items:flex-start; }
@media(min-width:760px){ .cta-banner .wrap{ flex-direction:row; align-items:center; justify-content:space-between; } }
.cta-banner h2{ color:#F5F6F2; font-size:clamp(24px,3vw,32px); }
.cta-banner p{ color:#C9E3DE; margin-top:8px; font-size:15.5px; }
.cta-banner .cta-row{ display:flex; gap:14px; flex-wrap:wrap; }
.cta-banner .btn-ghost{ border-color:#EAF3F1; color:#EAF3F1; }
.cta-banner .btn-ghost:hover{ background:#EAF3F1; color:var(--teal); }

/* Blog index grid */
.blog-index{ padding:56px 0 80px; }
.index-head{ max-width:640px; margin-bottom:44px; }
.index-head .kicker{ font-family:'IBM Plex Mono', monospace; font-size:12px; letter-spacing:0.1em; text-transform:uppercase; color:var(--steel); margin-bottom:10px; display:block; }
.index-head h1{ font-size:clamp(28px,4vw,40px); font-weight:700; }
.index-head p{ margin-top:14px; color:var(--ink-soft); font-size:16.5px; }
.post-grid{ display:grid; grid-template-columns:1fr; gap:2px; background:var(--line); border:1px solid var(--line); }
@media(min-width:640px){ .post-grid{ grid-template-columns:repeat(2,1fr); } }
@media(min-width:980px){ .post-grid{ grid-template-columns:repeat(3,1fr); } }
.post-card{ background:var(--paper-raised); padding:26px 24px; text-decoration:none; color:inherit; display:flex; flex-direction:column; gap:12px; min-height:190px; justify-content:space-between; transition:background .15s ease; }
.post-card:hover{ background:var(--paper); }
.post-card .code{ font-family:'IBM Plex Mono', monospace; font-size:12px; color:var(--amber-ink); background:rgba(242,162,42,0.22); display:inline-block; padding:3px 8px; border-radius:2px; width:fit-content; }
.post-card h2{ font-size:18px; font-weight:600; }
.post-card .desc{ font-size:14px; color:var(--steel); }
.post-card .go{ font-family:'IBM Plex Mono', monospace; font-size:12.5px; color:var(--teal); font-weight:600; }
.post-card.coming{ opacity:0.55; pointer-events:none; }
.post-card.coming .go{ color:var(--steel); }

/* Footer (identical to homepage) */
footer.site{ background:var(--ink); color:#AEB8C2; padding:56px 0 28px; font-size:14px; }
.foot-grid{ display:grid; grid-template-columns:1fr; gap:36px; }
@media(min-width:760px){ .foot-grid{ grid-template-columns:1.4fr 1fr 1fr 1fr; } }
.foot-grid h4{ font-family:'IBM Plex Mono',monospace; font-size:12px; letter-spacing:0.08em; text-transform:uppercase; color:#8FB4AC; margin:0 0 14px; }
.foot-grid ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:9px; }
.foot-grid a{ text-decoration:none; color:#DCE3E0; }
.foot-grid a:hover{ color:var(--amber); }
footer.site .brand .mark{ color:#F5F6F2; }
footer.site .brand .mark span{ color:var(--amber); }
.foot-bottom{ margin-top:44px; padding-top:22px; border-top:1px solid rgba(220,227,224,0.15); display:flex; flex-wrap:wrap; gap:12px; justify-content:space-between; font-family:'IBM Plex Mono',monospace; font-size:12px; color:#7C8996; }
.foot-bottom a{ color:#7C8996; text-decoration:none; }
.foot-bottom a:hover{ color:var(--amber); }

/* Related guide block */
.related-guides{padding:0 0 56px}.related-guides .side-card{max-width:1180px;margin:0 auto}.related-guides a{color:var(--teal);font-weight:600}
