Some checks failed
Deploy on webserver / Build site and deploy on success (push) Has been cancelled
Hardcoded panel texts and venn labels are now stored as structured frontmatter in content/_index.md and content/_index.de.md, enabling metadata-backend-driven content updates without template changes. i18n files now contain only UI labels, not page content. Animation coupling between template IDs and JS triggers is documented inline in layouts/index.html. Also: remove explicit body padding override that was making homepage nav inconsistent with the rest of the site.
227 lines
7.6 KiB
CSS
227 lines
7.6 KiB
CSS
@font-face {
|
|
font-family: 'DM Sans';
|
|
src: url('/fonts/DMSans-VariableFont_opsz,wght.ttf') format('truetype');
|
|
font-weight: 100 900;
|
|
font-style: normal;
|
|
font-display: swap;
|
|
}
|
|
@font-face {
|
|
font-family: 'DM Sans';
|
|
src: url('/fonts/DMSans-Italic-VariableFont_opsz,wght.ttf') format('truetype');
|
|
font-weight: 100 900;
|
|
font-style: italic;
|
|
font-display: swap;
|
|
}
|
|
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
|
|
|
|
/* ── Light mode tokens ── */
|
|
:root {
|
|
--green-dark: #05662e;
|
|
--green-light: #0a8f37;
|
|
--red: #dc1a17;
|
|
--red-dark: #9c1916;
|
|
--orange: #ef9052;
|
|
--text: #1a1a1a;
|
|
--text-muted: #555;
|
|
--text-body: #444;
|
|
--bg: #fafafa;
|
|
--border: rgba(5,102,46,0.3);
|
|
}
|
|
|
|
/* ── Dark mode tokens (Congo adds .dark to <html>) ── */
|
|
html.dark {
|
|
--text: #e8e8e8;
|
|
--text-muted: #aaa;
|
|
--text-body: #bbb;
|
|
--bg: #1a1a1a;
|
|
--border: rgba(10,143,55,0.35);
|
|
}
|
|
|
|
html { scroll-behavior: smooth; }
|
|
body { font-family: 'DM Sans', sans-serif; color: var(--text); background: var(--bg); }
|
|
body {
|
|
max-width: 100% !important;
|
|
|
|
}
|
|
/* ── Scroll progress bar ── */
|
|
.scroll-progress {
|
|
position: fixed; top: 0; left: 0; height: 3px; z-index: 200; width: 0%;
|
|
background: linear-gradient(90deg, var(--green-light), var(--orange), var(--red));
|
|
}
|
|
|
|
/* ── Hero ── */
|
|
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 5rem 3rem 0; position: relative; overflow: hidden; }
|
|
.hero-inner { position: relative; max-width: 1400px; width: 100%; }
|
|
.hero-text { position: absolute; top: 8%; left: 0; z-index: 10; max-width: 420px; }
|
|
.hero-title { font-size: clamp(2rem,4vw,3.2rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; margin-bottom: 0.6rem; }
|
|
.hero-subtitle { font-size: clamp(0.95rem,1.5vw,1.15rem); font-weight: 300; line-height: 1.5; color: var(--text-muted); }
|
|
.hero-figure { width: 100%; }
|
|
.hero-figure svg { width: 100%; height: auto; overflow: visible; }
|
|
|
|
/* ── Middle sticky layout ── */
|
|
.middle-wrapper { display: flex; align-items: flex-start; max-width: 1200px; margin: 0 auto; padding: 0 3rem; gap: 6%; }
|
|
.middle-figure-col { flex: 0 0 42%; max-width: 42%; position: sticky; top: 0; height: 100vh; display: flex; align-items: center; }
|
|
.fig-stack { position: relative; width: 100%; }
|
|
#fig2Wrap { width: 100%; position: relative; }
|
|
#fig4Wrap { position: absolute; top: 50%; left: 0; width: 100%; transform: translateY(-50%); opacity: 0; pointer-events: none; }
|
|
#fig2Wrap svg, #fig4Wrap svg { width: 100%; height: auto; display: block; overflow: visible; }
|
|
.middle-text-col { flex: 1; padding-top: 22.5vh; }
|
|
.text-panel { min-height: 55vh; display: flex; align-items: center; padding: 4rem 0; }
|
|
#adolPanel { min-height: 100vh; }
|
|
|
|
.section-label { font-size: 2rem; font-weight: 700; text-transform: uppercase; margin-bottom: 0.7rem; }
|
|
.section-title { font-size: clamp(1.5rem,1.8vw,2.2rem); font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; margin-bottom: 1rem; }
|
|
.section-text { font-size: clamp(0.92rem,1.2vw,1.05rem); line-height: 1.75; color: var(--text-body); max-width: 500px; }
|
|
|
|
/* ── Venn ── */
|
|
.venn-section { min-height: 120vh; display: flex; align-items: center; justify-content: center; padding: 4rem 2rem; }
|
|
.venn-container { max-width: 900px; width: 100%; display: flex; flex-direction: column; align-items: center; }
|
|
.venn-figure-wrap { position: relative; width: 100%; }
|
|
.venn-figure { width: 55%; max-width: 420px; margin: 0 auto; }
|
|
.venn-figure svg { width: 100%; height: auto; overflow: visible; }
|
|
.venn-labels { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
|
|
.venn-label { position: absolute; opacity: 0; }
|
|
.venn-label-title { display: block; font-weight: 700; font-size: clamp(0.95rem,1.3vw,1.15rem); margin-bottom: 0.15rem; }
|
|
.venn-label-desc { display: block; font-size: clamp(0.82rem,1vw,0.95rem); color: var(--text-body); line-height: 1.4; }
|
|
.venn-label-a { top: 8%; left: 0; }
|
|
.venn-label-b { top: 18%; right: 0; text-align: right; }
|
|
.venn-label-c { bottom: 22%; right: 0; text-align: right; }
|
|
.venn-label-z { bottom: 18%; left: 0; }
|
|
.venn-footer { margin-bottom: 1.5rem; opacity: 0; }
|
|
.venn-footer p { color: var(--text-muted); }
|
|
|
|
/* ── Intro section (from _index.md) ── */
|
|
.trr-intro { padding: 5rem 2rem 6rem; background: var(--bg); }
|
|
.trr-intro-inner {
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
font-size: clamp(0.95rem, 1.2vw, 1.05rem);
|
|
line-height: 1.8;
|
|
color: var(--text-body);
|
|
}
|
|
.trr-intro-inner img { display: block; max-width: 100%; margin: 2rem auto; }
|
|
html.dark .trr-intro-inner img[src$=".svg"] { filter: invert(0.85) hue-rotate(180deg); }
|
|
.trr-intro-inner p { margin-bottom: 1rem; }
|
|
.trr-intro-inner .prose { text-align: center; margin-bottom: 1.5rem; font-size: 0.95rem; color: var(--text-muted); }
|
|
.trr-intro-inner a {
|
|
color: var(--green-light);
|
|
text-decoration: none;
|
|
border-bottom: 1px solid var(--border);
|
|
transition: border-color 0.2s;
|
|
}
|
|
.trr-intro-inner a:hover { border-color: var(--green-light); }
|
|
|
|
/* ── Responsive ── */
|
|
@media (max-width: 900px) {
|
|
.hero { padding: 5rem 1.5rem 2rem; }
|
|
.middle-wrapper { padding: 1.5rem; gap: 4%; }
|
|
.middle-figure-col { flex: 0 0 38%; max-width: 38%; }
|
|
.text-panel { min-height: 70vh; padding: 2rem 0; }
|
|
.section-label { font-size: 1rem; }
|
|
.section-title { font-size: 0.8rem; }
|
|
.section-text { font-size: 0.7rem; line-height: 1.6; }
|
|
}
|
|
|
|
/* ── Home News Section ── */
|
|
.home-news {
|
|
padding: 4rem 2rem 6rem;
|
|
background: var(--bg);
|
|
}
|
|
.home-news-inner {
|
|
max-width: 1100px;
|
|
margin: 0 auto;
|
|
}
|
|
.home-news-header {
|
|
display: flex;
|
|
align-items: baseline;
|
|
justify-content: space-between;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
.home-news-title {
|
|
font-size: clamp(1.5rem, 2vw, 2rem);
|
|
font-weight: 700;
|
|
letter-spacing: -0.01em;
|
|
}
|
|
.home-news-more {
|
|
font-size: 0.9rem;
|
|
font-weight: 600;
|
|
color: var(--green-light);
|
|
text-decoration: none;
|
|
}
|
|
.home-news-more:hover { text-decoration: underline; }
|
|
|
|
.home-news-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 1.25rem;
|
|
}
|
|
|
|
|
|
.home-news-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
border: 1px solid rgba(0,0,0,0.08);
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
background: #fff;
|
|
text-decoration: none;
|
|
color: inherit;
|
|
transition: box-shadow 0.2s, transform 0.2s;
|
|
}
|
|
.home-news-card:hover {
|
|
box-shadow: 0 4px 20px rgba(0,0,0,0.1);
|
|
transform: translateY(-2px);
|
|
}
|
|
html.dark .home-news-card {
|
|
background: #242424;
|
|
border-color: rgba(255,255,255,0.08);
|
|
}
|
|
html.dark .home-news-card:hover {
|
|
box-shadow: 0 4px 20px rgba(0,0,0,0.3);
|
|
}
|
|
.home-news-img {
|
|
width: 100%;
|
|
height: 160px;
|
|
overflow: hidden;
|
|
background: #eee;
|
|
}
|
|
html.dark .home-news-img { background: #333; }
|
|
.home-news-img img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
display: block;
|
|
}
|
|
.home-news-body {
|
|
padding: 1rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.4rem;
|
|
}
|
|
.home-news-date {
|
|
font-size: 0.75rem;
|
|
color: #888;
|
|
font-weight: 500;
|
|
}
|
|
.home-news-card-title {
|
|
font-size: 0.95rem;
|
|
font-weight: 700;
|
|
line-height: 1.3;
|
|
}
|
|
.home-news-excerpt {
|
|
font-size: 0.85rem;
|
|
color: #666;
|
|
line-height: 1.5;
|
|
display: -webkit-box;
|
|
-webkit-box-orient: vertical;
|
|
-webkit-line-clamp: 2;
|
|
overflow: hidden;
|
|
}
|
|
html.dark .home-news-excerpt { color: #aaa; }
|
|
|
|
@media (max-width: 900px) {
|
|
.home-news-grid { grid-template-columns: repeat(2, 1fr); }
|
|
}
|
|
@media (max-width: 600px) {
|
|
.home-news-grid { grid-template-columns: 1fr; }
|
|
} |