Repository navigation
Expand file tree
/
Copy pathstyles.css
More file actions
150 lines (134 loc) · 10.3 KB
/
Copy pathstyles.css
File metadata and controls
150 lines (134 loc) · 10.3 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
:root {
--ink: #18201d;
--muted: #6d736e;
--paper: #f4f0e8;
--cream: #fbf9f4;
--line: #dcd6ca;
--red: #b33d32;
--red-dark: #8d2f28;
--green: #315d4d;
--shadow: 0 24px 70px rgba(50, 45, 36, 0.12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
margin: 0;
color: var(--ink);
background:
radial-gradient(circle at 9% 24%, rgba(179, 61, 50, 0.06), transparent 28%),
linear-gradient(rgba(24, 32, 29, 0.025) 1px, transparent 1px),
var(--paper);
background-size: auto, 100% 36px, auto;
font-family: "Manrope", system-ui, sans-serif;
min-height: 100vh;
}
button, textarea { font: inherit; }
button { color: inherit; }
.shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.nav {
height: 88px;
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -0.04em; font-size: 19px; }
.brand-mark { display: grid; place-items: center; width: 35px; height: 35px; background: var(--red); color: white; border-radius: 50% 50% 48% 52% / 56% 45% 55% 44%; font-family: "Prata", serif; font-size: 17px; transform: rotate(-3deg); }
.nav-actions { display: flex; align-items: center; gap: 24px; }
.privacy-note { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.11em; display: flex; align-items: center; gap: 8px; }
.status-dot { width: 7px; height: 7px; background: #5f9279; border-radius: 50%; box-shadow: 0 0 0 4px rgba(95, 146, 121, 0.12); }
.language-button { border: 1px solid var(--line); background: rgba(255,255,255,.4); border-radius: 999px; padding: 9px 12px 9px 14px; display: flex; gap: 8px; align-items: center; cursor: pointer; font-size: 12px; font-weight: 700; }
.language-button svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.hero { padding: 78px 0 48px; text-align: center; }
.eyebrow { margin: 0 0 18px; color: var(--red); font-weight: 700; letter-spacing: .18em; font-size: 11px; }
h1 { margin: 0; font-family: "Prata", Georgia, serif; font-weight: 400; font-size: clamp(46px, 7vw, 86px); line-height: .99; letter-spacing: -.045em; }
h1 em { color: var(--red); font-style: italic; }
.intro { max-width: 590px; margin: 26px auto 0; color: var(--muted); line-height: 1.7; font-size: 16px; }
.workspace { background: var(--cream); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.workspace-topbar { min-height: 62px; padding: 13px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.direction-button, .direction-language, .trigger-label { display: flex; align-items: center; }
.direction-button { gap: 12px; padding: 5px 7px; margin: -5px -7px; border: 0; border-radius: 9px; background: transparent; cursor: pointer; font-size: 13px; font-weight: 600; transition: background .2s; }
.direction-button:hover { background: #eee9df; }
.direction-language { gap: 8px; }
.swap-icon { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: white; }
.direction-button svg { width: 16px; fill: none; stroke: #7d817c; stroke-width: 1.5; }
.flag { width: 28px; height: 21px; border-radius: 4px; display: grid; place-items: center; color: white; font-size: 8px; font-weight: 700; letter-spacing: .03em; }
.flag-en { background: #294d76; }
.flag-ru { background: linear-gradient(#fff 0 33%, #4774b5 33% 66%, #c94b49 66%); color: transparent; border: 1px solid #dedede; }
.trigger-label { color: var(--muted); gap: 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
kbd { border: 1px solid var(--line); background: white; border-radius: 4px; padding: 2px 5px; font-family: inherit; color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.trigger-label span { margin-left: 4px; }
.macro-bar { min-height: 66px; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); background: #f1ede4; }
.macro-copy, .macro-controls { display: flex; align-items: center; }
.macro-copy { gap: 12px; }
.macro-copy div { display: flex; flex-direction: column; gap: 2px; }
.macro-copy strong { font-size: 12px; }
.macro-copy span:not(.macro-indicator) { color: var(--muted); font-size: 10px; }
.macro-indicator { width: 9px; height: 9px; border: 2px solid #aaa; border-radius: 50%; transition: all .2s; }
.macro-indicator.is-active { border-color: var(--green); background: var(--green); box-shadow: 0 0 0 5px rgba(49,93,77,.1); }
.macro-controls { gap: 16px; }
.shortcut { display: flex; gap: 3px; }
.shortcut kbd { min-width: 20px; padding: 2px 4px; text-align: center; font-size: 9px; }
.macro-toggle { min-width: 73px; padding: 5px 10px 5px 5px; display: flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; background: var(--green); color: white; cursor: pointer; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; transition: background .2s; }
.macro-toggle[aria-checked="false"] { background: #92958f; }
.toggle-knob { width: 22px; height: 22px; border-radius: 50%; background: white; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.translation-stream:empty { display: none; }
.translation-pair { display: grid; grid-template-columns: 1fr 55px 1fr; border-bottom: 1px solid var(--line); animation: reveal .45s cubic-bezier(.2,.7,.2,1) both; }
.sentence-side { position: relative; min-height: 128px; padding: 28px 34px 30px; }
.sentence-label { display: block; margin-bottom: 13px; color: #999b96; font-size: 9px; font-weight: 700; letter-spacing: .16em; }
.sentence-side p { margin: 0; font-family: "Prata", Georgia, serif; font-size: clamp(18px, 2.2vw, 26px); line-height: 1.5; }
.russian-side { background: rgba(179, 61, 50, .035); }
.russian-side p { color: var(--red-dark); padding-right: 30px; }
.sentence-divider { display: grid; place-items: center; position: relative; }
.sentence-divider::before { content: ""; position: absolute; inset: 0 50%; border-left: 1px solid var(--line); }
.sentence-divider span { position: relative; z-index: 1; width: 31px; height: 31px; display: grid; place-items: center; color: var(--red); background: var(--cream); border: 1px solid var(--line); border-radius: 50%; font-family: "Prata", serif; font-size: 12px; }
.copy-button { position: absolute; right: 20px; bottom: 16px; border: 0; background: transparent; color: #94958f; display: flex; align-items: center; gap: 5px; cursor: pointer; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; opacity: 0; transition: opacity .2s, color .2s; }
.russian-side:hover .copy-button, .copy-button:focus { opacity: 1; }
.copy-button:hover { color: var(--red); }
.copy-button svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.composer-wrap { padding: 28px 32px 20px; }
textarea { display: block; width: 100%; min-height: 118px; resize: vertical; border: 0; outline: 0; background: transparent; color: var(--ink); font-family: "Prata", Georgia, serif; font-size: clamp(23px, 3vw, 34px); line-height: 1.45; caret-color: var(--red); }
textarea::placeholder { color: #b6b4ac; }
.composer-footer { min-height: 36px; padding-top: 15px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.composer-hint { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; }
.pulse-ring { width: 8px; height: 8px; border: 1px solid var(--red); border-radius: 50%; }
.composer-hint.is-translating .pulse-ring { background: var(--red); animation: pulse 1s infinite; }
.composer-actions { display: flex; align-items: center; gap: 15px; color: #999b96; font-size: 10px; }
.clear-button { padding: 0; border: 0; border-bottom: 1px solid transparent; background: none; color: var(--muted); cursor: pointer; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.clear-button:hover { color: var(--red); border-bottom-color: currentColor; }
.details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 62px 0; }
.details article { display: flex; gap: 18px; padding: 0 32px; border-right: 1px solid var(--line); }
.details article:first-child { padding-left: 0; }
.details article:last-child { padding-right: 0; border: 0; }
.detail-number { padding-top: 2px; color: var(--red); font-family: "Prata", serif; font-size: 12px; }
.details h2 { margin: 0 0 8px; font-size: 14px; letter-spacing: -.01em; }
.details p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
footer { min-height: 82px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(179,61,50,.1); } }
@media (max-width: 720px) {
.shell { width: min(100% - 28px, 1180px); }
.nav { height: 72px; }
.privacy-note { display: none; }
.hero { padding: 54px 0 36px; }
.intro { font-size: 14px; }
.workspace-topbar { align-items: flex-start; gap: 12px; }
.direction-language > span:last-child { display: none; }
.trigger-label { display: none; }
.macro-bar { align-items: flex-start; }
.macro-copy span:not(.macro-indicator) { max-width: 190px; }
.shortcut { display: none; }
.translation-pair { grid-template-columns: 1fr; }
.sentence-divider { height: 1px; }
.sentence-divider::before { inset: 0; border: 0; border-top: 1px solid var(--line); }
.sentence-divider span { display: none; }
.sentence-side { min-height: 100px; padding: 22px 24px; }
.composer-wrap { padding: 23px 24px 16px; }
.details { grid-template-columns: 1fr; gap: 26px; padding: 42px 0; }
.details article, .details article:first-child, .details article:last-child { border: 0; padding: 0; }
footer { flex-direction: column; justify-content: center; gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { animation-duration: .01ms !important; scroll-behavior: auto !important; }
}