/* Stories: three short stories on one page */

.st-draft { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: var(--space-8); font-size: 13.5px; color: var(--muted); }
.st-draft span { font: 500 11px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--warn); padding: 6px 9px; border: 1px dashed var(--line-strong); border-radius: var(--radius-pill); }

/* The three stories at a glance, linking down the page */
.st-index { margin-top: var(--space-12); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.st-index a { display: grid; gap: 4px; padding: var(--space-6) var(--space-6) var(--space-6) 0; text-decoration: none; color: var(--ink); transition: opacity .2s ease; }
.st-index a + a { padding-left: var(--space-6); border-left: 1px solid var(--line); }
.st-index small { font: 500 11px/1 var(--font-mono); color: var(--carmine); }
.st-index b { margin-top: 6px; font-size: 17px; font-weight: 500; letter-spacing: -0.015em; }
.st-index span { font-size: 14px; line-height: 1.4; color: var(--muted); }
.st-index:hover a:not(:hover) { opacity: .45; }

/* One story: photo on one side, the story on the other */
.st { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-16); align-items: start; padding: var(--space-24) 0; border-top: 1px solid var(--line); scroll-margin-top: 72px; }
.st:first-child { border-top: 0; padding-top: var(--space-8); }
.st--flip .st__photo { order: 2; }
.st__photo { aspect-ratio: 4 / 5; position: sticky; top: 104px; }
.st__body { display: grid; gap: var(--space-8); align-content: start; max-width: 560px; }
.st__who { font: 500 12px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.st__body .display-m { margin-top: calc(-1 * var(--space-4)); }

.st__before b, .st__changed > b { display: block; margin-bottom: 8px; font: 500 11px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.st__before p { font-size: 17px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }

.st__changed ol { margin: 0; padding: 0; list-style: none; counter-reset: st; border-top: 1px solid var(--line); }
.st__changed li { counter-increment: st; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.45; color: var(--ink); }
.st__changed li::before { content: counter(st, decimal-leading-zero); font: 500 11px/1 var(--font-mono); color: var(--carmine); }
.st__changed li a { height: 24px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--surface); font-size: 12px; font-weight: 500; color: var(--ink-2); text-decoration: none; white-space: nowrap; transition: border-color .15s ease, color .15s ease; }
.st__changed li a:hover { border-color: var(--ink); color: var(--ink); }

/* What it saves now: before → after */
.st__now { margin: 0; display: flex; flex-wrap: wrap; gap: var(--space-4); }
.st__now div { flex: 1 1 150px; display: flex; flex-direction: column; justify-content: space-between; padding: 16px 18px; border-radius: var(--radius-lg); background: var(--surface-sunk); }
.st__now dt { font-size: 13px; line-height: 1.3; color: var(--muted); }
.st__now dd { margin: 6px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 28px; line-height: 1.1; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.st__now s { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; color: var(--muted); text-decoration-thickness: 1px; }
.st__now s::after { content: " →"; display: inline-block; margin-left: 6px; text-decoration: none; }

.st__more { justify-self: start; font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; }
.st__more .mb-arrow { display: inline-block; transition: transform .2s ease; }
.st__more:hover .mb-arrow { transform: translateX(3px); }

@media (max-width: 960px) {
  .st { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); padding: var(--space-16) 0; }
  .st--flip .st__photo { order: 0; }
  .st__photo { position: static; aspect-ratio: 4 / 3; }
  .st-index { grid-template-columns: minmax(0, 1fr); }
  .st-index a, .st-index a + a { padding: var(--space-4) 0; border-left: 0; }
  .st-index a + a { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .st__changed li { grid-template-columns: 24px minmax(0, 1fr); }
  .st__changed li a { grid-column: 2; justify-self: start; }
  .st__now dd { font-size: 24px; }
}
