/* guides.css — styling for Sleipnir guide pages.
 *
 * SELF-SUFFICIENT BY DESIGN. Earlier this file relied on
 * /static/style.css for the footer, but the landing page's footer CSS
 * lives inline in landing.html, not in style.css — so guide footers
 * rendered with raw browser bullets. This file now styles everything
 * the guide template contains (header, article, footer), so guide
 * pages do not depend on style.css being present or carrying any
 * particular rule.
 *
 * All colours use the site's CSS custom properties (defined in the
 * guides_base.html <style> block) so guides track the palette.
 *
 * Ships to /static/guides.css.
 */

header {
  border-bottom: 1px solid var(--line-soft);
}

/* ── Layout ─────────────────────────────────────────────────────── */

.guide-main {
  padding: 72px 0 96px;
}

/* Article column on a subtle raised panel so the text is a designed
 * surface, not floating in the dark background. */
.guide-article {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 56px 60px;
}

/* ── Article header band ────────────────────────────────────────── */

.guide-header {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.guide-eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 18px;
}

.guide-header h1 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 600;
  font-size: 43px;
  line-height: 1.13;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}

/* ── Headings within the body ───────────────────────────────────── */

.guide-article h2 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 600;
  font-size: 28px;
  line-height: 1.25;
  color: var(--ink);
  margin-top: 46px;
  margin-bottom: 16px;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
}

.guide-article h3 {
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-weight: 600;
  font-size: 19px;
  line-height: 1.3;
  color: var(--accent-light);
  margin-top: 34px;
  margin-bottom: 12px;
}

/* ── Body text ──────────────────────────────────────────────────── */

.guide-article p {
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.guide-article a {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.guide-article a:hover { color: var(--ink); }

.guide-article strong { color: var(--ink); font-weight: 600; }
.guide-article em { font-style: italic; }

/* ── Lists ──────────────────────────────────────────────────────── */

.guide-article ul {
  margin: 0 0 20px;
  padding-left: 22px;
  list-style: none;
}

.guide-article li {
  position: relative;
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink-soft);
  margin-bottom: 11px;
  padding-left: 4px;
}

.guide-article li::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 0.62em;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

.guide-article li strong { color: var(--ink); }

/* ── Inline code ────────────────────────────────────────────────── */

.guide-article code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.86em;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--ink);
  word-break: break-word;
}

/* ── Horizontal rule ────────────────────────────────────────────── */

.guide-article hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

/* ── In-article CTA ─────────────────────────────────────────────── */

.guide-cta {
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.guide-cta-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 8px;
  transition: background 0.15s;
}
.guide-cta-btn:hover {
  background: var(--accent-light);
  color: var(--bg);
}

/* ── Back link ──────────────────────────────────────────────────── */

.guide-back {
  max-width: 760px;
  margin: 28px auto 0;
}
.guide-back a {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  color: var(--ink-faint);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.guide-back a:hover { color: var(--accent-light); }

/* ── Guides index ───────────────────────────────────────────────── */

.guide-index-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
}

.guide-index-item {
  padding: 26px 0;
  border-bottom: 1px solid var(--line-soft);
}
.guide-index-item:first-child {
  border-top: 1px solid var(--line-soft);
}

.guide-index-item a { text-decoration: none; }

.guide-index-item h2 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 600;
  font-size: 24px;
  color: var(--ink);
  margin: 0 0 6px;
}
.guide-index-item a:hover h2 { color: var(--accent-light); }

.guide-index-date {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  margin: 0 0 8px;
}

.guide-index-item p:last-child {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

/* ── Footer ─────────────────────────────────────────────────────── */
/* Folded in verbatim from landing.html's inline <style> so the guide
 * footer renders identically to the main site, without depending on
 * that inline block. */

footer {
  padding: 56px 0 64px;
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}
.footer-brand p {
  font-size: 13.5px;
  color: var(--ink-faint);
  margin-top: 14px;
  line-height: 1.55;
  max-width: 280px;
}
.footer-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.2em;
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--accent-light); }
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--ink-faint);
  font-family: 'JetBrains Mono', monospace;
}
.footer-bottom .status { display: flex; align-items: center; gap: 7px; }
.footer-bottom .status-dot {
  width: 6px; height: 6px;
  background: var(--good);
  border-radius: 50%;
}

/* ── Responsive ─────────────────────────────────────────────────── */

@media (max-width: 880px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .guide-main { padding: 44px 0 64px; }
  .guide-article {
    padding: 36px 26px;
    border-radius: 10px;
  }
  .guide-header h1 { font-size: 32px; }
  .guide-article h2 { font-size: 23px; margin-top: 38px; }
  .guide-article h3 { font-size: 18px; }
  .guide-article p,
  .guide-article li { font-size: 16px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}
