@font-face { font-family: "Garamond Site"; src: url("fonts/garamond.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+2010-2027, U+2030-205E, U+20AC, U+2122; }
@font-face { font-family: "Garamond Site"; src: url("fonts/garamond-italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+2010-2027, U+2030-205E, U+20AC, U+2122; }
@font-face { font-family: "Garamond Site"; src: url("fonts/garamond-bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+2010-2027, U+2030-205E, U+20AC, U+2122; }
@font-face { font-family: "Garamond Site"; src: url("fonts/garamond-bold-italic.ttf") format("truetype"); font-weight: 700; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+2010-2027, U+2030-205E, U+20AC, U+2122; }
@font-face { font-family: "Trevino"; src: url("fonts/trevino.otf") format("opentype"); font-display: swap; unicode-range: U+0000-00FF, U+2010-2027, U+2030-205E, U+20AC, U+2122; }
@font-face { font-family: "Chillen"; src: url("fonts/chillen.ttf") format("truetype"); font-display: swap; unicode-range: U+0000-00FF, U+2010-2027, U+2030-205E, U+20AC, U+2122; }

:root {
  --bg: #0c0c0c;
  --panel: #151515;
  --panel-2: #1a1a1a;
  --line: #2a2a2a;
  --text: #eaeaea;
  --soft: #b9b9b9;
  --muted: #8a8a8a;
  --purple: #6a0dad;
  --purple-2: #8b47cc;
  --teal: #43c59a;
  --cyan: #3cbfe7;
  --green: #44ea76;
  --serif: "Garamond Site", "EB Garamond", Garamond, Georgia, serif;
  --display: "Trevino", Georgia, serif;
  --sans: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --wide: 820px;
  --measure: 68ch;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #7fd6f2; }
img { max-width: 100%; height: auto; }
.wrap { width: min(var(--wide), calc(100% - 40px)); margin: 0 auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--purple); color: #fff; padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; z-index: 10; }

.site-header { background: linear-gradient(180deg, #171717 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.header-inner { padding: 30px 0 20px; text-align: center; }
.identity { display: inline-flex; align-items: center; gap: 20px; text-align: left; }
.portrait img { display: block; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 2px solid var(--purple-2); box-shadow: 0 0 0 4px rgba(139, 71, 204, 0.18); }
.identity-text .tagline { margin-top: 6px; }
.socials { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.socials a { display: block; width: 38px; height: 38px; border-radius: 50%; overflow: hidden; background: var(--panel); border: 1px solid var(--line); transition: transform 0.15s, box-shadow 0.15s; }
.socials a:hover { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--purple-2); }
.socials img { width: 100%; height: 100%; object-fit: cover; display: block; }
.socials span { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--text); font-weight: 700; }
.quote { margin: 14px auto 0; max-width: 60ch; font-family: var(--serif); font-style: italic; font-size: 1.08rem; color: var(--soft); }
.site-name { font-family: "Chillen", var(--display); font-size: clamp(2.6rem, 6vw, 3.8rem); color: #fff; text-decoration: none; letter-spacing: 0.02em; line-height: 1; }
.site-name:hover { color: #fff; text-shadow: 0 0 18px rgba(139, 71, 204, 0.55); }
.tagline { margin: 10px 0 0; font-family: var(--serif); font-size: 1.15rem; color: var(--soft); }
.banners { width: min(1100px, calc(100% - 20px)); margin: 0 auto 20px; display: grid; }
.banner { grid-area: 1 / 1; display: flex; height: var(--h); gap: 6px; opacity: 0; visibility: hidden; transition: opacity 0.9s ease, visibility 0.9s; --s: 34px; }
.banner.on { opacity: 1; visibility: visible; }
.banner .panel { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; display: block; background: #000; }
.banner .panel img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease, filter 0.3s; filter: brightness(0.92); }
.banner a.panel:hover img { transform: scale(1.04); filter: brightness(1.08); }
.banner .caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 10px; font-family: var(--display); font-size: 1.15rem; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9); background: linear-gradient(transparent, rgba(0, 0, 0, 0.78)); }
.banner.style-single .panel, .banner.style-row .panel, .banner.style-feature .panel { border-radius: 10px; }
.banner.style-diagonal, .banner.style-arrows { gap: 0; }
.banner.style-diagonal .panel + .panel, .banner.style-arrows .panel + .panel { margin-left: calc(6px - var(--s)); }
.banner.style-diagonal .panel { clip-path: polygon(var(--s) 0, 100% 0, calc(100% - var(--s)) 100%, 0 100%); }
.banner.style-diagonal .panel:first-child { clip-path: polygon(0 0, 100% 0, calc(100% - var(--s)) 100%, 0 100%); border-radius: 10px 0 0 10px; }
.banner.style-diagonal .panel:last-child { clip-path: polygon(var(--s) 0, 100% 0, 100% 100%, 0 100%); border-radius: 0 10px 10px 0; }
.banner.style-diagonal .panel + .panel .caption { padding-left: calc(16px + var(--s)); }
.banner.style-arrows .panel { clip-path: polygon(0 0, calc(100% - var(--s)) 0, 100% 50%, calc(100% - var(--s)) 100%, 0 100%, var(--s) 50%); }
.banner.style-arrows .panel:first-child { clip-path: polygon(0 0, calc(100% - var(--s)) 0, 100% 50%, calc(100% - var(--s)) 100%, 0 100%); border-radius: 10px 0 0 10px; }
.banner.style-arrows .panel:last-child { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, var(--s) 50%); border-radius: 0 10px 10px 0; }
.banner.style-arrows .panel + .panel .caption { padding-left: calc(16px + var(--s)); }
.banner.style-feature { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: repeat(var(--rest), 1fr); }
.banner.style-feature .panel:first-child { grid-row: 1 / -1; }
.banner.style-feature .panel:not(:first-child) .caption { font-size: 0.95rem; padding: 18px 12px 8px; }

.site-nav { background: var(--panel-2); border-top: 1px solid var(--line); position: relative; z-index: 15; }
.site-nav .wrap { width: min(1100px, calc(100% - 20px)); }
.menu-button { display: none; }
.site-nav .wrap { position: relative; }
.nav-search { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: flex; align-items: center; }
.nav-search input { width: 0; padding: 7px 0; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--text); font: inherit; font-size: 0.92rem; transition: width 0.25s ease, padding 0.25s ease, background 0.25s, border-color 0.25s; }
.nav-search.open input, .nav-search:focus-within input { width: 190px; padding: 7px 36px 7px 14px; background: #101010; border-color: var(--line); }
.nav-search input:focus { outline: none; border-color: var(--purple-2); }
.nav-search button { position: absolute; right: 2px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; color: var(--teal); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.nav-search button:hover { color: #fff; background: rgba(106, 13, 173, 0.25); }
.search-big { display: flex; gap: 10px; margin-bottom: 18px; }
.search-big input { flex: 1; padding: 11px 16px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; font-size: 1.05rem; }
.search-big input:focus { outline: none; border-color: var(--purple-2); }
.search-count { color: var(--muted); margin: 0 0 8px; }
.search-group { font-family: var(--display); font-weight: 400; font-size: 1.35rem; margin: 30px 0 10px; color: #fff; }
.search-results { list-style: none; margin: 0; padding: 0; }
.search-results li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.search-results a { font-family: var(--display); font-size: 1.2rem; color: #fff; text-decoration: none; }
.search-results a:hover { color: #e6d4fb; }
.search-meta { display: block; font-size: 0.85rem; color: var(--muted); margin: 3px 0 4px; }
.search-results p { margin: 0; font-family: var(--serif); font-size: 1.05rem; color: #cfcfcf; line-height: 1.5; }
mark { background: rgba(139, 71, 204, 0.45); color: #fff; border-radius: 3px; padding: 0 2px; }
.menu, .submenu { list-style: none; margin: 0; padding: 0; }
.menu { display: flex; flex-wrap: wrap; justify-content: center; margin-right: 44px; }
.menu > li { position: relative; }
.menu a, .menu .menu-label { display: block; padding: 12px 10px; color: var(--teal); text-decoration: none; font-weight: 600; font-size: 0.97rem; letter-spacing: 0.01em; cursor: pointer; white-space: nowrap; }
.menu a:hover, .menu .menu-label:hover, .menu li:focus-within > a, .menu li:focus-within > .menu-label { color: #fff; background: rgba(106, 13, 173, 0.25); }
.menu > .has-menu > a::after, .menu > .has-menu > .menu-label::after { content: ""; display: inline-block; margin-left: 7px; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); opacity: 0.7; }
.submenu { display: none; position: absolute; top: 100%; left: 0; min-width: 230px; background: #161616; border: 1px solid var(--line); border-radius: 0 0 10px 10px; padding: 6px 0; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.9); }
.submenu .submenu { top: -7px; left: 100%; border-radius: 10px; }
.has-menu:hover > .submenu, .has-menu:focus-within > .submenu { display: block; }
.submenu a, .submenu .menu-label { padding: 8px 16px; font-weight: 500; color: var(--text); }
.submenu .has-menu > a::after, .submenu .has-menu > .menu-label::after { content: "\203A"; float: right; margin-left: 12px; color: var(--muted); }
.menu-title { padding: 8px 16px 4px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--purple-2); white-space: nowrap; }
.menu-divider { height: 1px; margin: 6px 12px; background: var(--line); }
.is-hidden-item > a, .is-hidden-item > .menu-label { opacity: 0.45; text-decoration: line-through; }

main { padding: 44px 0 64px; }
.section-title { font-family: var(--display); font-weight: 400; font-size: 1.9rem; margin: 0 0 24px; color: #fff; display: flex; align-items: center; gap: 14px; }
.section-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--purple-2), transparent); }
.empty { color: var(--muted); font-family: var(--serif); font-size: 1.2rem; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 0 0 26px; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.card:hover { border-color: var(--purple-2); transform: translateY(-2px); box-shadow: 0 10px 30px -14px rgba(139, 71, 204, 0.55); }
.card-media { display: block; position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.card:hover .card-media img { transform: scale(1.02); }
.play { position: absolute; left: 50%; top: 50%; width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 50%; background: rgba(106, 13, 173, 0.88); box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.12); }
.play::after { content: ""; position: absolute; left: 29px; top: 22px; border-style: solid; border-width: 15px 0 15px 24px; border-color: transparent transparent transparent #fff; }
.card-body { padding: 22px 28px 24px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 10px; font-size: 0.85rem; color: var(--muted); letter-spacing: 0.02em; }
.meta .number { font-variant-numeric: tabular-nums; }
.kind { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; color: #fff; background: var(--purple); }
.kind:hover { color: #fff; filter: brightness(1.2); }
.kind.is-review { background: #1f7a5c; }
.kind.is-update { background: #23667d; }
.kind.is-video { background: #8a1f45; }
.kind.is-story { background: #6b4a12; }
.kind.is-announcement { background: #3b3b3b; }
.kind.is-chapter { background: #0f6b6b; }
.chapter-card { display: grid; grid-template-columns: 150px 1fr; }
.chapter-card-cover { display: block; aspect-ratio: 2 / 3; background: #111; border-right: 1px solid var(--line); overflow: hidden; text-decoration: none; }
.chapter-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.card:hover .chapter-card-cover img { transform: scale(1.03); }
.chapter-card-cover .cover-blank { font-size: 1.05rem; padding: 12px; }
.serial-name { color: var(--soft); text-decoration: none; font-weight: 600; }
.serial-name:hover { color: #fff; }
.card-title { font-family: var(--display); font-weight: 400; font-size: 1.75rem; line-height: 1.22; margin: 0 0 10px; }
.card-title a { color: #fff; text-decoration: none; }
.card-title a:hover { color: #e6d4fb; }
.excerpt { font-family: var(--serif); font-size: 1.2rem; line-height: 1.55; color: #d4d4d4; margin: 0 0 16px; }
.more { color: var(--teal); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.more:hover { color: #7be3bf; }

.feed-end { display: flex; justify-content: space-between; align-items: center; margin-top: 34px; gap: 16px; flex-wrap: wrap; }
.button { display: inline-block; padding: 10px 20px; border-radius: 8px; background: var(--purple); color: #fff; text-decoration: none; font-weight: 600; border: 1px solid var(--purple-2); cursor: pointer; }
.button:hover { background: var(--purple-2); color: #fff; }
.to-top { color: var(--muted); text-decoration: none; }
.to-top:hover { color: var(--text); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 28px; align-items: center; }
.filters a { padding: 5px 13px; border-radius: 999px; border: 1px solid var(--line); color: var(--soft); text-decoration: none; font-size: 0.9rem; }
.filters a:hover { border-color: var(--purple-2); color: #fff; }
.filters a.on { background: var(--purple); border-color: var(--purple-2); color: #fff; }
.filters .sep { width: 1px; height: 22px; background: var(--line); margin: 0 6px; }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-top: 30px; }
.pager a { color: var(--teal); text-decoration: none; font-weight: 600; }
.pager a[rel="next"] { justify-self: end; }
.pager .where { color: var(--muted); font-size: 0.9rem; }

.reading { max-width: var(--measure); margin: 0 auto; }
.post-head { margin-bottom: 26px; }
.post-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 4.5vw, 2.8rem); line-height: 1.18; margin: 6px 0 0; color: #fff; }
.prose { font-family: var(--serif); font-size: 1.28rem; line-height: 1.75; color: #e4e4e4; }
.prose p { margin: 0 0 1.15em; }
.prose h2, .prose h3 { font-family: var(--display); font-weight: 400; color: #fff; line-height: 1.25; margin: 1.8em 0 0.6em; }
.prose h2 { font-size: 1.7rem; }
.prose h3 { font-size: 1.35rem; }
.prose blockquote { margin: 1.4em 0; padding: 0.2em 0 0.2em 1.2em; border-left: 3px solid var(--purple-2); color: #cfcfcf; font-style: italic; }
.prose hr { border: 0; text-align: center; margin: 2.2em 0; }
.prose hr::after { content: "\2022 \2022 \2022"; color: var(--purple-2); letter-spacing: 0.6em; }
.prose img { border-radius: 8px; display: block; margin: 1.4em auto; }
.prose a { color: var(--cyan); }
.video { position: relative; aspect-ratio: 16 / 9; margin: 0 0 30px; border-radius: 10px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lead-image { margin: 0 0 30px; }
.lead-image img { border-radius: 10px; display: block; width: 100%; }
.explicit > summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 34px 20px; border: 1px solid #5a1530; background: #1a0d12; border-radius: 12px; margin-bottom: 30px; }
.explicit > summary::-webkit-details-marker { display: none; }
.explicit[open] > summary { display: none; }
.warning-title { font-family: var(--display); font-size: 1.4rem; color: #fff; }

.post-nav { max-width: var(--measure); margin: 48px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-nav a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); text-decoration: none; transition: border-color 0.2s; }
.post-nav a:hover { border-color: var(--purple-2); }
.post-nav .newer { text-align: right; grid-column: 2; }
.post-nav .label { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 4px; }
.post-nav .title { font-family: var(--display); color: #fff; font-size: 1.05rem; line-height: 1.3; }

.preview-note { max-width: var(--measure); margin: -18px auto 22px; padding: 8px 14px; border-radius: 8px; background: #2b2410; border: 1px solid #6b5a1e; color: #f2d98b; font-size: 0.92rem; }
.showcase { margin-bottom: 46px; --gap: 18px; --per: 2; }
.showcase.count-1 { --per: 1; }
.showcase.count-3 { --per: 3; }
.showcase.count-4 { --per: 4; }
.showcase .section-title a { color: inherit; text-decoration: none; }
.showcase .section-title a:hover { color: #e6d4fb; }
.showcase-window { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.showcase-window::-webkit-scrollbar { display: none; }
.showcase.js-ready .showcase-window { overflow: hidden; }
.showcase-track { display: flex; gap: var(--gap); transition: transform 0.55s ease; }
.serial-tile { flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); scroll-snap-align: start; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: grid; grid-template-columns: 130px 1fr; transition: border-color 0.2s, box-shadow 0.2s; }
.serial-tile:hover { border-color: var(--purple-2); box-shadow: 0 10px 30px -14px rgba(139, 71, 204, 0.55); }
.showcase.count-1 .serial-tile { grid-template-columns: 170px 1fr; }
.showcase.count-3 .serial-tile, .showcase.count-4 .serial-tile { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
.serial-tile-cover { display: block; aspect-ratio: 2 / 3; background: #111; overflow: hidden; text-decoration: none; }
.showcase.count-1 .serial-tile-cover, .showcase.count-2 .serial-tile-cover { aspect-ratio: auto; height: 100%; min-height: 195px; }
.serial-tile-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.serial-tile:hover .serial-tile-cover img { transform: scale(1.03); }
.serial-tile-cover .cover-blank { font-size: 1.1rem; padding: 12px; }
.serial-tile-body { padding: 14px 16px 16px; display: flex; flex-direction: column; min-width: 0; }
.serial-tile-body .meta { margin-bottom: 6px; }
.fresh { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #0c0c0c; background: var(--green); }
.serial-tile-title { font-family: var(--display); font-weight: 400; font-size: 1.35rem; line-height: 1.2; margin: 0 0 8px; }
.serial-tile-title a { color: #fff; text-decoration: none; }
.serial-tile-title a:hover { color: #e6d4fb; }
.serial-tile-latest { margin: 0 0 12px; font-family: var(--serif); font-size: 1.08rem; color: #d4d4d4; line-height: 1.4; }
.serial-tile-latest time { font-family: var(--sans); font-size: 0.82rem; color: var(--muted); }
.serial-tile-actions { margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.serial-tile-actions .button { padding: 7px 14px; font-size: 0.9rem; }
.serial-tile-actions .start { color: var(--teal); text-decoration: none; font-size: 0.88rem; font-weight: 600; }
.showcase.count-4 .serial-tile-title { font-size: 1.15rem; }
.showcase.count-4 .serial-tile-actions .button { padding: 6px 10px; font-size: 0.82rem; }
.showcase-controls { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 14px; }
.showcase-controls button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.showcase-controls button:hover { border-color: var(--purple-2); color: #fff; }
.showcase-dots { display: flex; gap: 7px; }
.showcase-dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: #3a3a3a; }
.showcase-dots button.on { background: var(--purple-2); }

.serial-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.serial-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.serial-card:hover { border-color: var(--purple-2); transform: translateY(-2px); box-shadow: 0 10px 30px -14px rgba(139, 71, 204, 0.55); }
.serial-cover { display: block; aspect-ratio: 2 / 3; background: #111; text-decoration: none; }
.serial-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-blank { display: flex; align-items: center; justify-content: center; height: 100%; padding: 22px; text-align: center; font-family: var(--display); font-size: 1.5rem; color: #fff; background: linear-gradient(160deg, #2a0e44 0%, #12091c 60%, #0c0c0c 100%); border-bottom: 1px solid var(--line); }
.serial-card-body { padding: 16px 18px 18px; }
.serial-card-body .card-title { font-size: 1.35rem; margin-bottom: 6px; }
.latest { margin: 0; font-size: 0.92rem; color: var(--muted); }
.latest a { color: var(--teal); text-decoration: none; }
.status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: #1f7a5c; }
.status.is-complete { background: var(--purple); }
.status.is-hiatus { background: #6b4a12; }
.status.is-unpublished { background: #6b5a1e; color: #fff3cc; margin-right: 6px; }

.serial-head { display: grid; grid-template-columns: 240px 1fr; gap: 34px; align-items: start; margin-bottom: 44px; }
.serial-head-cover { width: 100%; border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.9); }
.serial-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.1rem, 4.5vw, 3rem); line-height: 1.12; margin: 6px 0 14px; color: #fff; }
.serial-description { font-size: 1.2rem; }
.serial-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 16px; }
.button.ghost { background: transparent; border-color: var(--line); color: var(--text); }
.button.ghost:hover { border-color: var(--purple-2); background: rgba(106, 13, 173, 0.18); }
.elsewhere { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 0.92rem; color: var(--muted); margin: 0; }
.elsewhere a { color: var(--teal); text-decoration: none; font-weight: 600; }
.elsewhere a:hover { color: #7be3bf; }
.chapter-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.chapter-list a { display: grid; grid-template-columns: 3.2em 1fr auto; gap: 12px; align-items: baseline; padding: 13px 6px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.chapter-list a:hover { background: var(--panel); }
.chapter-list .n { color: var(--muted); font-variant-numeric: tabular-nums; }
.chapter-list .t { font-family: var(--serif); font-size: 1.2rem; }
.chapter-list time { color: var(--muted); font-size: 0.88rem; white-space: nowrap; }

.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 20; background: transparent; }
.read-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--purple), var(--purple-2)); }
.reader-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.serial-link { font-family: var(--display); color: var(--soft); text-decoration: none; font-size: 1.05rem; }
.serial-link:hover { color: #fff; }
.text-size button { background: var(--panel); color: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; font: inherit; font-size: 0.9rem; cursor: pointer; }
.text-size button:hover { color: #fff; border-color: var(--purple-2); }
.chapter-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.chapter-nav.top { padding-bottom: 18px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.chapter-nav.bottom { padding-top: 22px; margin-top: 44px; border-top: 1px solid var(--line); }
.chapter-nav a { padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 600; color: var(--teal); border: 1px solid var(--line); background: var(--panel); text-align: center; white-space: nowrap; }
.chapter-nav a:hover { border-color: var(--purple-2); color: #fff; }
.chapter-nav .next { justify-self: end; }
.chapter-nav .prev { justify-self: start; }
.chapter-nav.bottom a.next { background: var(--purple); border-color: var(--purple-2); color: #fff; }
.chapter-head { text-align: center; margin-bottom: 34px; }
.chapter-head .eyebrow { margin: 0 0 6px; font-size: 0.82rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--purple-2); font-weight: 700; }
.chapter-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 4.5vw, 2.7rem); line-height: 1.15; margin: 0 0 10px; color: #fff; }
.chapter-head .meta { justify-content: center; }
.author-note { margin: 0 0 34px; padding: 16px 20px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--teal); font-family: var(--serif); font-size: 1.1rem; color: #d4d4d4; }
.author-note .label { margin: 0 0 6px; font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); font-weight: 700; }
.author-note p { margin: 0 0 0.6em; }
.chapter-audio { max-width: 420px; margin: 0 auto 34px; }
.chapter-audio .video { margin-bottom: 8px; }
.chapter-audio figcaption { text-align: center; font-size: 0.9rem; color: var(--soft); }
.chapter-audio figcaption a { color: var(--teal); }
.end-note { margin: 40px 0 0; padding: 18px 22px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); font-family: var(--serif); font-size: 1.05rem; line-height: 1.6; color: #cfcfcf; }
.end-note p { margin: 0 0 0.8em; }
.end-note p:last-child { margin-bottom: 0; }
.chapter-text { font-size: calc(1.28rem + var(--reader-step, 0) * 0.1rem); line-height: 1.8; }
.chapter-text p { margin: 0 0 1.2em; }
.chapter .elsewhere { justify-content: center; margin-top: 26px; }

@media (max-width: 640px) {
  .serial-head { grid-template-columns: 1fr; }
  .serial-head-cover { max-width: 220px; }
  .chapter-text { font-size: calc(1.16rem + var(--reader-step, 0) * 0.09rem); }
  .chapter-nav a { padding: 9px 12px; }
}

.message { text-align: center; padding: 40px 0; }
.message h1 { font-family: var(--display); font-weight: 400; font-size: 2.2rem; }
.message p { font-family: var(--serif); font-size: 1.2rem; color: var(--soft); }

.site-footer { border-top: 1px solid var(--line); background: var(--panel-2); color: var(--muted); font-size: 0.9rem; text-align: center; padding: 22px 0; }
.site-footer p { margin: 0; }
.site-footer p + p { margin-top: 6px; }
.footer-links a, .view-switch a { color: var(--teal); text-decoration: none; }
.view-switch { margin-top: 10px !important; font-weight: 600; }
.footer-links a:hover { color: #7be3bf; }

@media (max-width: 959px) {
  .menu-button { display: block; margin: 0 auto; padding: 11px 18px; background: none; border: 0; color: var(--teal); font: inherit; font-weight: 700; cursor: pointer; }
  .menu { display: none; flex-direction: column; padding-bottom: 10px; margin-right: 0; }
  .site-nav.open .menu { display: flex; }
  .nav-search { position: static; transform: none; display: none; padding: 0 12px 12px; }
  .site-nav.open .nav-search { display: flex; }
  .nav-search input, .nav-search.open input { width: 100%; padding: 9px 40px 9px 14px; background: #101010; border-color: var(--line); }
  .site-nav .wrap { display: flex; flex-direction: column; }
  .menu a, .menu .menu-label { white-space: normal; }
  .submenu, .submenu .submenu { display: block; position: static; min-width: 0; border: 0; box-shadow: none; background: none; padding: 0 0 0 18px; }
  .menu > .has-menu > a::after, .menu > .has-menu > .menu-label::after, .submenu .has-menu > a::after { display: none; }
}

@media (max-width: 640px) {
  .banner:not(.style-single) { flex-direction: column; height: auto; gap: 6px; }
  .banner:not(.style-single) .panel { flex: none; height: max(80px, calc(var(--h) / 2.2)); margin-left: 0 !important; clip-path: none !important; border-radius: 8px !important; }
  .banner.style-feature { display: flex; }
  .banner .caption { padding-left: 14px !important; }
  .identity { flex-direction: column; text-align: center; gap: 12px; }
  .portrait img { width: 84px; height: 84px; }
  main { padding: 28px 0 48px; }
  .card-body { padding: 18px 18px 20px; }
  .card-title { font-size: 1.45rem; }
  .excerpt { font-size: 1.1rem; }
  .prose { font-size: 1.18rem; line-height: 1.7; }
  .post-nav { grid-template-columns: 1fr; }
  .chapter-card { grid-template-columns: 96px 1fr; }
  .showcase { --per: 1 !important; }
  .showcase .serial-tile { grid-template-columns: 110px 1fr; grid-template-rows: none; }
  .showcase .serial-tile-cover { aspect-ratio: auto; height: 100%; min-height: 165px; }
  .post-nav .newer { grid-column: auto; text-align: left; }
}
