data-geek-astronomy
ml-portfolio-suite: 5 live ML demos
e2b3dd2
Raw
History Blame Contribute Delete
7.17 kB
/*
Shared design system for the ml-portfolio-suite projects.
One base system (typography scale, spacing, shadows, motion) shared by
all 5 projects -- Apple/Meta marketing-site inspired: system font stack,
large confident headlines, generous whitespace, soft shadows instead of
borders, subtle motion on interaction. Each project sets its own
--accent / --accent-dark by overriding the variables below in its own
<style> block, so the suite reads as one family with five distinct
identities rather than five unrelated demos.
*/
:root {
/* ---- accent (overridden per-project) ---- */
--accent: #0071e3;
--accent-dark: #0058b0;
--accent-soft: rgba(0, 113, 227, 0.10);
/* ---- neutrals ---- */
--bg: #ffffff;
--bg-alt: #f5f5f7;
--surface: #ffffff;
--text: #1d1d1f;
--text-secondary: #6e6e73;
--border: rgba(0, 0, 0, 0.08);
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 1px rgba(0, 0, 0, 0.03);
--shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
--shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.10), 0 4px 12px rgba(0, 0, 0, 0.05);
/* ---- type ---- */
--font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
--font-mono: "SF Mono", ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
/* ---- spacing / radius ---- */
--radius-sm: 10px;
--radius-md: 18px;
--radius-lg: 28px;
--ease: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-color-scheme: dark) {
:root {
--bg: #000000;
--bg-alt: #0a0a0c;
--surface: #1c1c1e;
--text: #f5f5f7;
--text-secondary: #a1a1a6;
--border: rgba(255, 255, 255, 0.10);
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
--shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
--shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
}
}
* { box-sizing: border-box; }
html, body {
margin: 0;
padding: 0;
background: var(--bg);
color: var(--text);
font-family: var(--font);
-webkit-font-smoothing: antialiased;
scroll-behavior: smooth;
}
.suite-nav {
position: sticky;
top: 0;
z-index: 50;
display: flex;
align-items: center;
justify-content: space-between;
padding: 14px 32px;
background: color-mix(in srgb, var(--bg) 82%, transparent);
backdrop-filter: saturate(180%) blur(20px);
-webkit-backdrop-filter: saturate(180%) blur(20px);
border-bottom: 1px solid var(--border);
}
.suite-nav a {
color: var(--text);
text-decoration: none;
font-size: 14px;
font-weight: 590;
letter-spacing: -0.01em;
}
.suite-nav .brand { display: flex; align-items: center; gap: 8px; font-weight: 650; }
.suite-nav .brand .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.suite-nav .links { display: flex; gap: 22px; opacity: 0.75; }
.suite-nav .links a:hover { opacity: 1; color: var(--accent); }
.hero {
padding: 96px 32px 64px;
max-width: 980px;
margin: 0 auto;
text-align: center;
}
.eyebrow {
display: inline-block;
padding: 6px 14px;
border-radius: 999px;
background: var(--accent-soft);
color: var(--accent);
font-size: 13px;
font-weight: 650;
letter-spacing: 0.01em;
margin-bottom: 20px;
}
.hero h1 {
font-size: clamp(34px, 6vw, 64px);
font-weight: 680;
letter-spacing: -0.02em;
line-height: 1.05;
margin: 0 0 18px;
background: linear-gradient(180deg, var(--text) 60%, var(--text-secondary));
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.hero p.lede {
font-size: clamp(16px, 2vw, 21px);
color: var(--text-secondary);
line-height: 1.5;
max-width: 640px;
margin: 0 auto;
font-weight: 420;
}
.container { max-width: 1080px; margin: 0 auto; padding: 0 32px 96px; }
.panel {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-md);
padding: 32px;
transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.panel:hover { box-shadow: var(--shadow-lg); }
.grid-2 { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.btn {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 12px 22px;
border-radius: 999px;
background: var(--accent);
color: white;
font-weight: 600;
font-size: 15px;
border: none;
cursor: pointer;
transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
box-shadow: 0 6px 20px -6px var(--accent);
}
.btn:hover { transform: translateY(-1px); background: var(--accent-dark); }
.btn:active { transform: translateY(0); }
.btn.secondary {
background: var(--bg-alt);
color: var(--text);
box-shadow: none;
border: 1px solid var(--border);
}
.btn.secondary:hover { background: var(--surface); border-color: var(--accent); color: var(--accent); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.stat {
display: flex;
flex-direction: column;
gap: 4px;
}
.stat .value { font-size: 32px; font-weight: 680; letter-spacing: -0.02em; color: var(--accent); font-variant-numeric: tabular-nums; }
.stat .label { font-size: 13px; color: var(--text-secondary); font-weight: 560; text-transform: uppercase; letter-spacing: 0.04em; }
.card {
background: var(--bg-alt);
border-radius: var(--radius-md);
padding: 22px;
border: 1px solid var(--border);
}
.section-title {
font-size: 28px;
font-weight: 660;
letter-spacing: -0.015em;
margin: 0 0 8px;
}
.section-sub { color: var(--text-secondary); font-size: 15px; margin: 0 0 28px; max-width: 620px; }
.badge {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 12px;
font-weight: 650;
padding: 4px 10px;
border-radius: 999px;
background: var(--bg-alt);
color: var(--text-secondary);
border: 1px solid var(--border);
}
.badge.live { color: #17a34a; background: rgba(23, 163, 74, 0.1); border-color: rgba(23, 163, 74, 0.25); }
.badge.live .dot { width: 6px; height: 6px; border-radius: 50%; background: #17a34a; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
pre.code {
background: #0d1117;
color: #c9d1d9;
border-radius: var(--radius-sm);
padding: 16px 18px;
font-family: var(--font-mono);
font-size: 12.5px;
overflow-x: auto;
line-height: 1.6;
}
footer.suite-footer {
text-align: center;
padding: 48px 32px 80px;
color: var(--text-secondary);
font-size: 13px;
}
footer.suite-footer a { color: var(--accent); text-decoration: none; }
input[type="range"] {
-webkit-appearance: none;
width: 100%;
height: 4px;
border-radius: 2px;
background: var(--border);
outline: none;
}
input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
width: 18px; height: 18px;
border-radius: 50%;
background: var(--accent);
cursor: pointer;
box-shadow: var(--shadow-sm);
}
.fade-in { animation: fadeIn 0.6s var(--ease) both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }