:root {
  --violet: #7c5ce7;
  --pink: #e8b7d8;
  --ink: #242235;
  --paper: #faf9fd;
  --soft: #f1eef8;
  --text: #302e3a;
  --muted: #777386;
  --accent: #f29b72;
  --line: rgba(36,34,53,.12);
  --shadow: 0 18px 55px rgba(67,51,110,.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shell: min(1180px, calc(100% - 40px));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; line-height: 1.72; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 1000; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 16px; }
.site-header { position: sticky; top: 0; z-index: 100; backdrop-filter: blur(18px); background: rgba(250,249,253,.86); border-bottom: 1px solid rgba(36,34,53,.06); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px 14px 14px 4px; background: var(--violet); color: #fff; font-weight: 800; box-shadow: 0 8px 18px rgba(124,92,231,.25); }
.brand strong { display: block; font-size: 18px; line-height: 1.2; }
.brand small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; letter-spacing: .04em; }
.primary-nav { display: flex; align-items: center; gap: 6px; padding: 5px; background: #fff; border: 1px solid var(--line); border-radius: 999px; }
.primary-nav a { padding: 9px 16px; border-radius: 999px; color: var(--muted); font-size: 14px; transition: .2s ease; }
.primary-nav a:hover, .primary-nav a.is-active { background: var(--soft); color: var(--violet); }
.menu-toggle { display: none; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 12px; padding: 8px 12px; }
.hero { min-height: 640px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 64px; padding-block: 78px 56px; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { margin: 0 0 12px; color: var(--violet); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { color: var(--ink); line-height: 1.18; letter-spacing: -.02em; }
h1 { margin: 0; font-size: clamp(42px, 5vw, 72px); }
h2 { margin: 0; font-size: clamp(28px, 3vw, 42px); }
h3 { margin: 0; font-size: 21px; }
.hero-lede { max-width: 720px; margin: 24px 0 0; color: #565166; font-size: 18px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border: 1px solid rgba(124,92,231,.24); border-radius: 14px; background: #fff; color: var(--violet); font-weight: 700; transition: transform .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(76,61,126,.12); }
.button.primary { border-color: var(--violet); background: var(--violet); color: #fff; }
.hero-art { position: relative; }
.hero-art:before { content: ""; position: absolute; inset: -28px -20px 20% 22%; background: linear-gradient(135deg, rgba(232,183,216,.45), rgba(124,92,231,.14)); filter: blur(5px); border-radius: 46% 54% 34% 66%; transform: rotate(-6deg); }
.hero-art img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 45% 45% 22px 22px; box-shadow: var(--shadow); }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 42px; }
.mini-stats span { padding: 14px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.mini-stats b { display: block; color: var(--ink); font-size: 14px; margin-bottom: 2px; }
.section { padding-block: 92px; }
.compact-top { padding-top: 56px; }
.no-top { padding-top: 18px; }
.section-heading { max-width: 760px; margin-bottom: 34px; }
.section-heading.split { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.section-heading p { margin: 12px 0 0; color: var(--muted); }
.text-link { color: var(--violet); font-weight: 700; white-space: nowrap; }
.feature-grid { display: grid; grid-template-columns: 1.15fr .85fr .85fr; gap: 18px; align-items: stretch; }
.content-card { overflow: hidden; background: #fff; border: 1px solid rgba(36,34,53,.08); border-radius: var(--radius-lg); box-shadow: 0 10px 28px rgba(61,48,98,.06); }
.card-media { display: block; overflow: hidden; background: var(--soft); }
.card-media img { width: 100%; height: 255px; object-fit: cover; transition: transform .35s ease; }
.content-card:hover .card-media img { transform: scale(1.025); }
.feature-grid .content-card:first-child .card-media img { height: 330px; }
.card-body { padding: 24px; }
.card-body .eyebrow { margin-bottom: 8px; font-size: 11px; }
.card-body h3 a:hover { color: var(--violet); }
.card-body p:not(.eyebrow) { margin: 10px 0 16px; color: var(--muted); font-size: 14px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 5px 9px; background: var(--soft); border-radius: 999px; color: #675f79; font-size: 11px; }
.soft-band { background: linear-gradient(180deg, rgba(241,238,248,.76), rgba(241,238,248,.34)); border-block: 1px solid rgba(36,34,53,.05); }
.format-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: 56px; padding-block: 94px; align-items: start; }
.format-intro { position: sticky; top: 120px; }
.format-intro p:last-child { color: var(--muted); font-size: 16px; }
.format-panels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.format-panel { min-height: 510px; display: flex; flex-direction: column; overflow: hidden; padding: 18px; border-radius: 30px; background: #fff; border: 1px solid rgba(36,34,53,.08); transition: transform .2s ease; }
.format-panel:hover { transform: translateY(-4px); }
.format-panel img { width: 100%; height: 280px; object-fit: cover; border-radius: 20px; }
.format-panel.video img { border-radius: 20px 20px 70px 20px; }
.format-panel.manga img { border-radius: 70px 20px 20px 20px; }
.panel-kicker { margin: 22px 2px 6px; color: var(--violet); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.format-panel strong { font-size: 24px; color: var(--ink); }
.format-panel p { color: var(--muted); font-size: 14px; }
.panel-link { margin-top: auto; color: var(--violet); font-weight: 700; }
.editorial-list { border-top: 1px solid var(--line); }
.editorial-list article { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 28px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); }
.editorial-list p { margin: 0; color: var(--muted); }
.editorial-list a { color: var(--violet); font-weight: 700; }
.index-strip { margin-bottom: 92px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 34px 38px; background: var(--ink); color: #fff; border-radius: var(--radius-xl); }
.index-strip h2 { color: #fff; font-size: 30px; }
.index-strip p:not(.eyebrow) { margin-bottom: 0; color: rgba(255,255,255,.72); }
.index-strip .button { background: #fff; border-color: #fff; }
.page-layout { padding-block: 34px 90px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 28px; color: var(--muted); font-size: 13px; }
.breadcrumb a:hover { color: var(--violet); }
.page-intro { min-height: 380px; display: grid; grid-template-columns: 1fr 420px; align-items: center; gap: 46px; margin-bottom: 54px; padding: 52px; border-radius: var(--radius-xl); background: var(--soft); overflow: hidden; }
.page-intro h1 { font-size: clamp(38px, 4.5vw, 62px); }
.page-intro p:last-child { max-width: 650px; color: var(--muted); font-size: 17px; }
.page-intro img { width: 100%; height: 280px; object-fit: cover; border-radius: 26px 26px 80px 26px; box-shadow: var(--shadow); }
.video-intro { background: linear-gradient(135deg, #f3effc, #fff7f1); }
.video-intro img { border-radius: 80px 26px 26px 26px; }
.manga-intro { background: linear-gradient(135deg, #fff5fa, #f3effc); }
.manga-intro img { border-radius: 26px 80px 26px 26px; }
.content-list.wide-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.wide-cards .content-card { display: grid; grid-template-columns: 190px 1fr; min-height: 235px; }
.wide-cards .card-media img { height: 100%; min-height: 235px; }
.topic-rail { margin-top: 50px; display: grid; grid-template-columns: 1fr 1fr; gap: 42px; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.topic-rail p { color: var(--muted); }
.link-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.link-list li { border-bottom: 1px solid var(--line); }
.link-list a { display: block; padding: 13px 2px; color: var(--violet); font-weight: 700; }
.masonry-like { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.masonry-like .content-card:nth-child(3n+1) .card-media img { height: 340px; }
.masonry-like .content-card:nth-child(3n+2) .card-media img { height: 270px; }
.masonry-like .content-card:nth-child(3n) .card-media img { height: 300px; }
.note-panel { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 54px; padding: 32px 36px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.note-panel h2 { font-size: 28px; }
.note-panel p { max-width: 650px; color: var(--muted); }
.manga-shelf { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.manga-shelf .card-media img { aspect-ratio: 3 / 4; height: auto; }
.manga-shelf .card-body { padding: 20px; }
.manga-shelf .tag-row { display: none; }
.reading-callout { display: flex; justify-content: space-between; gap: 34px; align-items: center; margin-top: 64px; padding: 34px; background: linear-gradient(130deg, var(--soft), #fff); border-radius: var(--radius-xl); }
.reading-callout .button-row { margin-top: 0; }
.plain-intro { max-width: 820px; padding: 54px 0 46px; }
.plain-intro p:last-child { color: var(--muted); font-size: 18px; }
.route-map { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.route-map a { display: grid; grid-template-columns: 54px 1fr; gap: 20px; align-items: start; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); transition: transform .18s ease, border-color .18s ease; }
.route-map a:hover { transform: translateY(-3px); border-color: rgba(124,92,231,.35); }
.route-map span { display: grid; place-items: center; width: 48px; height: 48px; background: var(--soft); color: var(--violet); border-radius: 14px; font-weight: 800; }
.route-map strong { display: block; color: var(--ink); font-size: 22px; }
.route-map p { margin: 6px 0 0; color: var(--muted); }
.prose-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 72px; }
.prose-grid > div:last-child p { margin: 0; padding: 18px 0; border-bottom: 1px solid var(--line); color: #5c5769; }
.detail-page { padding-block: 34px 90px; }
.detail-hero { display: grid; grid-template-columns: 1fr minmax(320px, .8fr); gap: 56px; align-items: center; padding: 46px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: 0 20px 60px rgba(68,55,105,.08); }
.detail-copy h1 { font-size: clamp(40px, 5vw, 70px); }
.detail-copy .lede { color: var(--muted); font-size: 18px; }
.detail-copy .tag-row { margin-top: 24px; }
.detail-hero img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 26px 70px 26px 26px; }
.detail-body { max-width: 820px; margin: 62px auto 0; }
.detail-body section { margin-bottom: 52px; }
.detail-body p { color: #595464; font-size: 17px; }
.chapter-list { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--line); }
.chapter-list li { display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 18px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.chapter-list span { color: var(--violet); font-size: 12px; font-weight: 800; }
.chapter-list strong { color: var(--ink); }
.back-panel { padding: 30px; background: var(--soft); border-radius: var(--radius-lg); }
.back-panel .button { margin-top: 8px; }
.error-page { min-height: 70vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.error-page h1 { max-width: 740px; }
.error-page > p:not(.eyebrow) { color: var(--muted); font-size: 18px; }
.site-footer { padding: 54px 0 26px; background: var(--ink); color: rgba(255,255,255,.76); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.footer-grid strong { color: #fff; font-size: 22px; }
.footer-grid p { max-width: 520px; color: rgba(255,255,255,.58); }
.footer-grid nav { display: flex; flex-wrap: wrap; align-content: flex-start; justify-content: flex-end; gap: 8px 22px; }
.footer-grid nav a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; color: rgba(255,255,255,.48); }
:focus-visible { outline: 3px solid rgba(124,92,231,.45); outline-offset: 3px; }
@media (max-width: 980px) {
  :root { --shell: min(100% - 30px, 900px); }
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 58px; }
  .hero-art { max-width: 680px; }
  .hero-art img { aspect-ratio: 16 / 10; border-radius: 28px 90px 28px 28px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid .content-card:first-child { grid-column: 1 / -1; }
  .format-layout { grid-template-columns: 1fr; gap: 28px; }
  .format-intro { position: static; }
  .page-intro { grid-template-columns: 1fr; padding: 38px; }
  .page-intro img { height: 320px; }
  .manga-shelf { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  :root { --shell: min(100% - 24px, 680px); }
  .site-header { backdrop-filter: none; background: rgba(250,249,253,.97); }
  .header-inner { min-height: 70px; }
  .brand small { display: none; }
  .menu-toggle { display: inline-flex; }
  .primary-nav { display: none; position: absolute; top: 64px; right: 12px; left: 12px; padding: 10px; border-radius: 18px; box-shadow: var(--shadow); }
  .primary-nav.is-open { display: grid; }
  .primary-nav a { padding: 12px 14px; border-radius: 12px; }
  .hero { min-height: auto; padding-block: 48px; }
  h1 { font-size: clamp(38px, 12vw, 56px); }
  .mini-stats { grid-template-columns: 1fr; }
  .feature-grid, .format-panels, .content-list.wide-cards, .masonry-like, .route-map, .prose-grid, .topic-rail, .footer-grid { grid-template-columns: 1fr; }
  .wide-cards .content-card { grid-template-columns: 128px 1fr; }
  .wide-cards .card-media img { min-height: 100%; }
  .section { padding-block: 68px; }
  .section-heading.split, .index-strip, .note-panel, .reading-callout { align-items: flex-start; flex-direction: column; }
  .section-heading.split { display: flex; }
  .editorial-list article { grid-template-columns: 1fr; gap: 8px; }
  .index-strip { display: flex; padding: 28px; }
  .page-intro { min-height: auto; padding: 30px; }
  .page-intro img { height: 250px; }
  .manga-shelf { grid-template-columns: 1fr 1fr; }
  .detail-hero { grid-template-columns: 1fr; padding: 28px; gap: 30px; }
  .footer-grid nav { justify-content: flex-start; }
}
@media (max-width: 520px) {
  .hero-art img { aspect-ratio: 4 / 3; }
  .button-row { display: grid; grid-template-columns: 1fr; width: 100%; }
  .button { width: 100%; }
  .feature-grid, .manga-shelf { grid-template-columns: 1fr; }
  .wide-cards .content-card { grid-template-columns: 1fr; }
  .wide-cards .card-media img { height: 220px; }
  .page-intro { padding: 24px; }
  .page-intro img { height: 210px; }
  .masonry-like .content-card .card-media img { height: 240px !important; }
  .route-map a { grid-template-columns: 44px 1fr; padding: 22px; }
  .route-map span { width: 42px; height: 42px; }
  .footer-bottom { gap: 14px; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
/* Extended reading states, density rules and component refinements */
.content-card:focus-within { border-color: rgba(124,92,231,.42); box-shadow: 0 0 0 4px rgba(124,92,231,.08), 0 16px 36px rgba(61,48,98,.08); }
.card-body h3 { overflow-wrap: anywhere; }
.content-card .tag-row { margin-top: 12px; }
.page-layout > .section:last-child { padding-bottom: 0; }
.page-intro:has(img) { isolation: isolate; position: relative; }
.page-intro:has(img)::before { content: ""; position: absolute; width: 260px; height: 260px; right: 170px; bottom: -130px; border-radius: 50%; background: rgba(232,183,216,.18); z-index: -1; }
.watch-intro::after { content: ""; position: absolute; width: 180px; height: 180px; left: -70px; top: -80px; border: 30px solid rgba(124,92,231,.08); border-radius: 50%; z-index: -1; }
.video-intro::after { content: ""; position: absolute; width: 190px; height: 70px; right: 32%; top: 26px; border-radius: 999px; background: rgba(242,155,114,.12); transform: rotate(-12deg); z-index: -1; }
.manga-intro::after { content: ""; position: absolute; width: 140px; height: 140px; right: 30%; bottom: 30px; border: 24px solid rgba(232,183,216,.22); border-radius: 28px; transform: rotate(18deg); z-index: -1; }
.manga-page .content-card:nth-child(even) { transform: translateY(18px); }
.manga-page .content-card:nth-child(even):hover { transform: translateY(14px); }
.site-page .route-map a:nth-child(2) span { background: #fff2ea; color: #d66f43; }
.site-page .route-map a:nth-child(3) span { background: #f6eaf2; color: #a95c8d; }
.site-page .route-map a:nth-child(4) span { background: #eef0fb; color: #5968b8; }
.detail-page article { position: relative; }
.detail-body h2 { font-size: 30px; }
.detail-body section > p:first-of-type { margin-top: 16px; }
.detail-body .back-panel h2 { margin-bottom: 0; }
.chapter-list li:hover { background: linear-gradient(90deg, rgba(124,92,231,.04), transparent); }
.chapter-list li strong { font-size: 16px; }
@media (hover: hover) {
  .brand:hover .brand-mark { transform: rotate(-4deg); }
  .brand-mark { transition: transform .18s ease; }
  .route-map a:hover strong, .content-card:hover h3 a { color: var(--violet); }
}
@media (min-width: 1180px) {
  .home .hero-copy { padding-left: 28px; }
  .feature-grid .content-card:first-child .card-body { padding: 30px; }
  .manga-shelf .content-card:nth-child(1) { margin-top: 26px; }
  .manga-shelf .content-card:nth-child(4) { margin-top: 42px; }
}
@media (max-width: 760px) {
  .manga-page .content-card:nth-child(even), .manga-page .content-card:nth-child(even):hover { transform: none; }
  .page-intro::before, .page-intro::after { display: none; }
}
@media print {
  .site-header, .site-footer, .button-row, .topic-rail, .note-panel, .reading-callout { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .shell { width: 100%; }
  .detail-hero, .content-card, .page-intro { box-shadow: none; border: 1px solid #bbb; }
  a { text-decoration: underline; }
}
.guide-zone { padding-top: 76px; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.guide-card { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.guide-card h3 { font-size: 22px; }
.guide-card > p { margin: 12px 0 18px; color: var(--muted); }
.guide-card ul { margin: 0; padding-left: 20px; }
.guide-card li { margin: 10px 0; color: #5c5769; }
.guide-card li::marker { color: var(--violet); }
.collection-band { margin: 0 0 54px; padding: 40px; background: linear-gradient(145deg, #f1eef8, #fff8fb); border-radius: var(--radius-xl); }
.collection-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.collection-grid article { padding: 24px; background: rgba(255,255,255,.76); border: 1px solid rgba(36,34,53,.08); border-radius: 20px; }
.collection-grid article p { color: var(--muted); }
.collection-grid article small { display: block; margin-top: 18px; color: #6f687c; line-height: 1.65; }
.collection-grid .tag { background: #fff; border: 1px solid rgba(124,92,231,.12); }
@media (max-width: 760px) {
  .guide-grid, .collection-grid { grid-template-columns: 1fr; }
  .collection-band { padding: 26px; }
  .guide-card { padding: 24px; }
}
.search-page { padding-block: 34px 90px; }
.search-intro { padding-bottom: 26px; }
.search-form { max-width: 820px; padding: 26px; margin-bottom: 46px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.search-form label { display: block; margin-bottom: 10px; color: var(--ink); font-weight: 700; }
.search-form > div { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.search-form input { width: 100%; min-height: 48px; padding: 0 16px; border: 1px solid rgba(36,34,53,.18); border-radius: 14px; background: var(--paper); color: var(--text); }
.search-form input:focus { border-color: var(--violet); outline: 3px solid rgba(124,92,231,.1); }
.search-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.search-results .card-media img { height: 210px; }
.search-empty { padding: 34px; background: var(--soft); border-radius: var(--radius-lg); }
.search-empty h2 { font-size: 28px; }
.search-empty p { color: var(--muted); }
.search-empty .tag { display: inline-flex; padding: 8px 12px; background: #fff; }
.route-map a:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 900px) { .search-results { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .search-form > div, .search-results { grid-template-columns: 1fr; }
  .search-form .button { width: 100%; }
}
/* Navigation, loading and semantic fallback refinements */
html.no-js .menu-toggle { display: none; }
.primary-nav a[aria-current="page"] { font-weight: 800; }
.content-card a:focus-visible, .route-map a:focus-visible, .format-panel:focus-visible { outline-offset: 5px; }
.card-media img { background: linear-gradient(135deg, var(--soft), #fff); }
.card-media img[alt=""] { opacity: .92; }
.plain-intro h1 + p { max-width: 760px; }
.page-layout > .breadcrumb + .plain-intro { padding-top: 26px; }
.site-page .prose-grid h2 { max-width: 420px; }
.site-page .prose-grid > div:last-child p:first-child { border-top: 1px solid var(--line); }
.site-page .prose-grid > div:last-child p::before { content: "—"; margin-right: 8px; color: var(--violet); }
.search-results .content-card { min-width: 0; }
.search-results .card-body p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@supports not (backdrop-filter: blur(1px)) {
  .site-header { background: rgba(250,249,253,.98); }
}
@supports not selector(:has(*)) {
  .page-intro { position: relative; }
}
@media (max-width: 420px) {
  .brand-mark { width: 38px; height: 38px; }
  .brand strong { font-size: 16px; }
  .hero { padding-top: 36px; }
  .hero-lede, .page-intro p:last-child { font-size: 16px; }
  .card-body { padding: 20px; }
  .collection-band, .search-empty { padding: 22px; }
  .detail-hero { padding: 22px; }
  .detail-body h2 { font-size: 26px; }
}
.content-card { opacity: 1; transform: translateY(0); }
.js-enhanced .content-card { opacity: .001; transform: translateY(10px); }
.js-enhanced .content-card.is-visible { opacity: 1; transform: translateY(0); transition: opacity .35s ease, transform .35s ease, border-color .18s ease, box-shadow .18s ease; }
@media (prefers-reduced-motion: reduce) {
  .js-enhanced .content-card { opacity: 1; transform: none; }
}
/* Fine-grained density and long-title handling */
.content-card h3, .route-map strong, .guide-card h3 { text-wrap: balance; }
.hero h1, .page-intro h1, .plain-intro h1, .detail-copy h1 { text-wrap: balance; }
.card-body p, .guide-card p, .collection-grid p { text-wrap: pretty; }
.content-card:has(.tag-row) .card-body { display: flex; flex-direction: column; }
.content-card:has(.tag-row) .tag-row { margin-top: auto; }
.detail-copy { min-width: 0; }
.detail-copy h1 { overflow-wrap: anywhere; }
.route-map a, .guide-card, .collection-grid article { min-width: 0; }
@media (min-width: 761px) {
  .wide-cards .card-body { min-height: 235px; }
  .search-results .content-card { display: flex; flex-direction: column; }
  .search-results .card-body { flex: 1; }
}
@media (max-width: 360px) {
  :root { --shell: calc(100% - 18px); }
  .header-inner { min-height: 64px; }
  .menu-toggle { padding: 7px 10px; }
  .hero h1 { font-size: 35px; }
  .page-intro h1, .plain-intro h1 { font-size: 34px; }
  .section { padding-block: 54px; }
  .page-layout, .detail-page, .search-page { padding-bottom: 64px; }
}
.site-footer a { text-underline-offset: 3px; }
.site-footer a:focus-visible { color: #fff; }
