Replace reverse-proxy/iframe approach with @ebook/@community/@navmini imports under /nav /book /community so localhost:3000 serves all three products directly. Co-authored-by: Cursor <cursoragent@cursor.com>
3188 lines
61 KiB
CSS
3188 lines
61 KiB
CSS
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;600;700&family=Noto+Serif+SC:wght@400;600;700&family=JetBrains+Mono:wght@400;500&display=swap');
|
||
@import 'tailwindcss';
|
||
@import 'highlight.js/styles/github.min.css';
|
||
|
||
@custom-variant dark (&:where(.dark, .dark *));
|
||
|
||
:root {
|
||
--book-bg: #120f1d;
|
||
--book-bg-secondary: #1b1630;
|
||
--book-surface: rgba(255, 255, 255, 0.72);
|
||
--book-surface-strong: rgba(255, 255, 255, 0.86);
|
||
--book-soft: rgba(255, 255, 255, 0.08);
|
||
--book-border: rgba(255, 255, 255, 0.14);
|
||
--book-text: #1e1630;
|
||
--book-muted: #6d6286;
|
||
--book-accent: #f05a9b;
|
||
--book-accent-2: #8b5cf6;
|
||
--book-accent-soft: rgba(240, 90, 155, 0.14);
|
||
--book-font-size: 16px;
|
||
--book-line-height: 1.7;
|
||
--book-font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
|
||
--reader-max-width: 56rem;
|
||
}
|
||
|
||
.dark {
|
||
--book-bg: #0f0b18;
|
||
--book-bg-secondary: #171126;
|
||
--book-surface: rgba(28, 22, 45, 0.8);
|
||
--book-surface-strong: rgba(33, 26, 53, 0.92);
|
||
--book-soft: rgba(255, 255, 255, 0.06);
|
||
--book-border: rgba(255, 255, 255, 0.1);
|
||
--book-text: #f6efff;
|
||
--book-muted: #b4a9c8;
|
||
--book-accent: #ff7ab6;
|
||
--book-accent-2: #9f7aea;
|
||
--book-accent-soft: rgba(255, 122, 182, 0.14);
|
||
}
|
||
|
||
.sepia {
|
||
--book-bg: #f3e9d7;
|
||
--book-bg-secondary: #e8dcc4;
|
||
--book-surface: rgba(255, 250, 240, 0.82);
|
||
--book-surface-strong: rgba(255, 252, 245, 0.94);
|
||
--book-soft: rgba(120, 80, 40, 0.08);
|
||
--book-border: rgba(120, 80, 40, 0.16);
|
||
--book-text: #3d2f1f;
|
||
--book-muted: #8a7358;
|
||
--book-accent: #c2410c;
|
||
--book-accent-2: #b45309;
|
||
--book-accent-soft: rgba(194, 65, 12, 0.12);
|
||
}
|
||
|
||
html {
|
||
scroll-behavior: smooth;
|
||
}
|
||
|
||
.ebook-section {
|
||
margin: 0;
|
||
min-height: 100vh;
|
||
background: var(--book-bg);
|
||
color: var(--book-text);
|
||
font-family: var(--book-font-family);
|
||
-webkit-font-smoothing: antialiased;
|
||
background-image:
|
||
radial-gradient(circle at top, rgba(167, 139, 250, 0.2), transparent 26%),
|
||
radial-gradient(circle at 80% 20%, rgba(244, 114, 182, 0.22), transparent 22%),
|
||
linear-gradient(180deg, var(--book-bg), var(--book-bg-secondary));
|
||
isolation: isolate;
|
||
}
|
||
|
||
/* Kill main-site typography bleed into the book */
|
||
.ebook-section h1,
|
||
.ebook-section h2,
|
||
.ebook-section h3,
|
||
.ebook-section h4,
|
||
.ebook-section p,
|
||
.ebook-section ul,
|
||
.ebook-section ol,
|
||
.ebook-section li {
|
||
font-family: inherit;
|
||
}
|
||
|
||
/* Let component link colors win over main-site `a { color: inherit }` */
|
||
.ebook-section a {
|
||
text-decoration: none;
|
||
}
|
||
|
||
.ebook-section h1 {
|
||
font-size: inherit;
|
||
margin: 0;
|
||
}
|
||
|
||
.book-cover {
|
||
background:
|
||
radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 28%),
|
||
linear-gradient(155deg, #25153c 0%, #4c1d95 36%, #db2777 100%);
|
||
box-shadow:
|
||
0 30px 80px rgba(6, 4, 12, 0.45),
|
||
0 8px 20px rgba(219, 39, 119, 0.18),
|
||
inset 0 1px 0 rgba(255, 255, 255, 0.14);
|
||
}
|
||
|
||
.glass-panel {
|
||
background: var(--book-surface);
|
||
border: 1px solid var(--book-border);
|
||
box-shadow:
|
||
0 18px 45px rgba(10, 6, 20, 0.18),
|
||
inset 0 1px 0 rgba(255, 255, 255, 0.28);
|
||
backdrop-filter: blur(18px);
|
||
}
|
||
|
||
.hero-orb {
|
||
position: absolute;
|
||
border-radius: 999px;
|
||
filter: blur(60px);
|
||
opacity: 0.55;
|
||
animation: orb-float 8s ease-in-out infinite;
|
||
}
|
||
|
||
.hero-orb:nth-child(2) {
|
||
animation-delay: -2s;
|
||
}
|
||
|
||
.hero-orb:nth-child(3) {
|
||
animation-delay: -4s;
|
||
}
|
||
|
||
@keyframes orb-float {
|
||
0%, 100% { transform: translateY(0); }
|
||
50% { transform: translateY(-18px); }
|
||
}
|
||
|
||
.reader-paper {
|
||
background: var(--book-surface-strong);
|
||
border: 1px solid var(--book-border);
|
||
box-shadow:
|
||
0 24px 60px rgba(10, 6, 20, 0.16),
|
||
inset 0 1px 0 rgba(255, 255, 255, 0.35);
|
||
backdrop-filter: blur(12px);
|
||
}
|
||
|
||
.focus-reader .reader-chrome {
|
||
transition: transform 0.28s ease, opacity 0.28s ease;
|
||
}
|
||
|
||
.focus-reader.chrome-hidden .reader-chrome {
|
||
transform: translateY(-100%);
|
||
opacity: 0;
|
||
pointer-events: none;
|
||
}
|
||
|
||
.prose .chapter-title {
|
||
position: relative;
|
||
padding-bottom: 1rem;
|
||
margin-bottom: 2rem;
|
||
}
|
||
|
||
.prose .chapter-title::after {
|
||
content: '';
|
||
position: absolute;
|
||
left: 0;
|
||
bottom: 0;
|
||
width: 4rem;
|
||
height: 3px;
|
||
border-radius: 999px;
|
||
background: linear-gradient(90deg, var(--book-accent), var(--book-accent-2));
|
||
}
|
||
|
||
.prose .drop-cap::first-letter {
|
||
float: left;
|
||
margin: 0.08em 0.12em 0 0;
|
||
font-size: 3.4em;
|
||
line-height: 0.82;
|
||
font-weight: 700;
|
||
color: var(--book-accent);
|
||
}
|
||
|
||
.search-hit {
|
||
background: rgba(250, 204, 21, 0.35);
|
||
border-radius: 4px;
|
||
box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.2);
|
||
}
|
||
|
||
.reading-mode-toggle {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
border-radius: 999px;
|
||
border: 1px solid var(--book-border);
|
||
background: var(--book-surface-strong);
|
||
padding: 2px;
|
||
}
|
||
|
||
.reading-mode-toggle button {
|
||
border: 0;
|
||
background: transparent;
|
||
color: var(--book-muted);
|
||
font-size: 11px;
|
||
padding: 0.2rem 0.45rem;
|
||
border-radius: 999px;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.reading-mode-toggle button.is-active {
|
||
background: var(--book-accent-soft);
|
||
color: var(--book-accent);
|
||
font-weight: 600;
|
||
}
|
||
|
||
.bookmark-group {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 0.25rem;
|
||
}
|
||
|
||
.chapter-menu-trigger.is-active {
|
||
color: #f59e0b;
|
||
border-color: rgba(245, 158, 11, 0.35);
|
||
}
|
||
|
||
.bookmark-jump {
|
||
border: 0;
|
||
background: var(--book-accent-soft);
|
||
color: var(--book-accent);
|
||
font-size: 11px;
|
||
padding: 0.25rem 0.5rem;
|
||
border-radius: 999px;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.chapter-toolbar {
|
||
display: flex;
|
||
justify-content: flex-end;
|
||
margin-bottom: 1rem;
|
||
}
|
||
|
||
.in-chapter-search {
|
||
position: relative;
|
||
}
|
||
|
||
.in-chapter-search-panel {
|
||
position: absolute;
|
||
right: 0;
|
||
top: calc(100% + 0.5rem);
|
||
width: min(90vw, 18rem);
|
||
padding: 0.75rem;
|
||
border-radius: 1rem;
|
||
border: 1px solid var(--book-border);
|
||
background: var(--book-surface-strong);
|
||
box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
|
||
z-index: 20;
|
||
}
|
||
|
||
.in-chapter-search-panel input {
|
||
width: 100%;
|
||
border: 1px solid var(--book-border);
|
||
background: var(--book-soft);
|
||
color: var(--book-text);
|
||
border-radius: 0.6rem;
|
||
padding: 0.5rem 0.75rem;
|
||
font-size: 0.875rem;
|
||
outline: none;
|
||
}
|
||
|
||
.in-chapter-search-panel ul {
|
||
margin: 0.75rem 0 0;
|
||
padding: 0;
|
||
list-style: none;
|
||
}
|
||
|
||
.in-chapter-search-panel li {
|
||
font-size: 0.8rem;
|
||
color: var(--book-muted);
|
||
padding: 0.35rem 0;
|
||
border-top: 1px solid var(--book-border);
|
||
}
|
||
|
||
.in-chapter-search-empty {
|
||
margin: 0.75rem 0 0;
|
||
font-size: 0.8rem;
|
||
color: var(--book-muted);
|
||
}
|
||
|
||
.chapter-drawer-search-wrap {
|
||
padding: 0 0.25rem 0.75rem;
|
||
}
|
||
|
||
.chapter-drawer-search {
|
||
width: 100%;
|
||
border: 1px solid var(--book-border);
|
||
background: var(--book-soft);
|
||
color: var(--book-text);
|
||
border-radius: 0.75rem;
|
||
padding: 0.6rem 0.75rem;
|
||
font-size: 0.875rem;
|
||
outline: none;
|
||
}
|
||
|
||
.chapter-drawer-search::placeholder {
|
||
color: var(--book-muted);
|
||
}
|
||
|
||
.mobile-chapter-bar {
|
||
position: fixed;
|
||
left: 0;
|
||
right: 0;
|
||
bottom: 0;
|
||
z-index: 40;
|
||
display: none;
|
||
gap: 0.5rem;
|
||
padding: 0.65rem 0.75rem calc(0.65rem + env(safe-area-inset-bottom));
|
||
background: var(--book-surface-strong);
|
||
border-top: 1px solid var(--book-border);
|
||
backdrop-filter: blur(12px);
|
||
}
|
||
|
||
.mobile-chapter-btn {
|
||
flex: 1;
|
||
min-width: 0;
|
||
padding: 0.65rem 0.75rem;
|
||
border-radius: 999px;
|
||
background: var(--book-soft);
|
||
color: var(--book-text);
|
||
text-decoration: none;
|
||
font-size: 0.78rem;
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
}
|
||
|
||
.mobile-chapter-btn.is-next {
|
||
text-align: right;
|
||
}
|
||
|
||
@media (min-width: 641px) {
|
||
.reading-mode-toggle button {
|
||
padding: 0.2rem 0.55rem;
|
||
}
|
||
}
|
||
|
||
@media (max-width: 640px) {
|
||
.mobile-chapter-bar {
|
||
display: flex;
|
||
}
|
||
|
||
.reader-main {
|
||
padding-bottom: 5.5rem;
|
||
}
|
||
}
|
||
|
||
.prose {
|
||
font-size: var(--book-font-size);
|
||
line-height: var(--book-line-height);
|
||
color: var(--book-text);
|
||
letter-spacing: 0.02em;
|
||
animation: chapter-in 0.45s ease;
|
||
}
|
||
|
||
@keyframes chapter-in {
|
||
from {
|
||
opacity: 0;
|
||
transform: translateY(12px);
|
||
}
|
||
to {
|
||
opacity: 1;
|
||
transform: translateY(0);
|
||
}
|
||
}
|
||
|
||
.prose h1 {
|
||
font-size: calc(var(--book-font-size) * 1.6);
|
||
font-weight: 700;
|
||
line-height: 1.35;
|
||
margin: 0 0 1.5rem;
|
||
letter-spacing: 0.04em;
|
||
color: var(--book-text);
|
||
text-wrap: balance;
|
||
}
|
||
|
||
.prose h2 {
|
||
font-size: calc(var(--book-font-size) * 1.15);
|
||
font-weight: 600;
|
||
margin: 2.5rem 0 1rem;
|
||
color: var(--book-text);
|
||
border-top: 1px solid var(--book-border);
|
||
padding: 0;
|
||
padding-top: 1.15rem;
|
||
scroll-margin-top: 5.5rem;
|
||
}
|
||
|
||
.prose h3 {
|
||
font-size: calc(var(--book-font-size) * 1.05);
|
||
font-weight: 600;
|
||
margin: 2rem 0 0.75rem;
|
||
scroll-margin-top: 5.5rem;
|
||
}
|
||
|
||
.prose p {
|
||
margin: 1.25rem 0;
|
||
text-align: justify;
|
||
text-justify: inter-ideograph;
|
||
}
|
||
|
||
.prose hr {
|
||
border: none;
|
||
text-align: center;
|
||
margin: 2.5rem 0;
|
||
}
|
||
|
||
.prose hr::before {
|
||
content: '· · ·';
|
||
letter-spacing: 0.5em;
|
||
color: var(--book-muted);
|
||
font-size: 0.85em;
|
||
}
|
||
|
||
.prose ul,
|
||
.prose ol {
|
||
margin: 1.25rem 0;
|
||
padding-left: 1.5rem;
|
||
}
|
||
|
||
.prose li + li {
|
||
margin-top: 0.5rem;
|
||
}
|
||
|
||
.prose blockquote {
|
||
margin: 1.5rem 0;
|
||
padding: 1rem 1.25rem;
|
||
border-left: 3px solid var(--book-accent);
|
||
color: var(--book-muted);
|
||
font-style: italic;
|
||
background: linear-gradient(90deg, var(--book-accent-soft), transparent);
|
||
border-radius: 0 16px 16px 0;
|
||
}
|
||
|
||
.prose strong {
|
||
font-weight: 600;
|
||
color: var(--book-text);
|
||
}
|
||
|
||
.prose a {
|
||
color: var(--book-accent);
|
||
text-decoration: none;
|
||
border-bottom: 1px solid transparent;
|
||
transition: border-color 0.15s;
|
||
}
|
||
|
||
.prose a:hover {
|
||
border-bottom-color: var(--book-accent);
|
||
}
|
||
|
||
.prose pre {
|
||
margin: 0;
|
||
padding: 1rem 1.25rem;
|
||
border-radius: 18px;
|
||
overflow-x: auto;
|
||
background: var(--book-surface-strong) !important;
|
||
border: 1px solid var(--book-border);
|
||
font-size: 0.85em;
|
||
line-height: 1.6;
|
||
text-align: left;
|
||
box-shadow: 0 10px 30px rgba(20, 12, 35, 0.12);
|
||
}
|
||
|
||
.prose code {
|
||
font-family: 'JetBrains Mono', ui-monospace, monospace;
|
||
font-size: 0.85em;
|
||
}
|
||
|
||
.prose :not(pre) > code {
|
||
padding: 0.15em 0.35em;
|
||
border-radius: 999px;
|
||
background: var(--book-accent-soft);
|
||
border: 1px solid var(--book-border);
|
||
}
|
||
|
||
.prose table {
|
||
width: 100%;
|
||
border-collapse: collapse;
|
||
margin: 1.5rem 0;
|
||
font-size: 0.9em;
|
||
line-height: 1.5;
|
||
}
|
||
|
||
.prose th,
|
||
.prose td {
|
||
border: 1px solid var(--book-border);
|
||
padding: 0.6rem 0.85rem;
|
||
text-align: left;
|
||
}
|
||
|
||
.prose th {
|
||
background: var(--book-accent-soft);
|
||
font-weight: 600;
|
||
}
|
||
|
||
.dark .hljs {
|
||
background: transparent !important;
|
||
}
|
||
|
||
.drawer-lock {
|
||
overflow: hidden !important;
|
||
}
|
||
|
||
.chapter-menu-trigger {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 0.375rem;
|
||
height: 2.25rem;
|
||
padding: 0 0.75rem;
|
||
border-radius: 999px;
|
||
border: 1px solid var(--book-border);
|
||
background: var(--book-surface-strong);
|
||
color: var(--book-text);
|
||
font-size: 0.875rem;
|
||
cursor: pointer;
|
||
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
|
||
}
|
||
|
||
.chapter-drawer-root {
|
||
position: fixed;
|
||
inset: 0;
|
||
z-index: 1000;
|
||
pointer-events: none;
|
||
}
|
||
|
||
.chapter-drawer-root.is-open {
|
||
pointer-events: auto;
|
||
}
|
||
|
||
.chapter-drawer-backdrop {
|
||
position: absolute;
|
||
inset: 0;
|
||
border: 0;
|
||
background: rgba(8, 6, 14, 0.55);
|
||
backdrop-filter: blur(4px);
|
||
opacity: 0;
|
||
transition: opacity 0.2s ease;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.chapter-drawer-root.is-open .chapter-drawer-backdrop {
|
||
opacity: 1;
|
||
}
|
||
|
||
.chapter-drawer-panel {
|
||
position: absolute;
|
||
top: 0;
|
||
right: 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
width: min(100vw, 22rem);
|
||
height: 100%;
|
||
background: var(--book-surface-strong);
|
||
color: var(--book-text);
|
||
border-left: 1px solid var(--book-border);
|
||
box-shadow: -20px 0 60px rgba(20, 10, 35, 0.28);
|
||
transform: translateX(100%);
|
||
transition: transform 0.24s ease;
|
||
}
|
||
|
||
.sepia .chapter-drawer-panel {
|
||
background: #faf3e8;
|
||
color: #3d2f1f;
|
||
border-left-color: rgba(194, 65, 12, 0.18);
|
||
}
|
||
|
||
.sepia .chapter-drawer-item {
|
||
color: #5c4a38;
|
||
}
|
||
|
||
.sepia .chapter-drawer-item.is-active {
|
||
color: #c2410c;
|
||
}
|
||
|
||
.chapter-drawer-root.is-open .chapter-drawer-panel {
|
||
transform: translateX(0);
|
||
}
|
||
|
||
.chapter-drawer-header,
|
||
.chapter-drawer-footer {
|
||
flex-shrink: 0;
|
||
padding: 1.1rem 1.25rem;
|
||
border-bottom: 1px solid var(--book-border);
|
||
}
|
||
|
||
.chapter-drawer-footer {
|
||
border-bottom: 0;
|
||
border-top: 1px solid var(--book-border);
|
||
}
|
||
|
||
.chapter-drawer-header {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 1rem;
|
||
}
|
||
|
||
.chapter-drawer-label {
|
||
margin: 0;
|
||
font-size: 0.75rem;
|
||
color: var(--book-muted);
|
||
}
|
||
|
||
.chapter-drawer-title {
|
||
margin: 0.25rem 0 0;
|
||
font-size: 1rem;
|
||
font-weight: 600;
|
||
}
|
||
|
||
.chapter-drawer-close {
|
||
width: 2rem;
|
||
height: 2rem;
|
||
border: 0;
|
||
border-radius: 999px;
|
||
background: rgba(240, 90, 155, 0.12);
|
||
color: inherit;
|
||
font-size: 1.25rem;
|
||
line-height: 1;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.chapter-drawer-list {
|
||
flex: 1;
|
||
min-height: 0;
|
||
overflow-y: auto;
|
||
padding: 0.75rem;
|
||
}
|
||
|
||
.chapter-drawer-item {
|
||
display: flex;
|
||
gap: 0.75rem;
|
||
align-items: flex-start;
|
||
margin-bottom: 0.5rem;
|
||
padding: 0.85rem 1rem;
|
||
border-radius: 1rem;
|
||
text-decoration: none;
|
||
color: var(--book-text);
|
||
background: transparent;
|
||
transition: background 0.15s ease, color 0.15s ease;
|
||
}
|
||
|
||
.chapter-drawer-item:hover {
|
||
background: var(--book-accent-soft);
|
||
color: var(--book-text);
|
||
}
|
||
|
||
.chapter-drawer-item.is-active {
|
||
background: var(--book-accent-soft);
|
||
color: var(--book-accent);
|
||
font-weight: 600;
|
||
}
|
||
|
||
.chapter-drawer-index {
|
||
flex-shrink: 0;
|
||
font-size: 0.75rem;
|
||
opacity: 0.55;
|
||
font-variant-numeric: tabular-nums;
|
||
}
|
||
|
||
.chapter-drawer-name {
|
||
line-height: 1.45;
|
||
font-size: 0.92rem;
|
||
}
|
||
|
||
.chapter-drawer-back {
|
||
color: var(--book-muted);
|
||
text-decoration: none;
|
||
font-size: 0.875rem;
|
||
}
|
||
|
||
.chapter-drawer-back:hover {
|
||
color: var(--book-accent);
|
||
}
|
||
|
||
.reader-hint {
|
||
position: fixed;
|
||
bottom: 1rem;
|
||
left: 50%;
|
||
transform: translateX(-50%);
|
||
margin: 0;
|
||
padding: 0.35rem 0.75rem;
|
||
border-radius: 999px;
|
||
background: var(--book-surface-strong);
|
||
border: 1px solid var(--book-border);
|
||
color: var(--book-muted);
|
||
font-size: 0.7rem;
|
||
letter-spacing: 0.08em;
|
||
pointer-events: none;
|
||
opacity: 0.7;
|
||
}
|
||
|
||
@media (max-width: 640px) {
|
||
.reader-hint {
|
||
display: none;
|
||
}
|
||
}
|
||
|
||
@media (max-width: 640px) {
|
||
.prose {
|
||
font-size: calc(var(--book-font-size) - 1px);
|
||
}
|
||
|
||
.prose p {
|
||
text-align: left;
|
||
}
|
||
}
|
||
|
||
/* ── Viral cover & share UI ── */
|
||
|
||
.viral-cover {
|
||
color: #f8f4ff;
|
||
}
|
||
|
||
.viral-cover-bg {
|
||
position: fixed;
|
||
inset: 0;
|
||
z-index: 0;
|
||
pointer-events: none;
|
||
}
|
||
|
||
.viral-cover-gradient {
|
||
position: absolute;
|
||
inset: 0;
|
||
opacity: 0.92;
|
||
}
|
||
|
||
.viral-grid {
|
||
position: absolute;
|
||
inset: 0;
|
||
background-image:
|
||
linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
|
||
linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
|
||
background-size: 48px 48px;
|
||
mask-image: radial-gradient(circle at center, black 20%, transparent 75%);
|
||
}
|
||
|
||
.viral-cover .orb-1 {
|
||
width: 280px;
|
||
height: 280px;
|
||
top: -60px;
|
||
left: -40px;
|
||
background: #a855f7;
|
||
}
|
||
|
||
.viral-cover .orb-2 {
|
||
width: 220px;
|
||
height: 220px;
|
||
top: 20%;
|
||
right: -30px;
|
||
background: #ec4899;
|
||
}
|
||
|
||
.viral-cover .orb-3 {
|
||
width: 180px;
|
||
height: 180px;
|
||
bottom: 10%;
|
||
left: 30%;
|
||
background: #f97316;
|
||
}
|
||
|
||
.viral-tag {
|
||
display: inline-flex;
|
||
padding: 0.35rem 0.75rem;
|
||
border-radius: 999px;
|
||
font-size: 0.75rem;
|
||
background: rgba(255, 255, 255, 0.1);
|
||
border: 1px solid rgba(255, 255, 255, 0.16);
|
||
backdrop-filter: blur(8px);
|
||
animation: tag-pop 0.5s ease backwards;
|
||
}
|
||
|
||
@keyframes tag-pop {
|
||
from { opacity: 0; transform: scale(0.9); }
|
||
to { opacity: 1; transform: scale(1); }
|
||
}
|
||
|
||
.viral-badge {
|
||
display: inline-flex;
|
||
margin: 0 0 1rem;
|
||
padding: 0.4rem 0.85rem;
|
||
border-radius: 999px;
|
||
font-size: 0.78rem;
|
||
letter-spacing: 0.06em;
|
||
background: rgba(255, 255, 255, 0.12);
|
||
border: 1px solid rgba(255, 255, 255, 0.18);
|
||
}
|
||
|
||
.viral-title {
|
||
margin: 0;
|
||
font-size: clamp(2.4rem, 8vw, 4.2rem);
|
||
font-weight: 700;
|
||
line-height: 1.08;
|
||
letter-spacing: 0.06em;
|
||
text-wrap: balance;
|
||
background: linear-gradient(135deg, #fff 0%, #fbcfe8 45%, #c4b5fd 100%);
|
||
-webkit-background-clip: text;
|
||
background-clip: text;
|
||
color: transparent;
|
||
}
|
||
|
||
.viral-subtitle {
|
||
margin: 0.75rem 0 0;
|
||
font-size: clamp(1rem, 3vw, 1.25rem);
|
||
color: rgba(255, 255, 255, 0.78);
|
||
}
|
||
|
||
.viral-desc {
|
||
margin: 1rem 0 0;
|
||
max-width: 36rem;
|
||
font-size: 0.95rem;
|
||
line-height: 1.75;
|
||
color: rgba(255, 255, 255, 0.62);
|
||
}
|
||
|
||
.viral-stats {
|
||
display: grid;
|
||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||
gap: 0.75rem;
|
||
margin-top: 1.75rem;
|
||
}
|
||
|
||
@media (min-width: 640px) {
|
||
.viral-stats {
|
||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||
}
|
||
}
|
||
|
||
.viral-stat-card {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
gap: 0.2rem;
|
||
padding: 0.85rem 0.5rem;
|
||
border-radius: 1.1rem;
|
||
background: rgba(255, 255, 255, 0.08);
|
||
border: 1px solid rgba(255, 255, 255, 0.12);
|
||
backdrop-filter: blur(10px);
|
||
transition: transform 0.2s ease, border-color 0.2s ease;
|
||
}
|
||
|
||
.viral-stat-card:hover {
|
||
transform: translateY(-3px);
|
||
border-color: rgba(255, 255, 255, 0.28);
|
||
}
|
||
|
||
.viral-stat-emoji {
|
||
font-size: 1.25rem;
|
||
}
|
||
|
||
.stat-counter {
|
||
font-size: 1.5rem;
|
||
font-weight: 700;
|
||
font-variant-numeric: tabular-nums;
|
||
line-height: 1.1;
|
||
}
|
||
|
||
.viral-stat-label {
|
||
font-size: 0.72rem;
|
||
color: rgba(255, 255, 255, 0.55);
|
||
}
|
||
|
||
.viral-tagline {
|
||
margin: 2rem 0 0;
|
||
font-size: 1.05rem;
|
||
font-style: italic;
|
||
color: rgba(255, 255, 255, 0.72);
|
||
}
|
||
|
||
.viral-book-card {
|
||
position: relative;
|
||
border-radius: 1.5rem;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.viral-book-card-glow {
|
||
position: absolute;
|
||
inset: -20%;
|
||
background: radial-gradient(circle, rgba(236, 72, 153, 0.35), transparent 60%);
|
||
animation: glow-pulse 4s ease-in-out infinite;
|
||
}
|
||
|
||
@keyframes glow-pulse {
|
||
0%, 100% { opacity: 0.6; transform: scale(1); }
|
||
50% { opacity: 1; transform: scale(1.05); }
|
||
}
|
||
|
||
.viral-book-card-inner {
|
||
position: relative;
|
||
min-height: 22rem;
|
||
padding: 1.75rem;
|
||
border-radius: 1.5rem;
|
||
background: linear-gradient(155deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
|
||
border: 1px solid rgba(255, 255, 255, 0.18);
|
||
backdrop-filter: blur(16px);
|
||
display: flex;
|
||
flex-direction: column;
|
||
box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
|
||
}
|
||
|
||
.insight-carousel {
|
||
margin-top: 3rem;
|
||
}
|
||
|
||
.insight-carousel-label {
|
||
margin: 0 0 0.85rem;
|
||
font-size: 0.82rem;
|
||
color: rgba(255, 255, 255, 0.55);
|
||
}
|
||
|
||
.insight-carousel-track {
|
||
display: flex;
|
||
gap: 0.85rem;
|
||
overflow-x: auto;
|
||
padding-bottom: 0.5rem;
|
||
scroll-snap-type: x mandatory;
|
||
-webkit-overflow-scrolling: touch;
|
||
scrollbar-width: none;
|
||
}
|
||
|
||
.insight-carousel-track::-webkit-scrollbar {
|
||
display: none;
|
||
}
|
||
|
||
.insight-card {
|
||
flex: 0 0 min(85vw, 18rem);
|
||
scroll-snap-align: start;
|
||
padding: 1.1rem 1.15rem;
|
||
border-radius: 1.15rem;
|
||
background: rgba(255, 255, 255, 0.09);
|
||
border: 1px solid rgba(255, 255, 255, 0.14);
|
||
animation: card-in 0.5s ease backwards;
|
||
}
|
||
|
||
@keyframes card-in {
|
||
from { opacity: 0; transform: translateY(10px); }
|
||
to { opacity: 1; transform: translateY(0); }
|
||
}
|
||
|
||
.insight-card-emoji {
|
||
display: block;
|
||
font-size: 1.4rem;
|
||
margin-bottom: 0.5rem;
|
||
}
|
||
|
||
.insight-card p {
|
||
margin: 0;
|
||
font-size: 0.9rem;
|
||
line-height: 1.65;
|
||
color: rgba(255, 255, 255, 0.82);
|
||
}
|
||
|
||
.viral-chapter-grid {
|
||
display: grid;
|
||
grid-template-columns: 1fr;
|
||
gap: 0.75rem;
|
||
margin-top: 3rem;
|
||
padding-bottom: 3rem;
|
||
}
|
||
|
||
@media (min-width: 640px) {
|
||
.viral-chapter-grid {
|
||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||
}
|
||
}
|
||
|
||
@media (min-width: 1024px) {
|
||
.viral-chapter-grid {
|
||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||
}
|
||
}
|
||
|
||
.viral-chapter-card {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 0.35rem;
|
||
padding: 1.1rem 1.15rem;
|
||
border-radius: 1.15rem;
|
||
text-decoration: none;
|
||
color: inherit;
|
||
background: rgba(255, 255, 255, 0.07);
|
||
border: 1px solid rgba(255, 255, 255, 0.12);
|
||
transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
|
||
}
|
||
|
||
.viral-chapter-card:hover {
|
||
transform: translateY(-4px);
|
||
background: rgba(255, 255, 255, 0.12);
|
||
border-color: rgba(255, 255, 255, 0.24);
|
||
}
|
||
|
||
.viral-chapter-num {
|
||
font-size: 0.7rem;
|
||
letter-spacing: 0.2em;
|
||
color: rgba(255, 255, 255, 0.4);
|
||
}
|
||
|
||
.viral-chapter-emoji {
|
||
font-size: 1.5rem;
|
||
}
|
||
|
||
.viral-chapter-title {
|
||
font-size: 0.95rem;
|
||
font-weight: 600;
|
||
color: rgba(255, 255, 255, 0.92);
|
||
}
|
||
|
||
.viral-chapter-hook {
|
||
font-size: 0.78rem;
|
||
line-height: 1.5;
|
||
color: rgba(255, 255, 255, 0.55);
|
||
}
|
||
|
||
.scroll-reveal {
|
||
opacity: 0;
|
||
transform: translateY(18px);
|
||
transition: opacity 0.55s ease, transform 0.55s ease;
|
||
}
|
||
|
||
.scroll-reveal.is-visible {
|
||
opacity: 1;
|
||
transform: translateY(0);
|
||
}
|
||
|
||
.share-x-btn {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 0.45rem;
|
||
padding: 0.65rem 1.1rem;
|
||
border: 0;
|
||
border-radius: 999px;
|
||
font-size: 0.82rem;
|
||
font-weight: 600;
|
||
color: #fff;
|
||
background: linear-gradient(135deg, #111 0%, #2d2d2d 100%);
|
||
cursor: pointer;
|
||
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
|
||
transition: transform 0.18s ease, box-shadow 0.18s ease;
|
||
}
|
||
|
||
.share-x-btn:hover {
|
||
transform: translateY(-2px);
|
||
box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
|
||
}
|
||
|
||
.share-x-btn.is-compact {
|
||
padding: 0.45rem 0.65rem;
|
||
font-size: 0.75rem;
|
||
}
|
||
|
||
.share-x-label-compact {
|
||
font-size: 0.72rem;
|
||
font-weight: 700;
|
||
}
|
||
|
||
.skill-radar {
|
||
padding: 1rem;
|
||
border-radius: 1.25rem;
|
||
background: rgba(255, 255, 255, 0.08);
|
||
border: 1px solid rgba(255, 255, 255, 0.14);
|
||
backdrop-filter: blur(10px);
|
||
}
|
||
|
||
.skill-radar-label {
|
||
margin: 0 0 0.5rem;
|
||
font-size: 0.82rem;
|
||
color: rgba(255, 255, 255, 0.65);
|
||
text-align: center;
|
||
}
|
||
|
||
.skill-radar-svg {
|
||
width: 100%;
|
||
height: auto;
|
||
display: block;
|
||
}
|
||
|
||
.skill-radar-text {
|
||
font-size: 9px;
|
||
fill: rgba(255, 255, 255, 0.55);
|
||
}
|
||
|
||
.skill-radar-area {
|
||
animation: radar-in 1.2s ease forwards;
|
||
transform-origin: center;
|
||
}
|
||
|
||
@keyframes radar-in {
|
||
from { opacity: 0; transform: scale(0.6); }
|
||
to { opacity: 1; transform: scale(1); }
|
||
}
|
||
|
||
/* ── Chapter hero & shareable quotes ── */
|
||
|
||
.chapter-hero {
|
||
margin-bottom: 2rem;
|
||
padding-bottom: 1.5rem;
|
||
border-bottom: 1px dashed var(--book-border);
|
||
}
|
||
|
||
.chapter-hero-top {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 1rem;
|
||
}
|
||
|
||
.chapter-hero-emoji {
|
||
font-size: 2.5rem;
|
||
animation: emoji-bounce 2s ease-in-out infinite;
|
||
}
|
||
|
||
@keyframes emoji-bounce {
|
||
0%, 100% { transform: translateY(0); }
|
||
50% { transform: translateY(-6px); }
|
||
}
|
||
|
||
.chapter-hero-hook {
|
||
margin: 1rem 0 0;
|
||
font-size: 1.05rem;
|
||
font-weight: 500;
|
||
color: var(--book-muted);
|
||
line-height: 1.65;
|
||
font-style: italic;
|
||
}
|
||
|
||
.progress-ring-fill {
|
||
transition: stroke-dashoffset 0.8s ease;
|
||
}
|
||
|
||
.progress-ring-text {
|
||
fill: var(--book-muted);
|
||
font-family: ui-sans-serif, system-ui, sans-serif;
|
||
font-weight: 600;
|
||
}
|
||
|
||
.reader-share-group {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 0.25rem;
|
||
}
|
||
|
||
.reader-copy-btn {
|
||
min-width: 2.25rem;
|
||
justify-content: center;
|
||
padding: 0 0.55rem;
|
||
}
|
||
|
||
.chapter-drawer-emoji {
|
||
margin-right: 0.35rem;
|
||
}
|
||
|
||
/* ── Continuous scroll reader ── */
|
||
|
||
.scroll-reader-layout {
|
||
display: flex;
|
||
align-items: stretch;
|
||
}
|
||
|
||
.scroll-reader-content {
|
||
flex: 1;
|
||
min-width: 0;
|
||
}
|
||
|
||
.scroll-reader-main {
|
||
padding-bottom: 4rem;
|
||
}
|
||
|
||
/* ── Left chapter sidebar ── */
|
||
|
||
.chapter-sidebar {
|
||
display: none;
|
||
flex-direction: column;
|
||
width: 15.5rem;
|
||
flex-shrink: 0;
|
||
position: sticky;
|
||
top: 0;
|
||
height: 100vh;
|
||
overflow: hidden;
|
||
background: var(--book-surface-strong);
|
||
color: var(--book-text);
|
||
border-right: 1px solid var(--book-border);
|
||
}
|
||
|
||
@media (min-width: 1024px) {
|
||
.chapter-sidebar {
|
||
display: flex;
|
||
}
|
||
|
||
.chapter-sidebar-toggle {
|
||
display: none !important;
|
||
}
|
||
}
|
||
|
||
.chapter-sidebar-header {
|
||
flex-shrink: 0;
|
||
padding: 1.25rem 1.15rem 1rem;
|
||
border-bottom: 1px solid var(--book-border);
|
||
}
|
||
|
||
.chapter-sidebar-label {
|
||
margin: 0;
|
||
font-size: 0.72rem;
|
||
color: var(--book-muted);
|
||
}
|
||
|
||
.chapter-sidebar-title {
|
||
margin: 0.3rem 0 0;
|
||
font-size: 1rem;
|
||
font-weight: 600;
|
||
color: var(--book-text);
|
||
}
|
||
|
||
.chapter-sidebar-search-wrap {
|
||
flex-shrink: 0;
|
||
padding: 0.75rem 1rem;
|
||
}
|
||
|
||
.chapter-sidebar-search {
|
||
width: 100%;
|
||
border: 1px solid var(--book-border);
|
||
background: var(--book-soft);
|
||
color: var(--book-text);
|
||
border-radius: 0.65rem;
|
||
padding: 0.55rem 0.7rem;
|
||
font-size: 0.82rem;
|
||
outline: none;
|
||
}
|
||
|
||
.chapter-sidebar-search::placeholder {
|
||
color: var(--book-muted);
|
||
}
|
||
|
||
.chapter-sidebar-list {
|
||
flex: 1;
|
||
min-height: 0;
|
||
overflow-y: auto;
|
||
padding: 0.25rem 0.65rem 0.75rem;
|
||
}
|
||
|
||
.chapter-sidebar-item {
|
||
display: flex;
|
||
gap: 0.65rem;
|
||
align-items: flex-start;
|
||
flex: 1;
|
||
min-width: 0;
|
||
margin-bottom: 0;
|
||
padding: 0.7rem 0.5rem 0.7rem 0.75rem;
|
||
border-radius: 0.75rem;
|
||
text-decoration: none;
|
||
color: var(--book-text);
|
||
transition: background 0.15s ease, color 0.15s ease;
|
||
}
|
||
|
||
.chapter-sidebar-item:hover {
|
||
background: var(--book-accent-soft);
|
||
}
|
||
|
||
.chapter-sidebar-item.is-active {
|
||
background: var(--book-accent-soft);
|
||
color: var(--book-accent);
|
||
font-weight: 600;
|
||
}
|
||
|
||
.chapter-sidebar-index {
|
||
flex-shrink: 0;
|
||
font-size: 0.72rem;
|
||
color: var(--book-muted);
|
||
font-variant-numeric: tabular-nums;
|
||
padding-top: 0.15rem;
|
||
}
|
||
|
||
.chapter-sidebar-item.is-active .chapter-sidebar-index {
|
||
color: var(--book-accent);
|
||
opacity: 0.75;
|
||
}
|
||
|
||
.chapter-sidebar-name {
|
||
line-height: 1.45;
|
||
font-size: 0.86rem;
|
||
}
|
||
|
||
.chapter-sidebar-emoji {
|
||
margin-right: 0.3rem;
|
||
}
|
||
|
||
.chapter-sidebar-footer {
|
||
flex-shrink: 0;
|
||
padding: 0.85rem 1.15rem;
|
||
border-top: 1px solid var(--book-border);
|
||
}
|
||
|
||
.chapter-sidebar-back {
|
||
color: var(--book-muted);
|
||
text-decoration: none;
|
||
font-size: 0.82rem;
|
||
}
|
||
|
||
.chapter-sidebar-back:hover {
|
||
color: var(--book-accent);
|
||
}
|
||
|
||
.chapter-sidebar-toggle {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 0.35rem;
|
||
height: 2.25rem;
|
||
padding: 0 0.65rem;
|
||
border-radius: 999px;
|
||
border: 1px solid var(--book-border);
|
||
background: var(--book-surface-strong);
|
||
color: var(--book-text);
|
||
font-size: 0.82rem;
|
||
cursor: pointer;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
/* Mobile drawer — slides from left */
|
||
|
||
.chapter-sidebar-mobile {
|
||
position: fixed;
|
||
inset: 0;
|
||
z-index: 1000;
|
||
pointer-events: none;
|
||
}
|
||
|
||
.chapter-sidebar-mobile.is-open {
|
||
pointer-events: auto;
|
||
}
|
||
|
||
.chapter-sidebar-backdrop {
|
||
position: absolute;
|
||
inset: 0;
|
||
border: 0;
|
||
background: rgba(8, 6, 14, 0.55);
|
||
backdrop-filter: blur(4px);
|
||
opacity: 0;
|
||
transition: opacity 0.2s ease;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.chapter-sidebar-mobile.is-open .chapter-sidebar-backdrop {
|
||
opacity: 1;
|
||
}
|
||
|
||
.chapter-sidebar-panel {
|
||
position: absolute;
|
||
top: 0;
|
||
left: 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
width: min(88vw, 20rem);
|
||
height: 100%;
|
||
background: var(--book-surface-strong);
|
||
color: var(--book-text);
|
||
border-right: 1px solid var(--book-border);
|
||
box-shadow: 8px 0 40px rgba(0, 0, 0, 0.2);
|
||
transform: translateX(-100%);
|
||
transition: transform 0.24s ease;
|
||
}
|
||
|
||
.chapter-sidebar-mobile.is-open .chapter-sidebar-panel {
|
||
transform: translateX(0);
|
||
}
|
||
|
||
.chapter-sidebar-close {
|
||
position: absolute;
|
||
top: 0.85rem;
|
||
right: 0.85rem;
|
||
z-index: 2;
|
||
width: 2rem;
|
||
height: 2rem;
|
||
border: 0;
|
||
border-radius: 999px;
|
||
background: var(--book-accent-soft);
|
||
color: var(--book-text);
|
||
font-size: 1.25rem;
|
||
line-height: 1;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.chapter-sidebar-panel .chapter-sidebar-header {
|
||
padding-right: 2.5rem;
|
||
}
|
||
|
||
.chapter-section {
|
||
scroll-margin-top: 5.5rem;
|
||
}
|
||
|
||
.chapter-section + .chapter-section {
|
||
margin-top: 3.5rem;
|
||
}
|
||
|
||
.chapter-section-divider {
|
||
display: flex;
|
||
justify-content: center;
|
||
margin-bottom: 2.5rem;
|
||
color: var(--book-muted);
|
||
font-size: 0.85rem;
|
||
letter-spacing: 0.5em;
|
||
opacity: 0.6;
|
||
}
|
||
|
||
.book-end {
|
||
margin-top: 4rem;
|
||
padding: 3rem 1rem 2rem;
|
||
text-align: center;
|
||
border-top: 1px dashed var(--book-border);
|
||
}
|
||
|
||
.book-end-emoji {
|
||
margin: 0;
|
||
font-size: 2rem;
|
||
}
|
||
|
||
.book-end-text {
|
||
margin: 0.75rem 0 0;
|
||
font-size: 1.1rem;
|
||
font-weight: 600;
|
||
color: var(--book-text);
|
||
}
|
||
|
||
.book-end-sub {
|
||
margin: 0.35rem 0 0;
|
||
font-size: 0.9rem;
|
||
color: var(--book-muted);
|
||
font-style: italic;
|
||
}
|
||
|
||
.scroll-nav-hint {
|
||
position: fixed;
|
||
bottom: 1rem;
|
||
left: 50%;
|
||
z-index: 25;
|
||
transform: translateX(-50%);
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 0.5rem;
|
||
padding: 0.4rem 0.85rem;
|
||
border-radius: 999px;
|
||
background: var(--book-surface-strong);
|
||
border: 1px solid var(--book-border);
|
||
color: var(--book-muted);
|
||
font-size: 0.72rem;
|
||
letter-spacing: 0.06em;
|
||
backdrop-filter: blur(10px);
|
||
}
|
||
|
||
.scroll-nav-home {
|
||
color: var(--book-accent);
|
||
text-decoration: none;
|
||
}
|
||
|
||
.scroll-nav-home:hover {
|
||
text-decoration: underline;
|
||
}
|
||
|
||
.scroll-nav-divider {
|
||
opacity: 0.4;
|
||
}
|
||
|
||
@media (max-width: 640px) {
|
||
.scroll-nav-hint {
|
||
display: none;
|
||
}
|
||
|
||
.scroll-reader-main {
|
||
padding-bottom: 2rem;
|
||
}
|
||
}
|
||
|
||
.chapter-hero-meta {
|
||
margin: 0.65rem 0 0;
|
||
font-size: 0.78rem;
|
||
color: var(--book-muted);
|
||
letter-spacing: 0.06em;
|
||
}
|
||
|
||
.viral-chapter-card {
|
||
position: relative;
|
||
}
|
||
|
||
.viral-chapter-read {
|
||
position: absolute;
|
||
top: 1rem;
|
||
right: 1rem;
|
||
font-size: 0.68rem;
|
||
padding: 0.15rem 0.45rem;
|
||
border-radius: 999px;
|
||
background: rgba(74, 222, 128, 0.18);
|
||
color: #bbf7d0;
|
||
letter-spacing: 0.08em;
|
||
}
|
||
|
||
.viral-chapter-card.is-read {
|
||
border-color: rgba(74, 222, 128, 0.28);
|
||
}
|
||
|
||
.chapter-sidebar-progress {
|
||
margin-top: 0.85rem;
|
||
}
|
||
|
||
.chapter-sidebar-progress p {
|
||
margin: 0;
|
||
font-size: 0.72rem;
|
||
color: var(--book-muted);
|
||
}
|
||
|
||
.chapter-sidebar-progress-track {
|
||
margin-top: 0.45rem;
|
||
height: 4px;
|
||
border-radius: 999px;
|
||
background: var(--book-soft);
|
||
overflow: hidden;
|
||
}
|
||
|
||
.chapter-sidebar-progress-fill {
|
||
height: 100%;
|
||
border-radius: 999px;
|
||
background: linear-gradient(90deg, var(--book-accent), var(--book-accent-2));
|
||
transition: width 0.3s ease;
|
||
}
|
||
|
||
.chapter-sidebar-headings {
|
||
margin: -0.15rem 0 0.65rem 2.4rem;
|
||
padding: 0;
|
||
list-style: none;
|
||
}
|
||
|
||
.chapter-sidebar-row {
|
||
display: flex;
|
||
align-items: flex-start;
|
||
gap: 0.1rem;
|
||
margin-bottom: 0.35rem;
|
||
}
|
||
|
||
.chapter-sidebar-expand {
|
||
flex-shrink: 0;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
width: 1.7rem;
|
||
height: 1.7rem;
|
||
margin-top: 0.55rem;
|
||
margin-right: 0.35rem;
|
||
border: none;
|
||
border-radius: 0.45rem;
|
||
background: transparent;
|
||
color: var(--book-muted);
|
||
cursor: pointer;
|
||
}
|
||
|
||
.chapter-sidebar-expand:hover {
|
||
background: var(--book-accent-soft);
|
||
color: var(--book-accent);
|
||
}
|
||
|
||
.chapter-sidebar-expand svg {
|
||
transition: transform 0.15s ease;
|
||
}
|
||
|
||
.chapter-sidebar-expand.is-open svg {
|
||
transform: rotate(90deg);
|
||
}
|
||
|
||
.chapter-sidebar-headings a {
|
||
display: block;
|
||
padding: 0.28rem 0.2rem;
|
||
font-size: 0.75rem;
|
||
color: var(--book-muted);
|
||
text-decoration: none;
|
||
line-height: 1.4;
|
||
}
|
||
|
||
.chapter-sidebar-headings a:hover {
|
||
color: var(--book-accent);
|
||
}
|
||
|
||
.chapter-sidebar-bookmarks {
|
||
flex-shrink: 0;
|
||
max-height: 8.5rem;
|
||
overflow-y: auto;
|
||
padding: 0.65rem 1rem 0.25rem;
|
||
border-top: 1px solid var(--book-border);
|
||
}
|
||
|
||
.chapter-sidebar-bookmarks-label {
|
||
margin: 0 0 0.4rem;
|
||
font-size: 0.7rem;
|
||
color: var(--book-muted);
|
||
letter-spacing: 0.08em;
|
||
}
|
||
|
||
.chapter-sidebar-bookmark {
|
||
display: block;
|
||
width: 100%;
|
||
margin: 0 0 0.25rem;
|
||
padding: 0.35rem 0;
|
||
border: 0;
|
||
background: transparent;
|
||
color: var(--book-text);
|
||
font-size: 0.78rem;
|
||
text-align: left;
|
||
cursor: pointer;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.chapter-sidebar-bookmark:hover {
|
||
color: var(--book-accent);
|
||
}
|
||
|
||
.reader-search-btn,
|
||
.reader-settings-btn,
|
||
.reader-copy-btn {
|
||
min-width: 2.25rem;
|
||
justify-content: center;
|
||
padding: 0 0.55rem;
|
||
}
|
||
|
||
.reader-settings {
|
||
position: relative;
|
||
}
|
||
|
||
.reader-settings-panel {
|
||
position: absolute;
|
||
right: 0;
|
||
top: calc(100% + 0.55rem);
|
||
width: min(18rem, 78vw);
|
||
padding: 0.9rem;
|
||
border-radius: 1.1rem;
|
||
border: 1px solid var(--book-border);
|
||
background: var(--book-surface-strong);
|
||
box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
|
||
z-index: 40;
|
||
}
|
||
|
||
.reader-settings-label {
|
||
margin: 0.65rem 0 0.4rem;
|
||
font-size: 0.72rem;
|
||
color: var(--book-muted);
|
||
}
|
||
|
||
.reader-settings-label:first-child {
|
||
margin-top: 0;
|
||
}
|
||
|
||
.reader-settings-pills {
|
||
display: flex;
|
||
gap: 0.3rem;
|
||
}
|
||
|
||
.reader-settings-pills button {
|
||
flex: 1;
|
||
border: 1px solid var(--book-border);
|
||
background: transparent;
|
||
color: var(--book-muted);
|
||
font-size: 0.75rem;
|
||
padding: 0.3rem 0.2rem;
|
||
border-radius: 999px;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.reader-settings-pills button.is-active {
|
||
background: var(--book-accent-soft);
|
||
color: var(--book-accent);
|
||
border-color: transparent;
|
||
font-weight: 600;
|
||
}
|
||
|
||
.reader-settings-tip {
|
||
margin: 0.85rem 0 0;
|
||
font-size: 0.7rem;
|
||
color: var(--book-muted);
|
||
}
|
||
|
||
.book-search-root,
|
||
.shortcut-help-root {
|
||
position: fixed;
|
||
inset: 0;
|
||
z-index: 1100;
|
||
}
|
||
|
||
.book-search-backdrop {
|
||
position: absolute;
|
||
inset: 0;
|
||
border: 0;
|
||
background: rgba(8, 6, 14, 0.55);
|
||
backdrop-filter: blur(6px);
|
||
cursor: pointer;
|
||
}
|
||
|
||
.book-search-panel,
|
||
.shortcut-help-panel {
|
||
position: relative;
|
||
z-index: 1;
|
||
width: min(36rem, calc(100vw - 1.5rem));
|
||
margin: 12vh auto 0;
|
||
border-radius: 1.25rem;
|
||
border: 1px solid var(--book-border);
|
||
background: var(--book-surface-strong);
|
||
box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
|
||
overflow: hidden;
|
||
}
|
||
|
||
.book-search-bar {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 0.65rem;
|
||
padding: 0.85rem 1rem;
|
||
border-bottom: 1px solid var(--book-border);
|
||
}
|
||
|
||
.book-search-bar input {
|
||
flex: 1;
|
||
border: 0;
|
||
background: transparent;
|
||
color: var(--book-text);
|
||
font-size: 1rem;
|
||
outline: none;
|
||
}
|
||
|
||
.book-search-bar kbd,
|
||
.shortcut-help-panel kbd {
|
||
font-family: ui-sans-serif, system-ui, sans-serif;
|
||
font-size: 0.7rem;
|
||
padding: 0.15rem 0.4rem;
|
||
border-radius: 0.4rem;
|
||
border: 1px solid var(--book-border);
|
||
color: var(--book-muted);
|
||
}
|
||
|
||
.book-search-results {
|
||
max-height: min(50vh, 22rem);
|
||
overflow-y: auto;
|
||
padding: 0.4rem;
|
||
}
|
||
|
||
.book-search-hint {
|
||
margin: 0;
|
||
padding: 1.25rem 0.85rem;
|
||
font-size: 0.85rem;
|
||
color: var(--book-muted);
|
||
text-align: center;
|
||
}
|
||
|
||
.book-search-item {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 0.2rem;
|
||
width: 100%;
|
||
padding: 0.7rem 0.8rem;
|
||
border: 0;
|
||
border-radius: 0.85rem;
|
||
background: transparent;
|
||
color: var(--book-text);
|
||
text-align: left;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.book-search-item.is-active,
|
||
.book-search-item:hover {
|
||
background: var(--book-accent-soft);
|
||
}
|
||
|
||
.book-search-meta {
|
||
font-size: 0.78rem;
|
||
color: var(--book-muted);
|
||
}
|
||
|
||
.book-search-snippet {
|
||
font-size: 0.88rem;
|
||
line-height: 1.5;
|
||
}
|
||
|
||
.shortcut-help-panel {
|
||
padding: 1.25rem 1.35rem 1.1rem;
|
||
}
|
||
|
||
.shortcut-help-title {
|
||
margin: 0 0 0.85rem;
|
||
font-size: 1rem;
|
||
font-weight: 600;
|
||
}
|
||
|
||
.shortcut-help-panel ul {
|
||
margin: 0;
|
||
padding: 0;
|
||
list-style: none;
|
||
}
|
||
|
||
.shortcut-help-panel li {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 1rem;
|
||
padding: 0.45rem 0;
|
||
border-top: 1px solid var(--book-border);
|
||
font-size: 0.88rem;
|
||
}
|
||
|
||
.shortcut-help-panel li:first-of-type {
|
||
border-top: 0;
|
||
}
|
||
|
||
.selection-share {
|
||
position: fixed;
|
||
z-index: 80;
|
||
display: flex;
|
||
gap: 0.25rem;
|
||
padding: 0.25rem;
|
||
border-radius: 999px;
|
||
border: 1px solid var(--book-border);
|
||
background: var(--book-surface-strong);
|
||
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
|
||
transform: translate(-50%, calc(-100% - 10px));
|
||
}
|
||
|
||
.selection-share button {
|
||
border: 0;
|
||
background: transparent;
|
||
color: var(--book-text);
|
||
font-size: 0.75rem;
|
||
padding: 0.35rem 0.7rem;
|
||
border-radius: 999px;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.selection-share button:hover {
|
||
background: var(--book-accent-soft);
|
||
color: var(--book-accent);
|
||
}
|
||
|
||
.code-block-wrap {
|
||
position: relative;
|
||
margin: 1.5rem 0;
|
||
}
|
||
|
||
.code-copy-btn {
|
||
position: absolute;
|
||
top: 0.55rem;
|
||
right: 0.55rem;
|
||
z-index: 1;
|
||
border: 1px solid var(--book-border);
|
||
background: var(--book-surface-strong);
|
||
color: var(--book-muted);
|
||
font-size: 0.7rem;
|
||
padding: 0.2rem 0.5rem;
|
||
border-radius: 999px;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.code-copy-btn:hover {
|
||
color: var(--book-accent);
|
||
}
|
||
|
||
.book-end-actions {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
justify-content: center;
|
||
gap: 0.65rem;
|
||
margin-top: 1.35rem;
|
||
}
|
||
|
||
.book-end-btn {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
padding: 0.65rem 1.1rem;
|
||
border-radius: 999px;
|
||
border: 1px solid var(--book-border);
|
||
background: var(--book-soft);
|
||
color: var(--book-text);
|
||
font-size: 0.82rem;
|
||
text-decoration: none;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.book-end-btn:hover {
|
||
border-color: var(--book-accent);
|
||
color: var(--book-accent);
|
||
}
|
||
|
||
@media (prefers-reduced-motion: reduce) {
|
||
html {
|
||
scroll-behavior: auto;
|
||
}
|
||
|
||
.hero-orb,
|
||
.skill-radar-area,
|
||
.chapter-hero-emoji,
|
||
.viral-book-card-glow,
|
||
.scroll-reveal,
|
||
.prose {
|
||
animation: none !important;
|
||
transition: none !important;
|
||
}
|
||
}
|
||
|
||
.reader-measure {
|
||
width: 100%;
|
||
max-width: var(--reader-max-width, 56rem);
|
||
}
|
||
|
||
.reader-settings-panel {
|
||
max-height: min(72vh, 32rem);
|
||
overflow-y: auto;
|
||
}
|
||
|
||
.reader-settings-zen {
|
||
width: 100%;
|
||
margin-top: 0.85rem;
|
||
padding: 0.5rem 0.7rem;
|
||
border-radius: 0.75rem;
|
||
border: 1px solid var(--book-border);
|
||
background: var(--book-soft);
|
||
color: var(--book-text);
|
||
font-size: 0.8rem;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.reader-settings-zen.is-active {
|
||
background: var(--book-accent-soft);
|
||
color: var(--book-accent);
|
||
border-color: transparent;
|
||
}
|
||
|
||
.reader-settings-danger {
|
||
display: flex;
|
||
gap: 0.5rem;
|
||
margin-top: 0.75rem;
|
||
}
|
||
|
||
.reader-settings-danger button {
|
||
flex: 1;
|
||
border: 0;
|
||
background: transparent;
|
||
color: var(--book-muted);
|
||
font-size: 0.72rem;
|
||
cursor: pointer;
|
||
padding: 0.3rem 0;
|
||
}
|
||
|
||
.reader-settings-danger button:hover {
|
||
color: var(--book-accent);
|
||
}
|
||
|
||
.zen-mode .chapter-sidebar {
|
||
display: none !important;
|
||
}
|
||
|
||
.zen-mode .chapter-sidebar-toggle {
|
||
display: none !important;
|
||
}
|
||
|
||
.zen-exit {
|
||
position: fixed;
|
||
top: 0.85rem;
|
||
left: 50%;
|
||
z-index: 60;
|
||
transform: translateX(-50%);
|
||
padding: 0.4rem 0.9rem;
|
||
border-radius: 999px;
|
||
border: 1px solid var(--book-border);
|
||
background: var(--book-surface-strong);
|
||
color: var(--book-muted);
|
||
font-size: 0.75rem;
|
||
cursor: pointer;
|
||
opacity: 0.35;
|
||
transition: opacity 0.2s ease;
|
||
}
|
||
|
||
.zen-exit:hover,
|
||
.zen-exit:focus {
|
||
opacity: 1;
|
||
color: var(--book-text);
|
||
}
|
||
|
||
mark.text-highlight,
|
||
.prose mark.text-highlight {
|
||
background: rgba(250, 204, 21, 0.38);
|
||
color: inherit;
|
||
border-radius: 0.15em;
|
||
padding: 0.05em 0.12em;
|
||
box-shadow: inset 0 -0.12em 0 rgba(245, 158, 11, 0.35);
|
||
}
|
||
|
||
.sepia mark.text-highlight,
|
||
.sepia .prose mark.text-highlight {
|
||
background: rgba(234, 179, 8, 0.35);
|
||
}
|
||
|
||
.chapter-pull-quote {
|
||
margin: 1.35rem 0 0;
|
||
padding: 1rem 1.15rem 0.85rem;
|
||
border-radius: 1.1rem;
|
||
background: linear-gradient(135deg, var(--book-accent-soft), transparent 70%);
|
||
border: 1px solid var(--book-border);
|
||
}
|
||
|
||
.chapter-pull-quote blockquote {
|
||
margin: 0;
|
||
padding: 0;
|
||
border: 0;
|
||
background: none;
|
||
font-style: italic;
|
||
color: var(--book-text);
|
||
font-size: 1.02rem;
|
||
line-height: 1.7;
|
||
}
|
||
|
||
.chapter-pull-quote-actions {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 0.45rem;
|
||
margin-top: 0.75rem;
|
||
}
|
||
|
||
.chapter-pull-quote-actions button {
|
||
border: 0;
|
||
background: var(--book-soft);
|
||
color: var(--book-muted);
|
||
font-size: 0.75rem;
|
||
padding: 0.35rem 0.7rem;
|
||
border-radius: 999px;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.chapter-pull-quote-actions button:hover {
|
||
color: var(--book-accent);
|
||
}
|
||
|
||
.chapter-next-peek {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 0.2rem;
|
||
margin-top: 2.5rem;
|
||
padding: 1rem 1.1rem;
|
||
border-radius: 1.1rem;
|
||
border: 1px dashed var(--book-border);
|
||
text-decoration: none;
|
||
color: var(--book-text);
|
||
transition: border-color 0.15s ease, background 0.15s ease;
|
||
}
|
||
|
||
.chapter-next-peek span {
|
||
font-size: 0.72rem;
|
||
letter-spacing: 0.12em;
|
||
color: var(--book-muted);
|
||
}
|
||
|
||
.chapter-next-peek strong {
|
||
font-weight: 600;
|
||
}
|
||
|
||
.chapter-next-peek:hover {
|
||
border-color: var(--book-accent);
|
||
background: var(--book-accent-soft);
|
||
}
|
||
|
||
.heading-with-link .heading-link-btn {
|
||
margin-left: 0.4rem;
|
||
border: 0;
|
||
background: transparent;
|
||
color: var(--book-muted);
|
||
font-size: 0.75em;
|
||
opacity: 0;
|
||
cursor: pointer;
|
||
vertical-align: middle;
|
||
}
|
||
|
||
.heading-with-link:hover .heading-link-btn,
|
||
.heading-link-btn:focus {
|
||
opacity: 1;
|
||
}
|
||
|
||
.chapter-sidebar-highlight {
|
||
display: flex;
|
||
align-items: flex-start;
|
||
gap: 0.25rem;
|
||
}
|
||
|
||
.chapter-sidebar-highlight .chapter-sidebar-bookmark {
|
||
white-space: normal;
|
||
line-height: 1.4;
|
||
display: -webkit-box;
|
||
-webkit-line-clamp: 2;
|
||
-webkit-box-orient: vertical;
|
||
}
|
||
|
||
.chapter-sidebar-highlight-del {
|
||
flex-shrink: 0;
|
||
width: 1.4rem;
|
||
height: 1.4rem;
|
||
border: 0;
|
||
border-radius: 999px;
|
||
background: transparent;
|
||
color: var(--book-muted);
|
||
cursor: pointer;
|
||
}
|
||
|
||
.chapter-sidebar-highlight-del:hover {
|
||
color: var(--book-accent);
|
||
}
|
||
|
||
.viral-chapter-mins {
|
||
margin-top: 0.35rem;
|
||
font-size: 0.7rem;
|
||
letter-spacing: 0.06em;
|
||
color: rgba(255, 255, 255, 0.42);
|
||
}
|
||
|
||
.viral-free-badge {
|
||
display: inline-flex;
|
||
padding: 0.35rem 0.85rem;
|
||
border-radius: 999px;
|
||
font-size: 0.75rem;
|
||
font-weight: 600;
|
||
letter-spacing: 0.06em;
|
||
background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(251, 207, 232, 0.95));
|
||
color: #4c1d95;
|
||
}
|
||
|
||
.cover-sticky-cta {
|
||
position: fixed;
|
||
left: 0;
|
||
right: 0;
|
||
bottom: 0;
|
||
z-index: 50;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 0.75rem;
|
||
padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
|
||
background: rgba(18, 15, 29, 0.92);
|
||
border-top: 1px solid rgba(255, 255, 255, 0.12);
|
||
backdrop-filter: blur(12px);
|
||
}
|
||
|
||
@media (min-width: 768px) {
|
||
.cover-sticky-cta {
|
||
display: none;
|
||
}
|
||
}
|
||
|
||
.cover-sticky-read {
|
||
flex: 1;
|
||
text-align: center;
|
||
padding: 0.75rem 1rem;
|
||
border-radius: 999px;
|
||
background: #fff;
|
||
color: #4c1d95;
|
||
font-size: 0.88rem;
|
||
font-weight: 700;
|
||
text-decoration: none;
|
||
}
|
||
|
||
.cover-sticky-meta {
|
||
font-size: 0.72rem;
|
||
color: rgba(255, 255, 255, 0.55);
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.site-footer {
|
||
margin-top: 3rem;
|
||
padding: 2rem 0 5rem;
|
||
text-align: center;
|
||
border-top: 1px solid rgba(255, 255, 255, 0.12);
|
||
}
|
||
|
||
.site-footer-title {
|
||
margin: 0;
|
||
font-size: 0.95rem;
|
||
color: rgba(255, 255, 255, 0.82);
|
||
}
|
||
|
||
.site-footer-sub {
|
||
margin: 0.45rem 0 0;
|
||
font-size: 0.78rem;
|
||
color: rgba(255, 255, 255, 0.48);
|
||
}
|
||
|
||
.site-footer-links {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
justify-content: center;
|
||
gap: 1rem;
|
||
margin-top: 1rem;
|
||
}
|
||
|
||
.site-footer-links a {
|
||
font-size: 0.82rem;
|
||
color: rgba(255, 255, 255, 0.72);
|
||
text-decoration: none;
|
||
}
|
||
|
||
.site-footer-links a:hover {
|
||
color: #fbcfe8;
|
||
}
|
||
|
||
.feedback-fab {
|
||
position: fixed;
|
||
right: 1rem;
|
||
bottom: 5.5rem;
|
||
z-index: 45;
|
||
width: 2.75rem;
|
||
height: 2.75rem;
|
||
border: 1px solid var(--book-border);
|
||
border-radius: 999px;
|
||
background: var(--book-surface-strong);
|
||
box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
|
||
cursor: pointer;
|
||
font-size: 1.1rem;
|
||
}
|
||
|
||
@media (min-width: 768px) {
|
||
.feedback-fab {
|
||
bottom: 1.25rem;
|
||
}
|
||
}
|
||
|
||
.feedback-modal-root {
|
||
position: fixed;
|
||
inset: 0;
|
||
z-index: 1200;
|
||
}
|
||
|
||
.feedback-modal {
|
||
position: relative;
|
||
z-index: 1;
|
||
width: min(26rem, calc(100vw - 2rem));
|
||
margin: 18vh auto 0;
|
||
padding: 1.25rem 1.35rem;
|
||
border-radius: 1.25rem;
|
||
border: 1px solid var(--book-border);
|
||
background: var(--book-surface-strong);
|
||
box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
|
||
}
|
||
|
||
.feedback-modal h3 {
|
||
margin: 0;
|
||
font-size: 1.05rem;
|
||
}
|
||
|
||
.feedback-modal p {
|
||
margin: 0.45rem 0 0;
|
||
font-size: 0.85rem;
|
||
color: var(--book-muted);
|
||
line-height: 1.55;
|
||
}
|
||
|
||
.feedback-modal textarea,
|
||
.feedback-modal input {
|
||
width: 100%;
|
||
margin-top: 0.85rem;
|
||
border: 1px solid var(--book-border);
|
||
background: var(--book-soft);
|
||
color: var(--book-text);
|
||
border-radius: 0.75rem;
|
||
padding: 0.65rem 0.75rem;
|
||
font-size: 0.88rem;
|
||
outline: none;
|
||
}
|
||
|
||
.feedback-actions {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 0.5rem;
|
||
margin-top: 0.85rem;
|
||
align-items: center;
|
||
}
|
||
|
||
.feedback-submit {
|
||
border: 0;
|
||
border-radius: 999px;
|
||
padding: 0.55rem 1rem;
|
||
background: var(--book-accent);
|
||
color: #fff;
|
||
font-size: 0.82rem;
|
||
font-weight: 600;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.feedback-link {
|
||
font-size: 0.78rem;
|
||
color: var(--book-muted);
|
||
text-decoration: none;
|
||
}
|
||
|
||
.feedback-success {
|
||
margin-top: 1rem !important;
|
||
color: var(--book-accent) !important;
|
||
font-weight: 600;
|
||
}
|
||
|
||
.viral-share-prompt {
|
||
position: fixed;
|
||
left: 50%;
|
||
bottom: 1rem;
|
||
z-index: 55;
|
||
transform: translateX(-50%);
|
||
width: min(24rem, calc(100vw - 1.5rem));
|
||
padding: 0.85rem 1rem;
|
||
border-radius: 1.1rem;
|
||
border: 1px solid var(--book-border);
|
||
background: var(--book-surface-strong);
|
||
box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
|
||
}
|
||
|
||
.viral-share-prompt p {
|
||
margin: 0;
|
||
font-size: 0.82rem;
|
||
color: var(--book-text);
|
||
}
|
||
|
||
.viral-share-prompt-actions {
|
||
display: flex;
|
||
gap: 0.5rem;
|
||
margin-top: 0.65rem;
|
||
align-items: center;
|
||
}
|
||
|
||
.viral-share-dismiss {
|
||
border: 0;
|
||
background: transparent;
|
||
color: var(--book-muted);
|
||
font-size: 0.78rem;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.ad-slot {
|
||
margin: 1.5rem 0;
|
||
padding: 0.75rem;
|
||
border-radius: 1rem;
|
||
border: 1px dashed var(--book-border);
|
||
background: var(--book-soft);
|
||
min-height: 90px;
|
||
}
|
||
|
||
.ad-slot-label {
|
||
margin: 0 0 0.5rem;
|
||
font-size: 0.68rem;
|
||
letter-spacing: 0.1em;
|
||
color: var(--book-muted);
|
||
text-align: center;
|
||
}
|
||
|
||
.cover-ad-slot {
|
||
border-color: rgba(255, 255, 255, 0.16);
|
||
background: rgba(255, 255, 255, 0.06);
|
||
}
|
||
|
||
.cover-ad-slot .ad-slot-label {
|
||
color: rgba(255, 255, 255, 0.45);
|
||
}
|
||
|
||
.crypto-support {
|
||
margin: 2.5rem auto 0;
|
||
max-width: 42rem;
|
||
padding: 1.4rem 1.35rem 1.5rem;
|
||
border-radius: 1.4rem;
|
||
border: 1px solid rgba(255, 255, 255, 0.16);
|
||
background: rgba(12, 8, 22, 0.45);
|
||
backdrop-filter: blur(16px);
|
||
color: #fff;
|
||
}
|
||
|
||
.crypto-support.is-compact {
|
||
margin-top: 2rem;
|
||
max-width: 36rem;
|
||
background: var(--book-soft);
|
||
border-color: var(--book-border);
|
||
color: var(--book-text);
|
||
}
|
||
|
||
.crypto-support-kicker {
|
||
margin: 0;
|
||
font-size: 0.72rem;
|
||
letter-spacing: 0.14em;
|
||
text-transform: uppercase;
|
||
opacity: 0.62;
|
||
}
|
||
|
||
.crypto-support-title {
|
||
margin: 0.35rem 0 0;
|
||
font-size: 1.35rem;
|
||
font-weight: 700;
|
||
}
|
||
|
||
.crypto-support-sub {
|
||
margin: 0.45rem 0 0;
|
||
font-size: 0.92rem;
|
||
line-height: 1.5;
|
||
opacity: 0.78;
|
||
}
|
||
|
||
.crypto-support-tiers {
|
||
display: grid;
|
||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||
gap: 0.65rem;
|
||
margin-top: 1.1rem;
|
||
}
|
||
|
||
.crypto-support-tier {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 0.15rem;
|
||
padding: 0.75rem 0.5rem;
|
||
border-radius: 1rem;
|
||
border: 1px solid rgba(255, 255, 255, 0.16);
|
||
background: rgba(255, 255, 255, 0.08);
|
||
color: inherit;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.crypto-support.is-compact .crypto-support-tier {
|
||
border-color: var(--book-border);
|
||
background: var(--book-surface);
|
||
}
|
||
|
||
.crypto-support-tier:hover:not(:disabled) {
|
||
border-color: var(--book-accent);
|
||
transform: translateY(-1px);
|
||
}
|
||
|
||
.crypto-support-tier:disabled {
|
||
opacity: 0.6;
|
||
cursor: wait;
|
||
}
|
||
|
||
.crypto-support-label {
|
||
font-size: 0.72rem;
|
||
opacity: 0.7;
|
||
}
|
||
|
||
.crypto-support-amount {
|
||
font-size: 1.05rem;
|
||
font-weight: 700;
|
||
}
|
||
|
||
.crypto-support-error {
|
||
margin: 0.8rem 0 0;
|
||
font-size: 0.82rem;
|
||
color: #ff8aa0;
|
||
}
|
||
|
||
.support-thanks {
|
||
min-height: 70vh;
|
||
display: grid;
|
||
place-content: center;
|
||
gap: 0.75rem;
|
||
padding: 2.5rem 1.25rem;
|
||
text-align: center;
|
||
max-width: 32rem;
|
||
margin: 0 auto;
|
||
}
|
||
|
||
.support-thanks-kicker {
|
||
margin: 0;
|
||
letter-spacing: 0.16em;
|
||
text-transform: uppercase;
|
||
font-size: 0.72rem;
|
||
color: var(--book-muted);
|
||
}
|
||
|
||
.support-thanks h1 {
|
||
margin: 0;
|
||
font-size: 2.2rem;
|
||
}
|
||
|
||
.support-thanks p {
|
||
margin: 0;
|
||
color: var(--book-muted);
|
||
line-height: 1.6;
|
||
}
|
||
|
||
.support-thanks-actions {
|
||
display: flex;
|
||
justify-content: center;
|
||
gap: 0.8rem;
|
||
margin-top: 0.6rem;
|
||
}
|
||
|
||
.support-thanks-actions a {
|
||
color: var(--book-accent);
|
||
}
|
||
|
||
@media (max-width: 640px) {
|
||
.crypto-support-tiers {
|
||
grid-template-columns: 1fr;
|
||
}
|
||
}
|
||
|
||
.buy-ebook {
|
||
margin: 2.5rem auto 0;
|
||
max-width: 42rem;
|
||
padding: 1.6rem 1.35rem 1.5rem;
|
||
border-radius: 1.4rem;
|
||
border: 1px solid rgba(139, 92, 246, 0.3);
|
||
background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(240, 90, 155, 0.06));
|
||
backdrop-filter: blur(16px);
|
||
color: #fff;
|
||
text-align: center;
|
||
}
|
||
|
||
.buy-ebook.is-compact {
|
||
margin-top: 2rem;
|
||
max-width: 36rem;
|
||
background: var(--book-soft);
|
||
border-color: var(--book-border);
|
||
color: var(--book-text);
|
||
}
|
||
|
||
.buy-ebook-title {
|
||
margin: 0;
|
||
font-size: 1.35rem;
|
||
font-weight: 700;
|
||
}
|
||
|
||
.buy-ebook-sub {
|
||
margin: 0.5rem 0 0;
|
||
font-size: 0.92rem;
|
||
line-height: 1.5;
|
||
opacity: 0.78;
|
||
}
|
||
|
||
.buy-ebook-btn {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 0.5rem;
|
||
margin-top: 1.1rem;
|
||
padding: 0.85rem 2.2rem;
|
||
border-radius: 999px;
|
||
border: none;
|
||
background: linear-gradient(135deg, var(--book-accent), var(--book-accent-2));
|
||
color: #fff;
|
||
font-size: 1rem;
|
||
font-weight: 700;
|
||
cursor: pointer;
|
||
box-shadow: 0 8px 25px rgba(240, 90, 155, 0.25);
|
||
transition: transform 0.15s, box-shadow 0.15s;
|
||
}
|
||
|
||
.buy-ebook-btn:hover:not(:disabled) {
|
||
transform: translateY(-2px);
|
||
box-shadow: 0 12px 35px rgba(240, 90, 155, 0.35);
|
||
}
|
||
|
||
.buy-ebook-btn:disabled {
|
||
opacity: 0.6;
|
||
cursor: wait;
|
||
}
|
||
|
||
.buy-ebook-error {
|
||
margin: 0.8rem 0 0;
|
||
font-size: 0.82rem;
|
||
color: #ff8aa0;
|
||
}
|
||
|
||
.buy-ebook {
|
||
margin: 2rem auto 0;
|
||
max-width: 42rem;
|
||
padding: 1.4rem 1.35rem 1.5rem;
|
||
border-radius: 1.4rem;
|
||
border: 1px solid rgba(255, 255, 255, 0.16);
|
||
background: rgba(12, 8, 22, 0.45);
|
||
backdrop-filter: blur(16px);
|
||
color: #fff;
|
||
text-align: center;
|
||
}
|
||
|
||
.buy-ebook.is-compact {
|
||
margin-top: 1.5rem;
|
||
max-width: 36rem;
|
||
background: var(--book-soft);
|
||
border-color: var(--book-border);
|
||
color: var(--book-text);
|
||
}
|
||
|
||
.buy-ebook-title {
|
||
margin: 0;
|
||
font-size: 1.35rem;
|
||
font-weight: 700;
|
||
}
|
||
|
||
.buy-ebook-sub {
|
||
margin: 0.45rem 0 0;
|
||
font-size: 0.92rem;
|
||
line-height: 1.5;
|
||
opacity: 0.78;
|
||
}
|
||
|
||
.buy-ebook-btn {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 0.5rem;
|
||
margin-top: 1rem;
|
||
padding: 0.75rem 2rem;
|
||
border-radius: 999px;
|
||
border: none;
|
||
background: linear-gradient(135deg, var(--book-accent), var(--book-accent-2));
|
||
color: #fff;
|
||
font-size: 1rem;
|
||
font-weight: 700;
|
||
cursor: pointer;
|
||
transition: transform 0.15s, box-shadow 0.15s;
|
||
}
|
||
|
||
.buy-ebook-btn:hover:not(:disabled) {
|
||
transform: translateY(-1px);
|
||
box-shadow: 0 8px 24px rgba(240, 90, 155, 0.3);
|
||
}
|
||
|
||
.buy-ebook-btn:disabled {
|
||
opacity: 0.6;
|
||
cursor: wait;
|
||
}
|
||
|
||
.buy-ebook-error {
|
||
margin: 0.8rem 0 0;
|
||
font-size: 0.82rem;
|
||
color: #ff8aa0;
|
||
}
|
||
|
||
.locale-switch {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
gap: 0.4rem;
|
||
height: 2.4rem;
|
||
padding: 0 0.95rem 0 0.75rem;
|
||
border-radius: 999px;
|
||
border: 1px solid rgba(255, 255, 255, 0.4);
|
||
background: rgba(10, 8, 22, 0.62);
|
||
color: #fff;
|
||
font-size: 0.84rem;
|
||
font-weight: 700;
|
||
letter-spacing: 0.04em;
|
||
cursor: pointer;
|
||
backdrop-filter: blur(14px);
|
||
box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
|
||
}
|
||
|
||
.locale-switch:hover {
|
||
background: rgba(18, 12, 36, 0.78);
|
||
border-color: rgba(255, 255, 255, 0.55);
|
||
}
|
||
|
||
.viral-cover > .locale-switch {
|
||
position: absolute;
|
||
top: 1.15rem;
|
||
right: 1.15rem;
|
||
z-index: 50;
|
||
}
|
||
|
||
.reader-chrome .locale-switch {
|
||
height: 2.05rem;
|
||
padding: 0 0.7rem 0 0.55rem;
|
||
background: var(--book-soft);
|
||
border-color: var(--book-border);
|
||
color: var(--book-text);
|
||
box-shadow: none;
|
||
backdrop-filter: none;
|
||
}
|
||
|
||
.ant-card .locale-switch {
|
||
height: 2rem;
|
||
background: #111827;
|
||
border-color: #4b5563;
|
||
color: #fff;
|
||
box-shadow: none;
|
||
}
|
||
|
||
/* ── Nomadweb ↔ ebook fusion: cover layout locked in CSS (not Tailwind) ── */
|
||
|
||
.ebook-section {
|
||
/* neutralize main-site scroll offset for fixed navbar */
|
||
scroll-padding-top: 0;
|
||
}
|
||
|
||
.ebook-section .cover-root {
|
||
position: relative;
|
||
min-height: 100vh;
|
||
overflow: hidden;
|
||
color: #f8f4ff;
|
||
}
|
||
|
||
.ebook-section .viral-cover-bg {
|
||
position: fixed;
|
||
inset: 0;
|
||
z-index: 0;
|
||
pointer-events: none;
|
||
}
|
||
|
||
.ebook-section .cover-shell {
|
||
position: relative;
|
||
z-index: 10;
|
||
width: 100%;
|
||
max-width: 72rem;
|
||
margin: 0 auto;
|
||
padding: 2.5rem 1rem 4rem;
|
||
}
|
||
|
||
@media (min-width: 640px) {
|
||
.ebook-section .cover-shell {
|
||
padding: 3.5rem 1.5rem 5rem;
|
||
}
|
||
}
|
||
|
||
@media (min-width: 1024px) {
|
||
.ebook-section .cover-shell {
|
||
padding: 4rem 1.5rem 5rem;
|
||
}
|
||
}
|
||
|
||
.ebook-section .cover-back-home {
|
||
position: fixed;
|
||
top: 18px;
|
||
left: 18px;
|
||
z-index: 90;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
height: 40px;
|
||
padding: 0 14px;
|
||
border-radius: 999px;
|
||
font-size: 0.82rem;
|
||
font-weight: 700;
|
||
letter-spacing: 0.02em;
|
||
color: #ffe66d !important;
|
||
background: rgba(10, 8, 22, 0.72);
|
||
border: 1px solid rgba(255, 255, 255, 0.28);
|
||
backdrop-filter: blur(12px);
|
||
box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
|
||
}
|
||
|
||
.ebook-section .cover-back-home:hover {
|
||
border-color: rgba(255, 255, 255, 0.5);
|
||
}
|
||
|
||
.ebook-section .cover-tags {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
align-items: center;
|
||
justify-content: center;
|
||
gap: 0.5rem;
|
||
}
|
||
|
||
@media (min-width: 1024px) {
|
||
.ebook-section .cover-tags {
|
||
justify-content: flex-start;
|
||
}
|
||
}
|
||
|
||
.ebook-section .cover-hero {
|
||
display: grid;
|
||
gap: 2.5rem;
|
||
align-items: center;
|
||
margin-top: 2rem;
|
||
}
|
||
|
||
@media (min-width: 1024px) {
|
||
.ebook-section .cover-hero {
|
||
grid-template-columns: 1.1fr 0.9fr;
|
||
gap: 3.5rem;
|
||
}
|
||
}
|
||
|
||
.ebook-section .cover-main {
|
||
text-align: center;
|
||
}
|
||
|
||
@media (min-width: 1024px) {
|
||
.ebook-section .cover-main {
|
||
text-align: left;
|
||
}
|
||
}
|
||
|
||
.ebook-section .cover-aside {
|
||
width: 100%;
|
||
max-width: 24rem;
|
||
margin: 0 auto;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 1.5rem;
|
||
}
|
||
|
||
@media (min-width: 1024px) {
|
||
.ebook-section .cover-aside {
|
||
max-width: 28rem;
|
||
margin: 0;
|
||
}
|
||
}
|
||
|
||
.ebook-section .cover-cta-row {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
gap: 1rem;
|
||
margin-top: 2.5rem;
|
||
}
|
||
|
||
@media (min-width: 640px) {
|
||
.ebook-section .cover-cta-row {
|
||
flex-direction: row;
|
||
justify-content: flex-start;
|
||
align-items: stretch;
|
||
}
|
||
}
|
||
|
||
.ebook-section .cover-main .cover-cta-row {
|
||
justify-content: center;
|
||
}
|
||
|
||
@media (min-width: 1024px) {
|
||
.ebook-section .cover-main .cover-cta-row {
|
||
justify-content: flex-start;
|
||
}
|
||
}
|
||
|
||
.ebook-section a.cover-primary-cta,
|
||
.ebook-section .cover-primary-cta {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 0.75rem;
|
||
padding: 1rem 2rem;
|
||
border-radius: 999px;
|
||
font-size: 0.875rem;
|
||
font-weight: 600;
|
||
line-height: 1.2;
|
||
color: #4a044e !important;
|
||
background: #fff !important;
|
||
box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
|
||
transition: transform 0.18s ease, box-shadow 0.18s ease;
|
||
}
|
||
|
||
.ebook-section .cover-primary-cta:hover {
|
||
transform: translateY(-2px);
|
||
box-shadow: 0 24px 55px rgba(0, 0, 0, 0.3);
|
||
}
|
||
|
||
.ebook-section .cover-primary-cta-chapter {
|
||
max-width: 10rem;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
opacity: 0.8;
|
||
}
|
||
|
||
.ebook-section .cover-progress-card {
|
||
text-align: left;
|
||
padding: 0.75rem 1.25rem;
|
||
border-radius: 1rem;
|
||
color: rgba(255, 255, 255, 0.85);
|
||
background: rgba(255, 255, 255, 0.1);
|
||
border: 1px solid rgba(255, 255, 255, 0.14);
|
||
backdrop-filter: blur(12px);
|
||
}
|
||
|
||
.ebook-section .cover-progress-label {
|
||
margin: 0;
|
||
font-size: 0.75rem;
|
||
color: rgba(255, 255, 255, 0.6);
|
||
}
|
||
|
||
.ebook-section .cover-progress-detail {
|
||
margin: 0.25rem 0 0;
|
||
font-size: 0.875rem;
|
||
font-weight: 500;
|
||
}
|
||
|
||
.ebook-section .cover-progress-track {
|
||
margin-top: 0.5rem;
|
||
width: 10rem;
|
||
height: 0.375rem;
|
||
overflow: hidden;
|
||
border-radius: 999px;
|
||
background: rgba(255, 255, 255, 0.15);
|
||
}
|
||
|
||
.ebook-section .cover-progress-fill {
|
||
height: 100%;
|
||
border-radius: 999px;
|
||
background: rgba(255, 255, 255, 0.85);
|
||
transition: width 0.3s ease;
|
||
}
|
||
|
||
.ebook-section .cover-share-row {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
align-items: center;
|
||
justify-content: center;
|
||
gap: 0.75rem;
|
||
margin-top: 1rem;
|
||
}
|
||
|
||
@media (min-width: 1024px) {
|
||
.ebook-section .cover-share-row {
|
||
justify-content: flex-start;
|
||
}
|
||
}
|
||
|
||
.ebook-section .cover-book-kicker {
|
||
margin: 0;
|
||
font-size: 0.75rem;
|
||
letter-spacing: 0.3em;
|
||
text-transform: uppercase;
|
||
color: rgba(255, 255, 255, 0.5);
|
||
}
|
||
|
||
.ebook-section .cover-book-body {
|
||
margin-top: auto;
|
||
padding-top: 4rem;
|
||
}
|
||
|
||
.ebook-section .cover-book-author {
|
||
margin: 0;
|
||
font-size: 0.875rem;
|
||
color: rgba(255, 255, 255, 0.6);
|
||
}
|
||
|
||
.ebook-section .cover-book-title {
|
||
margin: 0.5rem 0 0;
|
||
font-family: 'Noto Serif SC', serif;
|
||
font-size: 2.25rem;
|
||
font-weight: 700;
|
||
color: #fff;
|
||
line-height: 1.15;
|
||
}
|
||
|
||
.ebook-section .cover-book-sub {
|
||
margin: 0.75rem 0 0;
|
||
color: rgba(255, 255, 255, 0.75);
|
||
}
|
||
|
||
.ebook-section .cover-book-chapters {
|
||
list-style: none;
|
||
margin: 1.5rem 0 0;
|
||
padding: 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 0.5rem;
|
||
}
|
||
|
||
.ebook-section .cover-book-chapters li {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 0.5rem;
|
||
font-size: 0.875rem;
|
||
color: rgba(255, 255, 255, 0.7);
|
||
overflow: hidden;
|
||
}
|
||
|
||
.ebook-section .cover-book-chapters li span:last-child {
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.ebook-section .cover-book-more {
|
||
color: rgba(255, 255, 255, 0.45) !important;
|
||
}
|
||
|
||
.ebook-section .scroll-reveal.is-visible {
|
||
opacity: 1 !important;
|
||
transform: translateY(0) !important;
|
||
}
|
||
|
||
.ebook-section .viral-title {
|
||
font-family: var(--book-font-family) !important;
|
||
font-size: clamp(2.4rem, 8vw, 4.2rem) !important;
|
||
margin: 0 !important;
|
||
line-height: 1.08 !important;
|
||
font-weight: 700 !important;
|
||
letter-spacing: 0.06em;
|
||
color: transparent !important;
|
||
background: linear-gradient(135deg, #fff 0%, #fbcfe8 45%, #c4b5fd 100%);
|
||
-webkit-background-clip: text;
|
||
background-clip: text;
|
||
}
|
||
|
||
/* ── Reader fusion: match book.nomadro.com, isolate main-site CSS bleed ── */
|
||
|
||
.ebook-section .scroll-reader-layout {
|
||
min-height: 100vh;
|
||
display: flex;
|
||
align-items: stretch;
|
||
background: var(--book-bg);
|
||
}
|
||
|
||
.ebook-section .reader-chrome {
|
||
position: sticky;
|
||
top: 0;
|
||
z-index: 30;
|
||
background: color-mix(in srgb, var(--book-surface) 92%, transparent);
|
||
backdrop-filter: blur(16px);
|
||
}
|
||
|
||
.ebook-section .chapter-sidebar {
|
||
position: sticky;
|
||
top: 0;
|
||
align-self: flex-start;
|
||
height: 100vh;
|
||
z-index: 20;
|
||
flex-shrink: 0;
|
||
width: 15.5rem;
|
||
background: var(--book-surface-strong);
|
||
border-right: 1px solid var(--book-border);
|
||
}
|
||
|
||
.ebook-section .scroll-reader-content {
|
||
min-width: 0;
|
||
flex: 1;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: stretch;
|
||
background: var(--book-bg);
|
||
}
|
||
|
||
/* 2/4 = book.nomadro.com 对称居中;1/3 = 贴左右边空。用 grid 强制,别靠 margin:auto */
|
||
.ebook-section .reader-center-wrap {
|
||
display: grid !important;
|
||
grid-template-columns: 1fr min(var(--reader-max-width, 56rem), 100%) 1fr !important;
|
||
width: 100% !important;
|
||
box-sizing: border-box !important;
|
||
padding-left: 0 !important;
|
||
padding-right: 0 !important;
|
||
}
|
||
|
||
.ebook-section .reader-center-wrap > .scroll-reader-main {
|
||
grid-column: 2 !important;
|
||
width: 100% !important;
|
||
max-width: none !important;
|
||
margin: 0 !important;
|
||
/* match book: px-4 / sm:px-6 */
|
||
padding: 1.5rem 1rem !important;
|
||
box-sizing: border-box !important;
|
||
flex: none !important;
|
||
display: block !important;
|
||
}
|
||
|
||
@media (min-width: 640px) {
|
||
.ebook-section .reader-center-wrap > .scroll-reader-main {
|
||
padding: 2.5rem 1.5rem !important;
|
||
}
|
||
}
|
||
|
||
@media (min-width: 1024px) {
|
||
.ebook-section .reader-center-wrap > .scroll-reader-main {
|
||
padding-top: 3rem !important;
|
||
padding-bottom: 3rem !important;
|
||
}
|
||
}
|
||
|
||
.ebook-section .reader-chrome .reader-measure {
|
||
width: min(100%, var(--reader-max-width, 56rem)) !important;
|
||
max-width: var(--reader-max-width, 56rem) !important;
|
||
margin-left: auto !important;
|
||
margin-right: auto !important;
|
||
}
|
||
|
||
.ebook-section .reader-paper {
|
||
background: var(--book-surface-strong);
|
||
border: 1px solid var(--book-border);
|
||
box-shadow:
|
||
0 24px 60px rgba(10, 6, 20, 0.16),
|
||
inset 0 1px 0 rgba(255, 255, 255, 0.35);
|
||
backdrop-filter: blur(12px);
|
||
overflow: visible;
|
||
border-radius: 1.5rem !important;
|
||
width: 100% !important;
|
||
margin: 0 !important;
|
||
box-sizing: border-box !important;
|
||
/* match book.nomadro.com: px-4 py-7 (Tailwind was dead under unlayered reset) */
|
||
padding: 1.75rem 1rem !important;
|
||
}
|
||
|
||
@media (min-width: 640px) {
|
||
.ebook-section .reader-paper {
|
||
border-radius: 2rem !important;
|
||
/* sm:px-8 sm:py-10 */
|
||
padding: 2.5rem 2rem !important;
|
||
}
|
||
}
|
||
|
||
@media (min-width: 1024px) {
|
||
.ebook-section .reader-paper {
|
||
/* lg:px-12 lg:py-14 */
|
||
padding: 3.5rem 3rem !important;
|
||
}
|
||
}
|
||
|
||
@media (min-width: 1024px) {
|
||
.ebook-section .reader-center-wrap {
|
||
grid-template-columns: 1fr min(var(--reader-max-width, 56rem), calc(100% - 3rem)) 1fr !important;
|
||
}
|
||
}
|
||
|
||
/* Neutralize main-site bleed that paints pink bars / wrong borders on prose */
|
||
.ebook-section .prose p,
|
||
.ebook-section .prose li,
|
||
.ebook-section .markdown-body p,
|
||
.ebook-section .markdown-body li {
|
||
border: none !important;
|
||
border-left: none !important;
|
||
border-bottom: none !important;
|
||
box-shadow: none !important;
|
||
background-image: none;
|
||
}
|
||
|
||
.ebook-section .prose p::before,
|
||
.ebook-section .prose p::after,
|
||
.ebook-section .prose li::before,
|
||
.ebook-section .markdown-body p::before,
|
||
.ebook-section .markdown-body p::after {
|
||
content: none !important;
|
||
display: none !important;
|
||
}
|
||
|
||
.ebook-section .prose h2,
|
||
.ebook-section .prose h3,
|
||
.ebook-section .heading-with-link {
|
||
border-bottom: none !important;
|
||
text-decoration: none !important;
|
||
}
|
||
|
||
.ebook-section .prose h2::after,
|
||
.ebook-section .prose h3::after,
|
||
.ebook-section .heading-with-link::after {
|
||
display: none !important;
|
||
}
|
||
|
||
/* Keep intentional chapter title underline only */
|
||
.ebook-section .prose .chapter-title::after {
|
||
display: block !important;
|
||
content: "" !important;
|
||
position: absolute;
|
||
left: 0;
|
||
bottom: 0;
|
||
width: 4rem;
|
||
height: 3px;
|
||
border-radius: 999px;
|
||
background: linear-gradient(90deg, var(--book-accent), var(--book-accent-2));
|
||
}
|
||
|
||
.ebook-section a.scroll-nav-home {
|
||
color: var(--book-accent) !important;
|
||
}
|
||
|
||
.ebook-section a.book-end-btn,
|
||
.ebook-section button.book-end-btn {
|
||
color: var(--book-text) !important;
|
||
}
|
||
|
||
.ebook-section a.book-end-btn:hover,
|
||
.ebook-section button.book-end-btn:hover {
|
||
color: var(--book-accent) !important;
|
||
}
|
||
|
||
.ebook-section a.chapter-next-peek {
|
||
color: var(--book-text) !important;
|
||
text-decoration: none;
|
||
}
|
||
|
||
.ebook-section a.chapter-next-peek:hover {
|
||
border-color: var(--book-accent);
|
||
color: var(--book-accent) !important;
|
||
}
|
||
|
||
.ebook-section .prose a,
|
||
.ebook-section .markdown-body a {
|
||
color: var(--book-accent);
|
||
text-decoration: underline;
|
||
text-underline-offset: 2px;
|
||
}
|
||
|
||
.ebook-section .prose blockquote,
|
||
.ebook-section blockquote {
|
||
border-left-width: 3px;
|
||
margin-left: 0;
|
||
padding-left: 1rem;
|
||
}
|
||
|
||
/* Kill payment blocks when flags are off but stale HTML remains */
|
||
.ebook-section .buy-ebook[hidden],
|
||
.ebook-section .crypto-support[hidden] {
|
||
display: none !important;
|
||
}
|
||
|