39640-vm/staticfiles/css/custom.css
Flatlogic Bot c559e6fffc 1
2026-04-14 16:55:47 +00:00

892 lines
16 KiB
CSS

/* Signal newsroom custom styles */
:root {
--signal-bg: #08111f;
--signal-surface: rgba(10, 22, 38, 0.78);
--signal-surface-strong: #0f1c30;
--signal-border: rgba(152, 238, 217, 0.18);
--signal-primary: #00c2a8;
--signal-secondary: #ff6b4a;
--signal-accent: #7df9d7;
--signal-text: #f5f7fb;
--signal-muted: #a9b8ca;
--signal-cream: #eef6ff;
--signal-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
--bs-body-bg: var(--signal-bg);
--bs-body-color: var(--signal-text);
--bs-link-color: var(--signal-cream);
--bs-link-hover-color: var(--signal-accent);
}
html {
scroll-behavior: smooth;
}
body {
margin: 0;
min-height: 100vh;
font-family: 'Inter', system-ui, sans-serif;
background:
radial-gradient(circle at top left, rgba(0, 194, 168, 0.22), transparent 32%),
radial-gradient(circle at 85% 10%, rgba(255, 107, 74, 0.18), transparent 26%),
linear-gradient(135deg, #07101d 0%, #0c1628 48%, #09131f 100%);
color: var(--signal-text);
}
h1,
h2,
h3,
h4,
.navbar-brand,
.eyebrow,
.btn {
font-family: 'Space Grotesk', 'Inter', sans-serif;
}
img {
max-width: 100%;
height: auto;
display: block;
}
.page-shell {
position: relative;
overflow: hidden;
}
.orb {
position: fixed;
border-radius: 999px;
filter: blur(18px);
opacity: 0.5;
pointer-events: none;
z-index: 0;
animation: floaty 10s ease-in-out infinite;
}
.orb-a {
width: 16rem;
height: 16rem;
background: rgba(0, 194, 168, 0.18);
top: 6rem;
right: -3rem;
}
.orb-b {
width: 13rem;
height: 13rem;
background: rgba(255, 107, 74, 0.14);
left: -2rem;
bottom: 10rem;
animation-delay: -3s;
}
@keyframes floaty {
0%, 100% { transform: translate3d(0, 0, 0); }
50% { transform: translate3d(0, -18px, 0); }
}
.site-header,
.site-footer,
.hero-section,
.section-block,
.page-hero {
position: relative;
z-index: 1;
}
.newsroom-nav {
backdrop-filter: blur(16px);
}
.brand-mark {
width: 2.3rem;
height: 2.3rem;
border-radius: 0.8rem;
display: inline-flex;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, var(--signal-primary), var(--signal-secondary));
color: #08111f;
font-weight: 700;
box-shadow: 0 12px 24px rgba(0, 194, 168, 0.18);
}
.brand-word {
letter-spacing: -0.05em;
font-size: 1.3rem;
font-weight: 700;
}
.nav-link {
color: rgba(245, 247, 251, 0.76);
font-weight: 500;
}
.nav-link:hover,
.nav-link:focus {
color: var(--signal-cream);
}
.btn-signal {
border: none;
color: #08111f;
background: linear-gradient(135deg, var(--signal-primary), #57f5cf);
box-shadow: 0 18px 32px rgba(0, 194, 168, 0.26);
padding: 0.9rem 1.3rem;
border-radius: 999px;
font-weight: 700;
}
.btn-signal:hover,
.btn-signal:focus {
color: #08111f;
transform: translateY(-1px);
background: linear-gradient(135deg, #20d6ba, #88ffe2);
}
.btn-outline-light {
border-radius: 999px;
border-color: rgba(245, 247, 251, 0.45);
}
.hero-section,
.page-hero {
padding: 4.5rem 0 2rem;
}
.compact-hero {
padding-top: 2.5rem;
}
.display-title {
font-size: clamp(2.9rem, 5vw, 5.6rem);
line-height: 0.95;
letter-spacing: -0.06em;
margin-bottom: 1.4rem;
max-width: 12ch;
}
.small-title {
max-width: 14ch;
font-size: clamp(2.3rem, 4vw, 4.2rem);
}
.hero-copy,
.article-dek,
.rich-copy,
.footer-copy,
.empty-copy,
.filter-summary {
color: var(--signal-muted);
font-size: 1.05rem;
line-height: 1.75;
}
.narrow-copy {
max-width: 44rem;
}
.eyebrow {
display: inline-flex;
align-items: center;
gap: 0.5rem;
font-size: 0.84rem;
letter-spacing: 0.18em;
text-transform: uppercase;
color: var(--signal-accent);
margin-bottom: 1rem;
}
.eyebrow::before {
content: '';
width: 2.2rem;
height: 1px;
background: currentColor;
}
.glass-panel {
background: linear-gradient(180deg, rgba(14, 28, 46, 0.82), rgba(9, 17, 31, 0.92));
border: 1px solid var(--signal-border);
box-shadow: var(--signal-shadow);
border-radius: 1.75rem;
backdrop-filter: blur(20px);
}
.hero-panel,
.article-shell,
.article-form-card,
.success-card {
padding: 2rem;
}
.panel-kicker {
color: var(--signal-accent);
text-transform: uppercase;
letter-spacing: 0.18em;
font-size: 0.75rem;
}
.feature-link,
.feature-link:hover {
color: var(--signal-text);
text-decoration: none;
}
.feature-link h2,
.section-heading h2,
.story-card h3,
.sidebar-card h3,
.article-title {
letter-spacing: -0.04em;
}
.feature-link h2 {
font-size: clamp(1.8rem, 2vw, 2.6rem);
margin-bottom: 1rem;
}
.story-meta,
.story-footer,
.detail-list li,
.source-list li,
.related-link span {
display: flex;
flex-wrap: wrap;
gap: 0.75rem;
color: var(--signal-muted);
font-size: 0.84rem;
text-transform: uppercase;
letter-spacing: 0.06em;
}
.story-meta span,
.story-footer span {
display: inline-flex;
align-items: center;
gap: 0.5rem;
}
.story-meta span::before,
.story-footer span::before {
content: '•';
color: var(--signal-primary);
}
.story-meta span:first-child::before,
.story-footer span:first-child::before {
display: none;
}
.story-visual {
margin-top: 1.5rem;
border-radius: 1.4rem;
overflow: hidden;
border: 1px solid rgba(245, 247, 251, 0.08);
}
.story-visual img {
width: 100%;
aspect-ratio: 16 / 10;
object-fit: cover;
}
.shape-stack {
min-height: 220px;
display: grid;
place-items: center;
position: relative;
}
.shape {
position: absolute;
display: block;
}
.shape.cube {
width: 8rem;
height: 8rem;
border-radius: 2rem;
background: linear-gradient(135deg, rgba(0, 194, 168, 0.95), rgba(5, 28, 50, 0.7));
transform: rotate(18deg);
}
.shape.sphere {
width: 5rem;
height: 5rem;
background: radial-gradient(circle at 30% 30%, #fff, rgba(255, 107, 74, 0.9));
border-radius: 50%;
top: 1rem;
right: 4rem;
}
.shape.ring {
width: 11rem;
height: 11rem;
border-radius: 50%;
border: 1.2rem solid rgba(125, 249, 215, 0.2);
left: 2rem;
bottom: 0;
}
.signal-search {
background: rgba(8, 17, 31, 0.66);
padding: 1rem;
border-radius: 1.5rem;
border: 1px solid rgba(125, 249, 215, 0.13);
}
.form-control,
.form-select {
background-color: rgba(255, 255, 255, 0.04);
border-color: rgba(169, 184, 202, 0.24);
color: var(--signal-text);
border-radius: 1rem;
min-height: 3.3rem;
}
.form-control:focus,
.form-select:focus,
.form-check-input:focus,
.btn:focus {
box-shadow: 0 0 0 0.22rem rgba(0, 194, 168, 0.22);
border-color: rgba(0, 194, 168, 0.72);
}
.form-control::placeholder {
color: rgba(169, 184, 202, 0.8);
}
.form-select option {
color: #08111f;
}
.hero-metrics .metric-card {
border: 1px solid rgba(125, 249, 215, 0.12);
border-radius: 1.2rem;
padding: 1rem;
background: rgba(255, 255, 255, 0.03);
min-height: 100%;
}
.metric-card span {
display: block;
font-family: 'Space Grotesk', sans-serif;
font-size: 1.6rem;
margin-bottom: 0.2rem;
}
.metric-card small {
color: var(--signal-muted);
text-transform: uppercase;
letter-spacing: 0.08em;
}
.section-block {
padding-top: 1rem;
padding-bottom: 2rem;
}
.section-heading h2 {
font-size: clamp(1.7rem, 3vw, 2.8rem);
margin: 0;
}
.text-link {
color: var(--signal-accent);
text-decoration: none;
}
.topic-rail {
display: flex;
flex-wrap: wrap;
gap: 1rem;
}
.topic-pill {
display: inline-flex;
align-items: center;
gap: 0.7rem;
padding: 0.95rem 1.25rem;
border-radius: 999px;
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(169, 184, 202, 0.16);
text-decoration: none;
color: var(--signal-text);
transition: transform 0.2s ease, border-color 0.2s ease;
}
.topic-pill:hover,
.topic-pill:focus {
transform: translateY(-2px);
border-color: rgba(0, 194, 168, 0.45);
color: var(--signal-cream);
}
.topic-dot {
width: 0.7rem;
height: 0.7rem;
border-radius: 50%;
box-shadow: 0 0 18px currentColor;
}
.story-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 1.2rem;
}
.story-grid-wide {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.story-card {
min-height: 100%;
transition: transform 0.22s ease, border-color 0.22s ease;
}
.story-card:hover,
.story-card:focus-within {
transform: translateY(-4px);
border-color: rgba(0, 194, 168, 0.4);
}
.story-card-inner,
.story-card,
.sidebar-card,
.article-body {
padding: 1.4rem;
}
.story-card h3,
.story-card h2,
.sidebar-card h3 {
font-size: 1.35rem;
margin-bottom: 0.8rem;
}
.story-card a,
.related-link,
.footer-links a {
color: var(--signal-text);
text-decoration: none;
}
.story-card p,
.sidebar-card p,
.source-list li span,
.related-link span {
color: var(--signal-muted);
line-height: 1.7;
}
.story-footer {
margin-top: auto;
}
.tall-card {
display: flex;
flex-direction: column;
}
.editorial-sidebar,
.article-form-card .row {
height: 100%;
}
.sidebar-card {
border-radius: 1.5rem;
}
.source-list,
.detail-list {
list-style: none;
padding: 0;
margin: 0;
display: grid;
gap: 1rem;
}
.source-list li,
.detail-list li {
display: grid;
gap: 0.35rem;
text-transform: none;
letter-spacing: normal;
}
.related-link {
display: grid;
gap: 0.35rem;
padding: 0.25rem 0;
}
.article-title {
font-size: clamp(2.2rem, 3vw, 3.4rem);
line-height: 1;
}
.article-body {
padding: 2rem;
}
.rich-copy p {
margin-bottom: 1.15rem;
}
.form-error ul {
list-style: none;
padding: 0;
margin: 0.5rem 0 0;
color: #ffac97;
}
.form-check-wrapper {
padding-top: 0.35rem;
}
.form-check-input {
background-color: rgba(255, 255, 255, 0.05);
border-color: rgba(169, 184, 202, 0.32);
}
.form-check-label {
margin-left: 0.4rem;
}
.success-card {
max-width: 50rem;
}
.signal-alert {
border: 1px solid rgba(0, 194, 168, 0.32);
background: rgba(0, 194, 168, 0.13);
color: var(--signal-text);
border-radius: 1rem;
}
.site-footer {
border-top: 1px solid rgba(169, 184, 202, 0.12);
margin-top: 2rem;
}
.footer-brand {
font-weight: 600;
}
.footer-links a {
color: rgba(245, 247, 251, 0.72);
}
.footer-links a:hover,
.footer-links a:focus {
color: var(--signal-accent);
}
@media (max-width: 991.98px) {
.display-title,
.small-title {
max-width: 100%;
}
.story-grid,
.story-grid-wide {
grid-template-columns: 1fr;
}
.hero-section {
padding-top: 2.5rem;
}
}
@media (max-width: 575.98px) {
.hero-panel,
.article-shell,
.article-form-card,
.success-card,
.story-card,
.sidebar-card,
.article-body {
padding: 1.2rem;
border-radius: 1.25rem;
}
.signal-search {
padding: 0.85rem;
}
}
.hero-bento-section {
padding-bottom: 1rem;
}
.signal-deck-panel {
min-height: 100%;
position: relative;
overflow: hidden;
}
.signal-deck-topline {
display: flex;
justify-content: space-between;
gap: 1rem;
align-items: center;
margin-bottom: 1rem;
}
.deck-timestamp,
.bento-label {
font-size: 0.76rem;
letter-spacing: 0.16em;
text-transform: uppercase;
color: var(--signal-accent);
}
.deck-orbits {
position: relative;
min-height: 12rem;
margin-top: 1.5rem;
}
.deck-orbit {
position: absolute;
border-radius: 999px;
border: 1px solid rgba(125, 249, 215, 0.2);
background: radial-gradient(circle at 30% 30%, rgba(125, 249, 215, 0.18), rgba(8, 17, 31, 0.02));
animation: deckPulse 9s ease-in-out infinite;
}
.orbit-one {
width: 9rem;
height: 9rem;
top: 0;
left: 1rem;
}
.orbit-two {
width: 7rem;
height: 7rem;
right: 1.5rem;
top: 2rem;
animation-delay: -3s;
}
.orbit-three {
width: 4.5rem;
height: 4.5rem;
left: 45%;
bottom: 0.8rem;
animation-delay: -6s;
}
@keyframes deckPulse {
0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
50% { transform: translate3d(0, -12px, 0) scale(1.04); }
}
.topic-rail-wide .topic-pill {
background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
}
.topic-rail-wide .topic-dot {
background: var(--topic-accent, var(--signal-primary));
color: var(--topic-accent, var(--signal-primary));
}
.bento-grid {
display: grid;
grid-template-columns: repeat(12, minmax(0, 1fr));
gap: 1.15rem;
align-items: stretch;
grid-auto-rows: minmax(88px, auto);
}
.bento-card {
position: relative;
overflow: hidden;
min-height: 100%;
display: flex;
flex-direction: column;
transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}
.bento-card::before {
content: '';
position: absolute;
inset: auto -10% -35% auto;
width: 11rem;
height: 11rem;
border-radius: 999px;
background: radial-gradient(circle, rgba(0, 194, 168, 0.18), transparent 70%);
pointer-events: none;
}
.bento-card.accent-secondary::before {
background: radial-gradient(circle, rgba(255, 107, 74, 0.18), transparent 70%);
}
.bento-card.accent-primary::before {
background: radial-gradient(circle, rgba(125, 249, 215, 0.22), transparent 70%);
}
.bento-card:hover,
.bento-card:focus-within {
transform: translateY(-6px);
border-color: rgba(125, 249, 215, 0.34);
box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}
.bento-card-copy,
.bento-sidebar,
.bento-editor,
.bento-original {
padding: 1.45rem;
position: relative;
z-index: 1;
height: 100%;
}
.bento-feature {
grid-column: span 7;
grid-row: span 4;
display: grid;
grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
}
.bento-feature .bento-card-copy {
display: flex;
flex-direction: column;
}
.bento-feature .bento-visual {
min-height: 100%;
position: relative;
padding: 1.45rem 1.45rem 1.45rem 0;
display: flex;
align-items: stretch;
}
.bento-feature .bento-visual img,
.bento-feature .shape-stack {
width: 100%;
border-radius: 1.35rem;
overflow: hidden;
min-height: 100%;
}
.bento-feature .bento-visual img {
aspect-ratio: 4 / 5;
object-fit: cover;
}
.bento-wide {
grid-column: span 5;
grid-row: span 2;
}
.bento-tall {
grid-column: span 4;
grid-row: span 3;
}
.bento-compact {
grid-column: span 3;
grid-row: span 2;
}
.bento-sidebar {
grid-column: span 4;
grid-row: span 3;
}
.bento-editor {
grid-column: span 4;
grid-row: span 3;
}
.bento-original {
grid-column: span 4;
grid-row: span 2;
}
.bento-grid h3 {
font-size: clamp(1.2rem, 2vw, 2rem);
line-height: 1.05;
letter-spacing: -0.04em;
margin-bottom: 0.8rem;
}
.bento-grid p {
color: var(--signal-muted);
line-height: 1.7;
}
.drift-card {
will-change: transform;
}
@media (max-width: 1199.98px) {
.bento-feature {
grid-column: span 12;
}
.bento-wide,
.bento-sidebar,
.bento-editor,
.bento-original {
grid-column: span 6;
}
.bento-tall,
.bento-compact {
grid-column: span 6;
grid-row: span 2;
}
}
@media (max-width: 991.98px) {
.bento-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.bento-feature,
.bento-wide,
.bento-tall,
.bento-compact,
.bento-sidebar,
.bento-editor,
.bento-original {
grid-column: span 2;
grid-row: auto;
}
.bento-feature {
grid-template-columns: 1fr;
}
.bento-feature .bento-visual {
padding: 0 1.45rem 1.45rem;
}
}
@media (max-width: 575.98px) {
.signal-deck-topline {
flex-direction: column;
align-items: flex-start;
}
.bento-grid {
grid-template-columns: 1fr;
}
.bento-feature,
.bento-wide,
.bento-tall,
.bento-compact,
.bento-sidebar,
.bento-editor,
.bento-original {
grid-column: span 1;
}
}