/* About — the account, with the loop down the outer margin and the glossary beside it.
   Written in the order the page is read. */

/* 01 · the opening: name, h1, sentence, one round specimen */
.story--open{padding-block:clamp(1.5rem,5vh,3.5rem) clamp(1.5rem,5vh,3.5rem);padding-inline:var(--edge)}
.story--intro{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,0.7fr);align-items:center;gap:1.5rem clamp(1.5rem,5vw,4rem)}
.story--intro .entry--title{max-inline-size:20ch}
.story--intro .entry--sub{font-size:clamp(1.0625rem,0.5vw + 0.95rem,1.25rem)}
.story--round{justify-self:end;inline-size:min(100%,21rem)}
.story--round .crop--round{border:var(--hair) solid currentColor}

/* 02 · a stage: the lane for the loop, then the account */
.story--stage{display:grid;grid-template-columns:3.5rem minmax(0,1fr);column-gap:clamp(0.75rem,3vw,2.5rem);padding-inline:var(--edge)}
.story--body{padding-block:clamp(1.5rem,5vh,3.5rem)}
.story--body h2{max-inline-size:30ch;margin-block-end:1.25rem}

/* 03 · the lane: still, in the margin, never under a word */
.story--lane{position:relative}
.story--lane svg{position:relative;z-index:1;inline-size:3.5rem;block-size:3rem;overflow:visible}
.story--lane::before{content:"";position:absolute;inset-block:1rem 0;inset-inline-start:calc(1.25rem - 0.0625rem);border-inline-start:0.125rem solid currentColor}
.story--fork::after{content:"";position:absolute;inset-block:1.375rem 0;inset-inline-start:calc(2.75rem - 0.0625rem);border-inline-start:0.125rem solid currentColor}
.story--end::before{inset-block-end:1.25rem}
.story--end::after{content:"";position:absolute;inset-block-end:0;inset-inline-start:calc(1.25rem - 0.625rem);inline-size:1.25rem;block-size:1.25rem;border:0.125rem solid currentColor;border-radius:50%;background-color:var(--page)}

/* 04 · a paragraph and the note that hangs beside it */
.story--beat{display:grid;grid-template-columns:minmax(0,1fr);gap:0.75rem;align-items:start;margin-block-end:1.5rem}
.story--words{font-size:clamp(1.0625rem,0.5vw + 0.95rem,1.25rem);line-height:1.6;max-inline-size:40rem}
.story--hook{text-decoration-line:underline;text-decoration-style:dotted;text-decoration-thickness:0.125rem;text-underline-offset:0.25em}
.story--gloss{display:grid;gap:0.9rem;padding-inline-start:1rem;border-inline-start:var(--hair) solid currentColor;font-size:var(--small);line-height:1.5;max-inline-size:26rem}
.story--gloss strong{display:block;margin-block-end:0.15rem;font-family:"Cinzel",Georgia,serif;font-weight:400;font-size:var(--small);letter-spacing:0.1em;text-transform:uppercase}

/* 05 · the hand-off: the four stages as plain text, then the call */
.story--close{display:grid;grid-template-columns:minmax(0,1fr);gap:1.75rem clamp(2rem,6vw,5rem);align-items:center;padding-block:var(--breath);padding-inline:var(--edge)}
.story--close h2{margin-block-end:1rem;max-inline-size:22ch}
.story--call{margin-block-start:1.5rem}
.story--steps{list-style:none;padding:0;display:grid;gap:0.25rem}
.story--steps a{display:inline-block;min-block-size:2.75rem;padding-block:0.35rem;font-size:var(--entry);line-height:1.2}

/* 06 · wider: the note moves out to the outer column, beside its paragraph */
@media (min-width:56rem){
  .story--beat{grid-template-columns:minmax(0,1fr) minmax(0,0.6fr);gap:0.75rem clamp(1.5rem,4vw,3.5rem)}
  .story--stage{grid-template-columns:3.5rem minmax(0,1fr)}
  .story--close{grid-template-columns:minmax(0,1.2fr) minmax(0,0.8fr)}
}

/* 07 · narrow: the round specimen sits under the sentence, partly in view */
@media (max-width:40rem){
  .story--intro{grid-template-columns:minmax(0,1fr)}
  .story--round{justify-self:start;inline-size:min(100%,15rem)}
}
