Repository navigation
Expand file tree
/
Copy pathFounderNote.css
More file actions
171 lines (149 loc) · 3.43 KB
/
Copy pathFounderNote.css
File metadata and controls
171 lines (149 loc) · 3.43 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
.founder {
background: var(--mist);
}
.founder__wrap {
display: grid;
justify-items: center;
}
/* A sheet of ruled notebook paper, taped to the page and slightly askew. */
.founder__paper {
--rule: 2.1rem;
position: relative;
width: min(100%, 44rem);
padding: calc(var(--rule) * 1.25) clamp(1.25rem, 5vw, 3.25rem) calc(var(--rule) * 1.1)
clamp(2.5rem, 8vw, 4.75rem);
background-color: #fffef8;
background-image:
linear-gradient(90deg, transparent calc(clamp(2.5rem, 8vw, 4.75rem) - 1rem), #ffb3c1 0, #ffb3c1 calc(clamp(2.5rem, 8vw, 4.75rem) - 1rem + 2px), transparent 0),
repeating-linear-gradient(transparent 0 calc(var(--rule) - 1px), #cfd8f0 calc(var(--rule) - 1px) var(--rule));
background-position: 0 0, 0 calc(var(--rule) * 1.25 - 0.45rem);
box-shadow:
0 1px 0 var(--line),
0 18px 40px -22px rgb(30 27 75 / 0.35);
rotate: -0.8deg;
}
.founder__tape {
position: absolute;
top: -0.9rem;
left: 50%;
width: 7rem;
height: 1.8rem;
translate: -50% 0;
rotate: 2deg;
background: rgb(169 242 221 / 0.75);
}
.founder__note {
margin: 0;
color: #2f2a8a;
font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.6rem);
line-height: var(--rule);
}
.founder__intro {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(9rem, 12.5rem);
gap: clamp(1rem, 4vw, 2rem);
align-items: start;
}
.founder__intro-copy p + p {
margin-top: var(--rule);
}
.founder__intro + p {
margin-top: var(--rule);
}
.founder__note p {
max-width: none;
text-wrap: pretty;
}
.founder__note p + p {
margin-top: var(--rule);
}
.founder__hi {
font-size: 1.35em;
font-weight: 650;
}
.founder__portrait {
position: relative;
justify-self: end;
width: 100%;
margin: 0.5rem 0 0;
padding: 0.45rem 0.45rem 0.65rem;
border: 2px solid var(--ink);
background: var(--paper);
box-shadow: 4px 5px 0 var(--ink);
rotate: 2deg;
}
.founder__portrait img {
display: block;
width: 100%;
aspect-ratio: 4 / 3;
object-fit: cover;
object-position: center 38%;
filter: grayscale(1);
}
.founder__portrait figcaption {
padding-top: 0.35rem;
color: var(--ink-soft);
font-size: 1.1rem;
line-height: 1.1;
text-align: center;
}
.founder__photo-tape {
position: absolute;
z-index: 1;
top: -0.65rem;
left: 50%;
width: 4rem;
height: 1.15rem;
translate: -50% 0;
rotate: -4deg;
background: rgb(169 242 221 / 0.8);
}
.founder__note u {
text-decoration-color: var(--mint-deep);
text-decoration-thickness: 3px;
text-underline-offset: 0.18em;
}
.founder__note em {
font-style: normal;
font-weight: 700;
}
.founder__sign {
position: relative;
display: grid;
justify-items: end;
margin-top: var(--rule);
text-align: right;
}
.founder__sig {
font-size: 2.6rem;
font-weight: 700;
line-height: 1;
color: #2f2a8a;
rotate: -4deg;
}
.founder__ghost {
position: absolute;
left: 0;
bottom: 0;
}
/* A quick swipe of highlighter, uneven at the ends like a real marker. */
.founder__note mark {
padding: 0 0.12em;
margin: 0 -0.06em;
color: inherit;
background: linear-gradient(100deg, transparent 0.2em, rgb(95 227 192 / 0.5) 0.35em, rgb(95 227 192 / 0.38) 85%, transparent 100%)
0 62% / 100% 0.7em no-repeat;
box-decoration-break: clone;
-webkit-box-decoration-break: clone;
}
@media (max-width: 38rem) {
.founder__intro {
grid-template-columns: 1fr;
}
.founder__portrait {
grid-row: 1;
justify-self: center;
width: min(100%, 14rem);
margin-bottom: 0.5rem;
}
}