Spaces:
Running
Running
File size: 7,171 Bytes
e2b3dd2 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 | /*
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); } }
|