1213 lines
24 KiB
CSS
1213 lines
24 KiB
CSS
:root {
|
|
--bg0: #0b1020;
|
|
--bg1: #0f1b38;
|
|
--fg: #f2f4ff;
|
|
--muted: rgba(242, 244, 255, 0.72);
|
|
--card: rgba(255, 255, 255, 0.06);
|
|
--card2: rgba(255, 255, 255, 0.1);
|
|
--stroke: rgba(255, 255, 255, 0.16);
|
|
--accent: #ffcd4a;
|
|
--accent2: #5ee4ff;
|
|
--focus: rgba(94, 228, 255, 0.95);
|
|
|
|
--stroke-weak: rgba(255, 255, 255, 0.08);
|
|
--stroke-mid: rgba(255, 255, 255, 0.12);
|
|
--stroke-strong: rgba(255, 255, 255, 0.18);
|
|
|
|
--layer-1: rgba(255, 255, 255, 0.04);
|
|
--layer-2: rgba(255, 255, 255, 0.06);
|
|
--layer-3: rgba(255, 255, 255, 0.08);
|
|
|
|
--surface-0: rgba(10, 14, 28, 0.7);
|
|
--surface-1: rgba(10, 14, 28, 0.92);
|
|
|
|
--glow-a: rgba(94, 228, 255, 0.22);
|
|
--glow-b: rgba(255, 205, 74, 0.18);
|
|
--glow-c: rgba(140, 88, 255, 0.14);
|
|
|
|
--theme-notch-top: 84px;
|
|
}
|
|
|
|
html {
|
|
color-scheme: dark;
|
|
}
|
|
|
|
html[data-theme="light"] {
|
|
color-scheme: light;
|
|
--bg0: #f7f9fc;
|
|
--bg1: #e9eef6;
|
|
--fg: #0b1224;
|
|
--muted: rgba(11, 18, 36, 0.7);
|
|
--card: rgba(0, 0, 0, 0.03);
|
|
--card2: rgba(0, 0, 0, 0.05);
|
|
--stroke: rgba(0, 0, 0, 0.14);
|
|
--accent: #b45309;
|
|
--accent2: #0ea5b7;
|
|
--focus: rgba(14, 165, 183, 0.85);
|
|
|
|
--stroke-weak: rgba(0, 0, 0, 0.08);
|
|
--stroke-mid: rgba(0, 0, 0, 0.12);
|
|
--stroke-strong: rgba(0, 0, 0, 0.18);
|
|
|
|
--layer-1: rgba(0, 0, 0, 0.03);
|
|
--layer-2: rgba(0, 0, 0, 0.045);
|
|
--layer-3: rgba(0, 0, 0, 0.06);
|
|
|
|
--surface-0: rgba(255, 255, 255, 0.78);
|
|
--surface-1: rgba(255, 255, 255, 0.92);
|
|
|
|
--glow-a: rgba(14, 165, 183, 0.18);
|
|
--glow-b: rgba(180, 83, 9, 0.16);
|
|
--glow-c: rgba(37, 99, 235, 0.12);
|
|
}
|
|
|
|
html[data-theme="high-contrast"] {
|
|
color-scheme: dark;
|
|
--bg0: #000000;
|
|
--bg1: #000000;
|
|
--fg: #ffffff;
|
|
--muted: rgba(255, 255, 255, 0.92);
|
|
--card: rgba(0, 0, 0, 0.85);
|
|
--card2: rgba(0, 0, 0, 0.92);
|
|
--stroke: rgba(255, 255, 255, 0.85);
|
|
--accent: #ffcd4a;
|
|
--accent2: #5ee4ff;
|
|
--focus: rgba(255, 255, 255, 0.95);
|
|
|
|
--stroke-weak: rgba(255, 255, 255, 0.55);
|
|
--stroke-mid: rgba(255, 255, 255, 0.75);
|
|
--stroke-strong: rgba(255, 255, 255, 0.9);
|
|
|
|
--layer-1: rgba(255, 255, 255, 0.08);
|
|
--layer-2: rgba(255, 255, 255, 0.12);
|
|
--layer-3: rgba(255, 255, 255, 0.16);
|
|
|
|
--surface-0: rgba(0, 0, 0, 0.9);
|
|
--surface-1: rgba(0, 0, 0, 0.96);
|
|
|
|
--glow-a: transparent;
|
|
--glow-b: transparent;
|
|
--glow-c: transparent;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html,
|
|
body {
|
|
height: 100%;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
color: var(--fg);
|
|
background: linear-gradient(180deg, var(--bg0), var(--bg1));
|
|
/* Prefer a display-friendly font if available; fall back to system fonts. */
|
|
font-family:
|
|
"Manrope",
|
|
ui-sans-serif,
|
|
system-ui,
|
|
-apple-system,
|
|
Segoe UI,
|
|
Roboto,
|
|
Ubuntu,
|
|
Cantarell,
|
|
Noto Sans,
|
|
Arial,
|
|
"Apple Color Emoji",
|
|
"Segoe UI Emoji";
|
|
}
|
|
|
|
/* Oversized fixed background layer to avoid gradient cutoffs on large screens. */
|
|
body::before {
|
|
content: "";
|
|
position: fixed;
|
|
inset: -40vmax;
|
|
z-index: -1;
|
|
pointer-events: none;
|
|
background:
|
|
radial-gradient(1200px 800px at 10% 10%, var(--glow-a), transparent 60%),
|
|
radial-gradient(1100px 800px at 90% 20%, var(--glow-b), transparent 58%),
|
|
radial-gradient(1200px 900px at 30% 90%, var(--glow-c), transparent 62%);
|
|
}
|
|
|
|
a {
|
|
color: inherit;
|
|
text-decoration: none;
|
|
}
|
|
|
|
/* WCAG-ish baseline: make keyboard focus obvious. */
|
|
a:focus-visible,
|
|
button:focus-visible,
|
|
input:focus-visible,
|
|
select:focus-visible,
|
|
textarea:focus-visible {
|
|
outline: 3px solid var(--focus);
|
|
outline-offset: 3px;
|
|
}
|
|
|
|
.skip-link {
|
|
position: absolute;
|
|
left: 14px;
|
|
top: 12px;
|
|
z-index: 999;
|
|
padding: 10px 12px;
|
|
border-radius: 999px;
|
|
border: 1px solid var(--stroke-strong);
|
|
background: var(--surface-1);
|
|
color: var(--fg);
|
|
font-weight: 800;
|
|
transform: translateY(-220%);
|
|
transition: transform 140ms ease;
|
|
}
|
|
|
|
.skip-link:focus {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.container {
|
|
width: min(1100px, calc(100% - 48px));
|
|
margin: 0 auto;
|
|
padding: 32px 0 72px;
|
|
}
|
|
|
|
.site-header {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 10;
|
|
backdrop-filter: blur(10px);
|
|
background: var(--surface-0);
|
|
border-bottom: 1px solid var(--stroke-weak);
|
|
padding: 14px 24px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.brand {
|
|
font-weight: 800;
|
|
letter-spacing: -0.02em;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.nav {
|
|
display: flex;
|
|
gap: 16px;
|
|
font-weight: 600;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.nav a {
|
|
padding: 10px 12px;
|
|
border-radius: 999px;
|
|
}
|
|
|
|
.nav a:hover {
|
|
color: var(--fg);
|
|
}
|
|
|
|
.nav-toggle {
|
|
display: none;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 44px;
|
|
height: 44px;
|
|
border-radius: 999px;
|
|
border: 1px solid var(--stroke-mid);
|
|
background: var(--layer-1);
|
|
color: var(--fg);
|
|
}
|
|
|
|
.nav-toggle-icon {
|
|
width: 18px;
|
|
height: 12px;
|
|
position: relative;
|
|
display: block;
|
|
}
|
|
|
|
.nav-toggle-icon::before,
|
|
.nav-toggle-icon::after {
|
|
content: "";
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
height: 2px;
|
|
border-radius: 999px;
|
|
background: color-mix(in srgb, var(--fg) 92%, transparent);
|
|
}
|
|
|
|
.nav-toggle-icon::before {
|
|
top: 0;
|
|
box-shadow: 0 5px 0 color-mix(in srgb, var(--fg) 92%, transparent);
|
|
}
|
|
|
|
.nav-toggle-icon::after {
|
|
bottom: 0;
|
|
}
|
|
|
|
@media (max-width: 760px) {
|
|
.site-header {
|
|
position: sticky;
|
|
}
|
|
|
|
.nav-toggle {
|
|
display: inline-flex;
|
|
}
|
|
|
|
.nav {
|
|
position: absolute;
|
|
top: calc(100% + 10px);
|
|
right: 14px;
|
|
width: min(86vw, 320px);
|
|
padding: 10px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
border-radius: 16px;
|
|
border: 1px solid var(--stroke-mid);
|
|
background: var(--surface-1);
|
|
box-shadow:
|
|
0 18px 60px rgba(0, 0, 0, 0.55),
|
|
0 0 0 1px color-mix(in srgb, var(--stroke-weak) 60%, transparent) inset;
|
|
transform-origin: top right;
|
|
transition:
|
|
opacity 160ms ease,
|
|
transform 160ms ease,
|
|
visibility 0s linear 160ms;
|
|
}
|
|
|
|
.nav[data-open="false"] {
|
|
opacity: 0;
|
|
transform: translateY(-6px) scale(0.98);
|
|
pointer-events: none;
|
|
visibility: hidden;
|
|
}
|
|
|
|
.nav[data-open="true"] {
|
|
opacity: 1;
|
|
transform: translateY(0) scale(1);
|
|
pointer-events: auto;
|
|
visibility: visible;
|
|
transition:
|
|
opacity 160ms ease,
|
|
transform 160ms ease,
|
|
visibility 0s;
|
|
}
|
|
|
|
.nav a {
|
|
padding: 12px 12px;
|
|
border-radius: 12px;
|
|
background: var(--layer-1);
|
|
border: 1px solid var(--stroke-weak);
|
|
}
|
|
}
|
|
|
|
.theme-notch {
|
|
position: fixed;
|
|
top: var(--theme-notch-top);
|
|
right: max(8px, env(safe-area-inset-right));
|
|
z-index: 12;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.theme-notch > * {
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.theme-notch-handle {
|
|
height: 46px;
|
|
width: 60px;
|
|
border-radius: 16px 0 0 16px;
|
|
border: 1px solid var(--stroke-mid);
|
|
border-right: 0;
|
|
background: linear-gradient(180deg, var(--layer-3), var(--layer-1));
|
|
color: var(--fg);
|
|
cursor: pointer;
|
|
backdrop-filter: blur(10px);
|
|
box-shadow:
|
|
0 14px 42px rgba(0, 0, 0, 0.28),
|
|
0 0 0 1px color-mix(in srgb, var(--stroke-weak) 60%, transparent) inset;
|
|
transition:
|
|
transform 160ms ease,
|
|
box-shadow 160ms ease,
|
|
background 160ms ease;
|
|
}
|
|
|
|
.theme-notch-glyph {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 100%;
|
|
height: 100%;
|
|
font-weight: 900;
|
|
letter-spacing: -0.02em;
|
|
font-size: 13px;
|
|
line-height: 1;
|
|
}
|
|
|
|
.theme-notch-panel {
|
|
position: absolute;
|
|
right: 60px;
|
|
top: 0;
|
|
display: grid;
|
|
gap: 6px;
|
|
padding: 12px;
|
|
border-radius: 16px;
|
|
border: 1px solid var(--stroke-mid);
|
|
background: var(--surface-1);
|
|
box-shadow:
|
|
0 18px 60px rgba(0, 0, 0, 0.32),
|
|
0 0 0 1px color-mix(in srgb, var(--stroke-weak) 60%, transparent) inset;
|
|
opacity: 0;
|
|
transform: translateX(10px) scale(0.98);
|
|
visibility: hidden;
|
|
pointer-events: none;
|
|
transition:
|
|
opacity 160ms ease,
|
|
transform 160ms ease,
|
|
visibility 0s linear 160ms;
|
|
}
|
|
|
|
.theme-notch:hover .theme-notch-panel,
|
|
.theme-notch[data-open="true"] .theme-notch-panel,
|
|
.theme-notch:focus-within .theme-notch-panel {
|
|
opacity: 1;
|
|
transform: translateX(0) scale(1);
|
|
visibility: visible;
|
|
pointer-events: auto;
|
|
transition:
|
|
opacity 160ms ease,
|
|
transform 160ms ease,
|
|
visibility 0s;
|
|
}
|
|
|
|
.theme-notch:hover .theme-notch-handle,
|
|
.theme-notch:focus-within .theme-notch-handle,
|
|
.theme-notch[data-open="true"] .theme-notch-handle {
|
|
transform: translateX(-4px);
|
|
}
|
|
|
|
.theme-notch-option {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
gap: 10px;
|
|
width: 160px;
|
|
min-height: 40px;
|
|
padding: 10px 12px;
|
|
border-radius: 12px;
|
|
border: 1px solid var(--stroke-weak);
|
|
background: var(--layer-1);
|
|
color: var(--fg);
|
|
cursor: pointer;
|
|
font-weight: 800;
|
|
font-size: 13px;
|
|
line-height: 1.1;
|
|
letter-spacing: -0.01em;
|
|
transition:
|
|
transform 140ms ease,
|
|
background 140ms ease,
|
|
border-color 140ms ease;
|
|
}
|
|
|
|
.theme-notch-option:hover {
|
|
transform: translateY(-1px);
|
|
background: var(--layer-2);
|
|
border-color: var(--stroke-mid);
|
|
}
|
|
|
|
.theme-notch-dot {
|
|
width: 9px;
|
|
height: 9px;
|
|
border-radius: 999px;
|
|
border: 2px solid var(--stroke-mid);
|
|
background: transparent;
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.theme-notch-option[aria-checked="true"] {
|
|
border-color: color-mix(in srgb, var(--accent2) 50%, var(--stroke-mid));
|
|
box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent2) 18%, transparent);
|
|
}
|
|
|
|
.theme-notch-option[aria-checked="true"] .theme-notch-dot {
|
|
border-color: var(--accent2);
|
|
background: var(--accent2);
|
|
}
|
|
|
|
@media (max-width: 760px) {
|
|
.theme-notch {
|
|
right: max(10px, env(safe-area-inset-right));
|
|
}
|
|
|
|
.theme-notch-panel {
|
|
right: 60px;
|
|
width: min(80vw, 220px);
|
|
}
|
|
|
|
.theme-notch-option {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
@media (forced-colors: active) {
|
|
body {
|
|
background: Canvas;
|
|
color: CanvasText;
|
|
}
|
|
|
|
body::before {
|
|
display: none;
|
|
}
|
|
|
|
.site-header,
|
|
.nav,
|
|
.card,
|
|
.hero,
|
|
.theme-notch-panel,
|
|
.theme-notch-handle,
|
|
.theme-notch-option {
|
|
background: Canvas;
|
|
color: CanvasText;
|
|
border-color: CanvasText;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.theme-notch-option[aria-checked="true"] {
|
|
outline: 2px solid Highlight;
|
|
outline-offset: 2px;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.theme-notch-dot {
|
|
border-color: CanvasText;
|
|
}
|
|
}
|
|
|
|
html[data-theme-transition="on"] body {
|
|
transition:
|
|
background 220ms ease,
|
|
color 220ms ease;
|
|
}
|
|
|
|
html[data-theme-transition="on"] body::before {
|
|
transition: opacity 220ms ease;
|
|
}
|
|
|
|
html[data-theme-transition="on"] .site-header,
|
|
html[data-theme-transition="on"] .nav-toggle,
|
|
html[data-theme-transition="on"] .nav,
|
|
html[data-theme-transition="on"] .card,
|
|
html[data-theme-transition="on"] .cta,
|
|
html[data-theme-transition="on"] .subnav a,
|
|
html[data-theme-transition="on"] .pill,
|
|
html[data-theme-transition="on"] dialog,
|
|
html[data-theme-transition="on"] .theme-notch-panel,
|
|
html[data-theme-transition="on"] .theme-notch-handle,
|
|
html[data-theme-transition="on"] .theme-notch-option {
|
|
transition:
|
|
background-color 220ms ease,
|
|
color 220ms ease,
|
|
border-color 220ms ease,
|
|
box-shadow 220ms ease;
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
scroll-behavior: auto !important;
|
|
transition-duration: 0.001ms !important;
|
|
animation-duration: 0.001ms !important;
|
|
animation-iteration-count: 1 !important;
|
|
}
|
|
}
|
|
|
|
.subnav {
|
|
display: flex;
|
|
gap: 10px;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
margin: 18px 0 8px;
|
|
padding-bottom: 6px;
|
|
border-bottom: 1px solid var(--stroke-weak);
|
|
color: var(--muted);
|
|
}
|
|
|
|
.subnav a {
|
|
padding: 8px 10px;
|
|
border-radius: 999px;
|
|
border: 1px solid var(--stroke-mid);
|
|
background: var(--layer-1);
|
|
font-weight: 700;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.subnav a.active {
|
|
color: var(--fg);
|
|
border-color: rgba(94, 228, 255, 0.35);
|
|
box-shadow: 0 0 0 3px rgba(94, 228, 255, 0.08);
|
|
}
|
|
|
|
.blog-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
gap: 14px;
|
|
}
|
|
|
|
/* blog cards are now rendered via the shared `.card` component styles */
|
|
|
|
.prose {
|
|
line-height: 1.75;
|
|
color: color-mix(in srgb, var(--fg) 90%, transparent);
|
|
}
|
|
|
|
.prose a {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.prose img {
|
|
max-width: 100%;
|
|
height: auto;
|
|
border-radius: 16px;
|
|
border: 1px solid var(--stroke-mid);
|
|
}
|
|
|
|
.site-footer {
|
|
border-top: 1px solid var(--stroke-weak);
|
|
padding: 20px 24px;
|
|
text-align: center;
|
|
}
|
|
|
|
.muted {
|
|
color: var(--muted);
|
|
}
|
|
|
|
.hero {
|
|
display: grid;
|
|
grid-template-columns: 1.3fr 1fr;
|
|
gap: 24px;
|
|
align-items: start;
|
|
padding: 28px;
|
|
border: 1px solid var(--stroke);
|
|
background: var(--layer-1);
|
|
border-radius: 18px;
|
|
}
|
|
|
|
.hero h1 {
|
|
margin: 0 0 10px;
|
|
font-size: clamp(34px, 4vw, 52px);
|
|
letter-spacing: -0.04em;
|
|
line-height: 1.05;
|
|
}
|
|
|
|
.hero p {
|
|
margin: 0;
|
|
font-size: 16px;
|
|
line-height: 1.6;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.cta-row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 12px;
|
|
margin-top: 18px;
|
|
}
|
|
|
|
.cta {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 10px 14px;
|
|
border-radius: 999px;
|
|
border: 1px solid var(--stroke);
|
|
background: linear-gradient(180deg, var(--layer-3), color-mix(in srgb, var(--layer-1) 75%, transparent));
|
|
font-weight: 800;
|
|
letter-spacing: -0.01em;
|
|
}
|
|
|
|
.cta.primary {
|
|
border-color: rgba(255, 205, 74, 0.45);
|
|
box-shadow: 0 0 0 3px rgba(255, 205, 74, 0.1);
|
|
}
|
|
|
|
.cta:hover {
|
|
background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
|
|
}
|
|
|
|
.section {
|
|
margin-top: 28px;
|
|
}
|
|
|
|
.section-header {
|
|
display: flex;
|
|
align-items: baseline;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.section h2 {
|
|
margin: 0;
|
|
font-size: 20px;
|
|
letter-spacing: -0.02em;
|
|
}
|
|
|
|
.grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
gap: 14px;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
border-radius: 16px;
|
|
border: 1px solid var(--stroke-mid);
|
|
background: var(--card);
|
|
overflow: hidden;
|
|
transition:
|
|
transform 120ms ease,
|
|
background 120ms ease;
|
|
}
|
|
|
|
button.card {
|
|
padding: 0;
|
|
font: inherit;
|
|
color: inherit;
|
|
text-align: left;
|
|
cursor: pointer;
|
|
width: 100%;
|
|
}
|
|
|
|
.card-media {
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.card:hover {
|
|
transform: translateY(-2px);
|
|
background: var(--card2);
|
|
}
|
|
|
|
.card-media .img-shimmer-wrap {
|
|
width: 100%;
|
|
height: 180px;
|
|
border-bottom: 1px solid var(--stroke-weak);
|
|
}
|
|
|
|
.card-media img {
|
|
width: 100%;
|
|
height: 180px;
|
|
object-fit: cover;
|
|
display: block;
|
|
border-bottom: 1px solid var(--stroke-weak);
|
|
}
|
|
|
|
.card-placeholder {
|
|
width: 100%;
|
|
height: 180px;
|
|
background: var(--layer-2);
|
|
border-bottom: 1px solid var(--stroke-weak);
|
|
}
|
|
|
|
/* --- Image shimmer / lazy-load placeholder --- */
|
|
|
|
@keyframes shimmer {
|
|
0% {
|
|
transform: translateX(-100%);
|
|
}
|
|
100% {
|
|
transform: translateX(100%);
|
|
}
|
|
}
|
|
|
|
.img-shimmer-wrap {
|
|
position: relative;
|
|
overflow: hidden;
|
|
background: var(--layer-2);
|
|
}
|
|
|
|
.img-shimmer-wrap::before {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 0;
|
|
z-index: 1;
|
|
background: linear-gradient(
|
|
90deg,
|
|
transparent 0%,
|
|
color-mix(in srgb, var(--fg) 10%, transparent) 35%,
|
|
color-mix(in srgb, var(--fg) 18%, transparent) 50%,
|
|
color-mix(in srgb, var(--fg) 10%, transparent) 65%,
|
|
transparent 100%
|
|
);
|
|
animation: shimmer 1.6s ease-in-out infinite;
|
|
}
|
|
|
|
.img-shimmer-wrap img {
|
|
position: relative;
|
|
z-index: 2;
|
|
}
|
|
|
|
.img-shimmer-wrap img.img-loading {
|
|
opacity: 0 !important;
|
|
}
|
|
|
|
.img-shimmer-wrap img.img-loaded {
|
|
opacity: 1;
|
|
transition: opacity 250ms ease;
|
|
}
|
|
|
|
.img-shimmer-wrap.img-error::before {
|
|
animation: none;
|
|
}
|
|
|
|
.img-shimmer-wrap.img-loaded::before {
|
|
display: none;
|
|
}
|
|
|
|
/* --- End image shimmer --- */
|
|
|
|
.card-body {
|
|
display: flex;
|
|
flex: 1;
|
|
flex-direction: column;
|
|
padding: 0;
|
|
}
|
|
|
|
.card-content {
|
|
flex: 1;
|
|
padding: 12px 12px 12px;
|
|
background: linear-gradient(
|
|
180deg,
|
|
color-mix(in srgb, var(--surface-1) 94%, transparent),
|
|
color-mix(in srgb, var(--surface-1) 68%, transparent)
|
|
);
|
|
}
|
|
|
|
.card-title {
|
|
margin: 0 0 8px;
|
|
font-size: 15px;
|
|
line-height: 1.25;
|
|
letter-spacing: -0.01em;
|
|
}
|
|
|
|
.card-summary {
|
|
margin: 0;
|
|
color: var(--muted);
|
|
font-size: 13px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.card-footer {
|
|
margin-top: auto;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
padding: 10px 12px;
|
|
border-top: 1px solid var(--stroke-weak);
|
|
background: color-mix(in srgb, var(--surface-1) 78%, transparent);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.card-footer .card-views {
|
|
flex: 1;
|
|
text-align: center;
|
|
}
|
|
|
|
.pill {
|
|
font-size: 11px;
|
|
font-weight: 800;
|
|
padding: 4px 8px;
|
|
border-radius: 999px;
|
|
border: 1px solid var(--stroke-mid);
|
|
background: var(--layer-1);
|
|
}
|
|
|
|
.pill-youtube {
|
|
border-color: rgba(255, 74, 74, 0.35);
|
|
}
|
|
|
|
.pill-podcast {
|
|
border-color: rgba(94, 228, 255, 0.35);
|
|
}
|
|
|
|
.pill-instagram {
|
|
border-color: rgba(255, 205, 74, 0.35);
|
|
}
|
|
|
|
.pill-blog {
|
|
border-color: rgba(140, 88, 255, 0.35);
|
|
}
|
|
|
|
.empty {
|
|
padding: 16px;
|
|
border-radius: 14px;
|
|
border: 1px dashed var(--stroke-strong);
|
|
color: var(--muted);
|
|
background: var(--layer-1);
|
|
}
|
|
|
|
.instagram-media {
|
|
width: 100% !important;
|
|
max-width: 100% !important;
|
|
border-radius: 16px !important;
|
|
overflow: hidden;
|
|
}
|
|
|
|
@media (max-width: 880px) {
|
|
.hero {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
.grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
.blog-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
.card-media img,
|
|
.card-placeholder,
|
|
.card-media .img-shimmer-wrap {
|
|
height: 200px;
|
|
}
|
|
}
|
|
|
|
/* --- Media Modal --- */
|
|
|
|
#media-modal {
|
|
max-width: 800px;
|
|
width: calc(100vw - 48px);
|
|
max-height: 90vh;
|
|
border-radius: 20px;
|
|
border: 1px solid rgba(255, 255, 255, 0.16);
|
|
background: var(--bg1);
|
|
color: var(--fg);
|
|
padding: 0;
|
|
overflow: hidden;
|
|
box-shadow:
|
|
0 24px 80px rgba(0, 0, 0, 0.6),
|
|
0 0 0 1px rgba(255, 255, 255, 0.08) inset;
|
|
}
|
|
|
|
#media-modal::backdrop {
|
|
background: rgba(0, 0, 0, 0.75);
|
|
backdrop-filter: blur(8px);
|
|
}
|
|
|
|
.media-modal-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.media-modal-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
padding: 20px 24px;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.media-modal-header-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 14px;
|
|
min-width: 0;
|
|
flex: 1;
|
|
}
|
|
|
|
.media-modal-thumb {
|
|
display: none;
|
|
width: 44px;
|
|
height: 44px;
|
|
border-radius: 14px;
|
|
object-fit: cover;
|
|
border: 1px solid rgba(255, 255, 255, 0.14);
|
|
background: rgba(0, 0, 0, 0.25);
|
|
}
|
|
|
|
.media-modal-title-wrap {
|
|
min-width: 0;
|
|
}
|
|
|
|
.media-modal-kicker {
|
|
font-size: 11px;
|
|
letter-spacing: 0.12em;
|
|
text-transform: uppercase;
|
|
color: var(--muted);
|
|
margin: 0 0 6px;
|
|
}
|
|
|
|
.media-modal-title {
|
|
margin: 0;
|
|
font-size: 20px;
|
|
font-weight: 800;
|
|
line-height: 1.3;
|
|
letter-spacing: -0.02em;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.media-modal-close {
|
|
flex: 0 0 auto;
|
|
width: 40px;
|
|
height: 40px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 999px;
|
|
border: 1px solid rgba(255, 255, 255, 0.14);
|
|
background: rgba(255, 255, 255, 0.04);
|
|
color: var(--fg);
|
|
cursor: pointer;
|
|
transition:
|
|
background 120ms ease,
|
|
transform 120ms ease;
|
|
}
|
|
|
|
.media-modal-close:hover {
|
|
background: rgba(255, 255, 255, 0.08);
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.media-modal-embed-container {
|
|
position: relative;
|
|
width: 100%;
|
|
aspect-ratio: 16 / 9;
|
|
background: rgba(0, 0, 0, 0.4);
|
|
}
|
|
|
|
.media-modal-embed-container[data-embed-kind="spotify"],
|
|
.media-modal-embed-container[data-embed-kind="audio"],
|
|
.media-modal-embed-container[data-embed-kind="fallback"] {
|
|
margin: 14px 24px 0;
|
|
width: calc(100% - 48px);
|
|
}
|
|
|
|
.media-modal-embed-container[data-embed-kind="spotify"] {
|
|
aspect-ratio: auto;
|
|
height: 232px;
|
|
background: rgba(255, 255, 255, 0.04);
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.media-modal-embed-container[data-embed-kind="audio"] {
|
|
aspect-ratio: auto;
|
|
height: auto;
|
|
padding: 12px;
|
|
background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.media-modal-embed-placeholder {
|
|
position: absolute;
|
|
inset: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: rgba(255, 255, 255, 0.08);
|
|
z-index: 1;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.media-modal-embed-fallback {
|
|
position: relative;
|
|
z-index: 2;
|
|
display: none;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 12px 14px;
|
|
border-radius: 12px;
|
|
border: 1px solid rgba(255, 255, 255, 0.16);
|
|
background: rgba(10, 14, 28, 0.55);
|
|
color: var(--fg);
|
|
font-weight: 700;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.media-modal-embed-container[data-embed-kind="fallback"] .media-modal-embed-placeholder::before,
|
|
.media-modal-embed-container[data-embed-kind="fallback"] .media-modal-embed-placeholder::after {
|
|
display: none;
|
|
animation: none;
|
|
}
|
|
|
|
.media-modal-embed-container[data-embed-kind="fallback"] .media-modal-embed-placeholder {
|
|
background: rgba(255, 255, 255, 0.04);
|
|
}
|
|
|
|
.media-modal-embed-container[data-embed-kind="fallback"] .media-modal-embed-fallback {
|
|
display: inline-flex;
|
|
}
|
|
|
|
.media-modal-embed-placeholder::before {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 0;
|
|
z-index: 1;
|
|
background: linear-gradient(
|
|
90deg,
|
|
transparent 0%,
|
|
rgba(255, 255, 255, 0.12) 35%,
|
|
rgba(255, 255, 255, 0.22) 50%,
|
|
rgba(255, 255, 255, 0.12) 65%,
|
|
transparent 100%
|
|
);
|
|
animation: shimmer 1.6s ease-in-out infinite;
|
|
}
|
|
|
|
.media-modal-embed-placeholder::after {
|
|
content: "";
|
|
position: relative;
|
|
z-index: 2;
|
|
width: 40px;
|
|
height: 40px;
|
|
border: 3px solid rgba(255, 255, 255, 0.2);
|
|
border-top-color: var(--accent2);
|
|
border-radius: 50%;
|
|
animation: spin 0.8s linear infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
.media-modal-embed {
|
|
position: absolute;
|
|
inset: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
border: 0;
|
|
z-index: 2;
|
|
}
|
|
|
|
.media-modal-embed-container[data-embed-kind="spotify"] .media-modal-embed,
|
|
.media-modal-embed-container[data-embed-kind="spotify"] .media-modal-embed-placeholder {
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.media-modal-audio {
|
|
display: none;
|
|
width: 100%;
|
|
height: 44px;
|
|
color-scheme: dark;
|
|
accent-color: var(--accent2);
|
|
}
|
|
|
|
.media-modal-embed-container[data-embed-kind="audio"] .media-modal-audio {
|
|
display: block;
|
|
}
|
|
|
|
.media-modal-audio::-webkit-media-controls-enclosure {
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.media-modal-audio::-webkit-media-controls-panel {
|
|
background: rgba(10, 14, 28, 0.55);
|
|
}
|
|
|
|
.media-modal-body {
|
|
padding: 24px;
|
|
flex: 1 1 auto;
|
|
}
|
|
|
|
.media-modal-description {
|
|
margin: 0 0 16px;
|
|
line-height: 1.6;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.media-modal-meta {
|
|
display: flex;
|
|
gap: 12px;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
font-size: 14px;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.media-modal-meta span:not(:last-child)::after {
|
|
content: "•";
|
|
margin-left: 12px;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.media-modal-ctas {
|
|
display: flex;
|
|
gap: 12px;
|
|
padding: 16px 24px 24px;
|
|
border-top: 1px solid rgba(255, 255, 255, 0.08);
|
|
}
|
|
|
|
.media-modal-ctas .cta {
|
|
flex: 1;
|
|
text-align: center;
|
|
padding: 12px 16px;
|
|
border-radius: 14px;
|
|
border: 1px solid var(--stroke);
|
|
background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
|
|
font-weight: 800;
|
|
letter-spacing: -0.01em;
|
|
transition:
|
|
background 120ms ease,
|
|
transform 120ms ease;
|
|
}
|
|
|
|
.media-modal-ctas .cta:hover {
|
|
background: rgba(255, 255, 255, 0.08);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.media-modal-ctas .cta.primary {
|
|
border-color: rgba(94, 228, 255, 0.55);
|
|
background: linear-gradient(135deg, rgba(94, 228, 255, 0.24), rgba(255, 205, 74, 0.16));
|
|
box-shadow:
|
|
0 0 0 3px rgba(94, 228, 255, 0.14),
|
|
0 10px 30px rgba(0, 0, 0, 0.25);
|
|
}
|
|
|
|
@media (max-width: 760px) {
|
|
#media-modal {
|
|
max-width: 96vw;
|
|
max-height: 94vh;
|
|
width: 96vw;
|
|
}
|
|
|
|
.media-modal-header {
|
|
padding: 16px 20px;
|
|
}
|
|
|
|
.media-modal-embed-container[data-embed-kind="spotify"],
|
|
.media-modal-embed-container[data-embed-kind="audio"],
|
|
.media-modal-embed-container[data-embed-kind="fallback"] {
|
|
margin: 12px 20px 0;
|
|
width: calc(100% - 40px);
|
|
}
|
|
|
|
.media-modal-title {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.media-modal-body {
|
|
padding: 20px;
|
|
}
|
|
|
|
.media-modal-ctas {
|
|
flex-direction: column;
|
|
padding: 12px 20px 20px;
|
|
}
|
|
}
|