/* Skelne story: acoustic switchboard layout with dark ink ground, signal cyan accent, and unknown-amber
   caution lines. Chromium 67 safe (no clamp, min, max, flex gap, inset, padding-inline, aspect-ratio,
   gradient text, or JavaScript). */
@font-face {
  font-family: 'SL Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'SL Space';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-latin.woff2') format('woff2');
}

body.page-skelne {
  --head: 'SL Space', 'Segoe UI', Roboto, Arial, sans-serif;
  --body: 'SL Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --bg: #0A0D14;
  --surface: #121726;
  --raised: #1A2033;
  --bar: rgba(10, 13, 20, .94);
  --hair: rgba(255, 255, 255, .08);
  --hair-2: rgba(255, 255, 255, .17);
  --text: #EEF1F7;
  --text-2: #B7C1D4;
  --muted: #939FB5;
  --accent: #18DFC5;
  --accent-ink: #041C1A;
  --accent-soft: rgba(24, 223, 197, .13);
  --sl-amber: #FFB833;
  --sl-amber-soft: rgba(255, 184, 51, .11);
  --live: #34D399;
}

@media (prefers-color-scheme: light) {
  body.page-skelne {
    --bg: #0A0D14;
    --surface: #121726;
    --raised: #1A2033;
    --bar: rgba(10, 13, 20, .94);
    --hair: rgba(255, 255, 255, .08);
    --hair-2: rgba(255, 255, 255, .17);
    --text: #EEF1F7;
    --text-2: #B7C1D4;
    --muted: #939FB5;
    --live: #34D399;
  }
}

/* Frame and reading column */
.page-skelne main { padding-bottom: 52px; }
.page-skelne main .wrap { max-width: 820px; }
.page-skelne main > .wrap:first-child { padding-top: 40px; }
.page-skelne .crumb { margin: 0 0 24px; font-size: 14px; }
.page-skelne .crumb a { color: var(--muted); text-decoration: none; }
.page-skelne .crumb a:before { content: "\2190"; margin-right: 8px; }
.page-skelne .crumb a:hover { color: var(--accent); }
.page-skelne .story-app { margin-bottom: 36px; }
.page-skelne main strong { color: var(--text); font-weight: 600; }

/* Hero */
.sl-hero {
  padding: 2px 0 34px 20px;
  border-left: 4px solid var(--accent);
  border-bottom: 1px solid var(--hair-2);
}
.sl-kicker {
  margin: 0 0 12px;
  font: 600 12px/1.4 var(--head);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.sl-hero h1 {
  margin: 0 0 18px;
  font-size: 32px;
  line-height: 1.12;
  max-width: 17em;
}
.sl-lead {
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.62;
  color: var(--text-2);
  max-width: 40em;
}
.sl-modes {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 2px;
  margin: 0;
  border: 1px solid var(--hair-2);
  border-radius: 10px;
  overflow: hidden;
  background: var(--hair-2);
}
.sl-modes div {
  min-width: 0;
  padding: 12px 14px;
  background: var(--surface);
}
.sl-modes dt {
  margin: 0 0 4px;
  font: 600 12px/1.3 var(--head);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
.sl-modes dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
}

/* Sections and links */
.sl-band { padding-top: 40px; }
.sl-band h2 {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 1.24;
  color: var(--text);
}
.sl-band h3 {
  margin: 28px 0 12px;
  font-size: 19px;
  line-height: 1.3;
  color: var(--text);
}
.sl-band p { margin: 0 0 18px; color: var(--text-2); }
.sl-band p:last-child { margin-bottom: 0; }
.sl-band a:not(.btn),
.sl-end a:not(.btn) {
  color: var(--text);
  text-decoration: underline;
  -webkit-text-decoration-color: var(--accent);
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}
.sl-band a:not(.btn):hover,
.sl-end a:not(.btn):hover { color: var(--accent); }

/* Quote panel */
.sl-quote {
  margin: 22px 0 24px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
}
.sl-quote p {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.58;
  color: var(--text);
}
.sl-quote cite {
  font-size: 14px;
  font-style: normal;
  color: var(--muted);
}

/* Four home identification habits */
.sl-steps {
  list-style: none;
  margin: 20px 0 24px;
  padding: 0;
  counter-reset: slstep;
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 14px;
}
.sl-steps li {
  position: relative;
  min-width: 0;
  counter-increment: slstep;
  padding: 18px 18px 18px 60px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 12px;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.58;
}
.sl-steps li:before {
  content: "0" counter(slstep);
  position: absolute;
  left: 16px;
  top: 19px;
  width: 32px;
  height: 28px;
  border-radius: 6px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--accent);
  font: 700 13px/26px var(--head);
  text-align: center;
}
.sl-steps strong {
  display: block;
  margin-bottom: 5px;
  font-family: var(--head);
  font-size: 17px;
}

/* Ready vs Unknown dual cue cards */
.sl-cues {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 14px;
  margin: 20px 0 24px;
}
.sl-cue {
  min-width: 0;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-top: 3px solid var(--accent);
  border-radius: 12px;
}
.sl-cue-amber { border-top-color: var(--sl-amber); }
.sl-cue h3 {
  margin: 0 0 12px;
  font-size: 17px;
  color: var(--accent);
}
.sl-cue-amber h3 { color: var(--sl-amber); }
.sl-cue ul,
.sl-facts,
.sl-limits ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sl-cue li,
.sl-facts li,
.sl-limits li {
  position: relative;
  margin: 0 0 11px;
  padding-left: 20px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.55;
}
.sl-cue li:last-child,
.sl-facts li:last-child,
.sl-limits li:last-child { margin-bottom: 0; }
.sl-cue li:before,
.sl-facts li:before {
  content: "";
  position: absolute;
  left: 2px;
  top: .6em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
}
.sl-cue-amber li:before { background: var(--sl-amber); }

.sl-facts { margin: 16px 0 24px; }
.sl-facts li { font-size: 16px; }

/* Worked example table */
.sl-table-wrap {
  margin: 18px 0 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--surface);
  border: 1px solid var(--hair-2);
  border-radius: 12px;
}
.sl-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.48;
  font-variant-numeric: tabular-nums;
}
.sl-table caption {
  padding: 12px 16px;
  text-align: left;
  font: 600 15px/1.4 var(--head);
  color: var(--text);
  background: var(--accent-soft);
  border-bottom: 2px solid var(--accent);
}
.sl-table th,
.sl-table td {
  padding: 11px 14px;
  text-align: left;
  border-top: 1px solid var(--hair);
  vertical-align: top;
}
.sl-table thead th {
  border-top: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.sl-table tbody th {
  color: var(--text);
  font-weight: 600;
}
.sl-table td { color: var(--text-2); }

/* Phone screenshots */
.sl-shot-solo {
  margin: 28px auto;
  max-width: 280px;
  text-align: center;
}
.sl-pair {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 26px;
  margin: 28px auto;
  max-width: 280px;
}
.sl-pair figure { margin: 0; text-align: center; }
.sl-shot-solo img,
.sl-pair img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 20px;
  border: 1px solid var(--hair-2);
}
.sl-shot-solo figcaption,
.sl-pair figcaption {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  text-align: left;
}

/* What was not checked */
.sl-limits {
  padding: 24px 22px;
  background: var(--surface);
  border: 1px solid var(--hair-2);
  border-left: 4px solid var(--sl-amber);
  border-radius: 12px;
}
.sl-limits h2 {
  margin: 0 0 14px;
  font-size: 22px;
  color: var(--text);
}
.sl-limits p {
  margin: 0 0 16px;
  color: var(--text-2);
}
.sl-limits li:before {
  content: "";
  position: absolute;
  left: 2px;
  top: .6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sl-amber);
}

/* Closing row */
.sl-band .sl-end { margin: 38px 0 8px; }
.sl-end .btn { margin: 0 18px 12px 0; vertical-align: middle; }
.sl-end a:not(.btn) { display: inline-block; margin-bottom: 12px; vertical-align: middle; }

@media (max-width: 600px) {
  .sl-hero { padding-left: 16px; }
  .sl-table { min-width: 0; font-size: 13px; }
  .sl-table caption { padding: 10px 10px; font-size: 14px; }
  .sl-table th,
  .sl-table td { min-width: 0; padding: 9px 7px; }
  .sl-table thead th { font-size: 12px; }
  .sl-table tbody th { white-space: nowrap; }
  .sl-limits { padding: 20px 18px; }
}

@media (min-width: 660px) {
  .sl-modes { grid-template-columns: 1fr 1fr 1fr; }
  .sl-steps { grid-template-columns: 1fr 1fr; }
  .sl-cues { grid-template-columns: 1fr 1fr; }
  .sl-pair { grid-template-columns: 270px 270px; max-width: 572px; grid-gap: 32px; }
}

@media (min-width: 900px) {
  .page-skelne main > .wrap:first-child { padding-top: 64px; }
  .sl-hero { padding-bottom: 38px; padding-left: 26px; }
  .sl-hero h1 { font-size: 44px; }
  .sl-lead { font-size: 20px; }
  .sl-band { padding-top: 56px; }
  .sl-band h2 { font-size: 29px; }
  .sl-limits { padding: 28px 26px; }
}
