576 lines
10 KiB
CSS
576 lines
10 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);
|
|
}
|
|
|
|
* {
|
|
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%, rgba(94, 228, 255, 0.22), transparent 60%),
|
|
radial-gradient(1100px 800px at 90% 20%, rgba(255, 205, 74, 0.18), transparent 58%),
|
|
radial-gradient(1200px 900px at 30% 90%, rgba(140, 88, 255, 0.14), 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 rgba(255, 255, 255, 0.18);
|
|
background: rgba(10, 14, 28, 0.92);
|
|
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: rgba(10, 14, 28, 0.7);
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
|
|
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 rgba(255, 255, 255, 0.14);
|
|
background: rgba(255, 255, 255, 0.04);
|
|
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: rgba(242, 244, 255, 0.92);
|
|
}
|
|
|
|
.nav-toggle-icon::before {
|
|
top: 0;
|
|
box-shadow: 0 5px 0 rgba(242, 244, 255, 0.92);
|
|
}
|
|
|
|
.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 rgba(255, 255, 255, 0.14);
|
|
background: rgba(10, 14, 28, 0.92);
|
|
box-shadow:
|
|
0 18px 60px rgba(0, 0, 0, 0.55),
|
|
0 0 0 1px rgba(255, 255, 255, 0.05) 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: rgba(255, 255, 255, 0.04);
|
|
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
}
|
|
}
|
|
|
|
@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 rgba(255, 255, 255, 0.08);
|
|
color: var(--muted);
|
|
}
|
|
|
|
.subnav a {
|
|
padding: 8px 10px;
|
|
border-radius: 999px;
|
|
border: 1px solid rgba(255, 255, 255, 0.12);
|
|
background: rgba(255, 255, 255, 0.04);
|
|
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: rgba(242, 244, 255, 0.9);
|
|
}
|
|
|
|
.prose a {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.prose img {
|
|
max-width: 100%;
|
|
height: auto;
|
|
border-radius: 16px;
|
|
border: 1px solid rgba(255, 255, 255, 0.12);
|
|
}
|
|
|
|
.site-footer {
|
|
border-top: 1px solid rgba(255, 255, 255, 0.08);
|
|
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: rgba(255, 255, 255, 0.04);
|
|
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, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
|
|
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 rgba(255, 255, 255, 0.1);
|
|
background: rgba(255, 255, 255, 0.04);
|
|
overflow: hidden;
|
|
transition:
|
|
transform 120ms ease,
|
|
background 120ms ease;
|
|
}
|
|
|
|
.card-media {
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.card:hover {
|
|
transform: translateY(-2px);
|
|
background: rgba(255, 255, 255, 0.06);
|
|
}
|
|
|
|
.card-media .img-shimmer-wrap {
|
|
width: 100%;
|
|
height: 180px;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
|
|
}
|
|
|
|
.card-media img {
|
|
width: 100%;
|
|
height: 180px;
|
|
object-fit: cover;
|
|
display: block;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
|
|
}
|
|
|
|
.card-placeholder {
|
|
width: 100%;
|
|
height: 180px;
|
|
background: rgba(255, 255, 255, 0.06);
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
|
|
}
|
|
|
|
/* --- Image shimmer / lazy-load placeholder --- */
|
|
|
|
@keyframes shimmer {
|
|
0% {
|
|
transform: translateX(-100%);
|
|
}
|
|
100% {
|
|
transform: translateX(100%);
|
|
}
|
|
}
|
|
|
|
.img-shimmer-wrap {
|
|
position: relative;
|
|
overflow: hidden;
|
|
background: rgba(255, 255, 255, 0.08);
|
|
}
|
|
|
|
.img-shimmer-wrap::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;
|
|
}
|
|
|
|
.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, rgba(15, 27, 56, 0.75), rgba(11, 16, 32, 0.32));
|
|
}
|
|
|
|
.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 rgba(255, 255, 255, 0.08);
|
|
background: rgba(11, 16, 32, 0.45);
|
|
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 rgba(255, 255, 255, 0.16);
|
|
background: rgba(255, 255, 255, 0.06);
|
|
}
|
|
|
|
.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 rgba(255, 255, 255, 0.18);
|
|
color: var(--muted);
|
|
background: rgba(255, 255, 255, 0.03);
|
|
}
|
|
|
|
.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;
|
|
}
|
|
}
|