Files
spectra-lab/styles.css

439 lines
7.6 KiB
CSS

:root {
--bg: #111111;
--bg-soft: #171717;
--panel: #1d1b1a;
--paper: #f2ece4;
--paper-soft: #e6ded3;
--ink: #141414;
--line: rgba(255, 255, 255, 0.16);
--line-strong: rgba(255, 255, 255, 0.28);
--text: #f4efe8;
--muted: rgba(244, 239, 232, 0.66);
--accent: #7f2f2f;
--accent-soft: rgba(127, 47, 47, 0.16);
--shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}
body.light-mode {
--bg: #efe8de;
--bg-soft: #e7dfd3;
--panel: #f6f0e7;
--paper: #ffffff;
--paper-soft: #f5eee4;
--ink: #171717;
--line: rgba(23, 23, 23, 0.12);
--line-strong: rgba(23, 23, 23, 0.22);
--text: #171717;
--muted: rgba(23, 23, 23, 0.68);
--accent: #8d3d38;
--accent-soft: rgba(141, 61, 56, 0.11);
--shadow: 0 20px 60px rgba(28, 22, 18, 0.08);
}
* {
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
body {
margin: 0;
min-height: 100vh;
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 18%),
linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
color: var(--text);
font-family: 'Inter', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
transition: background 260ms ease, color 260ms ease;
}
body::before {
content: '';
position: fixed;
inset: 0;
pointer-events: none;
background:
linear-gradient(90deg, transparent 0, transparent calc(50% - 1px), var(--line) calc(50% - 1px), var(--line) calc(50% + 1px), transparent calc(50% + 1px)),
linear-gradient(180deg, transparent 0, transparent 88px, var(--line) 88px, var(--line) 89px, transparent 89px);
opacity: 0.5;
}
body::after {
content: '';
position: fixed;
inset: 28px;
border: 1px solid var(--line);
pointer-events: none;
}
button,
a {
color: inherit;
}
.page-shell {
width: min(1320px, calc(100% - 48px));
margin: 0 auto;
}
.topbar,
.section,
.footer {
position: relative;
z-index: 1;
}
.topbar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
padding: 28px 0 20px;
}
.brand {
display: inline-flex;
align-items: center;
gap: 12px;
text-decoration: none;
font-size: 0.95rem;
letter-spacing: 0.14em;
text-transform: uppercase;
}
.brand-mark {
width: 11px;
height: 11px;
border-radius: 50%;
background: var(--accent);
box-shadow: 0 0 0 6px var(--accent-soft);
}
.brand-text {
font-weight: 700;
}
.nav-links {
display: flex;
gap: 24px;
}
.nav-links a,
.mode-toggle,
.footer {
font-size: 0.92rem;
text-decoration: none;
color: var(--muted);
}
.mode-toggle {
border: 1px solid var(--line);
background: transparent;
padding: 10px 14px;
cursor: pointer;
transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}
.mode-toggle:hover,
.nav-links a:hover {
color: var(--text);
}
.hero {
padding: 42px 0 72px;
}
.hero-meta,
.section-head,
.footer {
display: flex;
justify-content: space-between;
gap: 16px;
align-items: baseline;
}
.kicker,
.issue,
.stage-kicker,
.system-card span {
margin: 0;
text-transform: uppercase;
letter-spacing: 0.16em;
font-size: 0.74rem;
color: var(--muted);
}
.hero-grid {
display: grid;
grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
gap: 36px;
margin-top: 26px;
padding-top: 22px;
border-top: 1px solid var(--line);
}
.hero-copy h1,
.section-head h2,
.closing-panel h2,
.work-stage h3 {
font-family: 'Noto Serif SC', 'Songti SC', serif;
letter-spacing: -0.03em;
font-weight: 700;
}
.hero-copy h1 {
margin: 0;
font-size: clamp(3.5rem, 8vw, 7rem);
line-height: 1.03;
max-width: 11ch;
}
.hero-text,
.statement-grid p,
.system-card p,
.closing-panel p,
.work-stage p,
.section-caption,
.work-item small,
.hero-note p {
color: var(--muted);
line-height: 1.8;
}
.hero-text {
margin: 28px 0 0;
max-width: 46rem;
font-size: 1.06rem;
}
.hero-note {
align-self: end;
padding: 22px 0 0 20px;
border-left: 1px solid var(--line);
}
.section {
padding: 72px 0;
}
.section-head {
padding-bottom: 18px;
border-bottom: 1px solid var(--line);
}
.section-head h2,
.closing-panel h2 {
margin: 10px 0 0;
font-size: clamp(2rem, 4vw, 3.6rem);
line-height: 1.1;
}
.statement-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 28px;
margin-top: 28px;
}
.split-head {
align-items: end;
}
.works-layout {
display: grid;
grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
gap: 28px;
margin-top: 30px;
}
.work-list {
display: grid;
gap: 12px;
}
.work-item {
width: 100%;
display: grid;
grid-template-columns: 56px 1fr;
gap: 16px;
text-align: left;
padding: 18px;
border: 1px solid var(--line);
background: transparent;
color: var(--text);
cursor: pointer;
transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}
.work-item:hover,
.work-item.is-active {
transform: translateX(4px);
border-color: var(--line-strong);
background: var(--accent-soft);
}
.work-number {
font-size: 0.8rem;
color: var(--muted);
letter-spacing: 0.14em;
}
.work-item strong {
display: block;
font-size: 1.12rem;
margin-bottom: 6px;
}
.work-stage {
min-height: 100%;
}
.stage-card,
.system-card,
.closing-panel {
background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
border: 1px solid var(--line);
box-shadow: var(--shadow);
}
.stage-card {
min-height: 100%;
display: flex;
flex-direction: column;
justify-content: flex-end;
padding: 34px;
background:
linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.06) 100%),
linear-gradient(135deg, rgba(255,255,255,0.02), transparent 48%),
linear-gradient(180deg, var(--panel), color-mix(in srgb, var(--panel) 80%, black 20%));
}
.stage-index {
font-size: clamp(4.2rem, 8vw, 8rem);
line-height: 0.92;
margin: 20px 0 12px;
color: color-mix(in srgb, var(--accent) 72%, var(--text) 28%);
}
.work-stage h3 {
font-size: clamp(1.8rem, 3vw, 3rem);
margin: 0 0 14px;
}
.system-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 18px;
margin-top: 28px;
}
.system-card {
padding: 22px;
}
.system-card strong {
display: block;
margin: 18px 0 10px;
font-size: 1.2rem;
line-height: 1.35;
}
.closing-panel {
padding: 36px;
background:
linear-gradient(0deg, rgba(127, 47, 47, 0.08), rgba(127, 47, 47, 0.08)),
linear-gradient(180deg, var(--paper-soft), var(--paper));
color: var(--ink);
border-color: rgba(0, 0, 0, 0.08);
}
.closing-panel .kicker,
.closing-panel p {
color: rgba(20, 20, 20, 0.7);
}
.footer {
padding: 22px 0 42px;
border-top: 1px solid var(--line);
}
.reveal {
opacity: 0;
transform: translateY(24px);
transition: opacity 650ms ease, transform 650ms ease;
}
.reveal.is-visible {
opacity: 1;
transform: translateY(0);
}
@media (max-width: 1100px) {
.topbar,
.hero-meta,
.section-head,
.works-layout,
.hero-grid,
.statement-grid,
.system-grid,
.footer {
grid-template-columns: 1fr !important;
flex-direction: column;
align-items: flex-start;
}
.hero-copy h1 {
max-width: none;
}
.hero-note {
border-left: none;
border-top: 1px solid var(--line);
padding-left: 0;
padding-top: 18px;
}
.system-grid {
display: grid;
grid-template-columns: 1fr;
}
}
@media (max-width: 720px) {
body::after {
inset: 14px;
}
.page-shell {
width: min(100% - 24px, 1320px);
}
.nav-links {
display: none;
}
.hero {
padding-top: 20px;
}
.hero-copy h1 {
font-size: clamp(2.6rem, 13vw, 4.4rem);
}
.section {
padding: 54px 0;
}
.work-item {
grid-template-columns: 40px 1fr;
padding: 16px;
}
.stage-card,
.closing-panel {
padding: 24px;
}
}