/* The story's frame (design/07-story.md): the question above each chapter page, the short version under its lead, the
   next question at its foot, and on the opening "What the year found" and the seven questions. Loaded after depth.css. */

/* ---------- the question above a chapter page's heading ---------- */
.story-kick { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0 0 18px; }
.story-kick a.mono { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-decoration: underline; text-decoration-color: var(--edge); text-underline-offset: 4px; }
.story-kick a.mono:hover { color: var(--text); text-decoration-color: var(--text); }
.story-kick span.mono { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.story-kick b { flex-basis: 100%; font-family: var(--serif); font-weight: 400; font-style: italic; font-size: clamp(21px, 1.9vw, 26px); line-height: 1.2; color: var(--text); }
.works-top .story-kick, .im-top .story-kick { margin-bottom: 14px; }

/* ---------- the short version: a label column, then three numbered lines ---------- */
.short-v { display: grid !important; grid-template-columns: 150px minmax(0, 1fr); gap: 0 24px; margin: 30px 0 6px; max-width: 900px; border: 0 !important; padding: 0 !important; }
.short-v > span { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 18px; border: 0; }
.short-v ol { list-style: none; margin: 0; padding: 0; display: block; border-top: 1px solid var(--edge); }
.short-v li { margin: 0; }
.short-v li + li a { border-top: 1px solid var(--line); }
.short-v a { display: grid; grid-template-columns: 28px 1fr; gap: 16px; padding: 15px 14px 16px 0; text-decoration: none; color: var(--text); transition: background-color .15s; }
.short-v a i { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--edge); font-style: normal; font-size: 12.5px; color: var(--text); }
.short-v a span { font-size: 16.5px; line-height: 1.5; padding-top: 2px; }
.short-v a:hover { background: var(--raise); }
.short-v a:hover i { background: var(--text); color: var(--ground); border-color: var(--text); }
@media (max-width: 760px) { .short-v { grid-template-columns: 1fr; } .short-v > span { padding: 0 0 10px; } }
/* the chapter's question stands in for the page's own small label */
.page-head:has(.story-kick) .kicker, .im-top:has(.story-kick) .kicker { display: none; }

/* ---------- the foot of a chapter: the next question, and the story in a row ---------- */
.story-end { margin: 150px var(--gut) 40px; max-width: 1340px; }
.se-next { --b: var(--edge); position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 40px; align-items: end;
  padding: 40px 44px 42px; border: 1px solid var(--b); text-decoration: none; color: var(--text); transition: background-color .15s, border-color .15s; }
.se-next::before { content: ""; position: absolute; top: -1px; right: -1px; width: calc(var(--cut) + 1px); height: calc(var(--cut) + 1px); pointer-events: none;
  background: linear-gradient(to bottom left, var(--behind) calc(50% - .6px), var(--b) calc(50% - .6px), var(--b) calc(50% + .7px), transparent calc(50% + .7px)); }
.se-next > .mono:first-child { grid-column: 1 / -1; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.se-next b { grid-column: 1; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4.2vw, 58px); line-height: 1.04; letter-spacing: -.01em; }
.se-a { grid-column: 1; color: var(--muted); font-size: 19px; line-height: 1.5; max-width: 40em; }
.se-go { grid-column: 2; grid-row: 2 / span 2; align-self: end; display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 18px; border: 1px solid var(--edge);
  font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.se-go::after { content: ""; width: 18px; height: 1px; background: currentColor; box-shadow: 4px -3px 0 -0.5px transparent; }
.se-next:hover { --b: var(--text); background: var(--raise); }
.se-next:hover .se-a { color: var(--text); }
.se-next:hover .se-go { background: var(--text); color: var(--ground); border-color: var(--text); }
@media (max-width: 760px) { .se-next { grid-template-columns: 1fr; padding: 28px 22px; } .se-go { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 10px; } }

.story-row { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--edge); }
.story-row a { display: grid; grid-template-columns: 26px 1fr; gap: 10px; height: 100%; padding: 16px 12px 16px 0; text-decoration: none; color: var(--muted); transition: background-color .15s, color .15s; }
.story-row li + li a { padding-left: 12px; border-left: 1px solid var(--line); }
.story-row i { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--edge); font-style: normal; font-size: 11.5px; color: var(--text); }
.story-row b { display: block; font-weight: 500; font-size: 14.5px; color: var(--text); }
.story-row small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.4; }
.story-row a[aria-current] i { background: var(--text); color: var(--ground); border-color: var(--text); }
.story-row a[aria-current] b::after { content: "here"; margin-left: 7px; font: 400 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.story-row a.read:not([aria-current]) b::after { content: "read"; margin-left: 7px; padding: 1px 4px 0; border: 1px solid var(--edge); font: 400 9.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.story-row a:hover { background: var(--raise); color: var(--text); }
@media (max-width: 1100px) { .story-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } .story-row li:nth-child(5) a { border-left: 0; padding-left: 0; } }
@media (max-width: 600px) { .story-row { grid-template-columns: 1fr 1fr; } .story-row li a { border-left: 0 !important; padding-left: 0 !important; } }

/* ---------- the opening: what the year found ---------- */
.found { margin: 150px var(--gut) 0; }
.fd { position: relative; display: grid; align-content: start; gap: 0; }
.fd-n { font-size: 12px; letter-spacing: .1em; color: var(--muted); }
.fd h3 { margin: 10px 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(27px, 2.6vw, 36px); line-height: 1.12; letter-spacing: -.005em; }
.fd p { margin: 14px 0 0; color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 36em; }
.fd .fd-svg { display: block; width: 100%; height: auto; margin-top: 26px; overflow: visible; }
.fd-door { justify-self: start; margin-top: 22px; color: var(--text); font-size: 16px; text-decoration: underline; text-decoration-color: var(--edge); text-underline-offset: 5px; }
.fd-door::after { content: " →"; }
.fd-door:hover { text-decoration-color: var(--text); text-decoration-thickness: 2px; }
.fd-lead { margin-top: 56px; padding: 44px 0 50px; border-top: 1px solid var(--edge); border-bottom: 1px solid var(--line); }
.fd-lead .fd { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 64px; }
.fd-lead .fd > :not(.fd-svg) { grid-column: 1; }
.fd-lead .fd .fd-svg { grid-column: 2; grid-row: 1 / span 5; margin-top: 0; align-self: center; }
.fd-lead .fd h3 { font-size: clamp(34px, 3.6vw, 52px); line-height: 1.05; }
.fd-lead .fd p { font-size: 18.5px; color: var(--text); }
.fd-grid4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fd-grid4 .fd { padding: 40px 48px 46px 0; border-bottom: 1px solid var(--line); }
.fd-grid4 .fd:nth-child(2n) { padding: 40px 0 46px 48px; border-left: 1px solid var(--line); }
@media (max-width: 900px) {
  .fd-lead .fd { grid-template-columns: 1fr; } .fd-lead .fd .fd-svg { grid-column: 1; grid-row: auto; margin-top: 26px; }
  .fd-grid4 { grid-template-columns: 1fr; } .fd-grid4 .fd, .fd-grid4 .fd:nth-child(2n) { padding: 36px 0 40px; border-left: 0; }
}
/* the drawings: cyan what was measured, violet what Peter did and chose, the rest in the paper's own tones */
.fd-svg text { font-family: var(--mono); }
.fd-grid { stroke: var(--line); stroke-width: 1; }
.fd-ax { fill: var(--faint); font-size: 10.5px; letter-spacing: .06em; }
.fd-lab { fill: var(--text); font-family: var(--sans) !important; font-size: 14px; }
.fd-note { fill: var(--text); font-size: 10.5px; letter-spacing: .08em; }
.fd-big { fill: var(--muted); font-family: var(--serif) !important; font-size: 30px; }
.fd-hi-t { fill: var(--cyan); }
.fd-lvl { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 5 5; }
.fd-lvl.fd-hi { stroke: var(--cyan); stroke-dasharray: none; stroke-width: 2; opacity: .55; }
.fd-iqr { stroke: var(--cyan); stroke-width: 3; opacity: .28; stroke-linecap: round; }
.fd-dot { fill: var(--cyan); }
.fd-break { stroke: var(--text); stroke-width: 1; stroke-dasharray: 2 4; }
.fd-kill { fill: none; stroke: var(--peter); stroke-width: 2.4; stroke-linejoin: round; }
.fd-kill-a { fill: var(--peter); opacity: .1; }
.fd-p { fill: var(--peter); }
.fd-pos { fill: var(--peter); }
.fd-neg { fill: none; stroke: var(--peter); stroke-width: 1.5; }
.fd-pos-c { fill: var(--cyan); }
.fd-track { fill: var(--empty); }
.fd-dim { fill: var(--dim); }

/* ---------- the opening: the seven questions ---------- */
.story-map { margin: 150px var(--gut) 0; }
.sm-list { list-style: none; margin: 52px 0 0; padding: 0; border-top: 1px solid var(--edge); counter-reset: none; }
.sm-list a { display: grid; grid-template-columns: 60px minmax(0, 5fr) minmax(0, 6fr) 150px; gap: 8px 32px; align-items: baseline; padding: 26px 0 28px; border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--text); transition: background-color .15s; }
.sm-list i { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--edge); font-style: normal; font-size: 13px; align-self: start; }
.sm-list b { font-family: var(--serif); font-weight: 400; font-size: clamp(25px, 2.4vw, 34px); line-height: 1.12; }
.sm-a { color: var(--muted); font-size: 17px; line-height: 1.55; }
.sm-go { justify-self: end; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text); text-decoration: underline; text-decoration-color: var(--edge); text-underline-offset: 5px; }
.sm-list a.read .sm-go::before { content: "read · "; color: var(--muted); text-decoration: none; display: inline-block; margin-right: 4px; }
.sm-list a:hover { background: var(--raise); }
.sm-list a:hover i { background: var(--text); color: var(--ground); border-color: var(--text); }
.sm-list a:hover .sm-a { color: var(--text); }
.sm-list a:hover .sm-go { text-decoration-color: var(--text); text-decoration-thickness: 2px; }
@media (max-width: 900px) { .sm-list a { grid-template-columns: 46px 1fr; } .sm-a, .sm-go { grid-column: 2; } .sm-go { justify-self: start; } }

/* the opening's section labels, one per beat of the story */
.why > header .kicker, .step-text .kicker { display: block; margin-bottom: 12px; color: var(--muted); }
.story-row a[aria-current] b, .story-row a[aria-current] small { font-family: var(--sans); font-style: normal; }
.story-row a[aria-current] small { font-size: 13px; }
/* on a phone the drawings shrink to the screen; their words are drawn larger so they stay readable */
@media (max-width: 600px) {
  .fd-lab { font-size: 19px; } .fd-ax, .fd-note { font-size: 14.5px; } .fd-big { font-size: 40px; }
}

/* ---------- the head figures fill their column and sit at the top of it (Peter, 2026-11-19) ---------- */
.head-top { align-items: start; }
@media (min-width: 1041px) { .head-top { grid-template-columns: minmax(0, 46em) minmax(0, 560px); } }
@media (max-width: 1040px) { .head-top .head-fig { max-width: 560px; } }
.head-top .head-fig { margin-top: 6px; }
/* The Year: the year at a glance */
.hf-year .hf-mo { fill: var(--text); font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; }
.hf-year .hf-t { font-size: 10px; fill: var(--muted); }
/* Method: the painting large, its five ladders under it at full width */
.hf-method .hf-m { grid-template-columns: 1fr; gap: 22px; }
.hf-method .hf-m > a img { width: 100%; height: auto; aspect-ratio: auto; }
.hf-method .hf-lad { grid-template-columns: 170px auto minmax(0, 1fr); padding: 8px 6px; font-size: 15px; }
.hf-method .pips i { width: 22px; height: 9px; }
.hf-method .hf-lad em { font-size: 12px; }
.hf-method .hf-sum b { font-size: 46px; }
@media (max-width: 520px) { .hf-method .hf-m a { max-width: none; } .hf-method .hf-lad { grid-template-columns: 120px auto minmax(0, 1fr); font-size: 13.5px; } }

/* The Year's "Arrange by" row wraps on a phone instead of running off the screen */
.controls .arrange { flex-wrap: wrap; row-gap: 8px; }
/* the head's number tiles on a phone: one column, all flush */
@media (max-width: 600px) { .method-stats { grid-template-columns: 1fr; } .method-stats div { padding: 16px 14px; } .method-stats b { font-size: 34px; } .method-stats span { font-size: 13.5px; } }

/* Doors to the Field guide's notes (src/site/notes-links.js): from a proof section, and the list at a chapter's foot. */
.note-door { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
.note-door a { display: grid; gap: 2px; border-left: 2px solid var(--peter); padding: 4px 0 4px 12px; text-decoration: none; color: var(--text); max-width: 34em; }
.note-door a:hover b, .note-door a:focus-visible b { text-decoration: underline; text-underline-offset: 3px; }
.note-door .mono { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--peter); }
.note-door b { font-family: var(--serif); font-weight: 400; font-size: 19px; line-height: 1.3; }
.chapter-notes { margin: 110px var(--gut) 0; max-width: 1340px; }
.chapter-notes h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.4vw, 40px); margin: 0 0 6px; }
.chapter-notes > p { color: var(--muted); margin: 0 0 18px; font-size: 16px; }
.chapter-notes ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.chapter-notes a { display: grid; gap: 6px; border: 1px solid var(--line); border-left: 2px solid var(--peter); padding: 16px 18px; text-decoration: none; color: inherit; height: 100%; box-sizing: border-box; }
.chapter-notes a:hover, .chapter-notes a:focus-visible { border-color: var(--peter); }
.chapter-notes b { font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.25; }
.chapter-notes span { color: var(--muted); font-size: 15px; line-height: 1.5; }
.fd-doors { display: flex; flex-wrap: wrap; gap: 4px 18px; }
@media (max-width: 760px) { .chapter-notes { margin: 80px 20px 0; } }
.fd-doors { justify-self: start; margin-top: 22px; }
.fd-doors .fd-door { margin-top: 0; }
.sm-after { margin: 26px 0 0; font-size: 17px; color: var(--muted); max-width: 46em; }
.sm-after a { color: var(--text); }
/* Footer and byline links: a finger-sized target on phones (review, 2026-11-20). */
@media (max-width: 760px) { footer.foot a, .byline a { display: inline-block; padding: 12px 0; } footer.foot a { white-space: nowrap; } }
