/* cristinalilianacalin.com — fiction author site
   Palette: cool paper, deep bottle green, periwinkle banner, status dots (green/amber). */
:root {
  --paper: #eef0eb;
  --paper-2: #e3e7e0;
  --ink: #17201c;
  --muted: #4f5b55;
  --green: #173f35;
  --green-2: #0f2c25;
  --mint: #d9e8df;
  --peri: #b8b5ef;
  --dot-green: #3c9a6c;
  --dot-amber: #e0a43a;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 72rem;
  /* Each series page sets --accent / --accent-deep / --tint on <body> (from _data/catalog.json). */
  --accent: var(--green);
  --accent-deep: var(--green-2);
  --tint: var(--mint);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
  font-optical-sizing: auto;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.dark :focus-visible { outline-color: var(--peri); }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.mono { font-family: var(--mono); font-size: .8rem; letter-spacing: .01em; }

/* Header */
.site-head { border-bottom: 1px solid #c9d0c8; }
.site-head .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1rem; padding-bottom: 1rem; }
.brand { font-size: 1.2rem; font-weight: 500; color: var(--ink); text-decoration: none; letter-spacing: .005em; }
.brand em { font-style: italic; color: var(--green); }
.site-nav { display: flex; gap: 1.25rem; flex-wrap: wrap; font-family: var(--mono); font-size: .82rem; }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 3.5rem 0 4.5rem; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.kicker { font-family: var(--mono); font-size: .82rem; color: var(--muted); margin: 0 0 1rem; }
.kicker .dot { margin-right: .35rem; }
h1, h2, h3 { font-weight: 400; line-height: 1.12; margin: 0; }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.3rem); letter-spacing: -.015em; }
.hero h1 em { color: var(--green); }
.hero .lede { font-size: 1.3rem; max-width: 34ch; color: var(--muted); margin: 1.4rem 0 2rem; }

/* The one memorable thing: the banner that came loose */
.banner {
  position: absolute; top: 1.1rem; right: 6%;
  background: var(--peri); color: var(--ink);
  font-family: var(--mono); font-size: .9rem; letter-spacing: .3em;
  padding: .45rem 1.6rem .45rem 1.6rem;
  transform-origin: left top; transform: rotate(-4.5deg);
  box-shadow: 0 6px 12px -8px rgba(23,32,28,.5);
  white-space: nowrap; user-select: none;
}
.banner::before { /* the bit of tape that still holds */
  content: ""; position: absolute; left: -.4rem; top: -.35rem; width: 2.2rem; height: 1rem;
  background: rgba(255,255,255,.55); transform: rotate(-8deg);
}
.banner .fold { display: inline-block; transform: translateY(.3em) rotate(14deg); opacity: .65; }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn {
  display: inline-block; font-family: var(--mono); font-size: .88rem;
  padding: .8rem 1.15rem; border-radius: 3px; text-decoration: none;
  border: 1.5px solid var(--green); color: var(--green); background: transparent;
}
.btn:hover { background: var(--mint); }
.btn.solid { background: var(--green); color: #f4f6f2; }
.btn.solid:hover { background: var(--green-2); }
.dark .btn { border-color: var(--tint); color: var(--tint); }
.dark .btn:hover { background: rgba(217,232,223,.12); }
.dark .btn.solid { background: var(--peri); border-color: var(--peri); color: var(--ink); }
.dark .btn.solid:hover { background: #cfcdf6; }
.note { font-family: var(--mono); font-size: .78rem; color: var(--muted); margin: .9rem 0 0; }
.dark .note { color: #b9cbbf; }

/* Placeholder cover (TODO: final cover) */
.cover-wrap { justify-self: center; text-align: center; }
.cover {
  --c: var(--accent);
  position: relative; width: min(19rem, 72vw); aspect-ratio: 2 / 3;
  background: linear-gradient(90deg, rgba(0,0,0,.35) 0, rgba(0,0,0,.18) 4%, transparent 9%, rgba(255,255,255,.04) 60%, transparent 100%), var(--c);
  color: #eef3ee; text-align: left;
  padding: 1.6rem 1.4rem 1.4rem 1.9rem;
  display: flex; flex-direction: column;
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 18px 24px 40px -22px rgba(15,44,37,.75), 4px 6px 10px -6px rgba(0,0,0,.35);
  border-radius: 2px 5px 5px 2px;
}
.cover::after { content: ""; position: absolute; inset: .7rem .7rem .7rem 1.2rem; border: 1px solid rgba(217,232,223,.28); pointer-events: none; }
.cover .series { font-family: var(--mono); font-size: .66rem; letter-spacing: .06em; color: #b9cbbf; }
.cover .title { font-size: 2.55rem; line-height: 1.02; margin-top: auto; letter-spacing: -.01em; }
.cover .title i { display: block; color: var(--peri); }
.cover .status { font-family: var(--mono); font-size: .66rem; color: #b9cbbf; margin: 1.1rem 0 auto; display: flex; align-items: center; gap: .4rem; }
.cover .author { font-size: 1rem; letter-spacing: .04em; border-top: 1px solid rgba(217,232,223,.3); padding-top: .7rem; }
.cover-cap { font-family: var(--mono); font-size: .74rem; color: var(--muted); margin-top: 1rem; }

.dot { display: inline-block; width: .62em; height: .62em; border-radius: 50%; background: var(--dot-green); vertical-align: middle; }
.dot.amber { background: var(--dot-amber); }

/* Sections */
section { padding: 4.5rem 0; }
.dark { background: var(--accent); color: #eef3ee; }
.dark a { color: var(--tint); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); letter-spacing: -.01em; }
.sub { font-family: var(--mono); font-size: .82rem; color: var(--muted); margin: 0 0 .9rem; }
.dark .sub { color: #b9cbbf; }

.book-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3.5rem; align-items: start; }
.hook { font-size: clamp(1.6rem, 3vw, 2.15rem); line-height: 1.25; font-style: italic; margin: 0; color: #fff; }
.hook-src { font-family: var(--mono); font-size: .78rem; color: #b9cbbf; margin-top: 1rem; }
.blurb p { margin: 0 0 1.1rem; max-width: 60ch; }
.facts { list-style: none; padding: 0; margin: 1.6rem 0 1.8rem; font-family: var(--mono); font-size: .84rem; display: grid; gap: .35rem; }
.facts span { color: #b9cbbf; display: inline-block; min-width: 7.5rem; }

.excerpt { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: start; }
.excerpt blockquote { margin: 0; font-size: 1.25rem; line-height: 1.65; border-left: 2px solid var(--peri); padding-left: 1.5rem; }
.excerpt blockquote p { margin: 0 0 1rem; }

/* Series */
.series-list { margin-top: 2.2rem; border-top: 1px solid #c3cbc2; }
.series-item { border-bottom: 1px solid #c3cbc2; }
.series-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1.15rem 0; }
.series-item summary::-webkit-details-marker { display: none; }
.series-item summary h3 { font-size: 1.5rem; }
.series-item summary .mono { color: var(--muted); white-space: nowrap; }
.series-item summary .mono::after { content: " +"; }
.series-item[open] summary .mono::after { content: " \2013"; }
.series-item ol { margin: 0 0 1.4rem; padding-left: 1.6rem; columns: 2 18rem; column-gap: 3rem; }
.series-item li { margin-bottom: .35rem; break-inside: avoid; }
.series-item li .mono { color: var(--muted); }
.series-item .desc { margin: -.4rem 0 1rem; color: var(--muted); max-width: 60ch; }

/* About */
.about { display: grid; grid-template-columns: .75fr 1.25fr; gap: 3.5rem; align-items: center; }
.about figure { margin: 0; }
.about p { max-width: 58ch; margin: 0 0 1.1rem; }

/* Newsletter */
.letter { text-align: left; }
.letter .wrap { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.letter p { margin: .6rem 0 0; max-width: 46ch; }

/* Footer */
.site-foot { padding: 3rem 0 3.5rem; border-top: 1px solid #c3cbc2; font-size: 1rem; }
.site-foot .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.site-foot ul { list-style: none; padding: 0; margin: .5rem 0 0; }
.site-foot li { margin-bottom: .45rem; }
.site-foot .mono { color: var(--muted); }
.site-foot small { display: block; margin-top: 1.4rem; color: var(--muted); font-family: var(--mono); font-size: .74rem; }

/* Chapter reading page */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--dot-green); z-index: 5; }
.reader { padding: 3.5rem 1.25rem 2rem; }
.reader header, .reader .text, .reader .after { max-width: 39rem; margin: 0 auto; } /* ~65ch at reading size */
.reader header { margin-bottom: 3rem; }
.reader header .sub { margin-bottom: 1.2rem; }
.reader h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.reader h1 + p { color: var(--muted); margin: .8rem 0 0; font-style: italic; }
.text { font-size: 1.2rem; line-height: 1.68; hyphens: auto; -webkit-hyphens: auto; }
.text p { margin: 0; text-indent: 1.5em; }
.text p.first, .text .brk + p { text-indent: 0; }
.text p.first::first-line { font-variant-caps: small-caps; letter-spacing: .03em; }
.text .brk { text-align: center; margin: 2.2rem 0; display: flex; justify-content: center; gap: .55rem; }
.reader .after { margin: 4.5rem auto 0; padding: 2.5rem 0 0; border-top: 1px solid #c3cbc2; }
.after h2 { font-size: 1.8rem; margin-bottom: .8rem; }
.after p { margin: 0 0 1.4rem; }

/* 404 */
.lost { padding: 6rem 0; }
.lost h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 1rem; }

@media (max-width: 860px) {
  .hero .wrap, .book-grid, .excerpt, .about { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero { padding-top: 4.5rem; }
  .site-foot .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  body { font-size: 1.06rem; }
  .text { font-size: 1.12rem; }
  .banner { font-size: .68rem; letter-spacing: .2em; top: .9rem; right: 1rem; }
  .btn { width: 100%; text-align: center; }
  .series-item summary { flex-direction: column; gap: .2rem; }
}
@media print {
  .site-head, .site-foot, .progress, .after .btns { display: none; }
  body { background: #fff; }
}

.why-h{margin:1.6rem 0 .5rem;font-size:1.15rem;font-weight:600}
.sig{font-style:italic;white-space:nowrap}


/* ---------- Restructure (Nov 2026): author-first home, series and book pages ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.h3 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.paper-2 { background: var(--paper-2); }
.intro { max-width: 58ch; margin: 1rem 0 0; color: var(--muted); }
.dark .intro { color: #c9d6cd; }
.muted { color: var(--muted); }
a.plain { color: inherit; text-decoration: none; }
a.plain:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.dot.hollow { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; opacity: .7; }
.btn.is-pending { opacity: .55; cursor: not-allowed; border-style: dashed; }
.btn.solid.is-pending { background: transparent; color: inherit; }
.dark .btn.solid.is-pending { background: transparent; color: var(--tint); border-color: var(--tint); }
.site-nav a[aria-current] { text-decoration: underline; }

/* Home hero: the author, and a shelf of her series */
.home-hero { padding: 4rem 0 4.5rem; }
.home-hero h1 { max-width: 13ch; }
.home-hero .lede { max-width: 38ch; }
.shelf-wrap { position: relative; justify-self: end; width: min(100%, 27rem); padding-top: 4.5rem; }
.shelf { display: flex; align-items: flex-end; gap: .35rem; height: 21rem; border-bottom: 6px solid #c3cbc2; padding: 0 .4rem; }
.spine {
  flex: 1 1 0; max-width: 3.4rem; min-width: 0;
  height: calc(13.5rem + var(--n, 5) * .6rem);
  background: linear-gradient(90deg, rgba(0,0,0,.22), transparent 18%, transparent 82%, rgba(0,0,0,.18)), var(--accent);
  color: #f1f4f0; text-decoration: none; border-radius: 2px 2px 0 0;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: .8rem 0 .6rem;
  transition: transform .2s ease;
}
.spine:nth-child(2n) { height: calc(12.5rem + var(--n, 5) * .65rem); }
.spine:nth-child(3n) { transform: rotate(-2.5deg); transform-origin: bottom left; margin-left: .3rem; }
.spine:hover, .spine:focus-visible { transform: translateY(-.6rem); }
.spine-title { writing-mode: vertical-rl; transform: rotate(180deg); font-size: .92rem; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-height: 100%; }
.spine-n { font-family: var(--mono); font-size: .7rem; color: var(--tint); }
.shelf-cap { font-family: var(--mono); font-size: .76rem; color: var(--muted); margin: .9rem 0 0; }
/* the baby spider from the balcony, on her thread */
.thread { position: absolute; top: -4rem; left: 62%; width: 1px; height: 7.6rem; background: #8c968f; transform-origin: top center; animation: sway 6s ease-in-out infinite; }
.spider { position: absolute; bottom: -1.1rem; left: -.68rem; color: var(--ink); }
@keyframes sway { 0%, 100% { transform: rotate(2deg); } 50% { transform: rotate(-2deg); } }

/* Featured new book */
.featured { position: relative; overflow: hidden; padding: 5.5rem 0 5rem; }
.featured .banner { top: 1.4rem; right: 8%; }
.featured-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3.5rem; align-items: center; }
.featured h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.featured .kicker { color: #c9d6cd; }
.featured .hook { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin: 1.8rem 0 1rem; }
.blurb-short { max-width: 52ch; margin: 0 0 1.8rem; color: #dfe8e2; }
.buy-row { margin-top: .75rem; }
.featured .cover-cap { color: #b9cbbf; }

/* Series grid (home) */
.series-grid { list-style: none; padding: 0; margin: 2.2rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; }
.series-card {
  display: grid; gap: .3rem; padding: 1.3rem 0 1.4rem 1.2rem; border-top: 1px solid #c3cbc2;
  color: var(--ink); text-decoration: none; position: relative;
}
.series-card::before { content: ""; position: absolute; left: 0; top: 1.4rem; bottom: 1.5rem; width: 4px; background: var(--accent); border-radius: 2px; }
.series-card:hover .card-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.card-genre { font-family: var(--mono); font-size: .76rem; color: var(--muted); }
.card-title { font-size: 1.55rem; line-height: 1.15; }
.card-line { color: var(--muted); max-width: 46ch; }
.card-meta { font-family: var(--mono); font-size: .76rem; color: var(--muted); margin-top: .35rem; }
.card-meta .dot { margin-right: .4rem; }

/* Young readers band: see the young readers zone block at the end of this file. */

/* Watch and listen */
.watch-band.quiet { padding: 2.6rem 0; border-top: 1px solid #c3cbc2; }
.watch-quiet { display: grid; grid-template-columns: .5fr 1.5fr; gap: 2rem; align-items: baseline; }
.watch-quiet p { margin: 0; max-width: 64ch; color: var(--muted); }
.watch-soon { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.watch-soon .intro { margin-bottom: 1.8rem; }
.ep-titles { list-style: none; padding: 0; margin: .8rem 0 0; columns: 2 13rem; column-gap: 2rem; color: var(--muted); }
.ep-titles li { break-inside: avoid; padding: .28rem 0; border-bottom: 1px dotted #c3cbc2; font-size: 1rem; }
.ep-titles .mono { display: inline-block; min-width: 1.8rem; font-size: .72rem; }
.ep-grid { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 2rem; }
.ep-title { margin: .7rem 0 .2rem; display: grid; gap: .15rem; font-size: 1.2rem; }
.ep-title .mono { color: var(--muted); }
.ep-links { margin: .3rem 0 0; color: var(--muted); }
.yt { position: relative; aspect-ratio: 16 / 9; background: #10171a; border-radius: 3px; overflow: hidden; }
.yt iframe, .yt-play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play { padding: 0; cursor: pointer; background: #10171a; }
.yt-play img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.yt-icon { position: absolute; left: 50%; top: 50%; width: 4.2rem; height: 4.2rem; margin: -2.1rem 0 0 -2.1rem; border-radius: 50%; background: rgba(23,32,28,.78); }
.yt-icon::after { content: ""; position: absolute; left: 1.6rem; top: 1.25rem; border-style: solid; border-width: .85rem 0 .85rem 1.35rem; border-color: transparent transparent transparent #fff; }
.yt-play:hover .yt-icon, .yt-play:focus-visible .yt-icon { background: var(--accent); }
.parts { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.4rem 0 .3rem; }
.part-btn { font: inherit; font-size: .82rem; padding: .45rem .8rem; border: 1.5px solid var(--accent); background: transparent; color: var(--accent); border-radius: 3px; cursor: pointer; }
.part-btn[aria-pressed="true"] { background: var(--accent); color: #fff; }
.ep-wrap { max-width: 52rem; }
.ep-wrap h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: .8rem; }
.ep-wrap .yt { margin-top: 1.4rem; }
.ep-text { max-width: 60ch; margin-top: 1.6rem; }
.lens { border-left: 2px solid var(--peri); padding-left: 1.2rem; }
.lens .mono { display: block; color: var(--muted); margin-bottom: .3rem; }
.ep-nav { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px solid #c3cbc2; }

/* Series page */
.series-hero { padding: 4.5rem 0 4rem; position: relative; overflow: hidden; }
.series-hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -.015em; max-width: 18ch; }
.series-hero .lede { font-size: 1.35rem; max-width: 40ch; color: #e6ede8; margin: 1.2rem 0 0; }
.series-hero .sub { color: var(--tint); opacity: .85; }
.series-count { margin: 1.6rem 0 0; color: var(--tint); }
.series-hero::after { /* the series mood: one wide band of the tint */
  content: ""; position: absolute; right: -6rem; top: -6rem; width: 22rem; height: 22rem; border-radius: 50%;
  background: radial-gradient(circle, var(--tint) 0, transparent 68%); opacity: .14; pointer-events: none;
}
.young .series-hero { background: radial-gradient(circle at 80% 10%, rgba(184,181,239,.3), transparent 45%), repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 22px), var(--accent); }
.book-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid #c3cbc2; }
.book-row { display: grid; grid-template-columns: 5.5rem 1fr auto; gap: 1rem; align-items: baseline; padding: 1.1rem 0; border-bottom: 1px solid #c3cbc2; }
.row-n { color: var(--muted); }
.row-main { display: grid; gap: .3rem; }
.row-title { font-size: 1.45rem; line-height: 1.2; }
.book-row.is-out .row-title a { color: var(--accent); }
.row-blurb { color: var(--muted); max-width: 60ch; }
.row-links { font-family: var(--mono); font-size: .8rem; }
.row-status { color: var(--muted); white-space: nowrap; }
.row-status .dot { color: var(--muted); }
.book-list.compact { margin-top: 1.6rem; }
.book-list.compact .row-title { font-size: 1.2rem; }
.book-row[aria-current] .row-title { font-style: italic; }
.book-row[aria-current] .row-title::after { content: " (this book)"; font-family: var(--mono); font-size: .74rem; font-style: normal; color: var(--muted); }
.other-series { list-style: none; padding: 0; margin: 1.4rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; }
.other-series a { color: var(--ink); }
.swatch { display: inline-block; width: .7rem; height: .7rem; border-radius: 2px; background: var(--accent); margin-right: .5rem; vertical-align: .05em; }

/* Book page */
.book-hero .sub { margin-bottom: 1.2rem; }
.book-hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); letter-spacing: -.015em; }
.book-hero h1 + .lede { margin-top: 1.2rem; }

/* Parents and teachers (young-readers pages only) */
.parents { background: var(--tint); }
.parents .wrap { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.parents p { max-width: 54ch; }

@media (max-width: 860px) {
  .featured-grid, .watch-soon, .watch-quiet { grid-template-columns: 1fr; gap: 2.2rem; }
  .featured-grid .cover-wrap { order: 2; }
  .series-grid { grid-template-columns: 1fr; }
  .shelf-wrap { justify-self: stretch; width: 100%; padding-top: 3rem; }
  .shelf { height: 20rem; }
  .spine { height: calc(13.5rem + var(--n, 5) * .55rem); }
  .spine:nth-child(2n) { height: calc(12.8rem + var(--n, 5) * .6rem); }
  .thread { left: 70%; top: -3rem; height: 6rem; }
  .featured { padding-top: 5rem; }
}
@media (max-width: 560px) {
  .book-row { grid-template-columns: 1fr; gap: .25rem; }
  .spine-title { font-size: .78rem; }
  .facts li { display: grid; grid-template-columns: 6rem 1fr; }
  .facts span { min-width: 0; }
}

/* ---------- Young readers zone (Nov 2026): home band + series page ----------
   Deep space navy to electric blue/violet, mint-cyan accent. Starfield canvas and the
   scramble/tilt/game behaviour live in young.js (no data leaves the page). */
.zone, .zone-page {
  --z-bg: #060a1c; --z-bg2: #0c1238; --z-panel: #0d1440;
  --z-blue: #4f7dff; --z-violet: #a274ff; --z-cyan: #5ef0d4;
  --z-ink: #eef1ff; --z-mute: #aeb7e0; --z-line: rgba(160,175,255,.18);
  --z-holo: linear-gradient(115deg, #5ef0d4, #4f7dff 35%, #a274ff 65%, #ff8fd8 85%, #5ef0d4);
}
.zone { position: relative; color: var(--z-ink); background: var(--z-bg); }
.zone :focus-visible { outline: 3px solid var(--z-cyan); outline-offset: 3px; }
.zone a { color: var(--z-cyan); }
.z-stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.zone .wrap { position: relative; z-index: 1; }
.z-kicker { color: var(--z-cyan); margin: 0 0 1rem; display: flex; align-items: center; gap: .55rem; letter-spacing: .04em; }
.z-pulse { width: .55rem; height: .55rem; border-radius: 50%; background: var(--z-cyan); box-shadow: 0 0 0 0 rgba(94,240,212,.6); animation: zpulse 2.4s ease-out infinite; flex: none; display: inline-block; }
@keyframes zpulse { 0% { box-shadow: 0 0 0 0 rgba(94,240,212,.55); } 70%, 100% { box-shadow: 0 0 0 .7rem rgba(94,240,212,0); } }
.z-title {
  font-family: var(--mono); font-weight: 500; letter-spacing: -.045em; line-height: 1.02;
  font-size: clamp(2.5rem, 6.4vw, 5.2rem); max-width: 12ch;
  background: linear-gradient(100deg, #fff 0 45%, #b9f9ec 62%, #a9b9ff 80%, #d2b8ff); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none;
}
.z-title [data-scramble] { display: inline; }
.z-lede { font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.45; max-width: 36ch; color: #dfe4ff; margin: 1.3rem 0 0; }
.z-small, .z-copy { color: var(--z-mute); max-width: 52ch; margin: 1rem 0 0; }
.z-fine { font-family: var(--mono); font-size: .76rem; line-height: 1.55; color: var(--z-mute); max-width: 46ch; margin: 1.4rem 0 0; padding: .7rem .9rem; border: 1px dashed rgba(94,240,212,.4); border-radius: 8px; }
.z-note { font-family: var(--mono); font-size: .76rem; color: var(--z-mute); max-width: 52ch; margin: .9rem 0 0; }
.z-h2 { font-family: var(--mono); font-weight: 500; letter-spacing: -.035em; font-size: clamp(1.8rem, 3.6vw, 2.8rem); color: #fff; }
.z-h3 { font-family: var(--mono); font-weight: 500; letter-spacing: -.03em; font-size: clamp(1.35rem, 2.4vw, 1.7rem); color: #fff; }

/* Buttons and chips */
.z-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.9rem;
  font-family: var(--mono); font-size: .88rem; font-weight: 500; text-decoration: none; cursor: pointer;
  padding: .75rem 1.2rem; border-radius: 999px; border: 0; color: #050818 !important;
  background: linear-gradient(100deg, var(--z-cyan), #8fb0ff 60%, #c9a8ff); background-size: 160% 100%;
  box-shadow: 0 0 0 1px rgba(255,255,255,.15) inset, 0 10px 30px -12px rgba(94,240,212,.7);
  transition: background-position .4s ease, transform .2s ease, box-shadow .2s ease;
}
.z-btn:hover { background-position: 100% 0; transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset, 0 14px 34px -12px rgba(162,116,255,.8); }
.z-btn.ghost { background: rgba(94,240,212,.06); color: var(--z-ink) !important; box-shadow: 0 0 0 1.5px rgba(94,240,212,.55) inset; }
.z-btn.ghost:hover { background: rgba(94,240,212,.14); }
.z-btn.is-pending { background: transparent; color: var(--z-mute) !important; box-shadow: 0 0 0 1.5px rgba(174,183,224,.45) inset; border: 0; cursor: not-allowed; transform: none; background-image: repeating-linear-gradient(135deg, rgba(174,183,224,.08) 0 6px, transparent 6px 12px); }
.z-chip { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--mono); font-size: .85rem; padding: .6rem 1rem; border-radius: 999px; color: var(--z-ink); box-shadow: 0 0 0 1px var(--z-line) inset; background: rgba(255,255,255,.03); }
.z-status { font-family: var(--mono); font-size: .72rem; color: var(--z-mute); padding: .15rem .55rem; border-radius: 999px; box-shadow: 0 0 0 1px var(--z-line) inset; white-space: nowrap; }
.z-status.live { color: #04120f; background: var(--z-cyan); box-shadow: none; }

/* Hero (series page) */
.zone-page { background: var(--z-bg); }
.zone-page .site-head { background: var(--z-bg); border-bottom-color: var(--z-line); }
.zone-page .brand, .zone-page .site-nav a { color: var(--z-ink); }
.zone-page .brand em { color: var(--z-cyan); }
.zone-page :focus-visible { outline-color: var(--z-cyan); }
.zone-page .site-foot { background: #04071a; color: var(--z-mute); border-top-color: var(--z-line); }
.zone-page .site-foot a { color: var(--z-ink); }
.zone-page .site-foot .mono, .zone-page .site-foot small { color: var(--z-mute); }
.z-hero {
  position: relative; overflow: hidden; padding: 5rem 0 5.5rem;
  background:
    radial-gradient(60rem 30rem at 85% 0%, rgba(162,116,255,.30), transparent 60%),
    radial-gradient(50rem 28rem at 0% 100%, rgba(79,125,255,.28), transparent 60%),
    linear-gradient(180deg, var(--z-bg) 0%, var(--z-bg2) 100%);
}
.z-hero::before { /* circuit grid */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(rgba(94,240,212,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(94,240,212,.07) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 75% 45%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 80% at 75% 45%, #000 20%, transparent 75%);
}
.z-hero::after, .young-band.zone::after { /* scan-lines + holographic bottom edge */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.028) 0 1px, transparent 1px 3px);
  border-bottom: 2px solid transparent; border-image: var(--z-holo) 1;
}
.z-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.z-crumb { color: var(--z-mute); margin: 0 0 1.4rem; }
.z-crumb a { color: var(--z-ink); }
.z-lines { margin: 1.4rem 0 0; display: grid; gap: .15rem; font-style: italic; font-size: 1.15rem; color: #c8d0ff; }
.z-lines span::before { content: "// "; font-family: var(--mono); font-style: normal; font-size: .85rem; color: var(--z-cyan); }
.z-series { color: var(--z-mute); margin: 1.6rem 0 0; }
.z-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }

/* The one memorable thing: Book 1 as a hologram over a projector */
.z-holo-stage { position: relative; height: 26rem; display: grid; place-items: center; perspective: 900px; }
.z-holo-book {
  position: relative; width: 13.5rem; aspect-ratio: 2 / 3; padding: 1.3rem 1.2rem; border-radius: 10px;
  display: flex; flex-direction: column; gap: .7rem; color: #fff;
  background: linear-gradient(160deg, rgba(94,240,212,.20), rgba(79,125,255,.16) 45%, rgba(162,116,255,.24)), rgba(10,16,50,.55);
  box-shadow: 0 0 0 1px rgba(160,220,255,.45) inset, 0 0 40px rgba(94,240,212,.25), 0 0 90px rgba(162,116,255,.25);
  backdrop-filter: blur(2px);
  transform: rotateY(-16deg) rotateX(6deg); animation: zfloat 7s ease-in-out infinite;
}
.z-holo-book::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: repeating-linear-gradient(0deg, rgba(255,255,255,.07) 0 1px, transparent 1px 4px); pointer-events: none; }
.z-holo-book .mono { color: #bff7ea; font-size: .72rem; }
.z-holo-book-title { font-family: var(--mono); font-weight: 500; font-size: 1.35rem; line-height: 1.1; letter-spacing: -.03em; margin-top: auto; }
.z-holo-book .z-status { align-self: flex-start; }
.z-holo-book-author { font-size: .9rem; color: #d8ddff; border-top: 1px solid rgba(190,220,255,.35); padding-top: .6rem; }
@keyframes zfloat { 0%, 100% { transform: rotateY(-16deg) rotateX(6deg) translateY(0); } 50% { transform: rotateY(-8deg) rotateX(3deg) translateY(-12px); } }
.z-beam { position: absolute; bottom: 0; left: 50%; width: 14rem; height: 9rem; transform: translateX(-50%); background: radial-gradient(ellipse 50% 100% at 50% 100%, rgba(94,240,212,.35), transparent 70%); filter: blur(4px); pointer-events: none; }
.z-ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px dashed rgba(94,240,212,.35); transform: translate(-50%, -50%); animation: zspin 40s linear infinite; }
.z-ring.r1 { width: 22rem; height: 22rem; }
.z-ring.r2 { width: 17rem; height: 17rem; border: 1px solid rgba(162,116,255,.35); border-left-color: transparent; border-right-color: transparent; animation-duration: 18s; animation-direction: reverse; }
@keyframes zspin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* Find your shelf */
.z-shelf { padding: 2.2rem 0; background: #080d27; border-bottom: 1px solid var(--z-line); }
.z-shelf-grid { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem 2.5rem; align-items: center; }
.z-shelf .z-h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.shelf-pods { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.shelf-pod { display: grid; gap: .25rem; padding: .9rem 1rem; border-radius: 12px; box-shadow: 0 0 0 1px var(--z-line) inset; background: rgba(255,255,255,.02); color: var(--z-mute); }
.shelf-pod .z-status { justify-self: start; margin-top: .3rem; }
.pod-age { color: var(--z-ink); font-size: .95rem; }
.pod-label { font-size: 1.05rem; }
.shelf-pod.live { color: #fff; background: linear-gradient(var(--z-panel), var(--z-panel)) padding-box, var(--z-holo) border-box; border: 1.5px solid transparent; box-shadow: 0 0 30px -10px rgba(94,240,212,.6); }
.shelf-pod.live .pod-age { color: var(--z-cyan); }

/* Holographic book cards */
.z-books { padding: 5rem 0; background: linear-gradient(180deg, var(--z-bg2), var(--z-bg)); }
.holo-grid { list-style: none; padding: 0; margin: 2.4rem 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.1rem; perspective: 1000px; }
.holo {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 0%;
  position: relative; display: flex; flex-direction: column; gap: .9rem; min-height: 12.5rem; padding: 1.1rem 1.1rem 1.2rem;
  border-radius: 14px; border: 1px solid transparent; color: var(--z-ink); text-decoration: none;
  background: linear-gradient(160deg, #111a4e, #0a0f33 70%) padding-box, linear-gradient(140deg, rgba(94,240,212,.55), rgba(79,125,255,.25) 40%, rgba(162,116,255,.55)) border-box;
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d;
  transition: transform .25s ease, box-shadow .25s ease;
  overflow: hidden;
}
.holo::before { /* holographic sheen that follows the pointer */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .0; transition: opacity .25s ease;
  background: radial-gradient(18rem circle at var(--mx) var(--my), rgba(94,240,212,.20), rgba(162,116,255,.12) 40%, transparent 65%);
}
.holo::after { /* faint scan-lines */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px);
}
.holo:hover, .holo:focus-within, a.holo:focus-visible { box-shadow: 0 0 0 1px rgba(94,240,212,.5), 0 18px 50px -18px rgba(94,240,212,.55), 0 10px 60px -20px rgba(162,116,255,.7); }
.holo:hover::before, .holo:focus-within::before, a.holo:focus-visible::before { opacity: 1; }
.holo.is-picked { box-shadow: 0 0 0 2px var(--z-cyan), 0 0 60px -10px rgba(94,240,212,.8); }
.holo-num { position: absolute; right: .6rem; bottom: .9rem; font-family: var(--mono); font-weight: 500; font-size: 4.2rem; line-height: 1; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px rgba(94,240,212,.22); pointer-events: none; }
.holo:hover .holo-num { -webkit-text-stroke-color: rgba(94,240,212,.5); }
.holo-top { display: flex; justify-content: space-between; align-items: center; gap: .6rem; color: #bff7ea; }
.z-of { color: var(--z-mute); }
.holo-title { position: relative; z-index: 1; font-family: var(--mono); font-weight: 500; font-size: 1.18rem; line-height: 1.2; letter-spacing: -.025em; color: #fff; margin: 0; }
.holo-title a { color: inherit; }
.holo-blurb { color: var(--z-mute); font-size: .98rem; }
.holo-bar { margin-top: auto; height: 4px; border-radius: 4px; background:
  linear-gradient(90deg, var(--z-cyan), var(--z-violet)) 0 0 / calc(var(--p) * 10%) 100% no-repeat,
  repeating-linear-gradient(90deg, rgba(174,183,224,.22) 0 calc(10% - 3px), transparent calc(10% - 3px) 10%); }
.holo-buy { display: flex; flex-wrap: wrap; gap: .5rem; position: relative; z-index: 3; }
.holo-buy .z-btn { min-height: 2.4rem; padding: .5rem .9rem; font-size: .8rem; }

/* The vibe game */
.z-vibe { padding: 5.5rem 0; background: radial-gradient(40rem 24rem at 90% 50%, rgba(162,116,255,.18), transparent 70%), var(--z-bg); border-top: 1px solid var(--z-line); }
.z-vibe-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: start; }
.term { border-radius: 16px; overflow: hidden; background: rgba(9,14,44,.9); box-shadow: 0 0 0 1px rgba(94,240,212,.35), 0 30px 80px -30px rgba(79,125,255,.6); }
.term-bar { display: flex; align-items: center; gap: .8rem; padding: .7rem 1rem; background: rgba(255,255,255,.04); border-bottom: 1px solid var(--z-line); color: var(--z-mute); }
.term-dots { display: inline-flex; gap: .35rem; }
.term-dots i { width: .6rem; height: .6rem; border-radius: 50%; background: #2a3470; }
.term-dots i:first-child { background: var(--z-cyan); }
.term-log { padding: 1.2rem 1.1rem .4rem; min-height: 15rem; max-height: 26rem; overflow-y: auto; display: flex; flex-direction: column; gap: .7rem; }
.term-msg { margin: 0; max-width: 88%; padding: .7rem .95rem; border-radius: 14px; font-size: 1.02rem; line-height: 1.45; }
.term-msg.ai { align-self: flex-start; background: rgba(94,240,212,.08); box-shadow: 0 0 0 1px rgba(94,240,212,.25) inset; border-bottom-left-radius: 4px; }
.term-msg.ai::before { content: "AI"; display: block; font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; color: var(--z-cyan); margin-bottom: .2rem; }
.term-msg.me { align-self: flex-end; background: linear-gradient(120deg, rgba(79,125,255,.35), rgba(162,116,255,.35)); border-bottom-right-radius: 4px; }
.term-msg.ai strong { font-family: var(--mono); font-weight: 500; color: #fff; }
.term-typing { display: inline-flex; gap: .3rem; padding: .2rem 0; }
.term-typing i { width: .45rem; height: .45rem; border-radius: 50%; background: var(--z-cyan); animation: zdot 1s ease-in-out infinite; }
.term-typing i:nth-child(2) { animation-delay: .15s; } .term-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes zdot { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.term-chips { display: flex; flex-wrap: wrap; gap: .55rem; padding: .9rem 1.1rem 1.2rem; border-top: 1px solid var(--z-line); min-height: 4.6rem; align-items: center; }
.chip { font: inherit; font-family: var(--mono); font-size: .84rem; color: var(--z-ink); background: rgba(94,240,212,.06); border: 0; box-shadow: 0 0 0 1.5px rgba(94,240,212,.5) inset; border-radius: 999px; padding: .6rem 1rem; min-height: 2.75rem; cursor: pointer; transition: background .2s ease, transform .15s ease; }
.chip:hover { background: rgba(94,240,212,.18); transform: translateY(-1px); }
.chip.alt { box-shadow: 0 0 0 1.5px rgba(174,183,224,.45) inset; background: transparent; }
.term-chips .z-btn { min-height: 2.75rem; }

/* Watch */
.z-watch { padding: 3rem 0; background: #080d27; border-top: 1px solid var(--z-line); }
.z-watch-grid { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 3rem; align-items: center; }
.z-watch .z-copy { margin-top: .5rem; }

/* Parents and teachers stays a calm, light, clearly adult block */
.zone .parents { color: var(--ink); }
.zone .parents a { color: var(--green); }
.zone .parents .btn { border-color: var(--ink); color: var(--ink); }
.zone .parents :focus-visible { outline-color: var(--ink); }

/* Home band: compact teaser */
.young-band.zone { overflow: hidden; padding: 5rem 0; background:
  radial-gradient(46rem 26rem at 95% 10%, rgba(162,116,255,.32), transparent 60%),
  radial-gradient(40rem 24rem at 0% 100%, rgba(79,125,255,.25), transparent 60%),
  linear-gradient(180deg, var(--z-bg), var(--z-bg2)); }
.young-band.zone::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--z-holo); z-index: 2; }
.z-band-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 3rem; align-items: center; }
.young-band .z-title { font-size: clamp(2.2rem, 5vw, 4rem); }
.z-cta { margin: 1.8rem 0 0; }
.holo-row { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; perspective: 1000px; }
.holo-row li:nth-child(2) { transform: translateY(-1.2rem); }
.holo-row li:nth-child(3) { transform: translateY(-2.4rem); }
.holo-row .holo { min-height: 13rem; height: 100%; }
.holo-row .holo-title { font-size: 1.05rem; }

@media (max-width: 1180px) { .holo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .holo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .z-hero-grid, .z-band-grid, .z-vibe-grid { grid-template-columns: 1fr; }
  .z-holo-stage { height: 20rem; order: -1; margin: -1rem 0 -1rem; }
  .z-ring.r1 { width: 18rem; height: 18rem; } .z-ring.r2 { width: 14rem; height: 14rem; }
  .z-holo-book { width: 11rem; }
  .z-holo-book-title { font-size: 1.1rem; }
  .z-shelf-grid { grid-template-columns: 1fr; }
  .holo-row li:nth-child(n) { transform: none; }
}
@media (max-width: 640px) {
  .z-hero { padding: 3rem 0 4rem; }
  .shelf-pods { grid-template-columns: 1fr; }
  .shelf-pod { grid-template-columns: auto 1fr auto; align-items: center; gap: .8rem; }
  .shelf-pod .z-status { margin: 0; }
  .holo-row { grid-template-columns: 1fr; }
  .holo-row .holo { min-height: 0; }
  .holo-grid { grid-template-columns: 1fr; }
  .holo-num { display: none; }
  .z-holo-stage { order: 0; height: 15rem; margin: 0; }
  .z-ring.r1 { width: 14rem; height: 14rem; } .z-ring.r2 { display: none; }
  .z-holo-book { width: 8.6rem; padding: .9rem .8rem; gap: .45rem; }
  .z-holo-book-title { font-size: .92rem; }
  .z-holo-book-author { font-size: .74rem; }
  .holo { min-height: 0; }
  .z-watch-grid { grid-template-columns: 1fr; }
  .z-actions .z-btn, .z-cta .z-btn { width: 100%; }
  .term-msg { max-width: 94%; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .z-holo-stage { display: none; }
  .z-hero-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .holo { transform: none !important; }
}

/* About: one bookshop print, and a flat white whose steam drifts up behind the text.
   All motion is transform and opacity on pre-blurred layers, so the browser only moves pictures. */
.about-sec { position: relative; isolation: isolate; overflow: clip; }
.about-sec > .wrap { position: relative; z-index: 1; }
.about { grid-template-columns: minmax(0, 30rem) minmax(0, 1fr); align-items: start; }
.about-side { display: grid; justify-items: center; padding-top: .6rem; }

.polaroid {
  position: relative; z-index: 2; width: min(19rem, 78%); margin: 0;
  padding: .7rem .7rem 2.9rem; background: #fbfaf5;
  background-image: linear-gradient(160deg, rgba(255,255,255,.7), rgba(236,234,224,.55));
  border-radius: 2px; transform: rotate(-3deg);
  box-shadow: 0 1px 1px rgba(23,32,28,.10), 0 6px 12px -6px rgba(23,32,28,.28), 0 22px 34px -22px rgba(23,32,28,.55);
  transition: transform .7s cubic-bezier(.2,.8,.2,1), box-shadow .5s ease;
}
.polaroid img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%;
  border-radius: 1px; box-shadow: inset 0 0 0 1px rgba(23,32,28,.06); }
.polaroid:hover { transform: translateY(-6px) rotate(-1.6deg) scale(1.03);
  box-shadow: 0 2px 3px rgba(23,32,28,.10), 0 18px 26px -12px rgba(23,32,28,.35), 0 40px 60px -30px rgba(23,32,28,.6); }

.about .flatwhite { position: relative; z-index: 1; width: min(22.5rem, 100%); margin: 5.5rem 0 0; text-align: center; }
.fw-cup { position: relative; }
.fw-art { position: relative; z-index: 1; display: block; width: 100%; height: auto; }
.flatwhite figcaption { font-family: var(--serif); font-style: italic; font-size: .98rem; color: #4b524c; letter-spacing: .01em; margin-top: .2rem; }

/* steam above the cup: three soft ribbons, born at the coffee surface */
.fw-steam {
  position: absolute; z-index: 2; left: 14%; width: 68%; bottom: 65%; height: 105%;
  pointer-events: none; opacity: .78; transform-origin: 50% 100%;
  transition: opacity 1.2s ease, transform 1.6s cubic-bezier(.2,.8,.2,1);
}
.plume { position: absolute; inset: 0; opacity: 0; transform-origin: 50% 100%;
  animation: plume 10.5s cubic-bezier(.45,.05,.55,.95) infinite; will-change: transform, opacity; }
.plume svg { display: block; width: 100%; height: 100%; overflow: visible; }
.p2 { left: -14%; right: 14%; animation-duration: 11.5s; animation-delay: -3.8s; }
.p3 { left: 12%; right: -12%; animation-duration: 9.6s; animation-delay: -7.1s; }
.p3 svg { transform: scaleX(-1); }
@keyframes plume {
  0%   { opacity: 0;   transform: translate3d(0, 12%, 0) scale(.55, .62) skewX(0deg); }
  20%  { opacity: .95; }
  55%  { opacity: .7;  transform: translate3d(3%, -6%, 0) scale(.92, .92) skewX(-6deg); }
  100% { opacity: 0;   transform: translate3d(-4%, -24%, 0) scale(1.35, 1.08) skewX(7deg); }
}
.about .flatwhite:hover .fw-steam { opacity: 1; transform: scale(1.12, 1.06); }

/* the same vapour, very large and very faint, behind the whole About block */
.vapour { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.v { position: absolute; display: block; opacity: 0; transform-origin: 50% 100%;
  left: calc(max(0px, (100% - var(--wrap)) / 2) + 1.25rem + 15rem - 14rem); width: 28rem; bottom: 21rem; height: min(46rem, 80%);
  animation: vapour 28s cubic-bezier(.45,.05,.55,.95) infinite; will-change: transform, opacity; }
.v svg { display: block; width: 100%; height: 100%; overflow: visible; }
.v2 { animation-duration: 33s; animation-delay: -15s; }
.v2 svg { transform: scaleX(-1); }
@keyframes vapour {
  0%   { opacity: 0;   transform: translate3d(0, 8%, 0) rotate(6deg) scale(.75, .8); }
  30%  { opacity: .9; }
  70%  { opacity: .65; transform: translate3d(5%, -4%, 0) rotate(13deg) skewX(-6deg) scale(1, 1); }
  100% { opacity: 0;   transform: translate3d(10%, -12%, 0) rotate(19deg) skewX(4deg) scale(1.15, 1.08); }
}

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about-side { grid-template-columns: 1fr 1fr; align-items: end; gap: 1rem; max-width: 34rem; margin: 0 auto; width: 100%; }
  .polaroid { width: 100%; }
  .about .flatwhite { margin: 0; }
  .v { left: 0; width: 24rem; bottom: auto; top: 0; height: 40rem; }
  .v2 { left: 30%; }
}
@media (max-width: 600px) {
  .about-side { grid-template-columns: 1fr; gap: 0; }
  .polaroid { width: min(72vw, 17rem); }
  .about .flatwhite { width: min(80vw, 19rem); margin-top: 3.4rem; }
}

/* Between chapters: a sketched tree that draws itself as you scroll; small round prints hang from its branches (collage.js sets --tp). */
.between { padding: 1rem 0 4rem; overflow: clip; }
.between-head { text-align: center; }
.between .intro { color: var(--muted); margin: .3rem auto 0; font-style: italic; }
.tree { position: relative; width: min(100% - 2rem, 62rem); aspect-ratio: 1000 / 620; margin: 4.5rem auto 0; --tp: 0; }
.tree-art { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tb { fill: none; stroke: #33433a; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: calc(1 - var(--tp)); vector-effect: non-scaling-stroke; }
.tr-line .tb { stroke-width: 1; stroke-opacity: .5; stroke-linejoin: round; }
.tr-line .tw { stroke-opacity: .38; }
.tr-halo .tb { stroke-width: 4; stroke-opacity: .05; filter: url(#tr-soft); }
.leaf { position: absolute; left: var(--x); top: var(--y); width: clamp(4.4rem, 9.5vw, 7.6rem); padding: 0; border: 0; background: none; cursor: pointer;
  transform: translate(-50%, 1.6rem) scale(calc(.6 + .4 * var(--show, 0))); opacity: var(--show, 0); transform-origin: 50% -1.6rem;
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
.leaf::before { content: ""; position: absolute; left: 50%; top: -1.6rem; height: 1.6rem; border-left: 1px solid rgba(51,67,58,.45); }
.leaf img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 3px solid #fbfaf5;
  box-shadow: 0 0 0 1px rgba(51,67,58,.18), 0 14px 26px -16px rgba(30,40,35,.55); transition: box-shadow .5s; }
.tree.ready .leaf { animation: sway var(--d) ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.7s); }
@keyframes sway { from { rotate: -2.2deg; } to { rotate: 2.2deg; } }
.leaf .cap { position: absolute; left: 50%; top: calc(100% + .55rem); translate: -50% 0; width: max-content; max-width: 13rem; padding: .35rem .75rem .4rem; background: #fbfaf5; border-radius: 999px; box-shadow: 0 0 0 1px rgba(51,67,58,.12), 0 10px 24px -12px rgba(30,40,35,.45); font-family: var(--serif); font-style: italic; font-size: .88rem; line-height: 1.3; color: #33433a; text-align: center; opacity: 0; transition: opacity .35s; pointer-events: none; z-index: 2; }
.leaf.wide { width: clamp(5.8rem, 12.5vw, 10rem); } .leaf.wide img { aspect-ratio: 4/3; }
.leaf:hover, .leaf:focus-visible { z-index: 20; }
.leaf:hover img, .leaf:focus-visible img { box-shadow: 0 0 0 1px rgba(51,67,58,.3), 0 22px 36px -16px rgba(30,40,35,.6); }
.leaf:hover .cap, .leaf:focus-visible .cap { opacity: 1; }
.leaf:hover { scale: 1.12; transition: opacity .9s, transform .9s cubic-bezier(.2,.8,.2,1), scale .5s cubic-bezier(.2,.8,.2,1); }
.leaf:focus-visible { outline: none; } .leaf:focus-visible img { outline: 2px solid #2f3d35; outline-offset: 3px; }
@media (max-width: 600px) { .tree { aspect-ratio: 1000 / 900; width: calc(100% - 1rem); } .leaf { width: 3.9rem; } .leaf.wide { width: 5.2rem; } .leaf .cap { font-size: .72rem; max-width: 8rem; } }
@media (prefers-reduced-motion: reduce) { .tb { stroke-dashoffset: 0; } .leaf { opacity: 1; transform: translate(-50%, 1.6rem); transition: none; } .tree.ready .leaf { animation: none; } }
.lightbox { border: 0; padding: 0; background: transparent; overflow: visible; max-width: min(92vw, 56rem); max-height: 94vh; }
.lightbox::backdrop { background: rgba(20,30,25,.74); }
.lightbox[open] { animation: lb-in .45s cubic-bezier(.2,.8,.2,1); }
@keyframes lb-in { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.lightbox figure { margin: 0; padding: .8rem .8rem 0; background: #fbfaf5; border-radius: 2px; box-shadow: 0 30px 70px -30px rgba(0,0,0,.6); }
.lightbox img { display: block; max-width: 100%; max-height: calc(94vh - 6.5rem); width: auto; height: auto; margin: 0 auto; }
.lightbox figcaption { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: #3b4741; text-align: center; padding: .8rem .5rem 1rem; }
.lb-close { position: absolute; top: -2.6rem; right: 0; font-family: var(--mono); font-size: .82rem; color: #eef1ec;
  background: transparent; border: 1px solid rgba(238,241,236,.5); border-radius: 3px; padding: .35rem .75rem; cursor: pointer; }
.lb-close:hover { background: rgba(238,241,236,.12); }
.lb-close:focus-visible { outline-color: var(--peri); }

@media (max-width: 600px) {
  .between { padding-top: 0; }
  .line { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none;
    overscroll-behavior-x: contain; scroll-padding-inline: 1.25rem; padding-bottom: 1rem; }
  .line::-webkit-scrollbar { display: none; }
  .line-track { width: max-content; min-width: 100%; margin: 0; padding: 0 1rem; }
  .cap { font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .polaroid, .paper { transition: none; }
  .hang { animation: none; }
  .plume { animation: none; opacity: .6; transform: translate3d(0, -2%, 0) scale(.85, .9); }
  .p3 { opacity: .4; }
  .v { animation: none; opacity: .6; transform: translate3d(4%, -2%, 0) rotate(11deg) skewX(-4deg) scale(.95); }
  .fw-steam, .lightbox[open] { transition: none; animation: none; }
}

/* Chapter page: Kumiko, off duty, beside the keep-reading block */
.after-cat { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: start; }
.cat-snap { margin: .4rem 0 0; width: 11rem; transform: rotate(2.5deg); }
.cat-snap img { border-radius: 14px; aspect-ratio: 1; object-fit: cover; box-shadow: 0 12px 26px -14px rgba(23,32,28,.5); }
.cat-snap figcaption { font-size: .88rem; font-style: italic; color: var(--muted); text-align: center; margin-top: .55rem; }
@media (max-width: 640px) {
  .after-cat { grid-template-columns: 1fr; }
  .cat-snap { width: 10rem; justify-self: end; }
}
@media print { .cat-snap { display: none; } }
.term-log:focus { outline: none; }

 
/* ===== Three doors (shared across the three sites) ===== */
.doors{background:#efece6;color:#1b1b1b;padding:clamp(56px,7vw,96px) 20px;border-top:1px solid rgba(0,0,0,.06);overflow:hidden}
.doors-in{max-width:1080px;margin:0 auto;text-align:center}
.doors-h{margin:0;font-size:clamp(1.6rem,3vw,2.2rem);line-height:1.1;letter-spacing:-.01em;color:#1b1b1b}
.doors-sub{margin:10px auto 0;max-width:46ch;font-size:1.05rem;font-style:italic;opacity:.78}
.doors-row{list-style:none;margin:clamp(32px,5vw,56px) 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(20px,4vw,56px);align-items:start}
.door a{display:flex;flex-direction:column;align-items:center;gap:18px;text-decoration:none;color:inherit;outline-offset:8px;border-radius:12px}
.door-frame{position:relative;width:min(170px,62%);aspect-ratio:3/5;border-radius:85px 85px 6px 6px;perspective:900px;background:#2a2622;box-shadow:inset 0 0 0 6px #d9d3c8,0 22px 30px -18px rgba(0,0,0,.45)}
.door-inside{position:absolute;inset:6px;border-radius:79px 79px 3px 3px;overflow:hidden;display:grid;place-items:end end;background:radial-gradient(120% 80% at 50% 100%,#fff6d6 0%,#ffd86b 38%,#c98a2b 78%,#5a3b12 100%)}
.door-light{position:absolute;left:50%;bottom:-30%;width:140%;height:70%;transform:translateX(-50%);background:radial-gradient(closest-side,rgba(255,255,255,.85),transparent);filter:blur(6px)}
.door-here{position:relative;margin:0 10% 20% 0;max-width:60%;text-align:right;line-height:1.2;font-size:.72rem;font-weight:700;letter-spacing:.04em;color:#3b2508;opacity:0;transition:opacity .4s .3s}
.door-leaf{position:absolute;inset:6px;border-radius:79px 79px 3px 3px;transform-origin:left center;transition:transform .9s cubic-bezier(.2,.8,.2,1);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:22% 14% 16%;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08),6px 0 12px rgba(0,0,0,.25);overflow:hidden}
.door-art{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.door-panel{display:block;width:100%;flex:1;border-radius:6px;border:1.5px solid rgba(255,255,255,.16)}
.door-panel:first-of-type{border-radius:60px 60px 6px 6px}
.door-knob{position:absolute;right:12%;top:56%;width:10px;height:10px;border-radius:50%;background:#e8c35a;box-shadow:0 0 0 2px rgba(0,0,0,.25)}
.dm{position:absolute;top:44%;left:50%;transform:translate(-50%,-50%);width:40px;height:40px;border-radius:10px;display:grid;place-items:center}
.dm svg{display:block;width:100%;height:100%;overflow:visible}
.is-here .door-leaf{transform:rotateY(-74deg)}
.is-here .door-here{opacity:1}
.door:not(.is-here) a:hover .door-leaf,.door:not(.is-here) a:focus-visible .door-leaf{transform:rotateY(-26deg)}
.door-label{display:flex;flex-direction:column;align-items:center;gap:4px;max-width:30ch}
.door-label strong{font-size:1.02rem;color:#1b1b1b;overflow-wrap:anywhere}
.door-name{font-size:.82rem;opacity:.7}
.door-desc{font-size:.9rem;line-height:1.45;opacity:.85}
.door-state{margin-top:6px;font-size:.78rem;font-weight:600;padding:5px 12px;border-radius:999px;border:1px solid rgba(0,0,0,.18)}
.is-here .door-state{background:#1b1b1b;color:#fff;border-color:#1b1b1b}

/* criscalin.com: a door made of light. Ivory, brass hairlines, sun behind it. */
.door-criscalin .door-frame{background:#f3e7cc;box-shadow:inset 0 0 0 5px #f7f0e1,inset 0 0 0 6px #c9a24a,0 0 38px -8px rgba(255,204,26,.55),0 22px 28px -20px rgba(120,86,20,.45)}
.door-criscalin .door-inside{background:radial-gradient(120% 90% at 50% 100%,#fffdf6 0%,#fff4d2 38%,#ffe08a 72%,#f2bd48 100%)}
.door-criscalin .door-here{color:#6b4a12}
.door-criscalin .door-leaf{background:linear-gradient(165deg,#fffbf2 0%,#f7eedb 55%,#ecdfc2 100%);color:#b8913c;box-shadow:inset 0 0 0 1px rgba(201,162,74,.5),4px 0 14px rgba(150,110,30,.18)}
.door-criscalin .door-art .fan{fill:rgba(255,214,110,.22)}
.door-criscalin .door-art .sun{fill:rgba(255,204,26,.55)}
.door-criscalin .door-panel{visibility:hidden}
.door-criscalin .door-knob{background:radial-gradient(circle at 35% 35%,#fff3c4,#d9ad44 60%,#a9802b);box-shadow:0 0 0 1px rgba(120,86,20,.35),0 1px 2px rgba(120,86,20,.3)}
.dm-c{top:50%;width:44px;height:44px;border-radius:50%;background:#fffaf0;box-shadow:0 0 0 1px #c9a24a,0 0 0 3px #fffaf0,0 0 0 4px rgba(201,162,74,.45)}
.dm-c svg{width:80%;height:80%}
.dm-c .arc{fill:none;stroke:#6b4c1d;stroke-width:2.5;stroke-linecap:round}
.dm-c .hz{fill:none;stroke:#b8913c;stroke-width:1.1;stroke-linecap:round}
.dm-c .sun{fill:#ffcc1a;stroke:#d39b12;stroke-width:.6}
.dm-c .rays{fill:none;stroke:#d39b12;stroke-width:1.2;stroke-linecap:round}

/* cristinalilianacalin.com: a garden door. Painted planks, round window, vines, a very small spider. */
.door-cristinalilianacalin .door-frame{background:#e4d8c1;box-shadow:inset 0 0 0 6px #e9dfcc,inset 0 0 0 7px rgba(150,130,100,.35),0 22px 28px -18px rgba(60,70,40,.45)}
.door-cristinalilianacalin .door-inside{background:radial-gradient(120% 85% at 50% 100%,#fffbea 0%,#f6efbf 30%,#cfe2a6 62%,#7ea873 100%)}
.door-cristinalilianacalin .door-light{background:radial-gradient(closest-side,rgba(255,252,225,.9),transparent)}
.door-cristinalilianacalin .door-here{color:#2f4a2c}
.door-cristinalilianacalin .door-leaf{background:linear-gradient(160deg,#a8c6b8 0%,#8db3a3 55%,#789f8f 100%);box-shadow:inset 0 0 0 1px rgba(255,255,255,.18),5px 0 12px rgba(40,60,40,.25)}
.door-cristinalilianacalin .door-panel{visibility:hidden}
.door-cristinalilianacalin .planks{stroke:rgba(40,70,55,.32);stroke-width:1.4}
.door-cristinalilianacalin .grain{stroke:rgba(255,255,255,.16);stroke-width:.8;stroke-linecap:round}
.door-cristinalilianacalin .hinge path{stroke:#3e4a43;stroke-width:4;stroke-linecap:round}
.door-cristinalilianacalin .hinge circle{fill:#3e4a43}
.door-cristinalilianacalin .window .glass{fill:#fff4cf}
.door-cristinalilianacalin .window .bars{stroke:#5f8573;stroke-width:2.4}
.door-cristinalilianacalin .window .rim{fill:none;stroke:#f2ead8;stroke-width:4}
.door-cristinalilianacalin .window .glint{fill:none;stroke:#fff;stroke-width:1.6;stroke-linecap:round;opacity:.8}
.door-cristinalilianacalin .door-knob{width:9px;height:13px;border-radius:50%;background:transparent;border:2.2px solid #3e4a43;box-shadow:none;top:57%}
.dm-n{top:52%;width:48px;height:42px;border-radius:50% / 46%;background:#fbf6e9;box-shadow:0 0 0 1.5px rgba(62,74,67,.35),0 2px 4px rgba(40,60,40,.2)}
.dm-n svg{width:84%;height:84%}
.dm-n .pg{fill:none;stroke:#2f4a3c;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.dm-n .lf{fill:#9cc39a;stroke:#2f4a3c;stroke-width:1.2;stroke-linejoin:round}
.dm-n .rib{fill:none;stroke:#2f4a3c;stroke-width:.8;stroke-linecap:round}
.dm-n .bird{fill:none;stroke:#2f4a3c;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}
.door-deco{position:absolute;inset:-4px;width:calc(100% + 8px);height:calc(100% + 8px);overflow:visible;pointer-events:none;z-index:2}
.door-deco .stem{fill:none;stroke:#5d7f4f;stroke-width:1.8;stroke-linecap:round}
.door-deco .leaves path{fill:#7fa86a;stroke:#5d7f4f;stroke-width:.5}
.door-deco .fl-a circle{fill:#f7c9d4}.door-deco .fl-b circle{fill:#fff8ee}.door-deco .fl-c circle{fill:#c9c6f4}
.door-deco .fl-mid{fill:#f2c14e !important}
.door-deco .vine{transform-box:view-box;transition:transform 1.2s ease}
.door-deco .vine-l{transform-origin:0 226px}.door-deco .vine-r{transform-origin:170px 170px}
.door-deco .spider path{fill:none;stroke:#3b3631;stroke-width:.9;stroke-linecap:round}
.door-deco .spider .silk{stroke:rgba(60,55,50,.45);stroke-width:.6}
.door-deco .spider ellipse,.door-deco .spider circle{fill:#3b3631}
.door-deco .spider .eye{fill:#fff}
.door-deco .spider{transform-box:view-box;transform-origin:128px 22px;animation:spider-bob 7s ease-in-out infinite alternate}
@keyframes spider-bob{0%{transform:rotate(-3deg) translateY(0)}50%{transform:rotate(2deg) translateY(4px)}100%{transform:rotate(-1deg) translateY(-2px)}}
.door-cristinalilianacalin a:hover .vine-l,.door-cristinalilianacalin a:focus-visible .vine-l{animation:sway-l 2.6s ease-in-out infinite alternate}
.door-cristinalilianacalin a:hover .vine-r,.door-cristinalilianacalin a:focus-visible .vine-r{animation:sway-r 2.2s ease-in-out infinite alternate}
@keyframes sway-l{from{transform:rotate(0)}to{transform:rotate(1.6deg)}}
@keyframes sway-r{from{transform:rotate(0)}to{transform:rotate(-1.8deg)}}

/* evolvance.tech: unchanged deep teal, a sharper constellation mark */
.door-evolvance .door-leaf{background:linear-gradient(160deg,#165563,#0b3039)}
.door-evolvance .door-inside{background:radial-gradient(120% 85% at 50% 100%,#f4fffb 0%,#c6efe1 36%,#62b9a6 72%,#1d5f6a 100%)}
.door-evolvance .door-here{color:#0b3039}
.dm-e{background:#9fd3b4;box-shadow:0 0 0 1px rgba(255,255,255,.15)}
.dm-e svg{width:82%;height:82%}
.dm-e .ln{fill:none;stroke:#0b3039;stroke-width:1.4;stroke-linecap:round}
.dm-e .faint{fill:none;stroke:#0b3039;stroke-width:.8;stroke-dasharray:1.4 2;opacity:.55}
.dm-e .nd circle{fill:#0b3039}
.dm-e .hd{fill:#e8c35a;stroke:#0b3039;stroke-width:1.1}

@media (max-width:760px){
  .doors-row{gap:12px}
  .door a{gap:12px}
  .door-frame{width:min(96px,100%)}
  .door-desc,.door-name{display:none}
  .door-label strong{font-size:.72rem}
  .door-state{font-size:.68rem;padding:4px 8px}
  .door-here{font-size:.55rem}
  .dm{width:24px;height:24px;border-radius:7px}
  .dm-c{width:26px;height:26px;box-shadow:0 0 0 1px #c9a24a,0 0 0 2px #fffaf0,0 0 0 2.5px rgba(201,162,74,.45)}
  .dm-n{width:29px;height:25px}
  .door-knob{width:6px;height:6px}
  .door-cristinalilianacalin .door-knob{width:6px;height:9px;border-width:1.5px}
  .door-deco .stem{stroke-width:2.4}
  .door .dm-c{border-radius:50%}
  .door .dm-n{border-radius:50% / 46%}
}
@media (prefers-reduced-motion:reduce){
  .door-leaf,.door-here,.door-deco .vine{transition:none}
  .door-deco .spider,.door-cristinalilianacalin a:hover .vine-l,.door-cristinalilianacalin a:hover .vine-r,
  .door-cristinalilianacalin a:focus-visible .vine-l,.door-cristinalilianacalin a:focus-visible .vine-r{animation:none}
}

/* About: arched portrait with a slow orbit, and a single soft line that draws a cup of coffee as you read (collage.js sets --lc). */
.about-side { position: sticky; top: 5.5rem; align-self: start; }
.portrait { position: relative; margin: 1rem auto 0; width: min(19rem, 80%); isolation: isolate; }
.portrait img { display: block; width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 999px 999px 1.4rem 1.4rem; box-shadow: 0 24px 50px -28px rgba(30,45,38,.55); }
.pt-ring { display: none; position: absolute; inset: -6% -9%; width: 118%; height: 112%; z-index: -1; overflow: visible; animation: pt-turn 38s linear infinite; }
.pt-ring ellipse { fill: none; stroke: #7f8bd0; stroke-opacity: .9; stroke-width: 1.6; stroke-dasharray: 2 6; stroke-linecap: round; }
.portrait::before { content: ""; position: absolute; inset: -14px -12px -10px -16px; border: 2px solid #9aa4dd; border-radius: 999px 999px 1.9rem 1.9rem; transform: rotate(-6deg); z-index: -1; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.portrait::after { content: ""; position: absolute; left: -2.2rem; bottom: 10%; width: 4.6rem; height: 4.6rem; background: radial-gradient(#7f9a86 1.6px, transparent 1.7px) 0 0 / 12px 12px; opacity: .6; z-index: -2; }
.portrait:hover::before { transform: rotate(3deg) scale(1.02); }
.pt-dot { position: absolute; width: 18px; height: 18px; border-radius: 50%; background: #9aa4dd; right: 4%; top: 9%; box-shadow: 0 0 0 6px rgba(154,164,221,.22); transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.portrait:hover .pt-dot { transform: translate(-6px, 8px); }
.portrait:hover .pt-ring { animation-duration: 14s; }
@keyframes pt-turn { to { transform: rotate(360deg); } }
@keyframes pt-float { 50% { transform: translate(-.5rem, .9rem); } }
.linecup { width: min(17rem, 78%); margin: .6rem auto 0; position: relative; }
.linecup svg { display: block; width: 100%; height: auto; overflow: visible; }
.lc { fill: none; stroke: #33433a; stroke-opacity: .78; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1 1; stroke-dashoffset: calc(1 - var(--lc, 0)); }
.lc-halo { stroke-width: 4; stroke-opacity: .10; filter: url(#lc-soft); }
.lc-cup { transform-box: view-box; transform-origin: 150px 214px; transition: transform 1.1s cubic-bezier(.2,.8,.2,1); }
.linecup:hover .lc-cup { transform: translate(6px, -10px) rotate(-7deg); }
.lc-wisps path { fill: none; stroke: #33433a; stroke-width: 6; stroke-linecap: round; stroke-opacity: 0; filter: url(#lc-soft); }
.linecup.done .lc-wisps path { animation: wisp 9s ease-in-out infinite; }
.linecup.done .lc-wisps path + path { animation-delay: -4.5s; }
@keyframes wisp { 0% { stroke-opacity: 0; transform: translateY(14px) scaleX(.8); } 40% { stroke-opacity: .07; } 100% { stroke-opacity: 0; transform: translateY(-26px) scaleX(1.25); } }
.lc-wisps path { transform-box: fill-box; transform-origin: 50% 100%; }
.lc-note { margin: .1rem 0 0; text-align: right; font-family: var(--serif); font-style: italic; font-size: .8rem; color: #6b746e; opacity: calc(var(--lc, 0) * 1.4 - .4); }
@media (max-width: 860px) { .about-side { position: static; } }
@media (prefers-reduced-motion: reduce) { .pt-ring, .pt-dot, .linecup.done .lc-wisps path { animation: none; } .lc { stroke-dashoffset: 0; } .lc-note { opacity: 1; } }

/* Between chapters is a spider web now (her first story was about a baby spider). */
.tree .spider { animation: sp-bob 6s ease-in-out infinite; opacity: var(--tp); }
.tree .silk { stroke: #33433a; stroke-opacity: .5; stroke-width: 1; vector-effect: non-scaling-stroke; }
@keyframes sp-bob { 50% { transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .tree .spider { animation: none; } }

/* Book page: the author's note about the series (series.reader_note, shown where page.show_series_note) */
.series-note { background: var(--paper); padding: 3.6rem 0 3.2rem; border-top: 1px solid rgba(0,0,0,.06); }
.series-note .wrap { max-width: 44rem; }
.series-note h2 { margin: .4rem 0 1.4rem; font-weight: 400; line-height: 1.15; }
.series-note .note-body p { margin: 0 0 1.05rem; font-size: 1.12rem; line-height: 1.7; }
.series-note .note-body p:first-child::first-letter { font-size: 2.6em; float: left; line-height: .9; margin: .08em .1em 0 0; color: var(--accent-deep, var(--green-2)); }
.series-note .note-sign { font-style: italic; font-size: 1.5rem !important; text-align: right; margin-top: 1.4rem !important; }
.series-note .note-link { font-family: var(--mono); font-size: .85rem; margin: 1.6rem 0 0; }
