Repository navigation
Expand file tree
/
Copy pathconsent.css
More file actions
310 lines (298 loc) · 10.8 KB
/
Copy pathconsent.css
File metadata and controls
310 lines (298 loc) · 10.8 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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
/* Cookie consent (consent.js). Loaded by consent.js with the same ?v= as the script. */
.ailf-consent {
position: fixed;
z-index: 150;
/* bottom-right: this site's content is left-aligned, so the right corner covers the least */
right: clamp(1rem, 2.2vw, 1.75rem);
bottom: clamp(1rem, 2.2vw, 1.75rem);
width: min(24.5rem, calc(100vw - 2rem));
max-height: calc(100vh - 2rem);
max-height: calc(100dvh - 2rem);
overflow-x: hidden;
overflow-y: auto;
overscroll-behavior: contain;
padding: 1.25rem 1.25rem 1.25rem;
border-radius: 20px;
color: var(--ink, #15140F);
font-family: var(--sans, "Inter", system-ui, sans-serif);
/* solid fallback first: no blur support means no translucency */
background: var(--bg-elev, #FDFBF6);
border: 1px solid rgba(255, 255, 255, 0.7);
box-shadow:
0 0 0 1px rgba(21, 20, 15, 0.10),
inset 0 1px 0 rgba(255, 255, 255, 0.95),
inset 1px 0 0 rgba(255, 255, 255, 0.5),
inset 0 -1px 0 rgba(21, 20, 15, 0.05),
0 1px 2px rgba(21, 20, 15, 0.06),
0 12px 28px -10px rgba(21, 20, 15, 0.18),
0 32px 64px -24px rgba(21, 20, 15, 0.24);
isolation: isolate;
opacity: 0;
transform: translateY(14px);
transition: opacity 360ms var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1)), transform 560ms var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
}
.ailf-consent[hidden] { display: none; }
.ailf-consent:focus { outline: none; }
.ailf-consent:focus-visible { outline: 2px solid var(--accent, #B05433); outline-offset: 3px; }
.ailf-consent.ailf-consent--in { opacity: 1; transform: none; }
.ailf-consent.ailf-consent--out {
opacity: 0;
transform: translateY(8px);
transition-duration: 200ms, 240ms;
transition-timing-function: ease-in, ease-in;
}
/* The warm light the glass sits in front of: terracotta and sand, behind the card and a
little past its edges, so the frosted surface has colour to bend. Clipped to the screen. */
.ailf-consent-glow {
position: fixed;
inset: 0;
z-index: 149;
overflow: hidden;
pointer-events: none;
display: none;
opacity: 0;
transition: opacity 700ms var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
}
.ailf-consent-glow__light {
position: absolute;
right: clamp(1rem, 2.2vw, 1.75rem);
bottom: clamp(1rem, 2.2vw, 1.75rem);
width: min(24.5rem, calc(100vw - 2rem));
height: var(--ailf-consent-h, 13rem);
}
.ailf-consent-glow__light::before {
content: "";
position: absolute;
/* every ellipse below fades to nothing inside this box, so no edge ever shows */
inset: -84px -64px -44px -84px;
background:
radial-gradient(30% 34% at 33% 64%, rgba(176, 84, 51, 0.46) 0%, rgba(176, 84, 51, 0.22) 45%, rgba(176, 84, 51, 0) 100%),
radial-gradient(26% 32% at 73% 34%, rgba(214, 168, 112, 0.52) 0%, rgba(214, 168, 112, 0.20) 50%, rgba(214, 168, 112, 0) 100%),
radial-gradient(22% 18% at 58% 80%, rgba(208, 134, 103, 0.32) 0%, rgba(208, 134, 103, 0) 100%);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
.ailf-consent {
/* the header's glass, lit from the top left; text contrast measured over the darkest
surface the site has (ink) before this tint was set */
background:
linear-gradient(140deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.10) 40%, rgba(255, 255, 255, 0) 65%),
rgba(250, 247, 241, 0.52);
-webkit-backdrop-filter: blur(20px) saturate(1.8);
backdrop-filter: blur(20px) saturate(1.8);
border: 0;
box-shadow:
0 0 0 1px rgba(21, 20, 15, 0.08),
0 1px 2px rgba(21, 20, 15, 0.06),
0 12px 28px -10px rgba(21, 20, 15, 0.18),
0 32px 64px -24px rgba(21, 20, 15, 0.22);
}
/* rim: a bright hairline at the top left that cools to a faint terracotta at the bottom right */
.ailf-consent::after {
content: "";
position: absolute;
inset: 0;
border-radius: inherit;
padding: 1px;
pointer-events: none;
background: linear-gradient(140deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.55) 30%, rgba(255, 255, 255, 0.18) 62%, rgba(176, 84, 51, 0.30) 100%);
-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
-webkit-mask-composite: xor;
mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.ailf-consent:not([hidden]) + .ailf-consent-glow { display: block; }
.ailf-consent.ailf-consent--in + .ailf-consent-glow { opacity: 1; }
}
@media (prefers-reduced-transparency: reduce) {
.ailf-consent {
background: var(--bg-elev, #FDFBF6);
-webkit-backdrop-filter: none;
backdrop-filter: none;
border: 1px solid var(--line, #E0D9C9);
}
.ailf-consent::after,
.ailf-consent:not([hidden]) + .ailf-consent-glow { display: none; }
}
/* Move the light inside a fixed, clipped box so the sheen never adds scrollable overflow. */
.ailf-consent::before {
content: "";
position: absolute;
inset: 0;
z-index: -1;
pointer-events: none;
overflow: hidden;
border-radius: inherit;
background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.55) 50%, transparent 62%);
background-size: 300% 100%;
background-position: 100% 0;
opacity: 0;
}
.ailf-consent.ailf-consent--in::before {
animation: ailf-consent-sheen 1600ms cubic-bezier(0.45, 0, 0.2, 1) 220ms 1 both;
}
@keyframes ailf-consent-sheen {
0% { background-position: 100% 0; opacity: 0; }
15% { opacity: 1; }
85% { opacity: 1; }
100% { background-position: 0% 0; opacity: 0; }
}
.ailf-consent__head {
display: flex;
align-items: center;
gap: 0.625rem;
margin: 0 0 0.5rem;
}
.ailf-consent__mark {
flex: none;
width: 30px;
height: 30px;
fill: none;
stroke: var(--accent, #B05433);
stroke-width: 1.35;
stroke-linecap: round;
stroke-linejoin: round;
}
.ailf-consent__mark path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.ailf-consent__mark path:nth-child(2) { opacity: 0.72; }
.ailf-consent__mark path:nth-child(3) { opacity: 0.48; }
.ailf-consent.ailf-consent--in .ailf-consent__mark path {
animation: ailf-consent-draw 900ms var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1)) both;
}
.ailf-consent.ailf-consent--in .ailf-consent__mark path:nth-child(1) { animation-delay: 120ms; }
.ailf-consent.ailf-consent--in .ailf-consent__mark path:nth-child(2) { animation-delay: 260ms; }
.ailf-consent.ailf-consent--in .ailf-consent__mark path:nth-child(3) { animation-delay: 400ms; }
@keyframes ailf-consent-draw {
from { stroke-dashoffset: 1; }
to { stroke-dashoffset: 0; }
}
.ailf-consent__title {
margin: 0;
max-width: none;
font-family: var(--serif, "Source Serif 4", Georgia, serif);
font-size: 1.375rem;
font-weight: 500;
line-height: 1.2;
letter-spacing: -0.01em;
color: var(--ink, #15140F);
}
.ailf-consent__text {
margin: 0;
max-width: none;
font-family: var(--sans, "Inter", system-ui, sans-serif);
font-size: 1rem;
line-height: 1.5;
color: var(--ink, #15140F);
text-wrap: pretty;
}
.ailf-consent__actions {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0.625rem;
margin-top: 1.125rem;
}
/* Accept and Reject share one rule: same size, weight and prominence. */
.ailf-consent__btn {
min-height: 44px;
margin: 0;
padding: 0.625rem 1rem;
border: 1px solid var(--ink, #15140F);
border-radius: 999px;
background: rgba(255, 255, 255, 0.42);
color: var(--ink, #15140F);
font-family: var(--sans, "Inter", system-ui, sans-serif);
font-size: 1rem;
font-weight: 500;
line-height: 1.2;
cursor: pointer;
-webkit-tap-highlight-color: transparent;
transition: background-color 200ms var(--ease, ease), color 200ms var(--ease, ease), transform 160ms var(--ease, ease);
}
.ailf-consent__btn:hover {
background: var(--ink, #15140F);
color: var(--bg, #F7F4EE);
}
.ailf-consent__btn:active { transform: scale(0.98); }
.ailf-consent__btn:focus-visible {
outline: 2px solid var(--accent, #B05433);
outline-offset: 3px;
border-radius: 999px;
}
/* Phones: a bottom sheet, and the page keeps room for it so nothing stays hidden under it. */
@media (max-width: 560px) {
.ailf-consent {
left: 0;
right: 0;
bottom: 0;
width: auto;
padding: 1rem var(--gutter, 1.25rem) calc(1rem + env(safe-area-inset-bottom, 0px));
border-radius: 20px 20px 0 0;
border-bottom: 0;
transform: translateY(24px);
}
.ailf-consent__head { margin-bottom: 0.375rem; }
.ailf-consent__mark { width: 26px; height: 26px; }
.ailf-consent__title { font-size: 1.25rem; }
.ailf-consent__actions { margin-top: 0.875rem; }
.ailf-consent-glow__light { right: 0; bottom: 0; width: 100%; }
.ailf-consent-glow__light::before {
inset: -64px 0 0 0;
background:
radial-gradient(34% 40% at 28% 58%, rgba(176, 84, 51, 0.42) 0%, rgba(176, 84, 51, 0.20) 45%, rgba(176, 84, 51, 0) 100%),
radial-gradient(30% 36% at 76% 38%, rgba(214, 168, 112, 0.50) 0%, rgba(214, 168, 112, 0.20) 50%, rgba(214, 168, 112, 0) 100%),
radial-gradient(24% 18% at 56% 80%, rgba(208, 134, 103, 0.30) 0%, rgba(208, 134, 103, 0) 100%);
}
.ailf-consent-open body { padding-bottom: var(--ailf-consent-h, 0px); }
.ailf-consent-open .scroll-top { bottom: calc(var(--ailf-consent-h, 0px) + 1rem); }
/* the roadmap's chapter label would sit under the sheet */
.ailf-consent-open .chapter-indicator { opacity: 0 !important; }
}
/* while the choice is open, the page scrolls a focused link clear of it, and the
back-to-top button moves above it */
.ailf-consent-open { scroll-padding-bottom: calc(var(--ailf-consent-h, 0px) + 2.5rem); }
@media (min-width: 561px) {
.ailf-consent-open body { padding-bottom: calc(var(--ailf-consent-h, 0px) + clamp(1rem, 2.2vw, 1.75rem)); }
.ailf-consent-open .scroll-top { bottom: calc(var(--ailf-consent-h, 0px) + clamp(1rem, 2.2vw, 1.75rem) + 0.75rem); }
}
/* Footer control that reopens the choice */
.ailf-consent-link {
position: relative;
margin: 0;
padding: 0;
border: 0;
background: none;
font: inherit;
color: inherit;
cursor: pointer;
text-decoration: underline;
text-decoration-thickness: 1px;
text-underline-offset: 3px;
text-decoration-color: currentColor;
transition: color 200ms var(--ease, ease);
}
.ailf-consent-link::after {
content: "";
position: absolute;
inset: -12px -6px;
}
.ailf-consent-link:hover { color: var(--accent-deep, #8E3F22); }
@media (prefers-reduced-motion: reduce) {
.ailf-consent,
.ailf-consent.ailf-consent--out {
transform: none;
transition: none;
}
.ailf-consent.ailf-consent--in::before,
.ailf-consent.ailf-consent--in .ailf-consent__mark path { animation: none; }
.ailf-consent__btn { transition: none; }
.ailf-consent__btn:active { transform: none; }
.ailf-consent-glow { transition: none; }
}
@media (forced-colors: active) {
.ailf-consent { border: 1px solid CanvasText; }
.ailf-consent__btn { border: 1px solid ButtonText; }
.ailf-consent::before,
.ailf-consent::after,
.ailf-consent-glow { display: none !important; }
}
@media print {
.ailf-consent, .ailf-consent-link, .ailf-consent-glow { display: none !important; }
}