/* How Do AI Agents Actually Work? — one prompt through the agent harness.
 *
 * Shares the paper, type and sidebar of the other AI apps. The picture keeps
 * the book's three tinted zones (user violet, environment sand, the agent in
 * between with its model in blue); color otherwise marks what a moving packet
 * is: a prompt, a tool call, a result, a request for your approval.
 */
:root {
  --paper: #f5f3ec;
  --card: #fbfaf6;
  --card-strong: #fffefb;
  --ink: #1c1b18;
  --ink-2: #4f4c45;
  --ink-3: #847f74;
  --rule: #dad5c9;
  --rule-soft: #e8e4d9;
  --accent: #a64f2a;
  --wash: rgba(28, 27, 24, 0.045);

  --user: #6b4fa0;
  --user-soft: #f2eef8;
  --user-line: #d3c8e6;
  --env: #8a5a1f;
  --env-soft: #f8f0e2;
  --env-line: #e2cfae;
  --model: #2c4f8a;
  --model-soft: #e9eff9;
  --model-line: #9fb4d6;
  --good: #2f7d4f;
  --bad: #b3261e;
  --ask: #a8741a;

  --serif: "Instrument Serif", Georgia, serif;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --side-w: 300px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { scroll-padding-top: calc(var(--appnav-h, 0px) + 20px); }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; }
code { font-family: var(--mono); font-size: 0.92em; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

/* ---------- layout ---------- */

.layout {
  display: grid;
  grid-template-columns: var(--side-w) minmax(0, 1fr);
  max-width: 1720px;
  margin: 0 auto;
}

/* ---------- sidebar ---------- */

.side {
  position: sticky;
  top: var(--appnav-h, 0px);
  height: calc(100vh - var(--appnav-h, 0px));
  height: calc(100dvh - var(--appnav-h, 0px));
  border-right: 1px solid var(--rule-soft);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.side-inner { padding: 1.2rem 1.1rem 1.6rem 1.25rem; }

.kicker, .side-h {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.wordmark {
  margin-top: 0.3rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2.35rem;
  line-height: 0.98;
  letter-spacing: -0.01em;
}
.wordmark em { font-style: italic; color: var(--accent); }
.lede { margin-top: 0.65rem; font-size: 0.84rem; line-height: 1.55; color: var(--ink-2); }
.lede strong { color: var(--ink); font-weight: 600; }
.lede em { font-style: italic; }

.eras { margin-top: 1rem; display: grid; gap: 0.3rem; }
.era {
  display: grid;
  grid-template-columns: 3.1rem 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.4rem;
  align-items: baseline;
  text-align: left;
  background: transparent;
  border: 1px solid var(--rule-soft);
  border-radius: 7px;
  padding: 0.35rem 0.6rem 0.4rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.era:hover { background: var(--wash); border-color: var(--rule); }
.era-y { grid-row: 1 / 3; font-family: var(--serif); font-size: 1.55rem; line-height: 1; color: var(--ink-3); }
.era-n { font-weight: 600; font-size: 0.82rem; line-height: 1.25; }
.era-k { font-size: 0.7rem; line-height: 1.3; color: var(--ink-3); }
.era.is-on { background: var(--card-strong); border-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.era.is-on .era-y { color: var(--accent); }

.era-info { margin-top: 1rem; }
.era-h { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; line-height: 1.05; }
.era-h span { color: var(--accent); }
.era-sum { margin-top: 0.4rem; font-size: 0.8rem; line-height: 1.55; color: var(--ink-2); }
.era-model { margin-top: 0.45rem; font-size: 0.72rem; color: var(--ink-3); }
.era-model strong { color: var(--ink-2); font-weight: 600; }

.step-list { margin-top: 1.1rem; }
.steps { list-style: none; margin-top: 0.35rem; counter-reset: st; }
.steps li { counter-increment: st; }
.steps button {
  display: flex;
  gap: 0.45rem;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 0.2rem 0.3rem;
  border-radius: 5px;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--ink-2);
  cursor: pointer;
}
.steps button::before {
  content: counter(st);
  flex: 0 0 1.1rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--ink-3);
  padding-top: 0.08rem;
}
.steps button:hover { background: var(--wash); color: var(--ink); }
.steps button.is-past { color: var(--ink-3); }
.steps button.is-on { background: var(--card-strong); color: var(--ink); font-weight: 600; box-shadow: inset 2px 0 0 var(--accent); }

.note, .credit { margin-top: 0.9rem; font-size: 0.72rem; line-height: 1.5; color: var(--ink-3); }
.credit { margin-top: 0.55rem; }
.credit em, .note em { font-style: italic; }
.side-foot { margin-top: 0.8rem; font-size: 0.74rem; color: var(--ink-3); }

/* ---------- the stage ---------- */

.stage-wrap {
  position: sticky;
  top: var(--appnav-h, 0px);
  height: calc(100vh - var(--appnav-h, 0px));
  height: calc(100dvh - var(--appnav-h, 0px));
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.stage { flex: 1 1 auto; min-height: 0; padding: 0.6rem 0.9rem 0; }
.scene { display: block; width: 100%; height: 100%; }

.dock {
  flex: none;
  border-top: 1px solid var(--rule-soft);
  background: var(--paper);
  padding: 0.5rem 1.1rem 0.7rem;
}
.ctl { display: flex; align-items: center; gap: 0.35rem; }
.ctl-b {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: var(--card-strong);
  cursor: pointer;
}
.ctl-b svg { width: 0.85rem; height: 0.85rem; fill: var(--ink); }
.ctl-b:hover { border-color: var(--ink-3); }
.ctl-play { width: 2.5rem; height: 2.5rem; background: var(--ink); border-color: var(--ink); }
.ctl-play svg { fill: var(--paper); width: 0.95rem; height: 0.95rem; }
.ctl-speed { width: auto; min-width: 2.6rem; padding: 0 0.55rem; border-radius: 1.05rem; font-family: var(--mono); font-size: 0.74rem; }
.track { flex: 1 1 auto; display: flex; gap: 3px; height: 2.1rem; align-items: center; margin: 0 0.4rem; min-width: 0; }
.seg {
  position: relative;
  flex: 1 1 0;
  min-width: 6px;
  height: 0.5rem;
  border: 0;
  border-radius: 3px;
  background: var(--rule-soft);
  cursor: pointer;
  overflow: hidden;
}
.seg::after { content: ""; position: absolute; inset: -0.8rem 0; }
.seg i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--ink-3); }
.seg.is-on { height: 0.7rem; }
.seg.is-on i { background: var(--accent); }
.seg:hover { background: var(--rule); }

.cap { margin-top: 0.45rem; height: 7.4rem; overflow-y: auto; scrollbar-width: thin; max-width: 92ch; }
.cap-k { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.cap-t { margin-top: 0.1rem; font-family: var(--serif); font-weight: 400; font-size: 1.4rem; line-height: 1.1; }
.cap-say { margin-top: 0.25rem; font-size: 0.88rem; line-height: 1.5; color: var(--ink-2); }
.cap-say em { font-style: italic; }
.cap-src { margin-top: 0.25rem; font-size: 0.7rem; color: var(--ink-3); }
.cap-src a { color: var(--ink-2); }
.end { margin-top: 0.45rem; display: flex; gap: 0.4rem; }
.end button {
  border: 1px solid var(--rule);
  background: var(--card-strong);
  border-radius: 1rem;
  padding: 0.25rem 0.85rem;
  font-size: 0.8rem;
  cursor: pointer;
}
.end button.is-primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- the picture ---------- */

.scene text { font-family: var(--sans); }
.zone { stroke-width: 1; }
.zone--user { fill: var(--user-soft); stroke: var(--user-line); }
.zone--agent { fill: var(--card); stroke: var(--rule); }
.zone--env { fill: var(--env-soft); stroke: var(--env-line); }
.zone-head--user { fill: #e5dcf1; }
.zone-head--agent { fill: #ece8de; }
.zone-head--env { fill: #efe0c3; }
.zone-t { font-size: 13px; font-weight: 600; fill: var(--ink); }
.zone-sub { font-family: var(--mono) !important; font-size: 10.5px; fill: var(--ink-2); }

.arrow { fill: none; stroke: #c4bdae; stroke-width: 1.6; stroke-linejoin: round; }
.arrow--fb { stroke: #c4bdae; }
.arrow--human { stroke: var(--user-line); stroke-dasharray: 5 4; stroke-width: 1.8; }
.tip { fill: #b3ac9c; }
.arrow-t { font-size: 11px; font-style: italic; fill: var(--ink-3); }

.box { fill: var(--card-strong); stroke: var(--rule); stroke-width: 1.2; transition: stroke 0.2s, stroke-width 0.2s; }
.box--user { fill: #fff; stroke: var(--user-line); }
.box--llm { fill: var(--model-soft); stroke: var(--model-line); stroke-width: 1.6; }
.box--out { fill: #fbfcfe; stroke: #d6deec; stroke-dasharray: 4 3; }
.box--mod { fill: #fff; stroke: #b9c7de; }
.box--side { fill: #fff; stroke: #d3c9b6; }
.box--env { fill: #fffdf8; stroke: var(--env-line); }
.box--sub { fill: #f4f7fc; stroke: var(--model-line); }
.box--sub.is-done { fill: #f2f7f2; stroke: #a9cdb3; }
.box--sub.is-working { animation: working 0.7s ease-in-out infinite alternate; }
@keyframes working { from { fill: #f4f7fc; } to { fill: #dfe8f6; } }
.sub-tok { font-family: var(--mono) !important; font-size: 9.5px; fill: var(--ink-3); }
.sub-log { font-family: var(--mono) !important; font-size: 9.5px; fill: var(--ink-3); white-space: pre; }
.sub-log.is-now { fill: var(--ink); }
.box--todo { fill: #fff; stroke: #cfd8e6; }
.box--off { fill: none; stroke: #d6d0c3; stroke-dasharray: 4 3; }
.glyph { fill: #cdbfe6; }

.box-t { font-size: 12.5px; font-weight: 600; fill: var(--ink); }
.box-s { font-size: 11px; fill: var(--ink-2); }
.box-k { font-family: var(--mono) !important; font-size: 9.5px; letter-spacing: 0.1em; fill: var(--ink-3); }
.mono { font-family: var(--mono) !important; font-size: 10px; }
.off { fill: var(--ink-3); opacity: 0.75; }

.scene--tall .box-t { font-size: 11.5px; }
.scene--tall .box-s, .scene--tall .row-t { font-size: 10px; }
.scene--tall .status { font-size: 10px; }
.llm-r { font-family: var(--mono) !important; font-size: 10px; letter-spacing: 0.18em; fill: #5d78a8; }
.llm-t { font-family: var(--serif) !important; font-size: 24px; fill: var(--model); }
.scene--tall .llm-t { font-size: 20px; }
.llm-s { font-family: var(--mono) !important; font-size: 10.5px; fill: #4c6896; }
.is-busy .box--llm { animation: busy 0.9s ease-in-out infinite alternate; }
@keyframes busy { from { fill: var(--model-soft); } to { fill: #d5e1f4; } }

.out-t { font-family: var(--mono) !important; font-size: 11.5px; fill: var(--ink); white-space: pre; }
.out-t--think { font-style: italic; fill: #57709a; }
.out-t--call { fill: var(--accent); }
.bubble--user { fill: #fff; stroke: var(--user-line); }
.bubble-t { font-family: var(--mono) !important; font-size: 11px; fill: #3e2f66; white-space: pre; }

.gauge { fill: #ebe7dd; }
.gauge-fill { fill: #5b7fc0; transition: width 0.4s ease; }
.gauge-fill.is-full { fill: #c0572e; }
.row-bg { fill: #f6f4ee; }
.row-t { font-size: 11px; fill: var(--ink-2); }
.row-n { font-family: var(--mono) !important; font-size: 10px; fill: var(--ink-3); }
.row-gap { font-size: 11px; fill: var(--ink-3); }
.row--system .row-k { fill: #b3ac9c; }
.row--tools .row-k { fill: #cf8a5c; }
.row--memory .row-k { fill: #5f9a6e; }
.row--example .row-k { fill: #a38fcb; }
.row--user .row-k { fill: var(--user); }
.row--model .row-k { fill: #5b7fc0; }
.row--result .row-k { fill: #c49a45; }
.row--summary .row-k { fill: #6e7787; }
.row--summary .row-bg { fill: #eceef2; }
.row.is-fresh .row-bg { animation: fresh 1.8s ease-out; }
@keyframes fresh { 0% { fill: #ffeeb8; } 100% { fill: #f6f4ee; } }

.status { font-size: 10.5px; font-weight: 600; fill: var(--accent); }
.status--bad { fill: var(--bad); }

.badge--fail { fill: #fae3de; stroke: #e4aa9e; }
.badge--pass { fill: #e0f0e4; stroke: #a6cfb2; }
.badge-t { font-family: var(--mono) !important; font-size: 10px; font-weight: 600; }
.badge-t--fail { fill: #a3321f; }
.badge-t--pass { fill: var(--good); }
.env-note { font-family: var(--mono) !important; font-size: 10px; fill: var(--ink-2); }

.todo-box { font-size: 12px; fill: var(--ink-2); }
.todo-t { font-size: 11px; fill: var(--ink); }
.todo-box.is-done, .todo-t.is-done { fill: var(--ink-3); }
.todo-t.is-done { text-decoration: line-through; }

.part { cursor: pointer; outline: none; }
.part:hover > .box { stroke: var(--ink-3); }
.part:focus-visible > .box { stroke: var(--accent); stroke-width: 2.4; }
.part.is-lit > .box { stroke: var(--accent); stroke-width: 2.4; }
.part.is-lit > .box--off { stroke-dasharray: 4 3; }

.route { fill: none; stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; opacity: 0.45; }
.pk-bg { stroke: #fff; stroke-width: 1.5; }
.pk-t { font-family: var(--mono) !important; font-size: 10.5px; font-weight: 500; fill: #fff; }
.route--prompt, .route--answer, .route--approve, .route--human { stroke: var(--user); }
.route--ctx { stroke: #57534a; }
.route--call { stroke: var(--accent); }
.route--result { stroke: var(--good); }
.route--ask { stroke: var(--ask); }
.route--memory { stroke: #3f8a5a; }
.route--plan { stroke: #3a63a8; }
.route--hook { stroke: var(--env); }
.route--msg { stroke: #2f7d7d; }
.pk--prompt .pk-bg, .pk--answer .pk-bg, .pk--approve .pk-bg { fill: var(--user); }
.pk--human .pk-bg { fill: #8b74b9; }
.pk--ctx .pk-bg { fill: #57534a; }
.pk--call .pk-bg { fill: var(--accent); }
.pk--result .pk-bg { fill: var(--good); }
.pk--ask .pk-bg { fill: var(--ask); }
.pk--memory .pk-bg { fill: #3f8a5a; }
.pk--plan .pk-bg { fill: #3a63a8; }
.pk--hook .pk-bg { fill: var(--env); }
.pk--msg .pk-bg { fill: #2f7d7d; }
.pk--blocked .pk-bg { fill: var(--bad); }

/* ---------- popover ---------- */

.pop {
  position: fixed;
  z-index: 3100;
  width: min(330px, calc(100vw - 24px));
  background: var(--card-strong);
  border: 1px solid var(--rule);
  border-radius: 9px;
  box-shadow: 0 14px 34px -12px rgba(28, 27, 24, 0.32);
  padding: 0.75rem 0.9rem 0.8rem;
}
.pop-k { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em; color: var(--ink-3); }
.pop-t { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; line-height: 1.1; }
.pop-def { margin-top: 0.3rem; font-size: 0.8rem; line-height: 1.5; color: var(--ink-2); }
.pop-era { margin-top: 0.4rem; font-size: 0.8rem; line-height: 1.5; color: var(--ink); }
.pop-src { margin-top: 0.4rem; font-size: 0.7rem; color: var(--ink-3); }
.pop-src a { color: var(--ink-2); }
.pop-x {
  position: absolute;
  top: 0.35rem;
  right: 0.45rem;
  width: 1.6rem;
  height: 1.6rem;
  border: 0;
  background: none;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--ink-3);
  cursor: pointer;
  border-radius: 50%;
}
.pop-x:hover { background: var(--wash); color: var(--ink); }

/* ---------- reading ---------- */

.reading {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.6rem 1.6rem 0.4rem;
}
#changes { border-top: 1px solid var(--rule-soft); }
.reading-head { max-width: 70ch; }
.reading-h { margin-top: 0.15rem; font-family: var(--serif); font-weight: 400; font-size: 2.1rem; line-height: 1.05; }
.reading-h em { font-style: italic; color: var(--accent); }
.reading-dek { margin-top: 0.45rem; font-size: 0.9rem; color: var(--ink-2); }

.tbl-scroll { margin-top: 1.1rem; overflow-x: auto; }
.tbl { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 0.82rem; line-height: 1.4; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 0.5rem 0.6rem; border-top: 1px solid var(--rule-soft); }
.tbl thead th { border-top: 0; padding-bottom: 0.4rem; }
.tbl thead button {
  display: grid;
  text-align: left;
  border: 0;
  background: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0;
}
.tbl thead button span { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; line-height: 1; color: var(--accent); }
.tbl thead button:hover { text-decoration: underline; text-underline-offset: 3px; }
.tbl tbody th { width: 11rem; font-weight: 600; color: var(--ink); }
.tbl td { color: var(--ink-2); width: 17%; }

.takes { list-style: none; margin-top: 1.1rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem 1.6rem; counter-reset: tk; }
.takes li { counter-increment: tk; border-top: 1px solid var(--rule); padding-top: 0.6rem; }
.takes h3 { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; line-height: 1.15; }
.takes h3::before { content: counter(tk) ". "; color: var(--accent); }
.takes p { margin-top: 0.3rem; font-size: 0.86rem; line-height: 1.55; color: var(--ink-2); }
.takes .take-src { font-size: 0.72rem; color: var(--ink-3); }
.take-src a { color: var(--ink-2); }

.book { margin-top: 1.1rem; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.book-art svg { width: 100%; height: auto; display: block; }
.book-art text { font-family: var(--sans); font-size: 11px; fill: var(--ink-2); }
.book-art .bk-user { fill: var(--user-soft); stroke: var(--user-line); }
.book-art .bk-env { fill: var(--env-soft); stroke: var(--env-line); }
.book-art .bk-agent { fill: var(--card-strong); stroke: var(--rule); }
.book-art .bk-llm { fill: var(--model-soft); stroke: var(--model-line); }
.book-art .bk-llm-t { font-family: var(--serif); font-size: 16px; fill: var(--model); }
.book-art .bk-mod { fill: #fff; stroke: #b9c7de; }
.book-art .bk-s { font-size: 8.5px; fill: var(--ink-3); }
.book-art .bk-ar { stroke: var(--ink-3); stroke-width: 1.2; fill: none; }
.book-text p { font-size: 0.9rem; line-height: 1.6; color: var(--ink-2); max-width: 75ch; }
.book-text em { font-style: italic; }
.book-text .book-cite { margin-top: 0.6rem; font-size: 0.78rem; color: var(--ink-3); }

.sources { padding-bottom: 1rem; }
.src-list { list-style: none; margin-top: 1rem; columns: 2 420px; column-gap: 2rem; }
.src-list li { break-inside: avoid; padding: 0.3rem 0; border-top: 1px solid var(--rule-soft); font-size: 0.78rem; line-height: 1.45; color: var(--ink-2); }
.src-d { font-family: var(--mono); font-size: 0.68rem; color: var(--ink-3); }
.src-use { display: block; font-size: 0.7rem; color: var(--ink-3); }
.src-book { background: var(--user-soft); padding-left: 0.4rem !important; }

.colophon {
  max-width: 1180px;
  margin: 1.6rem auto 0;
  padding: 1rem 1.6rem 2.4rem;
  border-top: 1px solid var(--rule-soft);
  font-size: 0.74rem;
  color: var(--ink-3);
}
.colophon em { font-style: italic; }

/* ---------- smaller screens ---------- */

@media (max-width: 1440px) {
  :root { --side-w: 272px; }
  .wordmark { font-size: 2.15rem; }
}

@media (max-width: 1100px) {
  :root { --side-w: 260px; }
  .wordmark { font-size: 2rem; }
}

@media (max-width: 759px) {
  /* The sidebar's pieces become rows of the page, with the picture after the
     year picker so it comes before the reading. */
  .layout { display: flex; flex-direction: column; }
  .side, .side-inner { display: contents; }
  .side-inner > * { margin-left: 1rem; margin-right: 1rem; }
  .side-inner > .kicker { order: 1; margin-top: 1rem; }
  .wordmark { order: 2; font-size: 2rem; }
  .lede { order: 3; }
  .eras { order: 4; display: flex; overflow-x: auto; gap: 0.35rem; margin-left: 0; margin-right: 0; padding: 0 1rem 0.2rem; scrollbar-width: none; }
  .era { flex: 0 0 auto; grid-template-columns: auto; padding: 0.3rem 0.65rem; }
  .era-y { grid-row: auto; font-size: 1.3rem; }
  .era-k { display: none; }
  .stage-wrap { order: 5; position: static; height: auto; margin-top: 0.6rem; }
  .stage { padding: 0 0.4rem; }
  .scene { height: auto; }
  .dock { position: sticky; bottom: 0; z-index: 5; box-shadow: 0 -6px 16px -10px rgba(28, 27, 24, 0.3); padding: 0.4rem 0.75rem 0.55rem; }
  .cap { height: auto; max-height: 6rem; margin-top: 0.3rem; }
  .cap-t { font-size: 1.15rem; }
  .cap-say { font-size: 0.8rem; line-height: 1.45; }
  .era-info { order: 6; }
  .step-list { display: none; }
  .note { order: 7; }
  .credit { order: 8; }
  .side-foot { order: 9; }
  .reading { padding: 2rem 1rem 0.4rem; }
  .reading-h { font-size: 1.7rem; }
  .book { grid-template-columns: 1fr; }
  .book-art { max-width: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
