/* Blog styles — extends the Steelman Labs editorial aesthetic (see ../styles.css) */

/* ---- shared shell (mirrors ../styles.css so blog pages stand alone) ---- */
html, body {
  margin: 0; padding: 0;
  background: #f3efe7;
  color: #1a1714;
}
body {
  font-family: "Newsreader", "Spectral", Georgia, serif;
  font-weight: 400;
  isolation: isolate;
  position: relative;
  min-height: 100vh;
}
.sl-rules {
  position: fixed; inset: 0;
  background-image: linear-gradient(to right, rgba(26,23,20,0.045) 1px, transparent 1px);
  background-size: 160px 100%;
  background-position: 80px 0;
  pointer-events: none;
  z-index: 0;
}
#sl-cursor {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  mix-blend-mode: multiply;
  z-index: 5;
}
.sl-hairline {
  position: fixed; top: 56px; left: 80px; right: 80px;
  height: 1px;
  background: rgba(26,23,20,0.18);
  z-index: 11;
}
.sl-topbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 80px;
  background: rgba(243,239,231,0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 10;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 400;
  letter-spacing: 0.02em;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(26,23,20,0.6);
}
.sl-topbar .sl-brand { color: #1a1714; text-decoration: none; }
.sl-topbar .sl-links { display: flex; gap: 22px; align-items: center; }
.sl-topbar .sl-contact {
  color: #1a1714; text-decoration: none;
  border-bottom: 1px solid rgba(26,23,20,0.3); padding-bottom: 1px;
}
.sl-topbar .sl-x {
  color: #1a1714; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.sl-topbar .sl-nav-link {
  color: rgba(26,23,20,0.6); text-decoration: none;
}
.sl-topbar .sl-nav-link.is-active { color: #1a1714; }

/* ---- post layout: left index rail + article column ---- */
.sl-post {
  position: relative;
  z-index: 1;
  padding-top: 56px;
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px minmax(0, 720px);
  gap: 56px;
  padding-left: 32px;
  padding-right: 32px;
  align-items: start;
}

/* left index (table of contents / scroll-spy) */
.sl-index {
  position: sticky;
  top: 120px;
  align-self: start;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.5;
}
.sl-index-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10px;
  color: rgba(26,23,20,0.4);
  margin-bottom: 16px;
}
.sl-index ol { list-style: none; margin: 0; padding: 0; }
.sl-index li { margin: 0; }
.sl-index a {
  display: block;
  padding: 7px 0 7px 16px;
  border-left: 2px solid rgba(26,23,20,0.12);
  color: rgba(26,23,20,0.5);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
  text-wrap: pretty;
}
.sl-index a:hover { color: rgba(26,23,20,0.8); }
.sl-index a.is-active {
  color: #1a1714;
  border-left-color: #1a1714;
}
.sl-index .sl-index-num {
  color: rgba(26,23,20,0.35);
  margin-right: 8px;
}
.sl-index a.is-active .sl-index-num { color: rgba(26,23,20,0.6); }

/* article column */
.sl-article { padding: 120px 0 96px; }

.sl-kicker {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(26,23,20,0.5);
  margin-bottom: 20px;
}
.sl-post-title {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-weight: 400;
  font-size: 60px;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #1a1714;
  text-wrap: balance;
}
.sl-post-meta {
  margin-top: 20px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: rgba(26,23,20,0.5);
}

.sl-section { scroll-margin-top: 96px; }
.sl-section:first-of-type { margin-top: 48px; }

.sl-h2 {
  margin: 64px 0 0;
  font-family: "Newsreader", Georgia, serif;
  font-weight: 400;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #1a1714;
}

.sl-p {
  margin-top: 22px; margin-bottom: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: 19px;
  line-height: 1.62;
  color: #2a2520;
  text-wrap: pretty;
}
.sl-p em { font-style: italic; }
.sl-p em.sl-emphasis { color: rgba(26,23,20,0.72); }
.sl-p a { color: #1a1714; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; text-decoration-color: rgba(26,23,20,0.3); }

.sl-list {
  margin-top: 22px;
  padding-left: 22px;
  font-family: "Newsreader", Georgia, serif;
  font-size: 19px;
  line-height: 1.62;
  color: #2a2520;
}
.sl-list li { margin-top: 6px; }
.sl-list code, .sl-p code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.82em;
  background: rgba(26,23,20,0.06);
  padding: 1px 5px;
  border-radius: 3px;
}

/* figure */
.sl-figure {
  margin: 44px 0 0;
}
.sl-figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(26,23,20,0.12);
  background: #fbf9f4;
  border-radius: 2px;
}
.sl-video video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  border: 1px solid rgba(26,23,20,0.12);
  border-radius: 2px;
  background: #f3efe7;
}
.sl-figcaption {
  margin-top: 12px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: rgba(26,23,20,0.55);
}

.sl-callout {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid rgba(26,23,20,0.18);
  font-family: "Newsreader", Georgia, serif;
  font-size: 19px;
  color: #2a2520;
}
.sl-callout a { color: #1a1714; }

.sl-footer {
  margin-top: 88px;
  padding-top: 20px;
  border-top: 1px solid rgba(26,23,20,0.18);
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 400;
  letter-spacing: 0.02em;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(26,23,20,0.55);
}
.sl-footer a { color: inherit; text-decoration: none; }

/* ---- blog index (listing) ---- */
.sl-listing {
  position: relative;
  z-index: 1;
  padding-top: 56px;
  max-width: 720px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}
.sl-listing-inner { padding: 120px 0 96px; }
.sl-listing h1 {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-weight: 400;
  font-size: 72px;
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.sl-listing h1 .sl-italic { font-style: italic; font-weight: 300; color: rgba(26,23,20,0.6); }
.sl-postcard {
  display: block;
  text-decoration: none;
  color: inherit;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid rgba(26,23,20,0.18);
}
.sl-postcard:hover .sl-postcard-title { color: #000; text-decoration: underline; text-underline-offset: 3px; }
.sl-postcard-date {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: rgba(26,23,20,0.5);
}
.sl-postcard-title {
  margin: 12px 0 0;
  font-family: "Newsreader", Georgia, serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #1a1714;
}
.sl-postcard-excerpt {
  margin: 12px 0 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: 18px;
  line-height: 1.55;
  color: #2a2520;
  text-wrap: pretty;
}

/* ---- responsive ---- */
@media (max-width: 900px) {
  .sl-post {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    max-width: 720px;
  }
  .sl-index {
    position: static;
    margin-top: 96px;
    margin-bottom: -48px;
    padding: 16px 0;
    border-top: 1px solid rgba(26,23,20,0.14);
    border-bottom: 1px solid rgba(26,23,20,0.14);
  }
  .sl-index ol { display: flex; flex-wrap: wrap; gap: 6px 20px; }
  .sl-index a { border-left: none; padding: 4px 0; }
  .sl-index a.is-active { border-left: none; }
  .sl-article { padding-top: 96px; }
  .sl-post-title { font-size: 46px; }
}
@media (max-width: 720px) {
  .sl-topbar { padding: 0 24px; }
  .sl-hairline { left: 24px; right: 24px; }
  .sl-rules { background-size: 80px 100%; background-position: 24px 0; }
  .sl-post, .sl-listing { padding-left: 24px; padding-right: 24px; }
  .sl-post-title { font-size: 38px; }
  .sl-h2 { font-size: 28px; }
  .sl-p, .sl-list { font-size: 17px; }
  .sl-listing h1 { font-size: 52px; }
}
@media (max-width: 420px) {
  .sl-topbar { padding: 0 16px; gap: 10px; }
  .sl-hairline { left: 16px; right: 16px; }
  .sl-post-title { font-size: 32px; }
  .sl-footer { flex-direction: column; gap: 6px; align-items: flex-start; }
}
