ousourcing css
This commit is contained in:
@@ -0,0 +1,283 @@
|
||||
:root {
|
||||
--bg:#5E4C93;
|
||||
--bg2: #1b162a;
|
||||
--text:#FFFFFF;
|
||||
--surface:#3e3261;
|
||||
--muted:#C5C1D1;
|
||||
--border:#20192a;
|
||||
--serif: 'Instrument Serif', Georgia, serif;
|
||||
--sans: 'DM Sans', system-ui, sans-serif;
|
||||
--nav-w: 230px;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
--bg:#5E4C93;
|
||||
--bg2: #1b162a;
|
||||
--text:#FFFFFF;
|
||||
--surface:#3e3261;
|
||||
--muted:#C5C1D1;
|
||||
--border:#20192a;
|
||||
}
|
||||
}
|
||||
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
html { scroll-behavior: smooth; }
|
||||
body {
|
||||
background: linear-gradient(135deg, var(--bg), var(--bg2));
|
||||
color: var(--text);
|
||||
font-family: var(--sans); font-size: 15px;
|
||||
font-weight: 300; line-height: 1.7;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
|
||||
/* ── SIDEBAR ─────────────────────────────────────── */
|
||||
.sidebar {
|
||||
position: fixed; top: 0; left: 0;
|
||||
width: var(--nav-w); height: 100vh;
|
||||
border-right: 1px solid var(--border);
|
||||
display: flex; flex-direction: column;
|
||||
z-index: 100; background: var(--bg);
|
||||
}
|
||||
.sidebar-top {
|
||||
padding: 36px 32px 28px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.sidebar-name {
|
||||
font-family: var(--serif); font-size: 1.1rem;
|
||||
color: var(--text); text-decoration: none; display: block;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
.sidebar-sub {
|
||||
font-size: 0.75rem; color: var(--muted);
|
||||
}
|
||||
.sidebar-nav {
|
||||
flex: 1; overflow-y: auto; padding: 20px 0;
|
||||
}
|
||||
.nav-group {
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
.nav-group-label {
|
||||
font-size: 0.65rem; font-weight: 500;
|
||||
letter-spacing: 0.12em; text-transform: uppercase;
|
||||
color: var(--muted); padding: 16px 32px 6px;
|
||||
display: block;
|
||||
}
|
||||
.nav-link {
|
||||
display: flex; align-items: center; gap: 10px;
|
||||
padding: 6px 32px; font-size: 0.84rem; font-weight: 400;
|
||||
color: var(--muted); text-decoration: none;
|
||||
transition: color 0.15s; position: relative;
|
||||
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
||||
}
|
||||
.nav-link::before {
|
||||
content: ''; position: absolute; left: 0; top: 50%;
|
||||
transform: translateY(-50%); width: 2px; height: 0;
|
||||
background: var(--text); border-radius: 0 2px 2px 0;
|
||||
transition: height 0.18s;
|
||||
}
|
||||
.nav-link:hover { color: var(--text); }
|
||||
.nav-link.active { color: var(--text); font-weight: 500; }
|
||||
.nav-link.active::before { height: 14px; }
|
||||
.nav-link .idx {
|
||||
font-size: 0.68rem; color: var(--muted);
|
||||
min-width: 18px; flex-shrink: 0;
|
||||
}
|
||||
.sidebar-bottom {
|
||||
padding: 20px 32px;
|
||||
border-top: 1px solid var(--border);
|
||||
display: flex; flex-direction: column; gap: 6px;
|
||||
}
|
||||
.sidebar-bottom a {
|
||||
font-size: 0.76rem; color: var(--muted);
|
||||
text-decoration: none; transition: color 0.15s;
|
||||
}
|
||||
.sidebar-bottom a:hover { color: var(--text); }
|
||||
|
||||
/* ── MAIN ────────────────────────────────────────── */
|
||||
.main { margin-left: var(--nav-w); }
|
||||
|
||||
/* ── EACH PROJECT SECTION ────────────────────────── */
|
||||
.project-section {
|
||||
padding: 96px 80px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
/* Section header */
|
||||
.section-head {
|
||||
margin-bottom: 56px;
|
||||
}
|
||||
.section-kicker {
|
||||
font-size: 0.7rem; font-weight: 500;
|
||||
letter-spacing: 0.12em; text-transform: uppercase;
|
||||
color: var(--muted); margin-bottom: 14px;
|
||||
display: flex; align-items: center; gap: 10px;
|
||||
}
|
||||
.section-kicker::before {
|
||||
content: ''; display: inline-block;
|
||||
width: 24px; height: 1px; background: var(--muted);
|
||||
}
|
||||
.section-title {
|
||||
font-family: var(--serif);
|
||||
font-size: clamp(2rem, 3.5vw, 3rem);
|
||||
font-weight: 400; letter-spacing: -0.02em; line-height: 1.12;
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
.section-desc {
|
||||
max-width: 560px; color: var(--muted);
|
||||
font-size: 0.94rem; line-height: 1.8;
|
||||
}
|
||||
|
||||
/* Tags + meta row */
|
||||
.meta-row {
|
||||
display: flex; align-items: center;
|
||||
gap: 20px; flex-wrap: wrap; margin-top: 20px;
|
||||
}
|
||||
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
|
||||
.tag {
|
||||
font-size: 0.71rem; color: var(--muted);
|
||||
background: var(--surface); border: 1px solid var(--border);
|
||||
padding: 3px 10px; border-radius: 3px;
|
||||
}
|
||||
.stat {
|
||||
font-size: 0.78rem; color: var(--muted);
|
||||
}
|
||||
.status-dot {
|
||||
display: inline-block; width: 6px; height: 6px;
|
||||
border-radius: 50%; background: currentColor;
|
||||
vertical-align: middle; margin-right: 4px;
|
||||
}
|
||||
.status-dot.active { color: #3a7d44; }
|
||||
.status-dot.archived { color: var(--muted); opacity: .5; }
|
||||
|
||||
/* Content blocks (alternating) */
|
||||
.content-blocks {
|
||||
display: flex; flex-direction: column; gap: 0;
|
||||
}
|
||||
|
||||
.content-block {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 0;
|
||||
border-top: 1px solid var(--border);
|
||||
}
|
||||
/* even blocks: flip columns */
|
||||
.content-block.flip {
|
||||
direction: rtl;
|
||||
}
|
||||
.content-block.flip > * { direction: ltr; }
|
||||
|
||||
.block-image {
|
||||
aspect-ratio: 4/3;
|
||||
background: var(--surface);
|
||||
border-right: 1px solid var(--border);
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
overflow: hidden; position: relative;
|
||||
}
|
||||
.content-block.flip .block-image {
|
||||
border-right: none;
|
||||
border-left: 1px solid var(--border);
|
||||
}
|
||||
|
||||
/* Placeholder visuals (replace with real <img> tags) */
|
||||
.block-image img {
|
||||
width: 100%; height: 100%; object-fit: cover; display: block;
|
||||
}
|
||||
.placeholder {
|
||||
width: 100%; height: 100%;
|
||||
display: flex; flex-direction: column;
|
||||
align-items: center; justify-content: center;
|
||||
gap: 10px; color: var(--muted);
|
||||
}
|
||||
.placeholder-icon { font-size: 2.4rem; line-height: 1; }
|
||||
.placeholder-label { font-size: 0.72rem; letter-spacing: 0.06em; }
|
||||
|
||||
.block-text {
|
||||
padding: 44px 48px;
|
||||
display: flex; flex-direction: column; justify-content: center;
|
||||
}
|
||||
.block-label {
|
||||
font-size: 0.68rem; font-weight: 500;
|
||||
letter-spacing: 0.1em; text-transform: uppercase;
|
||||
color: var(--muted); margin-bottom: 16px;
|
||||
}
|
||||
.block-text h3 {
|
||||
font-family: var(--serif); font-size: 1.25rem;
|
||||
font-weight: 400; letter-spacing: -0.01em;
|
||||
line-height: 1.3; margin-bottom: 14px;
|
||||
}
|
||||
.block-text p {
|
||||
font-size: 0.88rem; color: var(--muted);
|
||||
line-height: 1.8;
|
||||
}
|
||||
|
||||
/* Links row */
|
||||
.links-row {
|
||||
display: flex; gap: 20px; margin-top: 40px;
|
||||
}
|
||||
.text-link {
|
||||
font-size: 0.84rem; font-weight: 500; color: var(--text);
|
||||
text-decoration: none; border-bottom: 1px solid var(--border);
|
||||
padding-bottom: 2px; transition: border-color 0.15s;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.text-link:hover { border-color: var(--text); }
|
||||
.text-link.ghost { color: var(--muted); }
|
||||
|
||||
/* ── HERO ────────────────────────────────────────── */
|
||||
.hero-section {
|
||||
padding: 100px 80px 80px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.hero-eyebrow {
|
||||
font-size: 0.7rem; font-weight: 500;
|
||||
letter-spacing: 0.12em; text-transform: uppercase;
|
||||
color: var(--muted); margin-bottom: 24px;
|
||||
}
|
||||
.hero-section h1 {
|
||||
font-family: var(--serif);
|
||||
font-size: clamp(2.8rem, 5vw, 4.2rem);
|
||||
font-weight: 400; letter-spacing: -0.025em;
|
||||
line-height: 1.1; margin-bottom: 28px; max-width: 640px;
|
||||
}
|
||||
.hero-section h1 em { font-style: italic; color: var(--muted); }
|
||||
.hero-desc {
|
||||
max-width: 460px; color: var(--muted);
|
||||
font-size: 0.94rem; line-height: 1.8; margin-bottom: 40px;
|
||||
}
|
||||
.hero-links { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 20px;}
|
||||
|
||||
/* ── MOBILE ──────────────────────────────────────── */
|
||||
.mobile-bar {
|
||||
display: none; position: sticky; top: 0; z-index: 100;
|
||||
background: var(--bg); border-bottom: 1px solid var(--border);
|
||||
padding: 14px 20px; align-items: center; justify-content: space-between;
|
||||
}
|
||||
.mobile-logo { font-family: var(--serif); font-size: 1rem; color: var(--text); text-decoration: none; }
|
||||
.mobile-btn { background: none; border: none; cursor: pointer; color: var(--muted); font-family: var(--sans); font-size: 0.85rem; padding: 4px; }
|
||||
.mobile-drawer {
|
||||
display: none; position: fixed; inset: 0; z-index: 200;
|
||||
background: var(--bg); overflow-y: auto;
|
||||
padding: 24px 0; flex-direction: column;
|
||||
}
|
||||
.mobile-drawer.open { display: flex; }
|
||||
.mobile-drawer-head {
|
||||
display: flex; justify-content: space-between; align-items: center;
|
||||
padding: 0 24px 24px; border-bottom: 1px solid var(--border); margin-bottom: 16px;
|
||||
}
|
||||
.mobile-drawer-head span { font-family: var(--serif); font-size: 1rem; }
|
||||
.mobile-drawer a {
|
||||
display: block; padding: 10px 24px;
|
||||
font-size: 0.9rem; color: var(--muted); text-decoration: none;
|
||||
}
|
||||
.mobile-drawer a:hover { color: var(--text); }
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.sidebar { display: none; }
|
||||
.main { margin-left: 0; }
|
||||
.mobile-bar { display: flex; }
|
||||
.hero-section, .project-section { padding: 56px 24px; }
|
||||
.content-block { grid-template-columns: 1fr; }
|
||||
.content-block.flip { direction: ltr; }
|
||||
.block-image { aspect-ratio: 16/9; border-right: none; border-bottom: 1px solid var(--border); }
|
||||
.content-block.flip .block-image { border-left: none; border-bottom: 1px solid var(--border); }
|
||||
.block-text { padding: 28px 24px; }
|
||||
}
|
||||
Reference in New Issue
Block a user