-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
344 lines (323 loc) · 12.8 KB
/
Copy pathstyles.css
File metadata and controls
344 lines (323 loc) · 12.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
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
/* ==========================================================================
Two-sided business card: priest (front) / mathematician (back)
Bootstrap 5.2.3 is loaded before this file; everything here is additive.
========================================================================== */
:root {
--accent: #0b5c5c; /* deep teal, a nod to the old academic site */
--accent-soft: rgba(11, 92, 92, 0.1);
--ink: #1d2327;
--muted: #5b6770;
--paper: rgba(255, 253, 248, 0.72); /* translucent: the Ararat background stays visible */
--line: #d9d4c7;
--focus: #f0b429;
--flip-duration: 0.8s;
--bar-h: 3.25rem; /* height of the sticky controls bar */
}
html { scroll-behavior: smooth; }
body {
margin: 0;
color: var(--ink);
background: #fff url("ararat_new25.png") no-repeat left top;
background-size: min(815px, 100vw) auto; /* natural size on desktop, shrinks on phones */
}
/* --------------------------------------------------------------------------
Controls bar (sticky, always visible)
-------------------------------------------------------------------------- */
.controls {
position: sticky;
top: 0;
z-index: 20;
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
gap: 0.5rem 1.5rem;
padding: 0.5rem 0.75rem;
background: rgba(255, 255, 255, 0.9);
-webkit-backdrop-filter: blur(6px);
backdrop-filter: blur(6px);
border-bottom: 1px solid var(--line);
}
.seg-wrap { display: inline-flex; align-items: center; gap: 0.5rem; }
.seg-label { font-size: 0.85rem; color: var(--muted); }
@media (max-width: 575.98px) { /* keep both toggles on one line */
.controls { flex-wrap: nowrap; gap: 0.4rem; padding: 0.4rem 0.4rem; }
.seg-label { display: none; }
.seg a { padding: 0.4rem 0.6rem; font-size: 0.8rem; }
.seg__icon { margin-right: 0.25em; }
}
@media (max-width: 359.98px) {
.seg a { padding: 0.35rem 0.45rem; font-size: 0.72rem; }
}
.seg {
display: inline-flex;
border: 1px solid var(--accent);
border-radius: 999px;
overflow: hidden;
background: #fff;
}
.seg a {
display: inline-flex;
align-items: center;
padding: 0.45rem 1rem;
color: var(--accent);
font-weight: 600;
font-size: clamp(0.85rem, 0.75rem + 0.5vw, 1rem);
text-decoration: none;
white-space: nowrap;
transition: background-color 0.2s, color 0.2s;
}
.seg a + a { border-left: 1px solid var(--accent); }
.seg a:hover { background: var(--accent-soft); }
.seg a[aria-current="true"] { background: var(--accent); color: #fff; }
.seg a:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.seg__icon { margin-right: 0.35em; font-size: 1.1em; line-height: 1; }
/* --------------------------------------------------------------------------
3D flip
-------------------------------------------------------------------------- */
.scene {
perspective: 1600px;
padding: clamp(0.5rem, 2vw, 1.5rem) 0 2.5rem;
}
.card3d {
position: relative;
display: grid;
transform-style: preserve-3d;
transition: transform var(--flip-duration) cubic-bezier(0.4, 0.2, 0.2, 1);
}
.card3d.no-transition { transition: none !important; }
.card3d.is-flipped { transform: rotateY(180deg); }
.card-face {
grid-area: 1 / 1; /* both faces stack in the same cell → card is as tall as the taller face */
min-width: 0;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
}
.card-back { transform: rotateY(180deg); }
/* after the turn the inactive face leaves the flow so the card shrinks to the visible one */
.card-face.is-hidden {
visibility: hidden;
position: absolute;
inset: 0;
overflow: hidden;
pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
.card3d { transition: none; }
html { scroll-behavior: auto; }
}
/* --------------------------------------------------------------------------
Hero — name / positions / contacts. On phones it fills the first screen so the
card reads without scrolling; interests, publications etc. start below the fold.
-------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
.hero {
display: flex;
flex-direction: column;
justify-content: center;
min-height: calc(100vh - var(--bar-h) - 3rem);
min-height: calc(100svh - var(--bar-h) - 3rem);
}
.hero > .row { width: 100%; }
}
/* --------------------------------------------------------------------------
Priest side (front) — keeps the original Bootstrap grid
-------------------------------------------------------------------------- */
.priest__text { overflow-wrap: anywhere; }
.priest__org { font-size: clamp(1.25rem, 1rem + 1.4vw, 2rem); line-height: 1.15; }
.priest__org-2 { font-size: 80%; }
.priest__org-3 { font-size: 60%; }
.priest__name { font-size: clamp(1.3rem, 1rem + 1.6vw, 2rem); }
.priest__positions { font-size: clamp(1rem, 0.9rem + 0.7vw, 1.5rem); line-height: 1.35; }
.card-contacts { font-size: clamp(1rem, 0.9rem + 0.5vw, 1.35rem); line-height: 1.7; overflow-wrap: anywhere; }
.card-contacts img { vertical-align: middle; }
.hero__symbol { max-height: 42vh; width: auto; }
/* the fractal is a solid mark — keep it quiet so it does not pull focus from the text */
.math .hero__symbol { opacity: 0.38; filter: grayscale(1); }
.hero__portrait { max-height: 55vh; width: auto; }
@media (max-width: 575.98px) { /* phones in portrait: cross and photo side by side, compact type */
.card-face .container { margin-top: 0.5rem !important; }
.hero .img-fluid { max-height: 21vh; width: auto; }
.priest__org { font-size: clamp(0.95rem, 4.2vw, 1.3rem); }
.priest__name { font-size: clamp(1.1rem, 5vw, 1.6rem); margin-top: 0.75rem !important; margin-bottom: 0.75rem !important; }
.priest__positions { font-size: clamp(0.85rem, 3.5vw, 1.05rem); line-height: 1.3; }
.card-contacts { font-size: clamp(0.9rem, 3.7vw, 1.1rem); line-height: 1.6; margin-top: 0.75rem !important; margin-bottom: 0.5rem !important; }
.panel { padding: 0.75rem 0.85rem; }
.math__name { font-size: clamp(1.1rem, 4.8vw, 1.6rem); }
.math__degree { font-size: clamp(0.9rem, 3.7vw, 1.1rem); }
.math__affil { font-size: clamp(0.8rem, 3.3vw, 1rem); }
.pub-list { padding-left: 1.25rem; }
}
/* --------------------------------------------------------------------------
Publication blocks (shared)
-------------------------------------------------------------------------- */
.pubs { margin-top: 1.5rem; }
.panel {
background: rgba(255, 255, 255, 0.78);
border: 1px solid var(--line);
border-radius: 0.75rem;
padding: clamp(0.75rem, 2vw, 1.5rem) clamp(0.9rem, 2.5vw, 1.75rem);
}
.pubs__h,
.panel__h {
font-family: Georgia, "Times New Roman", serif;
font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem);
color: var(--accent);
border-bottom: 2px solid var(--accent);
padding-bottom: 0.25rem;
margin: 0 0 0.75rem;
}
.pubs__group {
font-size: 0.95rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--muted);
margin: 1.25rem 0 0.5rem;
}
.pub-list { padding-left: 1.5rem; margin: 0; }
.pub { margin: 0 0 0.9rem; line-height: 1.4; }
.pub__title { font-weight: 600; }
.pub__title .ix { margin-left: 0.5em; vertical-align: 0.05em; }
.pub__title-link { color: inherit; text-decoration: underline; text-decoration-color: rgba(11, 92, 92, 0.4); }
.pub__title-link:hover { color: var(--accent); }
.pub__year {
display: inline-block;
min-width: 3em;
margin-right: 0.5em;
color: var(--accent);
font-variant-numeric: tabular-nums;
font-weight: 700;
}
.pub__venue { }
.pub__meta { color: var(--muted); font-size: 0.9em; }
.pub__translation { font-size: 0.92em; font-style: italic; color: #2f3b44; }
.pub__label { font-weight: 600; font-style: normal; color: var(--muted); }
.pub__tags {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.35rem 0.5rem;
margin-top: 0.3rem;
}
.pub__link { font-size: 0.85em; }
.pubs__empty {
color: var(--muted);
font-style: italic;
border: 1px dashed var(--line);
border-radius: 0.5rem;
padding: 0.75rem 1rem;
margin: 0;
}
.legend { font-size: 0.85rem; color: var(--muted); margin: 0 0 0.75rem; }
/* index badges */
.ix {
display: inline-block;
font-size: 0.72rem;
font-weight: 700;
letter-spacing: 0.03em;
text-transform: uppercase;
line-height: 1.4;
padding: 0.1rem 0.5rem;
border-radius: 0.3rem;
border: 1px solid rgba(11, 92, 92, 0.3);
background: #e6f0f0;
color: var(--accent);
cursor: default;
}
.ix--kind { background: #f3f1ea; color: #5b5330; border-color: #d8d1b4; text-transform: none; font-weight: 600; }
.ix--scopus { background: #fdece6; color: #b3410f; border-color: #e6a98f; }
.ix--wos { background: #efe8f7; color: #5a2d91; border-color: #c2add8; }
.ix--rsci { background: #e9f1e6; color: #2f6b1f; border-color: #a9c9a0; }
.ix--mathscinet { background: #f7efd9; color: #7a5a00; border-color: #e0c98a; }
.ix--zbmath { background: #e6eef8; color: #1f4e8c; border-color: #a9c0e0; }
.flip-link-wrap { text-align: center; margin: 1.5rem 0 0; }
.flip-link {
display: inline-block;
padding: 0.5rem 1.25rem;
border: 1px solid var(--accent);
border-radius: 999px;
color: var(--accent);
font-weight: 600;
text-decoration: none;
background: #fff;
}
.flip-link:hover { background: var(--accent); color: #fff; }
/* --------------------------------------------------------------------------
Mathematician side (back) — modern, clean, academic
-------------------------------------------------------------------------- */
.math {
font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.math__text { overflow-wrap: anywhere; }
.hero .img-fluid { margin-inline: auto; }
.math__name {
font-family: Georgia, "Times New Roman", serif;
font-size: clamp(1.35rem, 1rem + 1.9vw, 2.4rem);
line-height: 1.15;
color: var(--accent);
margin: 0 0 0.5rem;
}
.math__details { margin-top: 1.5rem; }
.math__details > section + section { margin-top: 0.5rem; }
.math__degree { font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.4rem); font-weight: 700; margin: 0 0 0.35rem; }
.math__affil { font-size: clamp(0.95rem, 0.9rem + 0.4vw, 1.15rem); color: var(--muted); margin: 0; line-height: 1.4; }
.math__addr { font-size: 0.9em; }
.math h2 {
font-family: Georgia, "Times New Roman", serif;
font-size: clamp(1.15rem, 1rem + 0.9vw, 1.5rem);
color: var(--accent);
border-bottom: 2px solid var(--accent);
padding-bottom: 0.25rem;
margin: 1.75rem 0 0.75rem;
}
.math h3 {
font-size: 0.95rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--muted);
margin: 1.25rem 0 0.5rem;
}
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0; }
.chip {
border: 1px solid var(--accent);
color: var(--accent);
border-radius: 999px;
padding: 0.2rem 0.75rem;
font-size: 0.92rem;
}
.profiles { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.profiles a { color: var(--ink); }
.profiles a:hover { color: var(--accent); }
.profiles a { text-decoration: none; border-bottom: 1px solid rgba(11, 92, 92, 0.4); }
.profiles li::before { content: "▸ "; color: var(--accent); }
/* --------------------------------------------------------------------------
No-JS fallback: show the Russian front side as a plain page
-------------------------------------------------------------------------- */
.nojs { text-align: center; color: var(--muted); padding: 0.5rem; }
/* --------------------------------------------------------------------------
Landscape phones — kept last so these overrides win over the section rules above
-------------------------------------------------------------------------- */
/* phones in landscape: everything essential still on one screen */
@media (max-height: 560px) and (orientation: landscape) {
.hero {
display: flex;
flex-direction: column;
justify-content: center;
min-height: calc(100vh - var(--bar-h) - 1.5rem);
min-height: calc(100svh - var(--bar-h) - 1.5rem);
}
.hero > .row { width: 100%; }
.scene { padding-top: 0.4rem; }
.card-face .container { margin-top: 0.4rem !important; margin-bottom: 0.4rem !important; }
.hero .img-fluid { max-height: 34vh; width: auto; }
.priest__org { font-size: clamp(0.9rem, 1.6vw, 1.15rem); }
.priest__name { font-size: clamp(1rem, 2vw, 1.35rem); margin-top: 0.4rem !important; margin-bottom: 0.4rem !important; }
.priest__positions { font-size: clamp(0.78rem, 1.3vw, 0.95rem); line-height: 1.25; }
.card-contacts { font-size: clamp(0.8rem, 1.35vw, 1rem); line-height: 1.45; margin-top: 0.4rem !important; margin-bottom: 0.2rem !important; }
.math__name { font-size: clamp(1.15rem, 2.4vw, 1.6rem); margin-bottom: 0.2rem; }
.math__degree { font-size: clamp(0.85rem, 1.5vw, 1.05rem); margin-bottom: 0.15rem; }
.math__affil { font-size: clamp(0.78rem, 1.3vw, 0.95rem); }
.math h2 { margin-top: 0.6rem; font-size: 1.05rem; }
}