Full design refactor of the public surface (home, blog, layout) using the taste-skill anti-slop rules. Admin CMS is untouched. - Single locked light theme: #fafafa bg, #18181b text, one accent #2563eb - Syne headings + system body + Vazirmatn (fa); hairline rules, no glows/cards - Remove AI tells: 5-colour palette, gradient text, neon glows, custom cursor, particle canvas, typewriter, scroll cue, per-section eyebrows, progress bars - Replace window scroll listener with an IntersectionObserver sentinel - 8 distinct section layouts; portfolio uses typographic covers (no broken imgs) - Zero em-dashes in visible copy; fix relative-path-safe asset refs - Add missing wwwroot/logo-mark.svg (was 404) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
+127
-89
@@ -1,115 +1,152 @@
|
||||
/* ─── Design tokens ──────────────────────────────────────────────────── */
|
||||
/* ════════════════════════════════════════════════════════════════════════
|
||||
Minimal editorial theme - light, single accent.
|
||||
Public site styles are scoped under `.site` so the dark admin (which shares
|
||||
this file via _AdminLayout) is left untouched. Admin-only classes (.glass,
|
||||
.label-mono, .admin-nav-link) keep their dark definitions at the bottom.
|
||||
════════════════════════════════════════════════════════════════════════ */
|
||||
|
||||
:root {
|
||||
--bg: #020510;
|
||||
--electric: #38bdf8;
|
||||
--violet: #818cf8;
|
||||
--magenta: #e879f9;
|
||||
--emerald: #34d399;
|
||||
--cyan: #22d3ee;
|
||||
--radius: 14px;
|
||||
color-scheme: dark;
|
||||
--bg: #fafafa;
|
||||
--surface: #ffffff;
|
||||
--text: #18181b; /* zinc-900 */
|
||||
--text-2: #52525b; /* zinc-600 */
|
||||
--text-3: #a1a1aa; /* zinc-400 */
|
||||
--line: #e4e4e7; /* zinc-200 */
|
||||
--line-strong: #d4d4d8; /* zinc-300 */
|
||||
--accent: #2563eb; /* blue-600 - the single accent */
|
||||
--accent-ink: #1d4ed8; /* blue-700 */
|
||||
--accent-weak: #eff4ff;
|
||||
--radius: 8px;
|
||||
}
|
||||
|
||||
html, body {
|
||||
background: var(--bg);
|
||||
font-feature-settings: 'ss01','cv11';
|
||||
-webkit-font-smoothing: antialiased;
|
||||
* { box-sizing: border-box; }
|
||||
html { scroll-behavior: smooth; background: var(--bg); }
|
||||
|
||||
::selection { background: #dbe5ff; color: #18181b; }
|
||||
|
||||
a:focus-visible, button:focus-visible,
|
||||
input:focus-visible, textarea:focus-visible, select:focus-visible {
|
||||
outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px;
|
||||
}
|
||||
html { scroll-behavior: smooth; }
|
||||
|
||||
[dir='rtl'] body { font-family: 'Vazirmatn','VazirmatnLat','Syne',system-ui,sans-serif; }
|
||||
[dir='ltr'] body { font-family: 'Syne','Vazirmatn','VazirmatnLat',system-ui,sans-serif; }
|
||||
|
||||
::selection { background: rgba(56,189,248,.35); color: #f8fafc; }
|
||||
|
||||
::-webkit-scrollbar { width: 10px; height: 10px; }
|
||||
::-webkit-scrollbar-track { background: #050a1a; }
|
||||
::-webkit-scrollbar-thumb { background: linear-gradient(180deg,#38bdf8,#818cf8); border-radius:999px; border:2px solid #050a1a; }
|
||||
::-webkit-scrollbar-track { background: var(--bg); }
|
||||
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; border: 3px solid var(--bg); }
|
||||
|
||||
/* ─── Component classes (used across Razor templates) ────────────────── */
|
||||
/* ─── Public base (scoped to .site) ──────────────────────────────────── */
|
||||
body.site {
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Vazirmatn', sans-serif;
|
||||
font-size: 1rem; line-height: 1.6;
|
||||
-webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
|
||||
}
|
||||
[dir='rtl'] body.site { font-family: 'Vazirmatn', system-ui, sans-serif; }
|
||||
|
||||
.glass {
|
||||
background: linear-gradient(180deg,rgba(255,255,255,.04) 0%,rgba(255,255,255,.015) 100%);
|
||||
border: 1px solid rgba(56,189,248,.14);
|
||||
backdrop-filter: blur(14px);
|
||||
box-shadow: inset 0 1px 0 0 rgba(255,255,255,.06), 0 30px 60px -30px rgba(0,0,0,.6);
|
||||
border-radius: var(--radius);
|
||||
.site h1, .site h2, .site h3, .site h4 {
|
||||
font-family: 'Syne', system-ui, sans-serif;
|
||||
font-weight: 700; color: var(--text);
|
||||
letter-spacing: -0.02em; line-height: 1.12;
|
||||
}
|
||||
[dir='rtl'] .site h1, [dir='rtl'] .site h2,
|
||||
[dir='rtl'] .site h3, [dir='rtl'] .site h4 {
|
||||
font-family: 'Vazirmatn', system-ui, sans-serif; letter-spacing: 0;
|
||||
}
|
||||
|
||||
.chip {
|
||||
display: inline-flex; align-items: center; gap: .5rem;
|
||||
padding: .35rem .75rem; border-radius: 999px;
|
||||
border: 1px solid rgba(52,211,153,.25); background: rgba(52,211,153,.06);
|
||||
color: #a7f3d0;
|
||||
font-family: 'SpaceMono',ui-monospace,monospace;
|
||||
font-size: .72rem; letter-spacing: .04em; text-transform: uppercase;
|
||||
}
|
||||
/* ─── Navigation ─────────────────────────────────────────────────────── */
|
||||
.nav-link { font-size: .9rem; color: var(--text-2); transition: color .18s ease; }
|
||||
.nav-link:hover { color: var(--text); }
|
||||
#navbar { transition: background .25s ease, border-color .25s ease; border-bottom: 1px solid transparent; }
|
||||
#navbar.scrolled { background: rgba(250,250,250,.82); backdrop-filter: blur(12px); border-bottom-color: var(--line); }
|
||||
|
||||
.label-mono {
|
||||
font-family: 'SpaceMono',ui-monospace,monospace;
|
||||
font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: #94a3b8;
|
||||
/* ─── Buttons (one shape: 8px radius, no pills, no glow) ──────────────── */
|
||||
.btn, .btn-primary {
|
||||
display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
|
||||
padding: .7rem 1.15rem; border-radius: var(--radius);
|
||||
font-weight: 600; font-size: .92rem;
|
||||
background: var(--accent); color: #fff; border: 1px solid var(--accent);
|
||||
transition: background .18s ease, transform .12s ease;
|
||||
}
|
||||
|
||||
.gradient-text {
|
||||
background: linear-gradient(135deg,#38bdf8 0%,#818cf8 45%,#e879f9 100%);
|
||||
-webkit-background-clip: text; background-clip: text; color: transparent;
|
||||
background-size: 200% 200%; animation: gradient-pan 8s ease-in-out infinite;
|
||||
}
|
||||
@keyframes gradient-pan { 0%,100%{background-position:0% 50%} 50%{background-position:100% 50%} }
|
||||
|
||||
.btn-primary {
|
||||
display: inline-flex; align-items: center; gap: .6rem;
|
||||
padding: .85rem 1.4rem; border-radius: 999px;
|
||||
font-weight: 600; color: #020510;
|
||||
background: linear-gradient(135deg,#38bdf8 0%,#818cf8 60%,#e879f9 100%);
|
||||
background-size: 200% 200%;
|
||||
transition: transform .25s ease, box-shadow .25s ease, background-position .6s ease;
|
||||
box-shadow: 0 12px 40px -12px rgba(56,189,248,.55);
|
||||
}
|
||||
.btn-primary:hover { transform: translateY(-1px); background-position: 100% 0; box-shadow: 0 18px 50px -10px rgba(232,121,249,.55); }
|
||||
.btn:hover, .btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
|
||||
.btn:active, .btn-primary:active { transform: translateY(1px); }
|
||||
|
||||
.btn-ghost {
|
||||
display: inline-flex; align-items: center; gap: .6rem;
|
||||
padding: .8rem 1.35rem; border-radius: 999px;
|
||||
font-weight: 500; color: #e2e8f0;
|
||||
border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.02);
|
||||
transition: border-color .25s ease, background .25s ease, transform .25s ease;
|
||||
display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
|
||||
padding: .7rem 1.15rem; border-radius: var(--radius);
|
||||
font-weight: 500; font-size: .92rem;
|
||||
color: var(--text); background: transparent; border: 1px solid var(--line-strong);
|
||||
transition: border-color .18s ease, background .18s ease, transform .12s ease;
|
||||
}
|
||||
.btn-ghost:hover { border-color: rgba(56,189,248,.6); background: rgba(56,189,248,.06); transform: translateY(-1px); }
|
||||
.btn-ghost:hover { border-color: var(--text); background: #fff; }
|
||||
.btn-ghost:active { transform: translateY(1px); }
|
||||
|
||||
.nav-link {
|
||||
font-size: .875rem; color: #94a3b8;
|
||||
transition: color .2s ease; text-decoration: none;
|
||||
/* ─── Type helpers ───────────────────────────────────────────────────── */
|
||||
.kicker {
|
||||
font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
|
||||
color: var(--text-3); font-weight: 500;
|
||||
}
|
||||
.nav-link:hover { color: #e2e8f0; }
|
||||
[dir='rtl'] .kicker { letter-spacing: .06em; }
|
||||
.lede { color: var(--text-2); font-size: 1.05rem; line-height: 1.7; max-width: 44rem; }
|
||||
|
||||
#navbar.scrolled { background: rgba(2,5,16,.85); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255,255,255,.05); }
|
||||
.sec-head { margin-bottom: 3rem; max-width: 46rem; }
|
||||
.sec-head h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
|
||||
.sec-head .lede { margin-top: .9rem; }
|
||||
|
||||
/* ─── Section header ─────────────────────────────────────────────── */
|
||||
.section-header { text-align: center; margin-bottom: 3.5rem; }
|
||||
.section-header .eyebrow { margin-bottom: 1rem; }
|
||||
.section-header h2 { font-family:'Syne',sans-serif; font-size:clamp(1.8rem,3.5vw,2.75rem); font-weight:800; color:#fff; margin-bottom:1rem; }
|
||||
[dir='rtl'] .section-header h2 { font-family:'Vazirmatn',sans-serif; }
|
||||
.section-header p { max-width:42rem; margin:0 auto; color:#94a3b8; font-size:1.0625rem; line-height:1.7; }
|
||||
/* ─── Neutral tag chip (one shape) ───────────────────────────────────── */
|
||||
.chip {
|
||||
display: inline-flex; align-items: center;
|
||||
border: 1px solid var(--line); border-radius: 6px;
|
||||
padding: .2rem .55rem; font-size: .72rem; color: var(--text-2);
|
||||
background: #fff; white-space: nowrap;
|
||||
}
|
||||
|
||||
/* ─── Service cards ──────────────────────────────────────────────── */
|
||||
.service-card { transition: border-color .3s, box-shadow .3s, transform .3s; }
|
||||
.service-card:hover { transform: translateY(-2px); }
|
||||
/* ─── Surface card (portfolio, contact) ──────────────────────────────── */
|
||||
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
|
||||
.card-link { transition: border-color .18s ease, transform .18s ease; }
|
||||
.card-link:hover { border-color: var(--line-strong); transform: translateY(-2px); }
|
||||
|
||||
/* ─── Expertise bars ─────────────────────────────────────────────── */
|
||||
.bar-track { height: .375rem; background: rgba(255,255,255,.07); border-radius:999px; overflow:hidden; }
|
||||
.bar-fill { height: 100%; border-radius:999px; transform-origin:left; }
|
||||
[dir='rtl'] .bar-fill { transform-origin:right; }
|
||||
/* ─── Form fields ────────────────────────────────────────────────────── */
|
||||
.flabel { display: block; font-size: .85rem; font-weight: 500; color: var(--text-2); margin-bottom: .4rem; }
|
||||
.field {
|
||||
width: 100%; font-family: inherit; font-size: .92rem; color: var(--text);
|
||||
background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius);
|
||||
padding: .7rem .85rem; transition: border-color .18s ease, box-shadow .18s ease;
|
||||
}
|
||||
.field::placeholder { color: var(--text-3); }
|
||||
.field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-weak); }
|
||||
|
||||
/* ─── Scroll-reveal ──────────────────────────────────────────────── */
|
||||
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
|
||||
/* ─── Scroll reveal (MOTION_INTENSITY 3: subtle, transform+opacity only) ─ */
|
||||
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
|
||||
.reveal.visible { opacity: 1; transform: none; }
|
||||
|
||||
/* ─── Portfolio modal ────────────────────────────────────────────── */
|
||||
#portfolio-modal { transition: opacity .25s ease; }
|
||||
#portfolio-modal.hidden { pointer-events: none; }
|
||||
/* ─── Blog prose ─────────────────────────────────────────────────────── */
|
||||
.prose-custom { color: var(--text-2); line-height: 1.8; font-size: 1.02rem; }
|
||||
.prose-custom h2, .prose-custom h3 { color: var(--text); font-family: 'Syne', system-ui, sans-serif; margin: 2rem 0 .6rem; }
|
||||
[dir='rtl'] .prose-custom h2, [dir='rtl'] .prose-custom h3 { font-family: 'Vazirmatn', system-ui, sans-serif; }
|
||||
.prose-custom p { margin-bottom: 1.2rem; }
|
||||
.prose-custom a { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
|
||||
.prose-custom strong { color: var(--text); }
|
||||
.prose-custom code { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; background: #f4f4f5; border: 1px solid var(--line); border-radius: 5px; padding: .12em .4em; font-size: .88em; color: #3f3f46; }
|
||||
.prose-custom pre { background: #f4f4f5; border: 1px solid var(--line); border-radius: 8px; padding: 1.1rem; overflow-x: auto; margin: 1.4rem 0; }
|
||||
.prose-custom pre code { background: none; border: 0; padding: 0; color: #27272a; }
|
||||
.prose-custom ul, .prose-custom ol { padding-inline-start: 1.4rem; margin-bottom: 1.2rem; }
|
||||
.prose-custom li { margin-bottom: .4rem; }
|
||||
.prose-custom blockquote { border-inline-start: 3px solid var(--accent); padding-inline-start: 1rem; color: var(--text-2); margin: 1.4rem 0; }
|
||||
|
||||
/* ─── Admin nav ──────────────────────────────────────────────────── */
|
||||
/* ════════════════════════════════════════════════════════════════════════
|
||||
Admin (dark) - preserved. _AdminLayout has its own dark Tailwind config;
|
||||
these classes keep working on its dark surface. Do not light-theme these.
|
||||
════════════════════════════════════════════════════════════════════════ */
|
||||
.glass {
|
||||
background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
|
||||
border: 1px solid rgba(255,255,255,.10);
|
||||
border-radius: 14px;
|
||||
box-shadow: inset 0 1px 0 0 rgba(255,255,255,.05);
|
||||
}
|
||||
.label-mono {
|
||||
font-family: 'SpaceMono', ui-monospace, monospace;
|
||||
font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: #94a3b8;
|
||||
}
|
||||
.admin-nav-link {
|
||||
display: block; padding: .5rem .75rem; border-radius: .5rem;
|
||||
color: #94a3b8; font-size: .875rem; text-decoration: none;
|
||||
@@ -118,10 +155,11 @@ html { scroll-behavior: smooth; }
|
||||
.admin-nav-link:hover { background: rgba(255,255,255,.05); color: #e2e8f0; }
|
||||
.admin-nav-link.active { background: rgba(56,189,248,.1); color: #38bdf8; }
|
||||
|
||||
/* ─── Reduced motion ─────────────────────────────────────────────── */
|
||||
/* ─── Reduced motion ─────────────────────────────────────────────────── */
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*,*::before,*::after {
|
||||
*, *::before, *::after {
|
||||
animation-duration: .001ms !important; animation-iteration-count: 1 !important;
|
||||
transition-duration: .001ms !important; scroll-behavior: auto !important;
|
||||
}
|
||||
.reveal { opacity: 1 !important; transform: none !important; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user