mirror of
https://github.com/Dvorinka/Portfolio.git
synced 2026-10-28 07:41:22 +00:00
Nav logo and favicon now use the new TD monogram (inverted via CSS on dark theme). Bookra added as featured product. Removed Grokipedia Speedrun and YouTube Scraper rows. Rybbit site-id updated. Authored By: TDvorak <[email protected]> Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
275 lines
11 KiB
CSS
275 lines
11 KiB
CSS
/* Tomáš Dvořák — portfolio. Vercel-style: monochrome, hairline borders, Geist. */
|
|
|
|
:root {
|
|
--font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
--font-mono: "Geist Mono", ui-monospace, "SF Mono", monospace;
|
|
--radius: 8px;
|
|
--nav-h: 64px;
|
|
--max-w: 1024px;
|
|
}
|
|
|
|
[data-theme="dark"] {
|
|
--bg: #000;
|
|
--bg-raised: #0a0a0a;
|
|
--fg: #ededed;
|
|
--fg-dim: #a1a1a1;
|
|
--fg-faint: #666;
|
|
--border: #2e2e2e;
|
|
--border-strong: #454545;
|
|
--btn-primary-bg: #ededed;
|
|
--btn-primary-fg: #000;
|
|
--grid-line: rgba(255, 255, 255, 0.06);
|
|
--accent: #3b82f6;
|
|
}
|
|
|
|
[data-theme="light"] {
|
|
--bg: #fff;
|
|
--bg-raised: #fafafa;
|
|
--fg: #171717;
|
|
--fg-dim: #666;
|
|
--fg-faint: #999;
|
|
--border: #eaeaea;
|
|
--border-strong: #d4d4d4;
|
|
--btn-primary-bg: #171717;
|
|
--btn-primary-fg: #fff;
|
|
--grid-line: rgba(0, 0, 0, 0.06);
|
|
--accent: #0070f3;
|
|
}
|
|
|
|
* { box-sizing: border-box; margin: 0; padding: 0; }
|
|
|
|
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
|
|
|
|
body {
|
|
background: var(--bg);
|
|
color: var(--fg);
|
|
font-family: var(--font-sans);
|
|
font-size: 16px;
|
|
line-height: 1.6;
|
|
-webkit-font-smoothing: antialiased;
|
|
transition: background 0.2s, color 0.2s;
|
|
}
|
|
|
|
.mono { font-family: var(--font-mono); }
|
|
img { display: block; max-width: 100%; }
|
|
a { color: inherit; text-decoration: none; }
|
|
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
|
|
|
|
/* ============ Nav ============ */
|
|
.nav {
|
|
position: sticky; top: 0; z-index: 50;
|
|
height: var(--nav-h);
|
|
border-bottom: 1px solid var(--border);
|
|
background: color-mix(in srgb, var(--bg) 80%, transparent);
|
|
backdrop-filter: blur(12px);
|
|
-webkit-backdrop-filter: blur(12px);
|
|
}
|
|
.nav-inner {
|
|
max-width: var(--max-w); height: 100%; margin: 0 auto; padding: 0 24px;
|
|
display: flex; align-items: center; gap: 32px;
|
|
}
|
|
.nav-logo img { height: 20px; width: auto; }
|
|
[data-theme="dark"] .nav-logo img { filter: invert(1); }
|
|
.nav-links { display: flex; gap: 24px; flex: 1; }
|
|
.nav-links a { font-size: 14px; color: var(--fg-dim); transition: color 0.15s; }
|
|
.nav-links a:hover { color: var(--fg); }
|
|
.nav-actions { display: flex; align-items: center; gap: 12px; }
|
|
.theme-btn {
|
|
display: grid; place-items: center;
|
|
width: 32px; height: 32px;
|
|
background: none; border: 1px solid var(--border); border-radius: var(--radius);
|
|
color: var(--fg-dim); cursor: pointer; transition: color 0.15s, border-color 0.15s;
|
|
}
|
|
.theme-btn:hover { color: var(--fg); border-color: var(--border-strong); }
|
|
[data-theme="dark"] .icon-moon { display: none; }
|
|
[data-theme="light"] .icon-sun { display: none; }
|
|
|
|
/* ============ Buttons ============ */
|
|
.btn {
|
|
display: inline-flex; align-items: center; gap: 6px;
|
|
padding: 0 16px; height: 40px;
|
|
font-family: var(--font-sans); font-size: 14px; font-weight: 500;
|
|
color: var(--fg); background: var(--bg);
|
|
border: 1px solid var(--border-strong); border-radius: var(--radius);
|
|
cursor: pointer; transition: border-color 0.15s, background 0.15s;
|
|
}
|
|
.btn:hover { border-color: var(--fg-dim); background: var(--bg-raised); }
|
|
.btn .arrow { transition: transform 0.15s; }
|
|
.btn:hover .arrow { transform: translate(1px, -1px); }
|
|
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
|
|
.btn-primary { background: var(--btn-primary-bg); color: var(--btn-primary-fg); border-color: var(--btn-primary-bg); }
|
|
.btn-primary:hover { background: var(--btn-primary-bg); opacity: 0.88; border-color: var(--btn-primary-bg); }
|
|
|
|
/* ============ Hero ============ */
|
|
.hero { position: relative; padding: 128px 0 96px; overflow: hidden; }
|
|
.grid-bg {
|
|
position: absolute; inset: 0; pointer-events: none;
|
|
background-image:
|
|
linear-gradient(var(--grid-line) 1px, transparent 1px),
|
|
linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
|
|
background-size: 64px 64px;
|
|
mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
|
|
-webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
|
|
}
|
|
.hero .container { position: relative; }
|
|
.status-pill {
|
|
display: inline-flex; align-items: center; gap: 8px;
|
|
padding: 6px 12px; margin-bottom: 32px;
|
|
font-size: 13px; color: var(--fg-dim);
|
|
border: 1px solid var(--border); border-radius: 999px;
|
|
background: var(--bg-raised);
|
|
}
|
|
.status-dot {
|
|
width: 7px; height: 7px; border-radius: 50%;
|
|
background: #22c55e;
|
|
box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
|
|
}
|
|
.hero-title {
|
|
font-size: clamp(44px, 8vw, 80px);
|
|
font-weight: 700; letter-spacing: -0.04em; line-height: 1.05;
|
|
}
|
|
.hero-sub {
|
|
margin-top: 16px;
|
|
font-size: clamp(18px, 3vw, 24px); font-weight: 500;
|
|
color: var(--fg-dim); letter-spacing: -0.02em;
|
|
}
|
|
.hero-desc { margin-top: 24px; max-width: 560px; color: var(--fg-dim); font-size: 16px; }
|
|
.hero-desc strong { color: var(--fg); font-weight: 500; }
|
|
.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
|
|
.hero-meta { margin-top: 40px; font-size: 13px; color: var(--fg-faint); }
|
|
|
|
/* ============ Sections ============ */
|
|
.section { padding: 80px 0; border-top: 1px solid var(--border); }
|
|
.label { font-size: 12px; color: var(--fg-faint); text-transform: uppercase; letter-spacing: 0.08em; }
|
|
.section-title { margin-top: 12px; font-size: 32px; font-weight: 600; letter-spacing: -0.03em; }
|
|
.section-desc { margin-top: 8px; color: var(--fg-dim); font-size: 15px; }
|
|
.inline-link { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }
|
|
.inline-link:hover { text-decoration-color: var(--fg); }
|
|
|
|
/* ============ Cards ============ */
|
|
.card-grid {
|
|
display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
|
|
margin-top: 40px;
|
|
}
|
|
.card {
|
|
display: flex; flex-direction: column;
|
|
border: 1px solid var(--border); border-radius: var(--radius);
|
|
background: var(--bg-raised); overflow: hidden;
|
|
transition: border-color 0.15s, transform 0.15s;
|
|
}
|
|
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
|
|
.card figure { aspect-ratio: 16/9; overflow: hidden; border-bottom: 1px solid var(--border); }
|
|
.card figure img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
|
|
.card-body { padding: 20px; }
|
|
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
|
|
.card-head h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
|
|
.tag {
|
|
flex-shrink: 0;
|
|
font-family: var(--font-mono); font-size: 11px; color: var(--fg-dim);
|
|
padding: 3px 8px; border: 1px solid var(--border); border-radius: 999px;
|
|
}
|
|
.card-body > p { margin-top: 8px; font-size: 14px; color: var(--fg-dim); line-height: 1.55; }
|
|
|
|
/* ============ Row lists ============ */
|
|
.row-list { margin-top: 40px; border-top: 1px solid var(--border); }
|
|
.row {
|
|
display: flex; align-items: center; gap: 16px;
|
|
padding: 16px 8px;
|
|
border-bottom: 1px solid var(--border);
|
|
transition: background 0.15s;
|
|
}
|
|
.row:not(.row-static):hover { background: var(--bg-raised); }
|
|
.row-main { flex: 1; min-width: 0; }
|
|
.row-main h4 { font-size: 15px; font-weight: 500; display: inline; }
|
|
.row-main p { font-size: 14px; color: var(--fg-dim); margin-top: 2px; }
|
|
.row-tag { font-size: 11px; color: var(--fg-faint); white-space: nowrap; }
|
|
.row .arrow { color: var(--fg-faint); flex-shrink: 0; transition: transform 0.15s, color 0.15s; }
|
|
.row:hover .arrow { transform: translate(1px, -1px); color: var(--fg); }
|
|
.row-static { cursor: default; }
|
|
|
|
/* ============ Timeline ============ */
|
|
.timeline { margin-top: 40px; list-style: none; }
|
|
.tl-item {
|
|
display: grid; grid-template-columns: 180px 1fr; gap: 24px;
|
|
padding: 24px 0; border-bottom: 1px solid var(--border);
|
|
}
|
|
.tl-item:first-child { padding-top: 0; }
|
|
.tl-when { font-size: 13px; color: var(--fg-faint); padding-top: 3px; }
|
|
.tl-body h4 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
|
|
.tl-meta { font-size: 13px; color: var(--fg-faint); margin-top: 2px; }
|
|
.tl-body > p:last-child { margin-top: 8px; font-size: 14px; color: var(--fg-dim); }
|
|
|
|
/* ============ Stack ============ */
|
|
.stack { margin-top: 64px; }
|
|
.stack-grid {
|
|
display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px;
|
|
margin-top: 24px;
|
|
}
|
|
.stack-grid h5 { font-size: 12px; color: var(--fg-faint); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; }
|
|
.stack-grid p { margin-top: 8px; font-size: 14px; color: var(--fg-dim); line-height: 1.7; }
|
|
|
|
.edu { margin-top: 64px; }
|
|
|
|
/* ============ About ============ */
|
|
.about-text {
|
|
margin-top: 20px; max-width: 720px;
|
|
font-size: clamp(18px, 2.5vw, 22px); line-height: 1.6;
|
|
color: var(--fg-dim); letter-spacing: -0.01em;
|
|
}
|
|
|
|
/* ============ Contact ============ */
|
|
.contact-grid {
|
|
display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
|
|
margin-top: 40px;
|
|
}
|
|
.contact-info { border-top: 1px solid var(--border); }
|
|
.contact-row {
|
|
display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
|
|
padding: 14px 0; border-bottom: 1px solid var(--border);
|
|
}
|
|
a.contact-row:hover .contact-val { color: var(--fg); }
|
|
.contact-key { font-size: 12px; color: var(--fg-faint); text-transform: uppercase; letter-spacing: 0.08em; }
|
|
.contact-val { font-size: 14px; color: var(--fg-dim); text-align: right; transition: color 0.15s; }
|
|
|
|
.contact-form { display: flex; flex-direction: column; gap: 16px; }
|
|
.field label { display: block; font-size: 12px; color: var(--fg-faint); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
|
|
.field input, .field textarea {
|
|
width: 100%; padding: 10px 12px;
|
|
font-family: var(--font-sans); font-size: 14px;
|
|
color: var(--fg); background: var(--bg-raised);
|
|
border: 1px solid var(--border); border-radius: var(--radius);
|
|
transition: border-color 0.15s;
|
|
}
|
|
.field input:focus, .field textarea:focus { outline: none; border-color: var(--fg-dim); }
|
|
.field input::placeholder, .field textarea::placeholder { color: var(--fg-faint); }
|
|
.field textarea { resize: vertical; }
|
|
.contact-form .btn-primary { align-self: flex-start; }
|
|
.form-status { font-size: 13px; color: var(--fg-dim); min-height: 18px; }
|
|
.form-status.ok { color: #22c55e; }
|
|
.form-status.err { color: #ef4444; }
|
|
|
|
/* ============ Footer ============ */
|
|
.footer { border-top: 1px solid var(--border); padding: 32px 0; }
|
|
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
|
|
.footer p { font-size: 13px; color: var(--fg-faint); }
|
|
|
|
/* ============ Responsive ============ */
|
|
@media (max-width: 900px) {
|
|
.card-grid { grid-template-columns: repeat(2, 1fr); }
|
|
.stack-grid { grid-template-columns: repeat(2, 1fr); }
|
|
.contact-grid { grid-template-columns: 1fr; gap: 40px; }
|
|
}
|
|
@media (max-width: 640px) {
|
|
.nav-links { display: none; }
|
|
.hero { padding: 88px 0 72px; }
|
|
.card-grid { grid-template-columns: 1fr; }
|
|
.tl-item { grid-template-columns: 1fr; gap: 6px; }
|
|
.section { padding: 56px 0; }
|
|
.stack-grid { grid-template-columns: 1fr; gap: 24px; }
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
html { scroll-behavior: auto; }
|
|
* { transition: none !important; }
|
|
}
|