/* The reader's goal, worked example and author profile share the paper edition. */
.starting-point, .bell-story, .author-profile {
  --edition-ink: #201d19;
  --edition-muted: #504c47;
  --edition-line: #cbc6bd;
  --edition-accent: #a43e19;
  color: var(--edition-ink);
}

section.starting-point {
  padding-block: clamp(3.25rem, 7.3vw, 7rem) clamp(2.6rem, 5.9vw, 5.5rem);
}
.starting-point .start-head {
  align-items: end;
  gap: 1.25rem 2rem;
  margin: 0 0 clamp(1.4rem, 3vw, 2.8rem);
  padding-bottom: clamp(1.2rem, 2.2vw, 2rem);
  border-bottom: 1px solid var(--edition-line);
}
.start-head h2, .bell-story h2, .author-copy h2 {
  color: var(--edition-ink);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.05em;
}
.starting-point .start-head h2 { max-width: 18ch; font-size: clamp(2.15rem, 4.65vw, 4.6rem); }
.starting-point .goal-choices {
  gap: .18rem;
  padding: .23rem;
  align-self: end;
  border: 1px solid #c9c4bb;
  border-radius: .68rem;
  background: #efede8;
}
.starting-point .goal-choices a {
  min-height: 44px;
  padding-inline: clamp(.8rem, 1.5vw, 1.3rem);
  border-radius: .45rem;
  font: 700 .96rem/1.2 var(--sans);
  color: var(--edition-muted);
}
.starting-point .goal-choices a[aria-current="true"] {
  color: #fff;
  background: #272521;
  box-shadow: 0 2px 5px rgb(39 29 18 / .12);
}
.starting-point .goal-choices a:not([aria-current]):hover { color: var(--edition-ink); background: #fffdf9; }
.starting-point .goal-choices a:focus-visible, .starting-point a:focus-visible,
.bell-story a:focus-visible, .author-profile a:focus-visible { outline: 2px solid var(--edition-accent); outline-offset: 3px; }
.starting-point .goal-panel, .starting-point #weight {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: start;
}
.starting-point .goal-panel:not([hidden]) + .goal-panel:not([hidden]) {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--edition-line);
}
.starting-point .goal-copy h3 {
  max-width: 18ch;
  font-size: clamp(1.9rem, 3.1vw, 3.3rem);
  font-weight: 700;
  line-height: 1.06;
  color: var(--edition-ink);
}
.starting-point .goal-copy p, .bell-story__intro p:not(.eyebrow), .author-profile .author-copy > p:not(.eyebrow) {
  max-width: 56ch;
  margin-top: .95rem;
  color: var(--edition-muted);
  font-size: clamp(1rem, 1.1vw, 1.125rem);
  line-height: 1.59;
}
.starting-point .goal-copy .first-check {
  padding: .05rem 0 .05rem 1rem;
  margin-top: 1.35rem;
  border-left: 3px solid #ff7139;
}
.starting-point .first-check strong { color: var(--edition-ink); }
.starting-point .goal-copy cite, .author-profile cite { font-style: normal; font-weight: 700; color: var(--edition-ink); }

/* Tissue types: the source illustrations stay uncropped at every size. */
.tissue-plate { min-width: 0; width: 100%; margin: 0; }
.tissue-plate__sheet {
  position: relative;
  padding: clamp(1.1rem, 2.2vw, 2.1rem);
  border: 1px solid #d4cdc0;
  border-radius: .95rem;
  background:
    linear-gradient(180deg, rgb(249 246 239 / .35), #f6f2e9 78%),
    linear-gradient(90deg, rgb(132 110 84 / .085) 1px, transparent 1px),
    linear-gradient(rgb(132 110 84 / .085) 1px, transparent 1px), #f7f4ee;
  background-size: auto, 20px 20px, 20px 20px, auto;
}
.tissue-plate__title {
  max-width: 28ch;
  margin: 0;
  font: 700 clamp(1.15rem, 1.8vw, 1.55rem)/1.2 var(--display);
  letter-spacing: -.032em;
}
.tissue-plate__specimens {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: clamp(.7rem, 2.5vw, 2.4rem);
  margin: .6rem 0 0;
}
.tissue-plate__specimen { min-width: 0; margin: 0; }
.tissue-plate__specimen dt, .tissue-plate__specimen dd { margin: 0; }
.tissue-plate__lens {
  display: block;
  width: min(100%, 13.25rem);
  height: auto;
  margin: .2rem auto;
}
.tissue-plate__specimen dt span {
  display: block;
  padding-top: .65rem;
  border-top: 1px solid #c5bdaf;
  font: 600 1rem/1.35 var(--sans);
}
.tissue-plate__specimen dd {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .15rem .37rem;
  margin-top: .25rem;
  color: var(--edition-muted);
  font-size: .9375rem;
}
.tissue-plate__specimen dd strong {
  color: var(--edition-accent);
  font: 700 clamp(2rem, 3.3vw, 3.25rem)/1 var(--display);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.065em;
}
.tissue-plate figcaption, .bell-example figcaption {
  margin-top: .75rem;
  color: var(--edition-muted);
  font: 400 .9375rem/1.5 var(--sans);
}
.tissue-plate figcaption a, .bell-story .bell-evidence a, .author-profile .quiet-link {
  color: var(--edition-accent);
  font-weight: 700;
  text-underline-offset: .2em;
}
.run-diary {
  border-radius: .95rem;
  border: 1px solid #cbc6bd;
  overflow: hidden;
  background: #fffdf9;
}
.run-diary > img { display: block; width: 100%; height: clamp(8rem, 13vw, 13rem); object-fit: cover; object-position: 80% 51%; }
.run-diary figcaption { padding: clamp(1rem, 2vw, 1.75rem); }
.run-diary figcaption > strong { font: 700 clamp(1.2rem, 1.7vw, 1.65rem)/1.2 var(--display); }
.run-diary dl { margin: .9rem 0 .7rem; }
.run-diary dl div { display: grid; grid-template-columns: minmax(4rem,.5fr) minmax(0,1.5fr); gap: .75rem; padding-block: .55rem; border-top: 1px solid var(--edition-line); }
.run-diary dt { font-weight: 700; }
.run-diary dd { margin: 0; }
.run-diary figcaption > span { font-size: .9rem; color: var(--edition-muted); }

/* Curve example and real-world validation keep separate visual contexts. */
section.bell-story {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  grid-template-areas: "intro figure" "evidence figure";
  align-content: start;
  gap: 1.35rem clamp(1.8rem, 5.6vw, 5.5rem);
  border-top: 1px solid var(--edition-line);
  padding-block: clamp(2.8rem, 5.8vw, 5.9rem);
}
.bell-story .eyebrow, .author-profile .eyebrow {
  color: var(--edition-accent);
  margin: 0 0 .8rem;
  font: 700 .875rem/1.35 var(--sans);
  letter-spacing: .075em;
  text-transform: uppercase;
}
.bell-story .bell-story__intro { align-self: start; }
.bell-story .bell-story__intro h2, .author-profile .author-copy h2 {
  max-width: 16ch;
  font-size: clamp(2.05rem, 3.8vw, 3.9rem);
  line-height: 1.045;
}
.bell-story h2 em { color: var(--edition-accent); font-style: normal; }
.bell-story .bell-figure-slot { align-self: center; }
.bell-story .bell-evidence {
  max-width: 52ch;
  margin: 0;
  padding: .95rem 0 0;
  border-top: 1px solid var(--edition-line);
}
.bell-story .bell-evidence h3 { color: var(--edition-ink); font: 700 1.125rem/1.28 var(--display); }
.bell-story .bell-evidence p { margin-top: .4rem; color: var(--edition-muted); }
.bell-story .bell-evidence a { font-size: .95rem; padding-block: .45rem; }

section.author-profile {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 1.5rem clamp(2.4rem, 7vw, 7.8rem);
  align-items: center;
  padding-block: clamp(2.75rem, 6vw, 6.1rem);
  border-top: 1px solid var(--edition-line);
  border-bottom: 0;
}
.author-profile figure {
  padding: clamp(.6rem, .97vw, .9rem);
  min-width: 0;
  max-width: 34rem;
  width: 100%;
  background: #fffdfa;
  border: 1px solid #cfcac1;
  border-radius: .7rem;
  box-shadow: 0 3px 0 rgb(75 55 30 / .045), 0 15px 32px -25px rgb(67 47 25 / .4);
}
.author-profile figure img { display: block; width: 100%; height: auto; border-radius: .35rem; }
.author-profile figcaption { display: grid; gap: .08rem; margin: .78rem .35rem .3rem; color: var(--edition-muted); font: 400 .925rem/1.45 var(--sans); }
.author-profile figcaption strong { font-weight: 700; color: var(--edition-ink); }
.author-profile .author-copy h2 { max-width: 19ch; }
.author-profile .quiet-link { margin-top: 1.04rem; font-size: 1rem; }
.starting-point .goal-panel[hidden] { display: none; }
@media (max-width: 850px) {
  .starting-point .goal-panel, .starting-point #weight {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
  .starting-point .goal-copy h3, .bell-story .bell-story__intro h2 { max-width: 24ch; }
  .starting-point .goal-copy p, .bell-story .bell-story__intro p:not(.eyebrow) { max-width: 64ch; }
  .tissue-plate, .run-diary { max-width: 40rem; justify-self: start; }
  .tissue-plate__lens { width: min(100%, 11rem); }
  section.bell-story { grid-template-columns: 1fr; grid-template-areas: "intro" "figure" "evidence"; gap: 1.4rem; }
  .bell-story .bell-figure-slot { max-width: 44rem; }
}
@media (max-width: 680px) {
  .starting-point .start-head { align-items: start; flex-direction: column; }
  .starting-point .goal-choices { align-self: start; }
  section.author-profile { grid-template-columns: 1fr; gap: 1.7rem; }
  .author-profile .author-copy { grid-row: 1; }
  .author-profile figure { max-width: 33rem; }
}
@media (max-width: 360px) {
  .tissue-plate__specimen dt span { font-size: .925rem; }
  .tissue-plate__specimen dd strong { font-size: 1.85rem; }
}
@media (forced-colors: active) {
  .tissue-plate__sheet { border: 1px solid CanvasText; }
  .tissue-plate__lens { forced-color-adjust: none; }
}

.bell-example {
  --bell-ink: #211e1b;
  --bell-paper: #fff9ef;
  --bell-soft: #e1d4c9;
  --bell-accent: #ff966a;
  --bell-rule: #71675e;
  --bell-selected-x: 30%;
  --bell-selected-y: 58.795%;
  min-width: 0;
  margin: 0;
  container: bell-example / inline-size;
  font-family: var(--sans, system-ui, sans-serif);
}
.bell-example__plate {
  padding: clamp(1rem, 4.5cqi, 2rem);
  overflow: hidden;
  border: 1px solid #403831;
  border-radius: .95rem;
  color: var(--bell-paper);
  background: radial-gradient(ellipse at 52% 68%, #3b2b24 0%, transparent 63%), var(--bell-ink);
}
.bell-example__readout-label {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 .38rem;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--bell-soft);
}
.bell-example__readout-label > span {
  width: .58rem;
  height: .58rem;
  box-sizing: border-box;
  background: var(--bell-accent);
  border-radius: 1px;
  transform: rotate(45deg);
}
.bell-example__readout-row {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: baseline;
  column-gap: 1.25rem;
}
.bell-example__value {
  display: flex;
  align-items: baseline;
  gap: .45rem;
  margin: 0;
  color: var(--bell-accent);
}
.bell-example__value strong {
  font-family: var(--display, system-ui, sans-serif);
  font-size: clamp(2.55rem, 9.5cqi, 4.25rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.08;
  letter-spacing: -.055em;
}
.bell-example__value span { font-size: 1rem; line-height: 1.3; }
.bell-example__difference {
  color: var(--bell-soft);
  margin: 0;
  font-size: .9375rem;
  line-height: 1.45;
}
.bell-example__chart { margin-block: clamp(1.1rem, 4cqi, 2rem) .2rem; }
.bell-example__centre-label {
  width: fit-content;
  margin: 0 auto .3rem;
  text-align: center;
  color: var(--bell-paper);
  font-size: .86rem;
  line-height: 1.25;
  font-weight: 600;
}
.bell-example__plot {
  position: relative;
  height: clamp(8rem, 23cqi, 12.5rem);
  border-bottom: 1px solid #b6a495;
}
.bell-example__drawing {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.bell-example__grid { fill: none; stroke: #decdc1; stroke-opacity: .15; stroke-dasharray: 1 5; }
.bell-example__centre-line { fill: none; stroke: var(--bell-paper); stroke-width: 1.2; stroke-dasharray: 4 4; }
.bell-example__line { fill: none; stroke: #ffd0ae; stroke-width: 2.6; stroke-linecap: round; }
.bell-example__selected-guide {
  position: absolute;
  left: var(--bell-selected-x);
  top: var(--bell-selected-y);
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: var(--bell-accent);
}
.bell-example__selected-dot {
  position: absolute;
  left: var(--bell-selected-x);
  top: var(--bell-selected-y);
  width: .85rem;
  height: .85rem;
  box-sizing: border-box;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 3px solid var(--bell-accent);
  background: var(--bell-ink);
  box-shadow: 0 0 0 4px rgb(255 150 106 / .2);
}
.bell-example__ticks {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  color: var(--bell-soft);
  text-align: center;
  font-size: .875rem;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.bell-example__ticks span::before {
  display: block;
  width: 1px;
  height: .32rem;
  margin: 0 auto .35rem;
  background: #b4a396;
  content: "";
}
.bell-example__centre-tick { color: var(--bell-paper); font-weight: 700; }
.bell-example__axis { margin: .65rem 0 0; text-align: center; font-size: .9rem; line-height: 1.35; color: var(--bell-soft); }
.bell-example__selector { min-width: 0; margin: 1.2rem 0 0; padding: 0; border: 0; }
.bell-example__selector[hidden] { display: none; }
.bell-example__selector legend { margin: 0 0 .4rem; padding: 0; color: var(--bell-soft); font-size: .875rem; line-height: 1.3; }
.bell-example__options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
.bell-example__options label { position: relative; cursor: pointer; }
.bell-example__sr,
.bell-example__options input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
  border: 0;
}
.bell-example__options label > span {
  display: grid;
  min-height: 44px;
  place-content: center;
  border: 1px solid #877568;
  border-radius: .4rem;
  color: var(--bell-paper);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.15;
}
.bell-example__options label:hover > span { border-color: var(--bell-accent); }
.bell-example__options input:checked + span { background: var(--bell-accent); border-color: var(--bell-accent); color: var(--bell-ink); }
.bell-example__options input:focus-visible + span { outline: 2px solid var(--bell-paper); outline-offset: 2px; }
.bell-example figcaption {
  margin: .75rem 0 0;
  max-width: 76ch;
  color: var(--edition-muted);
  font-size: .9375rem;
  line-height: 1.55;
}
.bell-example figcaption strong { color: var(--edition-ink); }
@container bell-example (max-width: 29rem) {
  .bell-example__readout-row { display: block; }
  .bell-example__difference { margin-top: .25rem; }
  .bell-example__ticks { font-size: .8125rem; }
}
@media (forced-colors: active) {
  .bell-example__line, .bell-example__centre-line { stroke: CanvasText; }
  .bell-example__plot { border-color: CanvasText; }
  .bell-example__selected-guide, .bell-example__ticks span::before { background: CanvasText; forced-color-adjust: none; }
  .bell-example__selected-dot { background: Canvas; border-color: Highlight; }
  .bell-example__options input:checked + span { border: 3px solid Highlight; }
}
