skopec.dev/style.css
pepaskopec-blip aa4b87399c Initial commit
2026-09-01 14:16:54 +02:00

898 lines
16 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/* skopec.dev — cool workshop / signal aesthetic (dark) */
:root {
--bg: #07090d;
--bg-deep: #0c1018;
--ink: #eef2f6;
--ink-soft: #c5ced8;
--muted: #8492a3;
--line: rgba(238, 242, 246, 0.08);
--line-strong: rgba(238, 242, 246, 0.16);
--surface: rgba(255, 255, 255, 0.04);
--surface-solid: #121820;
--accent: #ff4a1c;
--accent-ink: #ff7a52;
--glow: rgba(255, 74, 28, 0.22);
--radius: 2px;
--nav-h: 4.25rem;
--font-display: "Syne", sans-serif;
--font-body: "Instrument Sans", sans-serif;
--ease: cubic-bezier(0.22, 1, 0.36, 1);
--max: 72rem;
}
*,
*::before,
*::after {
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
body {
margin: 0;
min-height: 100vh;
color: var(--ink);
font-family: var(--font-body);
font-size: 1.0625rem;
line-height: 1.65;
background-color: var(--bg);
background-image:
radial-gradient(ellipse 90% 55% at 8% -10%, var(--glow), transparent 55%),
radial-gradient(ellipse 70% 45% at 100% 0%, rgba(60, 100, 160, 0.12), transparent 50%),
linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
background-attachment: fixed;
color-scheme: dark;
}
body::before {
content: "";
position: fixed;
inset: 0;
pointer-events: none;
z-index: 0;
opacity: 0.22;
background-image:
linear-gradient(var(--line) 1px, transparent 1px),
linear-gradient(90deg, var(--line) 1px, transparent 1px);
background-size: 48px 48px;
mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 85%);
}
img {
max-width: 100%;
display: block;
}
a {
color: inherit;
text-decoration-thickness: 1px;
text-underline-offset: 0.2em;
}
a:hover {
color: var(--accent-ink);
}
:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 3px;
}
.skip-link {
position: absolute;
left: 1rem;
top: -100%;
z-index: 100;
padding: 0.6rem 1rem;
background: var(--accent);
color: #fff;
text-decoration: none;
font-weight: 600;
}
.skip-link:focus {
top: 1rem;
}
/* —— Nav —— */
.site-header {
position: sticky;
top: 0;
z-index: 50;
height: var(--nav-h);
display: flex;
align-items: center;
backdrop-filter: blur(14px) saturate(1.2);
background: rgba(7, 9, 13, 0.82);
border-bottom: 1px solid var(--line);
}
.nav-inner {
width: min(100% - 2.5rem, var(--max));
margin-inline: auto;
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
}
.brand {
font-family: var(--font-display);
font-weight: 800;
font-size: 1.35rem;
letter-spacing: -0.03em;
text-decoration: none;
color: var(--ink);
line-height: 1;
}
.brand:hover {
color: var(--accent);
}
.brand span {
color: var(--accent);
}
.nav-links {
display: flex;
align-items: center;
gap: 0.35rem;
list-style: none;
margin: 0;
padding: 0;
}
.nav-links a {
display: inline-flex;
align-items: center;
padding: 0.45rem 0.85rem;
font-size: 0.9rem;
font-weight: 560;
letter-spacing: 0.01em;
text-decoration: none;
color: var(--ink-soft);
border: 1px solid transparent;
border-radius: var(--radius);
transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-links a:hover {
color: var(--ink);
background: var(--surface);
border-color: var(--line);
}
.nav-links a[aria-current="page"] {
color: var(--ink);
background: var(--surface-solid);
border-color: var(--line-strong);
}
.nav-toggle {
display: none;
width: 2.5rem;
height: 2.5rem;
padding: 0;
border: 1px solid var(--line-strong);
border-radius: var(--radius);
background: var(--surface-solid);
cursor: pointer;
}
.nav-toggle span {
display: block;
width: 1.1rem;
height: 2px;
margin: 5px auto;
background: var(--ink);
}
/* —— Layout —— */
.page {
position: relative;
z-index: 1;
}
.wrap {
width: min(100% - 2.5rem, var(--max));
margin-inline: auto;
}
.section {
padding: 4.5rem 0;
}
.section + .section {
border-top: 1px solid var(--line);
}
.section-label {
display: inline-block;
margin: 0 0 0.75rem;
font-size: 0.75rem;
font-weight: 650;
letter-spacing: 0.14em;
text-transform: uppercase;
color: var(--accent-ink);
}
.section h2 {
margin: 0 0 0.75rem;
font-family: var(--font-display);
font-size: clamp(1.75rem, 3vw, 2.35rem);
font-weight: 750;
letter-spacing: -0.03em;
line-height: 1.15;
}
.section-lead {
margin: 0 0 2rem;
max-width: 38rem;
color: var(--muted);
}
/* —— Hero —— */
.hero {
position: relative;
min-height: calc(100vh - var(--nav-h));
display: grid;
align-items: end;
padding: 3rem 0 4.5rem;
overflow: hidden;
}
.hero::after {
content: "";
position: absolute;
right: -8%;
top: 8%;
width: min(52vw, 34rem);
height: min(52vw, 34rem);
border-radius: 50%;
background:
radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.06), transparent 55%),
conic-gradient(from 210deg at 50% 50%, transparent 0 55%, var(--glow) 70%, transparent 100%);
border: 1px solid var(--line);
opacity: 0.85;
animation: drift 18s var(--ease) infinite alternate;
pointer-events: none;
}
@keyframes drift {
from { transform: translate(0, 0) rotate(0deg); }
to { transform: translate(-4%, 6%) rotate(8deg); }
}
.hero-content {
position: relative;
z-index: 1;
max-width: 40rem;
}
.hero-brand {
margin: 0 0 1.25rem;
font-family: var(--font-display);
font-weight: 800;
font-size: clamp(4.5rem, 14vw, 8.5rem);
letter-spacing: -0.06em;
line-height: 0.9;
color: var(--ink);
}
.hero-brand em {
font-style: normal;
color: var(--accent);
}
.hero h1 {
margin: 0 0 0.9rem;
font-family: var(--font-display);
font-size: clamp(1.35rem, 2.6vw, 1.85rem);
font-weight: 650;
letter-spacing: -0.02em;
line-height: 1.25;
color: var(--ink-soft);
}
.hero p {
margin: 0 0 1.75rem;
max-width: 32rem;
color: var(--muted);
font-size: 1.05rem;
}
.hero-actions {
display: flex;
flex-wrap: wrap;
gap: 0.75rem;
}
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.45rem;
padding: 0.7rem 1.15rem;
font-family: var(--font-body);
font-size: 0.95rem;
font-weight: 600;
text-decoration: none;
border-radius: var(--radius);
border: 1px solid transparent;
cursor: pointer;
transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover {
transform: translateY(-1px);
color: inherit;
}
.btn-primary {
background: var(--ink);
color: var(--bg);
border-color: var(--ink);
}
.btn-primary:hover {
background: var(--accent);
border-color: var(--accent);
color: #fff;
}
.btn-ghost {
background: var(--surface);
border-color: var(--line-strong);
color: var(--ink);
}
.btn-ghost:hover {
background: var(--surface-solid);
border-color: var(--ink);
}
/* —— About —— */
.about-text {
max-width: 42rem;
margin: 0;
color: var(--ink-soft);
font-size: 1.1rem;
}
.about-text + .about-text {
margin-top: 1rem;
}
.meta-row {
display: flex;
flex-wrap: wrap;
gap: 0.5rem 1.25rem;
margin-top: 1.75rem;
padding-top: 1.25rem;
border-top: 1px solid var(--line);
color: var(--muted);
font-size: 0.92rem;
}
.meta-row strong {
color: var(--ink);
font-weight: 650;
}
/* —— Services —— */
.service-list {
list-style: none;
margin: 0;
padding: 0;
display: grid;
gap: 0;
border-top: 1px solid var(--line-strong);
}
.service-list a {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
grid-template-rows: auto auto;
align-items: center;
column-gap: 1rem;
row-gap: 0.15rem;
padding: 1.1rem 0.15rem;
text-decoration: none;
border-bottom: 1px solid var(--line);
transition: padding-left 0.25s var(--ease), color 0.2s var(--ease);
}
.service-list a:hover {
padding-left: 0.65rem;
color: var(--accent-ink);
}
.service-name {
grid-column: 1;
grid-row: 1;
font-family: var(--font-display);
font-weight: 700;
font-size: 1.2rem;
letter-spacing: -0.02em;
}
.service-host {
grid-column: 1;
grid-row: 2;
font-size: 0.9rem;
color: var(--muted);
font-variant-numeric: tabular-nums;
}
.service-list a:hover .service-host {
color: var(--accent-ink);
}
.service-arrow {
grid-column: 2;
grid-row: 1 / span 2;
font-size: 1.25rem;
opacity: 0.35;
transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.service-list a:hover .service-arrow {
opacity: 1;
transform: translateX(3px);
color: var(--accent);
}
@media (min-width: 640px) {
.service-list a {
grid-template-columns: 11rem minmax(0, 1fr) auto;
grid-template-rows: auto;
}
.service-name {
grid-column: 1;
grid-row: 1;
}
.service-host {
grid-column: 2;
grid-row: 1;
}
.service-arrow {
grid-column: 3;
grid-row: 1;
}
}
/* —— Friends —— */
.friend-list {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 0.65rem;
}
.friend-list a {
display: flex;
flex-wrap: wrap;
align-items: baseline;
justify-content: space-between;
gap: 0.35rem 1.5rem;
padding: 0.95rem 1.1rem;
text-decoration: none;
background: var(--surface);
border: 1px solid var(--line);
border-radius: var(--radius);
transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}
.friend-list a:hover {
border-color: var(--ink);
background: var(--surface-solid);
transform: translateX(4px);
color: var(--ink);
}
.friend-name {
font-weight: 650;
}
.friend-url {
color: var(--muted);
font-size: 0.9rem;
}
/* —— Connect —— */
.social-row {
display: flex;
flex-wrap: wrap;
gap: 0.55rem;
}
.social-link {
display: inline-flex;
align-items: center;
justify-content: center;
width: 2.75rem;
height: 2.75rem;
border: 1px solid var(--line-strong);
border-radius: var(--radius);
background: var(--surface-solid);
color: var(--ink-soft);
text-decoration: none;
transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.social-link:hover {
color: var(--bg);
background: var(--ink);
border-color: var(--ink);
transform: translateY(-2px);
}
.social-link svg {
width: 1.25rem;
height: 1.25rem;
fill: currentColor;
}
.social-link.is-placeholder {
opacity: 0.55;
cursor: default;
pointer-events: none;
}
.connect-note {
margin: 1rem 0 0;
font-size: 0.9rem;
color: var(--muted);
}
/* —— Inner pages —— */
.page-hero {
padding: 3.5rem 0 2.5rem;
}
.page-hero h1 {
margin: 0 0 0.75rem;
font-family: var(--font-display);
font-size: clamp(2.4rem, 6vw, 4rem);
font-weight: 800;
letter-spacing: -0.04em;
line-height: 1;
}
.page-hero p {
margin: 0;
max-width: 36rem;
color: var(--muted);
}
.stack-list,
.project-list {
list-style: none;
margin: 0;
padding: 0;
display: grid;
gap: 1.5rem;
}
.stack-item,
.project-item {
padding-bottom: 1.5rem;
border-bottom: 1px solid var(--line);
}
.stack-item:last-child,
.project-item:last-child {
border-bottom: 0;
padding-bottom: 0;
}
.stack-item h3,
.project-item h3 {
margin: 0 0 0.4rem;
font-family: var(--font-display);
font-size: 1.35rem;
font-weight: 700;
letter-spacing: -0.02em;
}
.project-item h3 a {
text-decoration: none;
}
.project-item h3 a:hover {
color: var(--accent-ink);
}
.stack-item p,
.project-item p {
margin: 0;
color: var(--muted);
max-width: 40rem;
}
.project-link {
display: inline-block;
margin-top: 0.75rem;
font-size: 0.92rem;
font-weight: 600;
text-decoration: none;
color: var(--accent-ink);
}
.project-link:hover {
color: var(--accent);
}
.tag {
display: inline-block;
margin-bottom: 0.5rem;
font-size: 0.72rem;
font-weight: 650;
letter-spacing: 0.1em;
text-transform: uppercase;
color: var(--accent-ink);
}
.spec-list {
display: grid;
gap: 0.55rem;
margin: 1.15rem 0 0;
padding: 0;
max-width: 36rem;
}
.spec-list > div {
display: grid;
grid-template-columns: 5.5rem minmax(0, 1fr);
gap: 0.75rem 1rem;
align-items: baseline;
padding-bottom: 0.55rem;
border-bottom: 1px solid var(--line);
}
@media (min-width: 640px) {
.spec-list > div {
grid-template-columns: 6.75rem minmax(0, 1fr);
}
}
.spec-list > div:last-child {
padding-bottom: 0;
border-bottom: 0;
}
.spec-list dt {
margin: 0;
font-size: 0.78rem;
font-weight: 650;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--muted);
}
.spec-list dd {
margin: 0;
color: var(--ink-soft);
font-variant-numeric: tabular-nums;
}
/* —— Footer —— */
.site-footer {
position: relative;
z-index: 1;
margin-top: 2rem;
padding: 1.75rem 0 2.25rem;
border-top: 1px solid var(--line-strong);
color: var(--muted);
font-size: 0.88rem;
}
.footer-inner {
width: min(100% - 2.5rem, var(--max));
margin-inline: auto;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
gap: 0.75rem 1.5rem;
}
.footer-links {
display: flex;
flex-wrap: wrap;
gap: 0.65rem 1.1rem;
}
.footer-inner a {
text-decoration: none;
font-weight: 560;
}
.footer-inner a:hover {
color: var(--accent-ink);
}
/* —— FAQ —— */
.faq-list {
display: grid;
gap: 0.65rem;
max-width: 42rem;
}
.faq-item {
border: 1px solid var(--line);
border-radius: var(--radius);
background: var(--surface);
padding: 0.15rem 1rem;
}
.faq-item summary {
cursor: pointer;
list-style: none;
padding: 0.9rem 0;
font-weight: 650;
font-family: var(--font-display);
letter-spacing: -0.02em;
}
.faq-item summary::-webkit-details-marker {
display: none;
}
.faq-item summary::after {
content: "+";
float: right;
color: var(--accent);
font-weight: 700;
}
.faq-item[open] summary::after {
content: "–";
}
.faq-item p {
margin: 0 0 1rem;
color: var(--muted);
}
.faq-item a {
color: var(--accent-ink);
}
/* —— Prose (privacy etc.) —— */
.prose {
max-width: 40rem;
}
.prose h2 {
margin: 2rem 0 0.65rem;
font-family: var(--font-display);
font-size: 1.35rem;
font-weight: 700;
letter-spacing: -0.02em;
}
.prose h2:first-child {
margin-top: 0;
}
.prose p {
margin: 0 0 0.85rem;
color: var(--ink-soft);
}
.prose a {
color: var(--accent-ink);
}
.muted-note {
margin-top: 2rem !important;
font-size: 0.88rem;
color: var(--muted) !important;
}
/* —— Motion / reveal —— */
.reveal {
opacity: 0;
transform: translateY(18px);
transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
opacity: 1;
transform: none;
}
.hero-content > * {
animation: rise 0.85s var(--ease) both;
}
.hero-brand { animation-delay: 0.05s; }
.hero h1 { animation-delay: 0.16s; }
.hero p { animation-delay: 0.28s; }
.hero-actions { animation-delay: 0.4s; }
@keyframes rise {
from {
opacity: 0;
transform: translateY(22px);
}
to {
opacity: 1;
transform: none;
}
}
@media (prefers-reduced-motion: reduce) {
html { scroll-behavior: auto; }
*,
*::before,
*::after {
animation: none !important;
transition: none !important;
}
.reveal {
opacity: 1;
transform: none;
}
body::before,
.hero::after {
display: none;
}
}
/* —— Responsive —— */
@media (max-width: 720px) {
.nav-toggle {
display: inline-block;
}
.nav-links {
position: absolute;
top: var(--nav-h);
left: 0;
right: 0;
display: none;
flex-direction: column;
align-items: stretch;
gap: 0.25rem;
padding: 0.75rem 1.25rem 1rem;
background: rgba(12, 16, 24, 0.97);
border-bottom: 1px solid var(--line);
backdrop-filter: blur(12px);
}
.nav-links.is-open {
display: flex;
}
.nav-links a {
padding: 0.75rem 0.85rem;
}
.hero {
min-height: auto;
padding-top: 2.5rem;
padding-bottom: 3.25rem;
}
.hero::after {
width: 16rem;
height: 16rem;
top: 0;
right: -20%;
opacity: 0.55;
}
.section {
padding: 3.25rem 0;
}
}