blog / style.css
wop's picture
Update style.css
750b229 verified
Raw
History Blame Contribute Delete
55 kB
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,wght@1,400;1,600&display=swap');
:root {
--bg: #eaf5ee;
--bg-gradient-top: #7cb8e0;
--bg-gradient-bottom: #eaf5ee;
--accent-green: #5da570;
--accent-green-soft: #9ccba6;
--text: #2d3e50;
--heading: #1a2b3c;
--muted: #6b7f92;
--surface: rgba(255,255,255,0.55);
--surface-2: rgba(255,255,255,0.75);
--border: rgba(255,255,255,0.7);
--border-soft: rgba(120, 160, 200, 0.18);
--accent: #4a90c2;
--accent-soft: #7cb8e0;
--white: #ffffff;
--transition: 0.2s ease;
--radius: 18px;
--shadow-soft: 0 8px 32px rgba(120, 160, 200, 0.15);
--shadow-hover: 0 12px 40px rgba(74, 144, 194, 0.2);
}
/* -------------------- BASE -------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
html { scroll-behavior: auto; }
*, *::before, *::after {
transition-duration: 0.01ms !important;
animation-duration: 0.01ms !important;
}
}
body {
background: var(--bg);
color: var(--text);
font-family: Inter, system-ui, sans-serif;
line-height: 1.75;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
padding-bottom: 80px; /* keep content clear of the grass strip */
}
h1, h2, h3, h4 {
color: var(--heading);
letter-spacing: -0.02em;
}
h1 {
font-family: 'Newsreader', serif;
font-style: italic;
}
p { color: var(--text); }
img {
max-width: 100%;
height: auto;
border-radius: var(--radius);
box-shadow: var(--shadow-soft);
}
a {
color: var(--accent);
text-decoration: none;
transition: opacity var(--transition);
}
a:hover { opacity: 0.75; }
a:focus-visible, .post-card a:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 4px;
border-radius: 4px;
opacity: 1;
}
/* -------------------- BACKGROUND -------------------- */
.background {
position: fixed;
inset: 0;
z-index: -1;
background:
radial-gradient(ellipse 130% 45% at 50% 108%, rgba(125, 180, 130, 0.35) 0%, transparent 70%),
linear-gradient(180deg, #7cb8e0 0%, #a8d0e8 35%, #d8ebf5 60%, #dceee2 82%, #e4f2e6 100%);
overflow: hidden;
}
/* Soft cloud-like glow */
.background::before {
content: '';
position: absolute;
top: 10%;
left: -10%;
width: 60%;
height: 40%;
background: radial-gradient(ellipse at center, rgba(255,255,255,0.6) 0%, transparent 70%);
filter: blur(40px);
pointer-events: none;
}
.background::after {
content: '';
position: absolute;
top: 30%;
right: -5%;
width: 50%;
height: 30%;
background: radial-gradient(ellipse at center, rgba(255,255,255,0.5) 0%, transparent 70%);
filter: blur(50px);
pointer-events: none;
}
/* Realistic drifting clouds — blobs of stacked box-shadows, edges
roughened by the #cloud-fluff SVG turbulence filter (injected by script.js) */
.background .cloud {
position: absolute;
left: 0;
width: 220px;
height: 60px;
border-radius: 50%;
background: rgba(255,255,255,0.9);
box-shadow:
-70px 12px 30px 6px rgba(255,255,255,0.75),
80px -12px 34px 10px rgba(255,255,255,0.9),
30px 14px 36px 8px rgba(255,255,255,0.8),
-20px -26px 28px 2px rgba(255,255,255,0.95),
60px 22px 30px 4px rgba(250,253,255,0.7),
0 34px 26px -14px rgba(150,175,200,0.4);
filter: url(#cloud-fluff);
animation: cloud-drift linear infinite;
will-change: transform;
}
.background .cloud-1 { top: 8%; --cloud-scale: 1.15; animation-duration: 210s; animation-delay: -80s; }
.background .cloud-2 { top: 24%; --cloud-scale: 0.75; opacity: 0.85; animation-duration: 260s; animation-delay: -180s; }
.background .cloud-3 { top: 14%; --cloud-scale: 1.5; opacity: 0.95; animation-duration: 300s; animation-delay: -40s; }
.background .cloud-4 { top: 36%; --cloud-scale: 0.55; opacity: 0.6; animation-duration: 320s; animation-delay: -240s; }
/* MOBILE: script.js tags clouds .cloud-simple and skips injecting #cloud-fluff.
Without this rule the clouds still reference the missing filter and get
hidden (Chromium treats an unresolved filter url() as display:none). */
.background .cloud-simple { filter: none; }
@keyframes cloud-drift {
from { transform: translateX(-45vw) scale(var(--cloud-scale, 1)); }
to { transform: translateX(120vw) scale(var(--cloud-scale, 1)); }
}
/* Swaying grass strip along the bottom edge (blades generated by script.js) */
.grass {
position: fixed;
bottom: -2px;
left: 0;
width: 100%;
height: 70px;
z-index: 50;
pointer-events: none;
}
@keyframes blade-sway {
from { transform: rotate(-2.4deg); }
to { transform: rotate(3.2deg); }
}
@media (prefers-reduced-motion: reduce) {
.grass path { animation: none !important; }
}
/* -------------------- LAYOUT -------------------- */
.container {
max-width: 820px;
margin: auto;
padding: 80px 24px;
}
.hero { margin-bottom: 60px; }
.hero h1 {
font-size: clamp(2.5rem, 8vw, 4rem);
font-weight: 800;
letter-spacing: -0.05em;
line-height: 1.1;
background: linear-gradient(135deg, #5da570 0%, #0c1927 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
text-shadow: 0 2px 20px rgba(255,255,255,0.3);
}
.subtitle {
margin-top: 12px;
color: var(--muted);
font-size: 1.05rem;
}
.discord {
display: inline-block;
margin-top: 18px;
color: var(--accent);
}
/* -------------------- POSTS -------------------- */
.posts {
display: flex;
flex-direction: column;
gap: 18px;
}
.post-card {
padding: 26px;
border-radius: var(--radius);
background: var(--surface);
border: 1px solid var(--border);
backdrop-filter: blur(20px) saturate(1.2);
-webkit-backdrop-filter: blur(20px) saturate(1.2);
box-shadow: var(--shadow-soft);
transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.post-card:hover {
transform: translateY(-3px);
background: var(--surface-2);
border-color: rgba(93, 165, 112, 0.4);
box-shadow: var(--shadow-hover);
}
.post-card h2 {
margin-top: 10px;
margin-bottom: 10px;
font-size: 1.4rem;
}
.post-card p {
color: var(--muted);
margin-bottom: 14px;
}
.date {
color: var(--muted);
font-size: 0.85rem;
}
/* -------------------- ARTICLE -------------------- */
.article {
max-width: 760px;
margin: auto;
padding: 80px 24px;
}
.article p, .article h1, .article h2 {
overflow-wrap: break-word;
}
/* Long, unbreakable link text (e.g. bare repo URLs/slugs) can otherwise push
the whole article wider than the viewport on narrow screens. */
.article a {
overflow-wrap: anywhere;
}
.article h1 {
font-size: clamp(2rem, 6vw, 3rem);
margin-bottom: 18px;
line-height: 1.2;
}
.article h2 {
margin-top: 44px;
margin-bottom: 12px;
}
.article p {
margin-bottom: 18px;
color: var(--text);
}
.meta {
color: var(--muted);
margin-bottom: 18px;
}
.back {
display: inline-block;
margin-bottom: 28px;
color: var(--accent);
}
/* -------------------- BLOCKQUOTE -------------------- */
blockquote {
margin: 24px 0;
padding: 16px 20px;
background: rgba(255,255,255,0.5);
border-left: 3px solid var(--accent);
border-radius: 0 12px 12px 0;
color: #3d5568;
font-size: 1.05rem;
font-style: italic;
box-shadow: var(--shadow-soft);
}
/* -------------------- CODE & SYNTAX HIGHLIGHTING -------------------- */
pre {
background: rgba(255,255,255,0.75);
border: 1px solid var(--border-soft);
border-radius: 14px;
padding: 20px;
overflow-x: auto;
margin: 20px 0;
position: relative;
box-shadow: var(--shadow-soft);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
}
code {
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
font-size: 0.88rem;
color: #2d3e50;
line-height: 1.7;
}
p code {
background: rgba(255,255,255,0.7);
padding: 2px 6px;
border-radius: 6px;
border: 1px solid var(--border-soft);
color: #2d3e50;
font-size: 0.88rem;
}
/* Light-theme syntax highlighting */
.tok-keyword { color: #c14a7b; }
.tok-string { color: #2a8f5f; }
.tok-comment { color: #8ba0b5; font-style: italic; }
.tok-number { color: #4a90c2; }
.tok-builtin { color: #c47a2c; }
.tok-function { color: #3a7ba8; }
.tok-decorator { color: #c47a2c; }
.tok-operator { color: #c14a7b; }
.tok-self { color: #c47a2c; font-style: italic; }
.tok-punctuation{ color: #6b7f92; }
/* -------------------- TABLES -------------------- */
/* Wrapper (added by script.js) that provides horizontal scrolling for very
wide tables on narrow screens. The table itself stays a real table with
width:100% so its columns distribute across the full container width, while
the wrapper carries the rounded card chrome and clips the table to it. Note:
overflow-x:auto forces overflow-y to compute to auto, so the chrome (and
especially the soft box-shadow) lives here, not on the table, to avoid being
clipped. */
.table-scroll {
overflow-x: auto;
margin: 24px 0;
background: rgba(255,255,255,0.5);
border-radius: 12px;
box-shadow: var(--shadow-soft);
}
table {
width: 100%;
border-collapse: separate;
border-spacing: 0;
margin: 24px 0;
font-size: 0.95rem;
}
/* When wrapped for scrolling, the wrapper owns the outer margin and chrome. */
.table-scroll > table {
margin: 0;
}
th, td {
padding: 12px 14px;
border-bottom: 1px solid var(--border-soft);
text-align: left;
}
th {
color: var(--heading);
font-weight: 600;
background: rgba(255,255,255,0.6);
}
td {
color: var(--text);
transition: background 0.15s ease;
}
td:hover {
background: rgba(74, 144, 194, 0.1);
}
/* -------------------- KATEX OVERRIDES -------------------- */
.katex { color: var(--text); font-size: 1.08em; }
.katex-display {
margin: 24px 0;
overflow-x: auto;
overflow-y: hidden;
padding: 4px 0;
}
.katex-display > .katex { color: var(--heading); }
/* -------------------- INLINE ELEMENTS -------------------- */
mark {
background: rgba(74, 144, 194, 0.2);
color: var(--heading);
padding: 1px 5px;
border-radius: 4px;
}
kbd {
background: rgba(255, 255, 255, 0.8);
border: 1px solid var(--border-soft);
border-bottom-width: 2px;
border-radius: 5px;
padding: 2px 7px;
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
font-size: 0.82em;
color: var(--heading);
box-shadow: 0 1px 3px rgba(120,160,200,0.15);
}
hr {
border: none;
border-top: 1px solid var(--border-soft);
margin: 36px 0;
}
/* -------------------- DETAILS / SUMMARY -------------------- */
details {
margin: 16px 0;
padding: 16px 20px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 12px;
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
box-shadow: var(--shadow-soft);
}
details summary {
cursor: pointer;
color: var(--heading);
font-weight: 500;
list-style: none;
transition: color var(--transition);
display: flex;
align-items: center;
gap: 6px;
}
details summary::-webkit-details-marker { display: none; }
details summary::before {
content: '';
display: inline-block;
width: 0;
height: 0;
border-left: 5px solid var(--accent);
border-top: 4px solid transparent;
border-bottom: 4px solid transparent;
transition: transform var(--transition);
flex-shrink: 0;
}
details[open] summary::before {
transform: rotate(90deg);
}
details summary:hover { color: var(--accent); }
details p { margin-top: 12px; }
/* -------------------- LIGHTBOX -------------------- */
.lightbox-overlay {
position: fixed;
inset: 0;
z-index: 1000;
background: rgba(180, 210, 230, 0.85);
backdrop-filter: blur(24px);
-webkit-backdrop-filter: blur(24px);
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
visibility: hidden;
transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox-overlay.active {
opacity: 1;
visibility: visible;
}
.lightbox-img {
max-width: 90vw;
max-height: 85vh;
border-radius: 10px;
object-fit: contain;
transform: scale(0.92);
opacity: 0;
transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
box-shadow: 0 24px 80px rgba(60, 100, 140, 0.4);
user-select: none;
-webkit-user-drag: none;
}
.lightbox-overlay.active .lightbox-img {
transform: scale(1);
opacity: 1;
}
.lightbox-btn {
position: absolute;
border: 1px solid rgba(255, 255, 255, 0.8);
background: rgba(255, 255, 255, 0.7);
color: var(--heading);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: background 0.2s ease, border-color 0.2s ease;
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
}
.lightbox-btn:hover {
background: rgba(255, 255, 255, 0.95);
border-color: var(--accent);
}
.lightbox-btn:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.lightbox-close {
top: 20px;
right: 20px;
width: 44px;
height: 44px;
border-radius: 50%;
}
.lightbox-arrow {
top: 50%;
transform: translateY(-50%);
width: 50px;
height: 50px;
border-radius: 50%;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-counter {
position: absolute;
bottom: 28px;
left: 50%;
transform: translateX(-50%);
color: var(--heading);
background: rgba(255,255,255,0.7);
padding: 4px 12px;
border-radius: 20px;
font-size: 0.82rem;
font-variant-numeric: tabular-nums;
letter-spacing: 0.04em;
pointer-events: none;
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
}
@media (max-width: 640px) {
.lightbox-arrow { width: 42px; height: 42px; }
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }
.lightbox-close { top: 14px; right: 14px; width: 40px; height: 40px; }
.lightbox-img { max-width: 95vw; max-height: 78vh; border-radius: 8px; }
.lightbox-counter { bottom: 16px; }
}
/* -------------------- CLICKABLE ARTICLE IMAGES -------------------- */
.article img {
cursor: zoom-in;
transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.article img:hover {
filter: brightness(1.03);
transform: scale(1.005);
box-shadow: var(--shadow-hover);
}
/* -------------------- SIDEBAR -------------------- */
.article-sidebar {
position: fixed;
top: 80px;
right: 24px;
width: 220px;
max-height: calc(100vh - 120px);
overflow-y: auto;
padding: 16px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 14px;
backdrop-filter: blur(20px) saturate(1.2);
-webkit-backdrop-filter: blur(20px) saturate(1.2);
box-shadow: var(--shadow-soft);
z-index: 100;
}
.sidebar-title {
color: var(--muted);
font-size: 0.72rem;
text-transform: uppercase;
letter-spacing: 0.08em;
margin-bottom: 8px;
margin-top: 16px;
}
.sidebar-title:first-child { margin-top: 0; }
.sidebar-toc, .sidebar-files {
list-style: none;
padding: 0;
margin: 0 0 8px 0;
}
.sidebar-toc li { margin-bottom: 2px; }
.sidebar-toc a {
display: block;
padding: 3px 8px;
color: var(--muted);
font-size: 0.8rem;
border-radius: 6px;
transition: color 0.15s, background 0.15s;
text-decoration: none;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.sidebar-toc a:hover { color: var(--heading); background: rgba(255,255,255,0.6); }
.sidebar-toc a.active { color: var(--accent); background: rgba(74,144,194,0.15); }
.toc-h1 a { font-weight: 600; }
.toc-h2 a { padding-left: 16px; }
.toc-h3 a { padding-left: 28px; font-size: 0.75rem; }
.sidebar-files li { margin-bottom: 4px; }
.sidebar-file-btn {
display: flex;
align-items: center;
gap: 6px;
width: 100%;
padding: 5px 8px;
background: rgba(255,255,255,0.5);
border: 1px solid var(--border-soft);
border-radius: 8px;
color: var(--muted);
font-size: 0.78rem;
cursor: pointer;
transition: color 0.15s, background 0.15s, border-color 0.15s;
text-align: left;
font-family: inherit;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.sidebar-file-btn:hover {
color: var(--accent);
background: rgba(74,144,194,0.1);
border-color: rgba(74,144,194,0.4);
}
.sidebar-file-btn svg { flex-shrink: 0; }
@media (max-width: 1200px) {
.article-sidebar { display: none; }
}
/* -------------------- COLLAPSIBLE CODE -------------------- */
.code-collapsible { margin: 20px 0; }
.code-toggle {
display: flex;
align-items: center;
gap: 8px;
width: 100%;
padding: 10px 16px;
background: rgba(255,255,255,0.65);
border: 1px solid var(--border-soft);
border-radius: 14px 14px 0 0;
color: var(--heading);
font-size: 0.85rem;
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
cursor: pointer;
transition: background 0.15s;
text-align: left;
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
}
.code-toggle:hover { background: rgba(255,255,255,0.85); }
.code-toggle-arrow {
color: var(--accent);
font-size: 0.7rem;
transition: transform 0.2s;
}
.code-collapsible pre {
margin-top: 0;
border-top: none;
border-radius: 0 0 14px 14px;
max-height: 2000px;
transition: max-height 0.3s ease;
}
.code-collapsible pre.collapsed {
max-height: 0;
padding: 0 20px;
overflow: hidden;
border-color: transparent;
}
.code-collapsible .code-toggle[aria-expanded="false"] + pre {
border-top: none;
}
.code-collapsible .code-toggle[aria-expanded="false"] {
border-radius: 14px;
}
/* copy button */
pre { position: relative; }
.copy-btn {
position: absolute;
top: 8px;
right: 8px;
background: rgba(255,255,255,0.9);
color: var(--heading);
border: 1px solid var(--border-soft);
padding: 4px 8px;
font-size: 12px;
border-radius: 6px;
cursor: pointer;
opacity: 0;
transition: 0.2s;
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
}
pre:hover .copy-btn { opacity: 1; }
.copy-btn:hover { background: #fff; border-color: var(--accent); color: var(--accent); }
.copy-btn:active { transform: scale(0.95); }
/* -------------------- SELECTION & SCROLLBARS -------------------- */
::selection {
background: rgba(74,144,194,0.3);
color: var(--heading);
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.3); }
::-webkit-scrollbar-thumb { background: rgba(120,160,200,0.4); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: rgba(74,144,194,0.6); }
/* -------------------- AI SECTION SUMMARY -------------------- */
/* One button per H1/H2 (mirrors the .article-sidebar TOC's section boundaries) —
summarizes that heading's own content, up to the next H1/H2. */
.ai-sum-wrap { position: relative; }
.ai-sum-btn {
display: inline-flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
margin-left: 10px;
vertical-align: middle;
color: var(--accent);
background: transparent;
border: none;
border-radius: 50%;
cursor: pointer;
transition: background var(--transition), color var(--transition), transform var(--transition), opacity var(--transition);
flex-shrink: 0;
}
.ai-sum-btn:hover:not(:disabled) { background: rgba(74, 144, 194, 0.16); transform: scale(1.08); }
.ai-sum-btn:disabled { cursor: default; }
.ai-sum-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ai-sum-btn.is-busy svg { animation: ai-sum-icon-pulse 1.4s ease-in-out infinite; }
@keyframes ai-sum-icon-pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.35; }
}
/* Collapsible summary card. In flow by default (mobile / narrow desktop = "an
element added on the page"); pinned into the left gutter as a sidenote once
there's room — see the min-width query below. */
.ai-sum-note {
margin: 12px 0 20px;
padding: 14px 16px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 14px;
backdrop-filter: blur(20px) saturate(1.2);
-webkit-backdrop-filter: blur(20px) saturate(1.2);
box-shadow: var(--shadow-soft);
font-size: 0.92rem;
}
.ai-sum-note-toggle {
display: flex;
align-items: center;
gap: 8px;
width: 100%;
cursor: pointer;
color: var(--muted);
font-size: 0.72rem;
text-transform: uppercase;
letter-spacing: 0.08em;
font-weight: 600;
transition: color var(--transition);
}
.ai-sum-note-toggle:hover { color: var(--accent); }
.ai-sum-arrow {
font-size: 0.65rem;
color: var(--accent);
transition: transform var(--transition);
}
.ai-sum-note.collapsed .ai-sum-arrow { transform: rotate(-90deg); }
.ai-sum-note-body {
margin-top: 10px;
color: var(--text);
line-height: 1.6;
max-height: 800px;
overflow: hidden;
transition: max-height 0.3s ease, margin-top 0.3s ease;
}
.ai-sum-note.collapsed .ai-sum-note-body { max-height: 0; margin-top: 0; }
.ai-sum-error { color: #b3503f; }
/* Live-streamed text: a blinking caret while tokens are still arriving, removed once
the summary settles. The blink itself is opacity-only — no motion, same spirit as
the "never spin" rule for the loading ring. */
.ai-sum-streaming::after {
content: "";
display: inline-block;
width: 2px;
height: 1em;
margin-left: 2px;
background: var(--accent);
vertical-align: text-bottom;
animation: ai-sum-blink 0.9s step-end infinite;
}
@keyframes ai-sum-blink {
50% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
.ai-sum-streaming::after { animation: none; opacity: 0.6; }
}
/* -- circular (non-spinning) progress: a fill ring while we have a real
fraction (model download), a breathing ring while we don't (warmup / token
generation) -- */
.ai-sum-progress { display: flex; align-items: center; gap: 12px; }
.ai-sum-ring { width: 34px; height: 34px; flex-shrink: 0; }
.ai-sum-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); } /* static: puts 0% at 12 o'clock, no rotation animation */
.ai-sum-ring-track { fill: none; stroke: var(--border-soft); stroke-width: 2.5; }
.ai-sum-ring-fill {
fill: none;
stroke: var(--accent);
stroke-width: 2.5;
stroke-linecap: round;
transition: stroke-dashoffset 0.3s ease;
}
.ai-sum-ring.is-indeterminate .ai-sum-ring-fill {
animation: ai-sum-breathe 1.8s ease-in-out infinite;
transition: none;
}
@keyframes ai-sum-breathe {
0% { stroke-dashoffset: 74; }
50% { stroke-dashoffset: 16; }
100% { stroke-dashoffset: 74; }
}
.ai-sum-progress-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ai-sum-progress-label { color: var(--heading); font-size: 0.85rem; }
.ai-sum-progress-detail { color: var(--muted); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
/* Desktop with enough gutter: pin the note in the left margin, level with its
paragraph (a sidenote — position:absolute inside the paragraph's own
position:relative wrapper, so it scrolls with the page, no JS needed). */
@media (min-width: 1400px) {
.ai-sum-note {
position: absolute;
top: 0;
left: -308px;
width: 260px;
margin: 0;
z-index: 10;
}
}
@media (prefers-reduced-motion: reduce) {
.ai-sum-btn.is-busy svg { animation: none; }
.ai-sum-ring.is-indeterminate .ai-sum-ring-fill { animation: none; stroke-dashoffset: 40; }
}
/* -------------------- SEARCH BAR -------------------- */
.search-bar {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 22px;
position: relative;
}
.search-pill {
display: flex;
align-items: center;
flex: 1;
gap: 6px;
padding: 6px 6px 6px 20px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 999px;
backdrop-filter: blur(20px) saturate(1.2);
-webkit-backdrop-filter: blur(20px) saturate(1.2);
box-shadow: var(--shadow-soft);
transition: border-color var(--transition), box-shadow var(--transition);
}
.search-pill:focus-within {
border-color: rgba(74, 144, 194, 0.5);
box-shadow: var(--shadow-hover);
}
.search-pill input {
flex: 1;
min-width: 0;
border: none;
background: transparent;
outline: none;
font-family: inherit;
font-size: 0.95rem;
color: var(--text);
padding: 8px 4px;
}
.search-pill input::placeholder { color: var(--muted); }
.search-circle-btn {
flex-shrink: 0;
width: 40px;
height: 40px;
border-radius: 50%;
border: 1px solid var(--border);
background: var(--surface-2);
color: var(--accent);
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: background var(--transition), border-color var(--transition), transform var(--transition), color var(--transition), opacity var(--transition);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
font-family: inherit;
}
.search-circle-btn:hover:not(:disabled) {
background: #fff;
border-color: var(--accent);
transform: scale(1.06);
}
.search-circle-btn:disabled { opacity: 0.5; cursor: default; }
.search-circle-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.deep-search-btn.is-busy svg { animation: ai-sum-icon-pulse 1.4s ease-in-out infinite; }
.filter-btn[aria-expanded="true"] {
background: #fff;
border-color: var(--accent);
color: var(--accent);
}
.filter-popup {
position: absolute;
top: calc(100% + 10px);
right: 0;
z-index: 200;
min-width: 220px;
padding: 14px;
background: var(--surface-2);
border: 1px solid var(--border);
border-radius: 14px;
backdrop-filter: blur(20px) saturate(1.2);
-webkit-backdrop-filter: blur(20px) saturate(1.2);
box-shadow: var(--shadow-hover);
}
.filter-popup-title {
font-size: 0.72rem;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--muted);
margin-bottom: 10px;
}
.filter-popup-choices {
display: flex;
gap: 8px;
}
.filter-choice {
flex: 1;
padding: 8px 10px;
border-radius: 999px;
border: 1px solid var(--border-soft);
background: rgba(255,255,255,0.5);
color: var(--text);
font-size: 0.78rem;
cursor: pointer;
transition: background var(--transition), border-color var(--transition), color var(--transition);
font-family: inherit;
}
.filter-choice:hover { background: rgba(255,255,255,0.85); }
.filter-choice.active {
background: var(--accent);
border-color: var(--accent);
color: #fff;
}
.deep-search-status {
margin: -10px 0 20px;
color: var(--muted);
font-size: 0.82rem;
}
.post-card-snippet {
margin: -4px 0 14px;
padding: 10px 12px;
background: rgba(255,255,255,0.5);
border: 1px solid var(--border-soft);
border-radius: 10px;
color: var(--text);
font-size: 0.85rem;
line-height: 1.5;
}
.post-card-snippet mark { background: rgba(74,144,194,0.25); }
@media (max-width: 560px) {
.search-bar { flex-wrap: wrap; }
.search-pill { width: 100%; }
}
/* -------------------- SHARE BUTTON -------------------- */
.post-card { position: relative; }
.share-btn {
position: absolute !important;
top: 38px;
right: 35px;
width: 32px;
height: 32px;
border-radius: 50%;
border: 1px solid var(--border-soft);
background: rgba(255,255,255,0.5);
color: var(--muted);
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
}
.share-btn:hover { background: #fff; border-color: var(--accent); color: var(--accent); transform: scale(1.06); }
.share-btn.copied { color: var(--accent-green); border-color: var(--accent-green); }
.share-btn.error { color: #b3503f; border-color: #b3503f; }
.share-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.share-btn-article {
display: inline-flex;
vertical-align: middle;
margin-left: 10px;
margin-bottom: 28px;
}
/* Share menu (Copy as: Link / Markdown / Markdown + description) */
.share-menu {
position: fixed;
z-index: 600;
min-width: 236px;
padding: 8px;
background: var(--surface-2);
border: 1px solid var(--border);
border-radius: 14px;
backdrop-filter: blur(20px) saturate(1.2);
-webkit-backdrop-filter: blur(20px) saturate(1.2);
box-shadow: var(--shadow-hover);
display: flex;
flex-direction: column;
gap: 3px;
animation: share-menu-in 0.12s ease-out;
}
@keyframes share-menu-in {
from { opacity: 0; transform: translateY(-4px); }
to { opacity: 1; transform: none; }
}
.share-menu-title {
font-size: 0.68rem;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--muted);
padding: 4px 8px 4px;
}
.share-menu-item {
display: flex;
flex-direction: column;
gap: 1px;
text-align: left;
padding: 8px 10px;
border-radius: 9px;
border: 1px solid transparent;
background: transparent;
color: var(--text);
font-family: inherit;
font-size: 0.86rem;
cursor: pointer;
transition: background var(--transition), border-color var(--transition);
}
.share-menu-item:hover,
.share-menu-item:focus-visible {
background: rgba(255,255,255,0.6);
border-color: var(--border-soft);
outline: none;
}
.share-menu-item .sub {
font-size: 0.72rem;
color: var(--muted);
}
/* -------------------- EXTERNAL LINK PREVIEW -------------------- */
.link-preview-card {
position: absolute;
z-index: 500;
max-width: 320px;
padding: 12px 14px;
background: var(--surface-2);
border: 1px solid var(--border);
border-radius: 12px;
backdrop-filter: blur(20px) saturate(1.2);
-webkit-backdrop-filter: blur(20px) saturate(1.2);
box-shadow: var(--shadow-hover);
opacity: 0;
transform: translateY(-4px);
transition: opacity 0.15s ease, transform 0.15s ease;
pointer-events: none;
}
.link-preview-card.visible { opacity: 1; transform: translateY(0); }
.link-preview-title {
font-weight: 600;
color: var(--heading);
font-size: 0.88rem;
margin-bottom: 4px;
}
.link-preview-url {
color: var(--accent);
font-size: 0.75rem;
word-break: break-all;
margin-bottom: 4px;
}
.link-preview-desc {
color: var(--muted);
font-size: 0.8rem;
line-height: 1.4;
}
@media (prefers-reduced-motion: reduce) {
.link-preview-card { transition: none; }
}
/* -------------------- COW PETS -------------------- */
.cow-pen {
position: fixed;
left: 0;
bottom: 6px;
width: 100%;
height: 70px;
z-index: 51;
pointer-events: none;
overflow: visible;
}
.cow-anchor {
position: absolute;
bottom: 0;
width: 92px;
transform: translateX(-50%) scale(var(--cow-scale, 1));
transform-origin: bottom center;
}
.cow {
cursor: grab;
pointer-events: auto;
animation: cow-walk 14s ease-in-out infinite;
will-change: transform;
}
.cow:active { cursor: grabbing; }
.cow-svg {
width: 100%;
display: block;
overflow: visible;
transform-origin: 50% 100%;
}
.cow-svg.is-patted { animation: cow-pat-wiggle 480ms ease-in-out; }
/* Everything below the master cow-walk timeline runs on the SAME duration +
negative delay (set inline by script.js on .cow and every .cow-sync element),
so all keyframe percentages here line up with cow-walk's phases:
walk 0–28, graze 28–46, turn 46–50, walk 50–78, graze 78–96, turn 96–100.
cow-gait-a/b, cow-body-bob and cow-chew are generated + injected by
script.js from those same window percentages. */
.cow-walkbody {
animation: cow-body-bob 14s ease-in-out infinite;
}
.cow-head {
transform-origin: 30px 26px;
animation: cow-head-bob 14s ease-in-out infinite;
}
.cow-leg {
transform-box: fill-box;
transform-origin: 50% 6%; /* swing from the hip */
}
.cow-leg-a { animation: cow-gait-a 14s ease-in-out infinite; }
.cow-leg-b { animation: cow-gait-b 14s ease-in-out infinite; }
.cow-tail {
transform-box: fill-box;
transform-origin: 12% 6%; /* attach point at the rump */
animation: cow-tail-sway 14s ease-in-out infinite;
}
.cow-ear {
transform-box: fill-box;
transform-origin: 10% 65%;
animation: cow-ear-twitch 14s ease-in-out infinite;
}
.cow-eye {
transform-box: fill-box;
transform-origin: 50% 50%;
animation: cow-blink 14s linear infinite;
}
.cow-muzzleg {
transform-box: fill-box;
transform-origin: 50% 45%;
animation: cow-chew 14s ease-in-out infinite;
}
/* Coat colors come from per-cow CSS variables set inline by script.js
(three pastel variants); fallbacks are the classic holstein palette. */
.cow-shadow { fill: rgba(40, 60, 40, 0.18); }
.cow-body, .cow-face {
fill: var(--cow-coat, #fbfaf6);
stroke: var(--cow-outline, #d8d2c4);
stroke-width: 0.8;
}
.cow-spot { fill: var(--cow-spot, #3a3128); }
.cow-head-patch { fill: var(--cow-spot, #3a3128); opacity: 0.9; }
.cow-forelock { fill: var(--cow-spot, #3a3128); }
.cow-leg-upper {
fill: var(--cow-coat, #fbfaf6);
stroke: var(--cow-outline, #d8d2c4);
stroke-width: 0.6;
}
.cow-leg-far .cow-leg-upper { fill: var(--cow-coat-dark, #e7e1d4); stroke: none; }
.cow-hoof { fill: var(--cow-hoof, #3a3128); }
.cow-leg-far .cow-hoof { opacity: 0.7; }
.cow-tail-line {
fill: none;
stroke: var(--cow-coat-dark, #e7e1d4);
stroke-width: 2.4;
stroke-linecap: round;
}
.cow-tail-tuft { fill: var(--cow-spot, #3a3128); }
.cow-udder { fill: #f0c6c0; }
.cow-muzzle { fill: var(--cow-muzzle, #efcdb4); }
.cow-nostril { fill: var(--cow-nose, #6b4a38); }
.cow-mouth {
fill: none;
stroke: var(--cow-nose, #6b4a38);
stroke-width: 0.9;
stroke-linecap: round;
opacity: 0.55;
}
.cow-pupil { fill: #241d18; }
.cow-eye-glint { fill: #ffffff; opacity: 0.9; }
.cow-ear-outer {
fill: var(--cow-coat, #fbfaf6);
stroke: var(--cow-outline, #d8d2c4);
stroke-width: 0.6;
}
.cow-ear-inner { fill: var(--cow-ear, #e9b9a2); }
.cow-horn { fill: none; stroke: #d8cdb8; stroke-width: 2.2; stroke-linecap: round; }
/* Walk right, pause + graze, turn, walk left, pause + graze, turn — loops seamlessly
since 100% matches 0% exactly. */
@keyframes cow-walk {
0% { transform: translateX(0) scaleX(-1); }
28% { transform: translateX(80px) scaleX(-1); }
46% { transform: translateX(80px) scaleX(-1); }
50% { transform: translateX(80px) scaleX(1); }
78% { transform: translateX(0) scaleX(1); }
96% { transform: translateX(0) scaleX(1); }
100% { transform: translateX(0) scaleX(-1); }
}
/* Head dips down to graze during the two pauses in cow-walk above (GRAZE_FRACTIONS
in script.js targets the middle of these windows for the grass-bit bursts;
cow-chew in script.js oscillates inside the 32–42 / 82–92 head-down holds). */
@keyframes cow-head-bob {
0%, 26% { transform: translate(0, 0) rotate(0deg); }
32%, 42% { transform: translate(1px, 7px) rotate(10deg); }
48%, 76% { transform: translate(0, 0) rotate(0deg); }
82%, 92% { transform: translate(1px, 7px) rotate(10deg); }
98%, 100% { transform: translate(0, 0) rotate(0deg); }
}
/* Lazy sway while walking, one brisk fly-swat flick mid-graze. */
@keyframes cow-tail-sway {
0% { transform: rotate(0deg); }
7% { transform: rotate(8deg); }
14% { transform: rotate(-5deg); }
21% { transform: rotate(7deg); }
28%, 33% { transform: rotate(0deg); }
35.5% { transform: rotate(-30deg); }
38% { transform: rotate(12deg); }
40%, 50% { transform: rotate(0deg); }
57% { transform: rotate(8deg); }
64% { transform: rotate(-5deg); }
71% { transform: rotate(7deg); }
78%, 84% { transform: rotate(0deg); }
86.5% { transform: rotate(-30deg); }
89% { transform: rotate(12deg); }
91%, 100% { transform: rotate(0deg); }
}
/* Quick double ear flicks — once during each graze, one mid-walk. */
@keyframes cow-ear-twitch {
0%, 33%, 36%, 57%, 59.5%, 83%, 86%, 100% { transform: rotate(0deg); }
34%, 84.5% { transform: rotate(16deg); }
35% { transform: rotate(-6deg); }
58.2% { transform: rotate(12deg); }
}
/* A few ~140ms blinks scattered through the cycle. */
@keyframes cow-blink {
0%, 9.4%, 10.4%, 36%, 37%, 61.4%, 62.4%, 88%, 89%, 100% { transform: scaleY(1); }
9.9%, 36.5%, 61.9%, 88.5% { transform: scaleY(0.12); }
}
@keyframes cow-pat-wiggle {
0% { transform: scale(1, 1) rotate(0deg); }
20% { transform: scale(1.05, 0.92) rotate(-4deg); }
45% { transform: scale(0.96, 1.05) rotate(3deg); }
70% { transform: scale(1.03, 0.97) rotate(-2deg); }
100% { transform: scale(1, 1) rotate(0deg); }
}
.grass-bit {
position: fixed;
z-index: 60;
width: 3px;
height: 6px;
margin: -3px 0 0 -1px;
background: linear-gradient(#63ad64, #457f4b);
border-radius: 1px;
pointer-events: none;
animation: grass-bit-fall 650ms ease-in forwards;
will-change: transform, opacity;
}
@keyframes grass-bit-fall {
0% { opacity: 1; transform: translate(0, 0) rotate(0deg); }
100% { opacity: 0; transform: translate(var(--dx, 0px), 20px) rotate(var(--rot, 0deg)); }
}
.pat-sparkle {
position: fixed;
z-index: 61;
font-size: 14px;
line-height: 1;
pointer-events: none;
animation: pat-sparkle-pop 700ms ease-out forwards;
will-change: transform, opacity;
}
@keyframes pat-sparkle-pop {
0% { opacity: 0; transform: translate(0, 0) scale(0.4) rotate(0deg); }
25% { opacity: 1; transform: translate(0, -6px) scale(1.1) rotate(-8deg); }
100% { opacity: 0; transform: translate(var(--dx, 0px), -34px) scale(0.9) rotate(12deg); }
}
/* Occasional speech bubble, spawned by JS above the cow — matches the site's
glassy surfaces. */
.moo-bubble {
position: fixed;
z-index: 61;
padding: 3px 9px 4px;
font: 600 11px/1.2 Inter, system-ui, sans-serif;
letter-spacing: 0.02em;
color: var(--muted);
background: var(--surface-2);
border: 1px solid var(--border);
border-radius: 10px;
border-bottom-left-radius: 2px;
backdrop-filter: blur(4px);
-webkit-backdrop-filter: blur(4px);
pointer-events: none;
animation: moo-pop 1600ms ease-out forwards;
will-change: transform, opacity;
}
@keyframes moo-pop {
0% { opacity: 0; transform: translate(-50%, -90%) scale(0.6); }
12% { opacity: 1; transform: translate(-50%, -120%) scale(1); }
75% { opacity: 1; transform: translate(-50%, -135%) scale(1); }
100% { opacity: 0; transform: translate(-50%, -160%) scale(0.97); }
}
@media (max-width: 640px) {
.cow-pen { height: 56px; }
}
/* -------------------- TOOLTIPS -------------------- */
.tooltip {
position: relative;
}
.tooltip::after {
content: attr(data-tooltip);
position: absolute;
left: 50%;
bottom: calc(100% + 10px);
transform: translateX(-50%) translateY(4px);
padding: 8px 12px;
border-radius: 10px;
background: var(--surface-2);
border: 1px solid var(--border);
backdrop-filter: blur(20px) saturate(1.2);
-webkit-backdrop-filter: blur(20px) saturate(1.2);
color: var(--heading);
font-size: 0.78rem;
font-weight: 500;
white-space: nowrap;
box-shadow: var(--shadow-hover);
opacity: 0;
visibility: hidden;
pointer-events: none;
transition:
opacity .08s ease,
transform .08s ease,
visibility .08s;
}
.tooltip::before {
content: "";
position: absolute;
left: 50%;
bottom: calc(100% + 4px);
width: 8px;
height: 8px;
transform: translateX(-50%) rotate(45deg);
background: var(--surface-2);
border-right: 1px solid var(--border);
border-bottom: 1px solid var(--border);
opacity: 0;
visibility: hidden;
pointer-events: none;
transition:
opacity .08s ease,
visibility .08s;
}
.tooltip:hover::after,
.tooltip:hover::before,
.tooltip:focus-visible::after,
.tooltip:focus-visible::before {
opacity: 1;
visibility: visible;
transform: translateX(-50%) translateY(0);
}
/* ==========================================================
Members Space style transfer for the Blog
Dark cosmic theme, lightweight stars, thin borders, quiet motion.
========================================================== */
:root {
--bg-0: #05060a;
--bg-1: #0a0c14;
--bg: var(--bg-0);
--bg-gradient-top: #05060a;
--bg-gradient-bottom: #0a0c14;
--ink: #e8ecf5;
--text: #d6dbea;
--heading: #f4f7ff;
--muted: #8b93a8;
--muted-2: #5c6478;
--line: rgba(255,255,255,0.08);
--line-strong: rgba(255,255,255,0.16);
--surface: rgba(255,255,255,0.025);
--surface-2: rgba(255,255,255,0.055);
--border: rgba(255,255,255,0.08);
--border-soft: rgba(255,255,255,0.11);
--accent: #7c9cff;
--accent-soft: rgba(124,156,255,0.5);
--accent-green: #7c9cff;
--accent-green-soft: rgba(124,156,255,0.24);
--white: #ffffff;
--radius: 14px;
--shadow-soft: none;
--shadow-hover: none;
}
html,
body { background: var(--bg-0); }
body {
color: var(--text);
overflow-x: hidden;
padding-bottom: 42px;
}
p,
li { color: var(--text); }
h1, h2, h3, h4 { color: var(--heading); }
a { color: var(--accent); }
a:hover { color: #a9beff; opacity: 1; }
a:focus-visible,
button:focus-visible,
.post-card a:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 3px;
}
img {
box-shadow: none;
border: 1px solid var(--border);
}
/* Space background from Members */
.background {
position: fixed;
inset: 0;
z-index: -1;
overflow: hidden;
pointer-events: none;
background:
radial-gradient(ellipse 80% 50% at 50% -10%, rgba(90,100,180,0.18) 0%, transparent 60%),
radial-gradient(ellipse 60% 40% at 85% 100%, rgba(120,80,180,0.12) 0%, transparent 60%),
linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
}
.background::before {
content: '';
position: absolute;
inset: -18%;
width: auto;
height: auto;
background:
radial-gradient(circle at 18% 18%, rgba(124,156,255,0.10), transparent 28%),
radial-gradient(circle at 82% 72%, rgba(164,111,255,0.08), transparent 26%);
filter: none;
opacity: 1;
}
.background::after {
content: '';
position: absolute;
inset: 0;
width: auto;
height: auto;
background-image:
linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
linear-gradient(90deg, rgba(255,255,255,0.014) 1px, transparent 1px);
background-size: 88px 88px;
-webkit-mask-image: radial-gradient(circle at 50% 18%, rgba(0,0,0,0.55), transparent 72%);
mask-image: radial-gradient(circle at 50% 18%, rgba(0,0,0,0.55), transparent 72%);
filter: none;
opacity: 0.45;
}
.background .star {
position: absolute;
width: 2px;
height: 2px;
border-radius: 50%;
background: #fff;
opacity: 0.5;
animation: twinkle var(--dur, 4s) ease-in-out infinite;
animation-delay: var(--delay, 0s);
}
.background .star.big { width: 3px; height: 3px; }
@keyframes twinkle {
0%, 100% { opacity: var(--min-op, 0.15); }
50% { opacity: var(--max-op, 0.9); }
}
.background .shooting-star {
position: absolute;
top: var(--top, 10%);
left: -10%;
width: 2px;
height: 2px;
border-radius: 50%;
background: #fff;
box-shadow: 0 0 0 1px rgba(255,255,255,0.28);
animation: shoot 6s linear infinite;
animation-delay: var(--delay, 0s);
opacity: 0;
}
.background .shooting-star::before {
content: '';
position: absolute;
top: 50%;
right: 0;
width: 90px;
height: 1px;
transform: translateY(-50%);
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7));
}
@keyframes shoot {
0% { transform: translate(0, 0); opacity: 0; }
4% { opacity: 1; }
18% { opacity: 0; }
100% { transform: translate(130vw, 40px); opacity: 0; }
}
/* Retire the old meadow ambience if stale JS is cached somewhere. */
.background .cloud,
.grass,
.cow-pen,
.grass-bit,
.pat-sparkle,
.moo-bubble { display: none !important; }
@media (prefers-reduced-motion: reduce) {
.background .star { animation: none; opacity: 0.5; }
.background .shooting-star { display: none; }
}
/* Layout and hero */
.container {
max-width: 980px;
padding: 72px 24px 56px;
}
.hero {
margin-bottom: 44px;
text-align: center;
}
.hero::before {
display: inline-flex;
align-items: center;
justify-content: center;
margin-bottom: 14px;
color: var(--muted);
font-size: 11px;
font-weight: 500;
letter-spacing: 0.22em;
text-transform: uppercase;
}
.hero h1,
.article h1 {
font-family: 'Newsreader', serif;
font-style: italic;
font-weight: 400;
letter-spacing: -0.035em;
color: var(--heading);
background: none;
-webkit-background-clip: initial;
-webkit-text-fill-color: currentColor;
text-shadow: none;
}
.hero h1 {
font-size: clamp(2.55rem, 7vw, 4.7rem);
line-height: 0.98;
}
.subtitle {
margin-top: 14px;
color: var(--muted);
font-size: 0.98rem;
font-weight: 300;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
.hero,
.search-bar,
.article { animation: fadeIn 0.6s ease both; }
.search-bar { animation-delay: 0.08s; }
/* Search / filter */
.search-bar {
max-width: 780px;
margin: 0 auto 26px;
}
.search-pill,
.search-circle-btn,
.filter-popup,
.share-menu,
.link-preview-card,
.article-sidebar,
.ai-sum-note,
details {
background: var(--surface);
border-color: var(--border);
box-shadow: none;
backdrop-filter: none;
-webkit-backdrop-filter: none;
}
.search-pill {
padding-left: 18px;
border-radius: 999px;
}
.search-pill:focus-within {
border-color: var(--accent-soft);
box-shadow: none;
}
.search-pill input { color: var(--ink); }
.search-pill input::placeholder { color: var(--muted-2); }
.search-circle-btn {
color: var(--accent);
background: rgba(255,255,255,0.035);
}
.search-circle-btn:hover:not(:disabled),
.filter-btn[aria-expanded="true"] {
color: #a9beff;
background: rgba(124,156,255,0.09);
border-color: var(--accent-soft);
}
.filter-popup {
background: rgba(10,12,20,0.96);
}
.filter-popup-title,
.deep-search-status { color: var(--muted); }
.filter-choice {
color: var(--text);
background: rgba(255,255,255,0.035);
border-color: var(--border);
}
.filter-choice:hover { background: rgba(124,156,255,0.08); }
.filter-choice.active { background: var(--accent); border-color: var(--accent); color: #05060a; }
/* Post cards: Members-style thin-border grid */
.posts {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
gap: 16px;
}
.post-card {
min-height: 230px;
display: flex;
flex-direction: column;
padding: 22px;
border-radius: var(--radius);
background: var(--surface);
border: 1px solid var(--border);
box-shadow: none;
backdrop-filter: none;
-webkit-backdrop-filter: none;
animation: fadeIn 0.55s ease both;
}
.post-card:hover {
transform: translateY(-2px);
border-color: var(--accent-soft);
background: rgba(124,156,255,0.055);
box-shadow: none;
}
.post-card h2 {
margin-top: 10px;
margin-right: 36px;
color: var(--heading);
font-size: 1.13rem;
line-height: 1.28;
font-weight: 600;
letter-spacing: -0.018em;
}
.post-card p {
color: var(--muted);
font-size: 0.92rem;
line-height: 1.62;
}
.post-card > a {
margin-top: auto;
color: var(--accent);
font-size: 0.9rem;
font-weight: 500;
}
.date,
.meta {
color: var(--muted-2);
font-size: 0.72rem;
letter-spacing: 0.16em;
text-transform: uppercase;
}
.post-card-snippet {
background: rgba(255,255,255,0.035);
border-color: var(--border);
color: var(--text);
}
.share-btn {
top: 20px;
right: 20px;
background: rgba(255,255,255,0.035);
border-color: var(--border);
color: var(--muted);
box-shadow: none;
backdrop-filter: none;
-webkit-backdrop-filter: none;
}
.share-btn:hover {
color: #a9beff;
background: rgba(124,156,255,0.09);
border-color: var(--accent-soft);
}
.share-btn.copied { color: #9ee8ad; border-color: rgba(158,232,173,0.55); }
.share-btn.error { color: #ff9c8f; border-color: rgba(255,156,143,0.55); }
body > p:last-of-type {
color: var(--muted-2) !important;
text-align: center;
margin-top: 28px;
}
/* Article reading view */
.article {
max-width: 790px;
padding: 72px 24px 56px;
}
.article h1 {
font-size: clamp(2.15rem, 6vw, 3.45rem);
line-height: 1.05;
}
.article h2,
.article h3 { color: var(--heading); }
.article p,
.article li { color: #d6dbea; }
.article ul,
.article ol {
margin: 0 0 20px 1.25rem;
color: var(--text);
}
.article li { margin-bottom: 8px; }
.back,
.discord { color: var(--accent); }
blockquote {
color: #cfd6e6;
background: rgba(255,255,255,0.035);
border-left-color: var(--accent);
box-shadow: none;
}
mark {
color: var(--heading);
background: rgba(124,156,255,0.22);
}
hr { border-top-color: var(--border); }
/* Code, tables, details */
pre {
background: rgba(3,5,11,0.86);
border-color: var(--border);
box-shadow: none;
backdrop-filter: none;
-webkit-backdrop-filter: none;
}
code {
color: #e8ecf5;
}
p code,
li code,
kbd {
color: #e8ecf5;
background: rgba(255,255,255,0.055);
border-color: var(--border);
box-shadow: none;
}
.copy-btn,
.code-toggle,
.sidebar-file-btn {
color: var(--text);
background: rgba(255,255,255,0.045);
border-color: var(--border);
backdrop-filter: none;
-webkit-backdrop-filter: none;
}
.copy-btn:hover,
.code-toggle:hover,
.sidebar-file-btn:hover {
color: #a9beff;
background: rgba(124,156,255,0.08);
border-color: var(--accent-soft);
}
.code-toggle-arrow,
details summary::before { color: var(--accent); }
.table-scroll,
table {
background: rgba(255,255,255,0.025);
box-shadow: none;
}
th {
color: var(--heading);
background: rgba(255,255,255,0.055);
}
td {
color: var(--text);
border-bottom-color: var(--border);
}
td:hover { background: rgba(124,156,255,0.08); }
details summary { color: var(--heading); }
details summary:hover { color: #a9beff; }
/* Dark-theme syntax colours */
.tok-keyword { color: #ff8ab3; }
.tok-string { color: #96e6ae; }
.tok-comment { color: #667089; }
.tok-number { color: #9fb8ff; }
.tok-builtin { color: #ffd38d; }
.tok-function { color: #b8c7ff; }
.tok-decorator { color: #ffd38d; }
.tok-operator { color: #ff8ab3; }
.tok-self { color: #ffd38d; }
.tok-punctuation{ color: #8b93a8; }
/* Sidebar / AI summary / link previews */
.article-sidebar {
background: rgba(10,12,20,0.92);
border-color: var(--border);
}
.sidebar-title,
.ai-sum-note-toggle,
.share-menu-title { color: var(--muted); }
.sidebar-toc a { color: var(--muted); }
.sidebar-toc a:hover { color: var(--heading); background: rgba(255,255,255,0.045); }
.sidebar-toc a.active { color: var(--accent); background: rgba(124,156,255,0.12); }
.sidebar-file-btn { color: var(--muted); }
.ai-sum-btn { color: var(--accent); }
.ai-sum-btn:hover:not(:disabled) { background: rgba(124,156,255,0.14); }
.ai-sum-note { background: rgba(10,12,20,0.92); }
.ai-sum-note-body { color: var(--text); }
.ai-sum-progress-label { color: var(--heading); }
.ai-sum-progress-detail { color: var(--muted); }
.ai-sum-ring-track { stroke: rgba(255,255,255,0.12); }
.ai-sum-ring-fill { stroke: var(--accent); }
.ai-sum-error { color: #ff9c8f; }
.link-preview-card,
.share-menu {
background: rgba(10,12,20,0.97);
border-color: var(--border);
}
.link-preview-title { color: var(--heading); }
.link-preview-url { color: var(--accent); }
.link-preview-desc,
.share-menu-item .sub { color: var(--muted); }
.share-menu-item { color: var(--text); }
.share-menu-item:hover,
.share-menu-item:focus-visible {
background: rgba(124,156,255,0.08);
border-color: var(--border);
}
/* Lightbox */
.lightbox-overlay {
background: rgba(5,6,10,0.92);
backdrop-filter: none;
-webkit-backdrop-filter: none;
}
.lightbox-img { box-shadow: 0 24px 90px rgba(0,0,0,0.62); }
.lightbox-btn,
.lightbox-counter {
color: var(--heading);
background: rgba(255,255,255,0.06);
border-color: var(--border);
backdrop-filter: none;
-webkit-backdrop-filter: none;
}
.lightbox-btn:hover {
background: rgba(124,156,255,0.1);
border-color: var(--accent-soft);
}
/* Tooltips */
.tooltip::after {
color: var(--heading);
background: rgba(10,12,20,0.97);
border-color: var(--border);
box-shadow: none;
backdrop-filter: none;
-webkit-backdrop-filter: none;
}
.tooltip::before {
background: rgba(10,12,20,0.97);
border-right-color: var(--border);
border-bottom-color: var(--border);
}
::selection { background: rgba(124,156,255,0.35); color: var(--heading); }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.035); }
::-webkit-scrollbar-thumb { background: rgba(124,156,255,0.28); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: rgba(124,156,255,0.5); }
@media (max-width: 640px) {
.container,
.article { padding-top: 56px; }
.hero { margin-bottom: 34px; }
.post-card { min-height: 0; }
.share-btn { top: 18px; right: 18px; }
}