/* Mutter Story on the web: the app's timeline, dark unless you pick light. Copied to site/story/ by story.py. */
:root, :root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #141311;
  --ink: #ede9e2;
  --muted: #a39c91;
  --faint: #8a8378;
  --line: #2b2825;
  --surface: #1f1d1a;
  --panel: #27231d;
  --accent: #e8684f;
  --accent-text: #ef8a75;
  --tint: rgba(232, 104, 79, .12);
  --bar: rgba(20, 19, 17, .95);
  --btn-bg: #ede9e2;
  --btn-ink: #141311;
  --paper: #f4eee2;
  --paper-ink: #24211c;
  --shade: rgba(0, 0, 0, .6);
  --sans: "Bricolage Grotesque", ui-sans-serif, "Segoe UI", Roboto, sans-serif;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --hand: "Gochi Hand", "Bradley Hand", "Segoe Print", cursive;
  --stick: 45px;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #151515;
  --muted: #6e6e73;
  --faint: #8a8378;
  --line: #ededec;
  --surface: #f6f5f2;
  --panel: #f4eee2;
  --accent: #d94f39;
  --accent-text: #c2412c;
  --tint: rgba(217, 79, 57, .09);
  --bar: rgba(255, 255, 255, .95);
  --btn-bg: #151515;
  --btn-ink: #ffffff;
  --shade: rgba(20, 19, 17, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.45 var(--sans); font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 60; background: var(--btn-bg); color: var(--btn-ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.hand { font-family: var(--hand); color: var(--accent-text); font-size: 22px; line-height: 1; display: block; }
.ic { width: 18px; height: 18px; flex: none; }
.vh-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tablet { display: inline-block; width: 15px; height: 20px; background: var(--accent); border-radius: 8px 8px 3px 3px; transform: rotate(-6deg); box-shadow: inset -3px 0 0 rgba(0,0,0,.18); flex: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 18px; border-radius: 12px;
  background: var(--btn-bg); color: var(--btn-ink); font: 600 15.5px/1.2 var(--sans); letter-spacing: -0.01em; }
.btn[aria-disabled="true"] { cursor: default; }
.btn .ic { width: 18px; height: 18px; }

/* ---------- The shell ---------- */
.shell { position: relative; }
.side { position: sticky; top: -51px; z-index: 20; background: var(--bar); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; height: 51px; padding: 0 8px 0 16px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 650; font-size: 21px; letter-spacing: -0.035em; color: var(--ink); }
.slash { color: var(--faint); font-size: 20px; }
.here { font-family: var(--display); font-weight: 500; font-size: 21px; letter-spacing: -0.01em; }
.mode { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-left: auto; border-radius: 50%; color: var(--muted); }
.mode:hover { background: var(--surface); color: var(--ink); }
.mode .ic { width: 21px; height: 21px; }
:root[data-theme="light"] .mode .sun, :root:not([data-theme="light"]) .mode .moon { display: none; }
.mode.wide { display: none; }
.tabs { display: flex; height: 44px; }
.tabs a { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--muted); white-space: nowrap; }
.tabs a .ic { display: none; }
.tabs a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.tabs a[aria-current="page"]::after { content: ""; position: absolute; bottom: 0; left: 50%; width: 44px; height: 3px; margin-left: -22px; border-radius: 3px; background: var(--accent); }
.tabs .nav-get { display: none; }
.right { display: none; }
.col { min-width: 0; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.mini-foot { padding: 28px 16px 20px; font-size: 13px; color: var(--faint); text-align: center; }
.mini-foot a { text-decoration: underline; text-underline-offset: 3px; }

/* The sticky page title in the middle column (plain on phones, where the tabs stick instead) */
.colhead { display: flex; align-items: center; gap: 14px; min-height: 53px; padding: 6px 16px; border-bottom: 1px solid var(--line); }
.colhead b { display: block; font-size: 18px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; }
.colhead span { display: block; font-size: 13px; color: var(--muted); }
.back { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-left: -8px; border-radius: 50%; }
.back:hover { background: var(--surface); }
.back .ic { width: 20px; height: 20px; }
.col > .colhead { display: none; }

/* Get the app, at the bottom of a phone */
.getbar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--bar); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.getbar p { flex: 1; min-width: 0; line-height: 1.25; }
.getbar b { display: block; font-size: 15px; font-weight: 650; }
.getbar p span { display: block; font-size: 13px; color: var(--muted); }
.gb-btn { flex: none; padding: 10px 16px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; font-size: 15px; }

/* Tablets: a rail of icons on the left */
@media (min-width: 760px) {
  .shell { display: grid; grid-template-columns: 76px minmax(0, 600px); justify-content: center; }
  .side { top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 0 18px;
    background: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 0; }
  .brand { height: auto; padding: 8px 0 14px; }
  .brand .word, .brand .slash, .brand .here, .brand .mode { display: none; }
  .brand .tablet { width: 20px; height: 27px; }
  .tabs { flex-direction: column; height: auto; gap: 4px; }
  .tabs a { flex: none; width: 52px; height: 52px; border-radius: 50%; color: var(--ink); }
  .tabs a span { display: none; }
  .tabs a .ic { display: block; width: 26px; height: 26px; }
  .tabs a:hover { background: var(--surface); }
  .tabs a[aria-current="page"]::after { display: none; }
  .tabs a[aria-current="page"] .ic { stroke-width: 2.4; color: var(--accent); }
  .tabs .nav-get { display: flex; margin-top: 10px; background: var(--accent); color: #fff; }
  .tabs .nav-get:hover { background: var(--accent); filter: brightness(1.06); }
  .mode.wide { display: inline-grid; margin: auto 0 0; }
  .mode.wide span { display: none; }
  .col { border-left: 1px solid var(--line); border-right: 1px solid var(--line); min-height: 100vh; padding-bottom: 0; }
  .col > .colhead { display: flex; position: sticky; top: 0; z-index: 15; background: var(--bar); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  :root { --stick: 53px; }
  .getbar { display: none; }
}
/* Computers: nav, timeline, Get Mutter */
@media (min-width: 1100px) {
  .shell { grid-template-columns: 250px 600px 340px; }
  .side { align-items: stretch; padding: 10px 14px 22px 0; }
  .brand { padding: 8px 12px 16px; gap: 9px; }
  .brand .word, .brand .slash, .brand .here { display: inline; }
  .brand .tablet { width: 16px; height: 21px; }
  .tabs a { width: auto; height: auto; justify-content: flex-start; gap: 16px; padding: 11px 16px; border-radius: 999px; font-size: 19px; }
  .tabs a span { display: inline; }
  .tabs a[aria-current="page"] { font-weight: 650; }
  .tabs .nav-get { justify-content: center; margin-top: 16px; padding: 14px 16px; font-size: 17px; font-weight: 600; }
  .tabs .nav-get .ic { display: none; }
  .mode.wide { display: inline-flex; gap: 12px; width: auto; height: auto; padding: 10px 16px; border-radius: 999px; font-size: 15px; justify-self: start; align-self: flex-start; }
  .mode.wide span { display: inline; }
  :root[data-theme="light"] .mode.wide span.sun, :root:not([data-theme="light"]) .mode.wide span.moon { display: none; }
  .right { display: block; position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; scrollbar-width: none; padding: 12px 0 30px 28px; }
  .right::-webkit-scrollbar { display: none; }
  .mini-foot { display: none; }
}

/* ---------- Posts ---------- */
.post { position: relative; display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 10px; padding: 12px 16px 0; cursor: pointer; }
.post:hover { background: rgba(127, 120, 110, .04); }
.post.up { padding-top: 4px; }
.post.up::before { content: ""; position: absolute; left: 36px; top: 0; width: 2px; height: 6px; background: var(--line); }
.rail { display: flex; flex-direction: column; align-items: center; }
.post.down .rail::after { content: ""; flex: 1; width: 2px; margin-top: 4px; background: var(--line); border-radius: 2px; }
.avl { display: block; border-radius: 50%; }
.av { display: block; width: 42px; height: 42px; flex: none; border-radius: 50%; object-fit: cover; background: var(--paper); box-shadow: 0 0 0 .5px var(--line); }
.av.grp { border-radius: 24%; }
.av.letter { display: grid; place-items: center; width: var(--s); height: var(--s); color: var(--paper-ink); font-weight: 600; font-size: calc(var(--s) * .42); line-height: 1; }
img.av[width="20"] { width: 20px; height: 20px; } img.av[width="18"] { width: 18px; height: 18px; } img.av[width="32"] { width: 32px; height: 32px; }
img.av[width="34"] { width: 34px; height: 34px; } img.av[width="46"] { width: 46px; height: 46px; } img.av[width="56"] { width: 56px; height: 56px; }
img.av[width="96"] { width: 96px; height: 96px; }
.bd { min-width: 0; }
.meta { display: flex; align-items: baseline; gap: 5px; min-width: 0; white-space: nowrap; line-height: 1.3; }
.meta .nm { flex: none; max-width: 62%; overflow: hidden; text-overflow: ellipsis; font-weight: 650; font-size: 15.5px; letter-spacing: -0.01em; color: var(--ink); }
a.nm:hover { text-decoration: underline; }
.meta .hd { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 14.5px; color: var(--muted); }
.rep { margin-top: 1px; font-size: 14px; color: var(--muted); }
.rep a { color: var(--accent-text); }
.tx { margin-top: 2px; font-size: 16px; line-height: 1.45; white-space: pre-line; overflow-wrap: break-word; }
.tx.clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; }
.more { margin-top: 2px; font-size: 15px; color: var(--accent-text); }
.ph { display: block; margin-top: 8px; }
.ph img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; box-shadow: 0 0 0 .5px var(--line); }
.qt { display: block; margin-top: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; }
.qt:hover { background: var(--surface); }
.qt .meta { align-items: center; gap: 6px; }
.qt .av { width: 20px; height: 20px; }
.qt .meta .nm { font-size: 14.5px; }
.qt .meta .hd { font-size: 14px; }
.qx { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; margin-top: 3px; font-size: 14.5px; line-height: 1.4; white-space: pre-line; }
.vs { margin-top: 8px; padding: 11px 12px 12px; border-radius: 14px; background: var(--surface); cursor: auto; }
.vh { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 11.5px; font-weight: 600; letter-spacing: .05em; color: var(--muted); }
.vhide { font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 2px 4px; }
.vs p { margin-top: 4px; font-size: 15px; line-height: 1.5; user-select: text; }
.when { margin-top: 10px; font-size: 14.5px; color: var(--muted); }
.lk { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.lk .ic { width: 13px; height: 13px; color: var(--accent); }
.lk .av { width: 18px; height: 18px; }
.lk .av.letter { --s: 18px; }
.acts { display: flex; justify-content: space-between; max-width: 430px; margin: 2px 0 0 -8px; padding: 2px 0 6px; }
.acts button { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 0 8px; border-radius: 999px; font-size: 13.5px; color: var(--muted); }
.acts button:hover { color: var(--accent-text); background: var(--tint); }
.acts .a-vs span { max-width: 9.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acts .a-vs[aria-expanded="true"] { color: var(--accent-text); }
.post.big { padding-top: 14px; }
.post.big .tx { font-size: 19px; line-height: 1.45; margin-top: 6px; }
.post.big .meta { flex-direction: column; gap: 0; }
.post.big .meta .hd { font-size: 14.5px; }
.post.big .acts { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 4px; max-width: none; }
.thread { border-bottom: 1px solid var(--line); }
.morer { display: block; padding: 8px 16px 14px 68px; font-size: 15px; color: var(--accent-text); }
.morer:hover { text-decoration: underline; }

/* Section headings that stick: chapters, times, theme sections */
.when-head { position: sticky; top: var(--stick); z-index: 5; display: flex; align-items: center; gap: 10px; margin: 0; padding: 9px 16px;
  background: var(--bar); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
  font: 600 14px/1.3 var(--sans); color: var(--accent-text); scroll-margin-top: calc(var(--stick) + 4px); }
.when-head.num { font-size: 16px; color: var(--ink); }
.when-head i { display: inline-grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--accent); color: #fff; font: 600 13px/1 var(--sans); }

/* ---------- For you ---------- */
.intro { padding: 22px 16px 14px; }
.intro .hand { font-size: 24px; }
.intro h1, .pagehead h1, .profile h1 { font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; font-variation-settings: "SOFT" 50; }
.intro h1 { margin-top: 4px; font-size: clamp(28px, 7vw, 34px); line-height: 1.08; }
.intro p { margin-top: 8px; font-size: 15.5px; color: var(--muted); max-width: 34em; }
.whos { padding: 6px 0 14px; border-bottom: 1px solid var(--line); }
.whos h2 { padding: 0 16px 10px; font-size: 16px; font-weight: 650; }
.whos ul { display: flex; gap: 12px; overflow-x: auto; padding: 0 16px; scrollbar-width: none; }
.whos ul::-webkit-scrollbar { display: none; }
.whos li a { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 70px; text-align: center; font-size: 12.5px; line-height: 1.25; color: var(--muted); }
.whos .av { width: 56px; height: 56px; }
.whos .av.letter { --s: 56px; }
.scene { position: relative; }
.from { display: inline-flex; align-items: center; gap: 6px; margin: 14px 16px -4px; padding: 3px 10px 3px 8px; border-radius: 999px; background: var(--surface); font-size: 12.5px; font-weight: 600; color: var(--muted); }
.from .ic { width: 14px; height: 14px; }
.from:hover { color: var(--ink); }
.sentinel { display: grid; place-items: center; height: 90px; }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.noscript { padding: 16px; color: var(--muted); }
.noscript a { color: var(--accent-text); text-decoration: underline; }

/* The card in the timeline */
.feedcard { margin: 0; padding: 22px 18px 22px; border-bottom: 1px solid var(--line); background: var(--surface); }
.feedcard h2 { margin-top: 6px; font-family: var(--display); font-weight: 500; font-size: 23px; line-height: 1.15; letter-spacing: -0.015em; }
.feedcard p { margin-top: 8px; font-size: 15.5px; color: var(--muted); }
.feedcard .btn { margin-top: 14px; }

/* ---------- Page heads, pickers, pagers ---------- */
.pagehead { padding: 18px 16px 18px; }
.pagehead h1 { margin-top: 4px; font-size: clamp(28px, 7vw, 34px); line-height: 1.1; }
.pagehead p { margin-top: 8px; font-size: 15.5px; color: var(--muted); }
.pagehead .glance { font-size: 13.5px; color: var(--faint); }
.picker { margin: 0 0 12px; }
.picker summary { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px 7px 14px; border-radius: 999px; background: var(--surface); cursor: pointer; list-style: none; font-size: 15px; }
.picker summary::-webkit-details-marker { display: none; }
.picker summary .k { color: var(--muted); font-size: 13px; }
.picker summary .ic { width: 16px; height: 16px; color: var(--muted); transition: transform .15s; }
.picker[open] summary .ic { transform: rotate(180deg); }
.picker .booklist { margin-top: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; }
.booklist h3 { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.booklist h3 + ul + h3 { margin-top: 14px; }
.booklist ul { display: flex; flex-wrap: wrap; gap: 6px; }
.booklist a { display: inline-block; padding: 5px 11px; border-radius: 999px; background: var(--surface); font-size: 14px; }
.booklist a:hover { box-shadow: inset 0 0 0 1px var(--muted); }
.booklist a[aria-current="page"] { background: var(--accent); color: #fff; }
.bookpager { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 20px 16px 6px; }
.bookpager a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--surface); font-size: 13px; color: var(--muted); }
.bookpager a b { display: block; font-size: 16px; color: var(--ink); font-weight: 600; }
.bookpager .next { justify-content: flex-end; text-align: right; }
.bookpager a:hover { box-shadow: inset 0 0 0 1px var(--muted); }
.ic.flip { transform: rotate(180deg); }
.cast { padding: 22px 16px 10px; }
.cast h2 { font-size: 16px; font-weight: 650; margin-bottom: 10px; }
.cast ul { display: flex; flex-wrap: wrap; gap: 6px; }
.cast a { display: inline-flex; align-items: center; gap: 8px; padding: 3px 12px 3px 3px; border-radius: 999px; background: var(--surface); font-size: 14px; }
.cast a:hover { box-shadow: inset 0 0 0 1px var(--muted); }
.cast .av { width: 28px; height: 28px; }
.cast .av.letter { --s: 28px; }

/* ---------- Events and themes ---------- */
.cards { display: grid; gap: 14px; padding: 4px 16px 16px; }
.ecard, .tcard { display: block; padding: 18px; border-radius: 20px; background: var(--surface); }
.ecard:hover, .tcard:hover { box-shadow: inset 0 0 0 1px var(--muted); }
.stack { display: flex; margin-bottom: 12px; }
.stack .av { width: 34px; height: 34px; margin-right: -9px; box-shadow: 0 0 0 2px var(--surface); }
.stack .av.letter { --s: 34px; }
.ecard h2, .tcard h3 { font-family: var(--display); font-weight: 500; font-size: 22px; line-height: 1.15; letter-spacing: -0.015em; }
.ecard p, .tcard p { margin-top: 6px; font-size: 15px; color: var(--muted); }
.row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; }
.row b { color: var(--accent-text); font-weight: 600; font-size: 15px; }
.row span { color: var(--faint); font-size: 13px; }
.tgroup h2 { padding: 14px 16px 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
.tcard { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 14px; }
.tcard img { width: 96px; height: 96px; border-radius: 14px; object-fit: cover; background: var(--paper); }
.tcard h3 { font-size: 19px; }
.tcard p { font-size: 14.5px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.tcard .row { margin-top: 8px; }
.tart { background: var(--paper); }
.tart img { width: 100%; height: 300px; object-fit: cover; }
.note { padding: 14px 16px 6px; font-size: 16px; color: var(--ink); opacity: .82; }
.ending { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 40px 20px 24px; text-align: center; border-bottom: 1px solid var(--line); }
.cap { width: 36px; height: 4px; border-radius: 4px; background: var(--line); }
.ending > p { font-size: 17px; max-width: 30em; }
.ending > p.big { font-family: var(--display); font-size: 21px; line-height: 1.35; }
.carry { display: block; align-self: stretch; padding: 16px; border-radius: 20px; background: var(--surface); text-align: left; }
.carry:hover { box-shadow: inset 0 0 0 1px var(--muted); }
.carry .k { display: block; font-size: 13px; font-weight: 600; color: var(--accent-text); }
.carry b { display: block; margin-top: 2px; font-family: var(--display); font-weight: 500; font-size: 21px; }
.carry span:last-child { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }
.endcta { align-self: stretch; padding: 18px; border-radius: 20px; border: 1px solid var(--line); text-align: left; }
.endcta h2 { margin-top: 6px; font-family: var(--display); font-weight: 500; font-size: 21px; line-height: 1.2; letter-spacing: -0.015em; }
.endcta p { margin-top: 6px; font-size: 15.5px; color: var(--muted); }
.endcta .btn { margin-top: 12px; }
.restart { font-weight: 600; font-size: 15px; color: var(--accent-text); }

/* ---------- Profiles ---------- */
.profile { padding: 0 16px 16px; }
.banner { height: 120px; margin: 0 -16px; background: var(--panel); }
.pfp { margin-top: -48px; }
.pfp .av { width: 96px; height: 96px; box-shadow: 0 0 0 4px var(--bg); }
.pfp .av.letter { --s: 96px; }
.pfp.grp .av { box-shadow: none; }
.profile h1 { margin-top: 10px; font-size: 27px; line-height: 1.15; }
.handle { margin-top: 2px; font-size: 14.5px; color: var(--muted); }
.tagline { margin-top: 10px; font-family: var(--display); font-style: italic; font-size: 18px; line-height: 1.35; }
.bio { margin-top: 8px; font-size: 15.5px; line-height: 1.5; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.facts span { display: inline-flex; align-items: center; gap: 5px; }
.facts .ic { width: 15px; height: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tags li { padding: 5px 11px; border-radius: 999px; background: var(--surface); font-size: 13px; line-height: 1.35; }

.appears { padding: 4px 16px 18px; border-bottom: 1px solid var(--line); }
.appears h2 { margin: 12px 0 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.appears ul { display: flex; flex-wrap: wrap; gap: 6px; }
.appears a { display: inline-block; padding: 5px 11px; border-radius: 999px; background: var(--surface); font-size: 14px; }
.appears a:hover { box-shadow: inset 0 0 0 1px var(--muted); }

/* ---------- How Story is made ---------- */

.pagehead .how, .intro .how, .profile .how { margin-top: 10px; font-size: 13.5px; }
.how a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.how a:hover { color: var(--ink); }
.howto { padding: 0 16px 28px; }
.howto p { margin-top: 14px; font-size: 16px; line-height: 1.55; max-width: 34em; }
.howto a { color: var(--accent-text); }

/* ---------- The right column ---------- */
.rc-get { padding: 20px; border-radius: 20px; background: var(--paper); color: var(--paper-ink); }
.rc-get .hand { color: #c2412c; }
.rc-get h2 { margin-top: 4px; font-family: var(--display); font-weight: 500; font-size: 26px; letter-spacing: -0.02em; color: var(--paper-ink); }
.rc-get p { margin-top: 6px; font-size: 15px; color: #5f5a52; }
.rc-get .btn { margin-top: 14px; background: #151515; color: #fff; width: 100%; }
.rc-box { margin-top: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 20px; }
.rc-box h2 { font-size: 19px; font-weight: 650; letter-spacing: -0.02em; margin-bottom: 8px; }
.rc-themes a { display: flex; align-items: center; gap: 12px; padding: 7px 0; font-size: 15px; font-weight: 500; }
.rc-themes img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--paper); }
.rc-events a { display: block; padding: 7px 0; }
.rc-events b { display: block; font-size: 15px; font-weight: 600; }
.rc-events span { font-size: 13px; color: var(--faint); }
.rc-themes a:hover span, .rc-events a:hover b { text-decoration: underline; }
.rc-all { display: inline-block; margin-top: 6px; font-size: 14.5px; color: var(--accent-text); }
.books summary { cursor: pointer; font-size: 17px; font-weight: 650; list-style: none; display: flex; justify-content: space-between; }
.books summary::-webkit-details-marker { display: none; }
.books summary::after { content: "+"; color: var(--accent-text); font-weight: 400; font-size: 22px; line-height: 1; }
.books[open] summary::after { content: "\2212"; }
.books .booklist { margin-top: 12px; }
.books .booklist a { font-size: 13px; padding: 4px 9px; }
.rc-foot { margin-top: 16px; padding: 0 6px; font-size: 12.5px; color: var(--faint); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.rc-foot a:hover { text-decoration: underline; }
.rc-foot p { flex-basis: 100%; margin-top: 4px; }

/* ---------- A thread, over the page ---------- */
.ov { position: fixed; inset: 0; z-index: 50; }
.ov[hidden] { display: none; }
.ov-back { position: absolute; inset: 0; background: var(--shade); }
.ov-panel { position: absolute; top: 0; bottom: 0; left: 50%; width: min(600px, 100%); transform: translateX(-50%); overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.ov-panel .colhead { position: sticky; top: 0; z-index: 6; background: var(--bar); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.ov-panel .when-head { top: 53px; }
.ov-body { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
.ov-body .from { margin-bottom: 4px; }
.none { padding: 30px 16px; text-align: center; font-size: 14px; color: var(--muted); }
.ov-body .spin { margin: 60px auto; }
body.locked { overflow: hidden; }

/* ---------- The app sheet ---------- */
.sheet { width: 100%; max-width: 480px; margin: auto auto 0; padding: 0; border: 0; border-radius: 24px 24px 0 0; background: var(--surface); color: var(--ink); }
.sheet::backdrop { background: var(--shade); }
.sheet-in { display: flex; flex-direction: column; align-items: flex-start; padding: 12px 22px calc(22px + env(safe-area-inset-bottom)); }
.tab-mark { align-self: center; width: 36px; height: 4px; margin-bottom: 16px; border-radius: 4px; background: var(--line); }
.sheet h2 { margin-top: 4px; font-family: var(--display); font-weight: 500; font-size: 25px; line-height: 1.15; letter-spacing: -0.015em; }
.sheet p { margin-top: 8px; font-size: 15.5px; color: var(--muted); }
.sheet .btn { margin-top: 18px; width: 100%; }
.sheet-close { align-self: center; margin-top: 12px; padding: 8px 14px; font-size: 15px; color: var(--muted); }
@media (min-width: 760px) { .sheet { margin: auto; border-radius: 24px; } .tab-mark { display: none; } .sheet-in { padding: 26px 26px 22px; } }

.toast { position: fixed; z-index: 70; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translate(-50%, 10px); padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-size: 14.5px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2.4s; } .toast { transition: none; } }
.ov-panel:focus { outline: none; }
.cookie-link { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.cookie-link:hover, .mini-foot .cookie-link { text-decoration: underline; text-underline-offset: 3px; }
