-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstell.css
More file actions
154 lines (132 loc) · 4.11 KB
/
Copy pathconstell.css
File metadata and controls
154 lines (132 loc) · 4.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
/* ═══════════════════════════════════════════
Dark theme (default)
═══════════════════════════════════════════ */
:root {
color-scheme: dark;
font-family:
Inter,
ui-sans-serif,
system-ui,
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
sans-serif;
/* ── Constell configurable CSS variables ──
Override these on :root or a parent element to restyle without touching JS. */
--constell-bg-start: #040816; /* backdrop gradient start color */
--constell-bg-end: #030510; /* backdrop gradient end color */
--constell-nebula-a: rgba(122, 92, 255, 0.22); /* body-gradient nebula A */
--constell-nebula-b: rgba(0, 217, 255, 0.16); /* body-gradient nebula B */
--constell-overlay-bg: rgba(4, 8, 22, 0.46);
--constell-overlay-border: rgba(190, 210, 255, 0.14);
--constell-overlay-blur: 18px;
--constell-eyebrow-color: rgba(180, 220, 255, 0.78);
--constell-copy-color: rgba(230, 239, 255, 0.78);
}
/* ═══════════════════════════════════════════
Light theme overrides
═══════════════════════════════════════════ */
[data-theme="light"] {
color-scheme: light;
--constell-bg-start: #d6e0f0;
--constell-bg-end: #eaf0fa;
--constell-nebula-a: rgba(150, 140, 255, 0.13);
--constell-nebula-b: rgba(90, 200, 255, 0.10);
--constell-overlay-bg: rgba(255, 255, 255, 0.65);
--constell-overlay-border: rgba(120, 140, 200, 0.22);
--constell-eyebrow-color: rgba(80, 60, 140, 0.72);
--constell-copy-color: rgba(50, 40, 90, 0.80);
}
html,
body {
width: 100%;
height: 100%;
margin: 0;
}
body {
overflow: hidden;
background:
radial-gradient(circle at 20% 20%, var(--constell-nebula-a), transparent 34%),
radial-gradient(circle at 80% 18%, var(--constell-nebula-b), transparent 28%),
linear-gradient(180deg, var(--constell-bg-start) 0%, var(--constell-bg-end) 100%);
color: rgba(245, 248, 255, 0.92);
}
[data-theme="light"] body {
color: rgba(20, 15, 50, 0.92);
}
[data-theme="light"] h1 {
color: #1a1530;
}
#scene {
position: fixed;
inset: 0;
width: 100%;
height: 100%;
display: block;
}
.overlay {
position: fixed;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
width: min(92vw, 38rem);
padding: 1.35rem 1.5rem 1.55rem;
border: 1px solid var(--constell-overlay-border);
border-radius: 1.2rem;
background: var(--constell-overlay-bg);
backdrop-filter: blur(var(--constell-overlay-blur));
text-align: center;
pointer-events: none;
}
.eyebrow {
margin: 0 0 0.45rem;
text-transform: uppercase;
letter-spacing: 0.28em;
font-size: 0.72rem;
color: var(--constell-eyebrow-color);
}
h1 {
margin: 0;
font-size: clamp(2.3rem, 6vw, 4.6rem);
line-height: 0.95;
font-weight: 700;
}
/* ── Toggle button — always visible regardless of theme ── */
.theme-btn {
pointer-events: auto;
display: inline-block;
margin-top: 1rem;
padding: 0.45rem 1.3rem;
border: 2px solid var(--constell-overlay-border);
border-radius: 0.6rem;
background: var(--constell-overlay-bg);
backdrop-filter: blur(var(--constell-overlay-blur));
color: var(--constell-copy-color);
font-size: 0.85rem;
font-weight: 600;
cursor: pointer;
transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.1s;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.theme-btn:hover {
border-color: var(--constell-eyebrow-color);
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
transform: scale(1.04);
}
.theme-btn:active {
transform: scale(0.97);
background: color-mix(in srgb, var(--constell-overlay-bg) 75%, black 10%);
}
.copy {
margin: 0.8rem auto 0;
max-width: 30ch;
font-size: 0.98rem;
line-height: 1.6;
color: var(--constell-copy-color);
}
/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
.overlay {
backdrop-filter: none;
}
}