Repository navigation
Expand file tree
/
Copy pathSource Code_Ayman.css
More file actions
239 lines (218 loc) · 17 KB
/
Copy pathSource Code_Ayman.css
File metadata and controls
239 lines (218 loc) · 17 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
/* ===== Variabel warna & font ===== */
:root {
--sea: #0e4a6b;
--sea-deep: #082f45;
--sand: #f5ecdc;
--sand-dark: #e8dac0;
--coral: #8a5a3b;
--sun: #f0a36b;
--text: #2b2620;
--muted: #6b6258;
--font-title: "Fraunces", Georgia, serif;
--font-body: "Inter", Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--sand); color: var(--text); font-family: var(--font-body); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 600; line-height: 1.15; }
h2 { font-size: 2.4rem; color: var(--sea-deep); margin-bottom: 1rem; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
/* ===== Header: pill solid (tanpa JS) ===== */
.site-header { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; padding: 0 16px; pointer-events: none; }
.nav { pointer-events: auto; position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 900px; margin: 0 auto; padding: 8px 8px 8px 18px; border-radius: 999px; color: var(--sea-deep); background: var(--sand); border: 1px solid rgba(14,74,107,.12); box-shadow: 0 8px 28px rgba(8,47,69,.16); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-title); font-size: 1.12rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.brand em { color: var(--coral); }
.menu { display: flex; align-items: center; gap: 2px; font-size: .9rem; font-weight: 500; }
.menu a { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; transition: background .2s; }
.menu a:hover { background: rgba(14,74,107,.08); }
.menu-cta { display: none; }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; background: var(--sea); color: #fff; font-size: .9rem; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .25s, transform .2s; }
.nav-cta svg { transition: transform .25s; }
.nav-cta:hover { background: var(--sea-deep); }
.nav-cta:hover svg { transform: translateX(3px); }
.nav-cta:active { transform: scale(.97); }
.nav-toggle, .nav-close { display: none; width: 44px; height: 44px; flex: none; border-radius: 50%; background: rgba(14,74,107,.1); color: var(--sea-deep); align-items: center; justify-content: center; flex-direction: column; gap: 6px; text-decoration: none; }
.nav-toggle span, .nav-close span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.nav-close span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-close span:last-child { transform: translateY(-4px) rotate(-45deg); }
.site-header a:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; }
/* ===== Hero ===== */
.hero { position: relative; min-height: 92vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--sea-deep), rgba(8,47,69,.4) 55%, rgba(8,47,69,.3)); }
.hero-content { position: relative; width: 100%; padding-bottom: 64px; color: #fff; }
.hero-loc { font-size: .8rem; letter-spacing: .25em; text-transform: uppercase; color: var(--sand-dark); margin-bottom: 12px; }
.hero h1 { font-size: clamp(3.5rem, 9vw, 6.5rem); line-height: .95; }
.tagline { font-family: var(--font-title); font-style: italic; font-size: 1.5rem; margin-top: 12px; color: var(--sand); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; max-width: 680px; margin-top: 24px; background: rgba(255,255,255,.2); border-radius: 12px; overflow: hidden; }
.stats li { background: rgba(8,47,69,.55); padding: 16px; }
.stats strong { display: block; font-family: var(--font-title); font-size: 1.25rem; font-weight: 400; }
.stats span { font-size: .75rem; opacity: .7; }
.hero-welcome { font-family: var(--font-title); font-size: clamp(5rem, 15vw, 12rem); font-weight: 600; line-height: .9; }
@media (prefers-reduced-motion: no-preference) {
@supports (animation-timeline: scroll()) {
.hero { display: grid; grid-template-rows: 100%; height: 300vh; min-height: 0; overflow: visible; }
.hero-media, .hero-content { position: sticky; inset: auto; top: 0; grid-area: 1 / 1; align-self: start; height: 100vh; }
.hero-steps { display: grid; height: 100%; }
.hero-step { grid-area: 1 / 1; }
.hero-welcome { align-self: start; padding-top: 36vh; animation: hero-welcome-out linear both; animation-timeline: scroll(root); animation-range: 60vh 100vh; }
.hero-title-step { align-self: end; animation: hero-title-in linear both; animation-timeline: scroll(root); animation-range: 100vh 140vh; }
}
}
@keyframes hero-welcome-out { to { opacity: 0; transform: translateY(-40px); } }
@keyframes hero-title-in { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
/* ===== Section umum ===== */
section[id] { scroll-margin-top: 96px; }
.section { padding: 96px 0; border-top: 1px solid var(--sand-dark); }
#tentang { border-top: none; }
.two-col { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; }
.wide-right { grid-template-columns: 1fr 1.4fr; }
.section p { color: #4a443d; margin-bottom: 1rem; }
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--coral) !important; margin-bottom: 12px; }
.eyebrow span { font-family: var(--font-title); font-size: 1rem; letter-spacing: 0; }
.eyebrow::after { content: ""; order: 1; width: 32px; height: 1px; background: var(--coral); opacity: .4; }
.eyebrow span { order: 0; }
.eyebrow { flex-direction: row; }
.eyebrow.light { color: var(--sand-dark) !important; }
/* Tentang: intro dengan foto, lalu fakta menarik sebagai kartu foto yang bisa digeser */
.tentang-intro { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.tentang-photos { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; height: 440px; }
.tentang-photos figure { overflow: hidden; border-radius: 16px; }
.tentang-photos figure:first-child { grid-row: 1 / 3; }
.tentang-photos img { width: 100%; height: 100%; object-fit: cover; }
.facts { margin-top: 80px; }
.facts h3 { font-size: 1.6rem; color: var(--sea-deep); margin-bottom: 24px; }
.fact-track { display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-marker-group: after; scrollbar-width: thin; scrollbar-color: var(--sea) var(--sand-dark); padding-bottom: 8px; }
.fact-track::scroll-marker-group { display: flex; justify-content: center; gap: 4px; padding-top: 12px; }
.fact-track:focus-visible { outline: 2px solid var(--sun); outline-offset: 4px; }
.fact-card { position: relative; flex: 0 0 100%; height: 420px; border-radius: 16px; overflow: hidden; scroll-snap-align: start; background: var(--sea-deep); }
.fact-card img { width: 100%; height: 100%; object-fit: cover; }
.fact-card .fact-text { position: absolute; left: 12px; right: 12px; bottom: 12px; margin: 0; padding: 20px; border-radius: 12px; background: rgba(8,47,69,.88); color: rgba(245,236,220,.85); font-size: .9rem; }
.fact-text strong { display: block; margin-bottom: 6px; font-family: var(--font-title); font-size: 1.25rem; font-weight: 600; color: #fff; }
.fact-card::scroll-marker { content: ""; box-sizing: content-box; width: 10px; height: 10px; padding: 9px; border-radius: 999px; background: var(--sand-dark); background-clip: content-box; cursor: pointer; }
.fact-card::scroll-marker:target-current { width: 28px; background-color: var(--sea); }
.fact-card::scroll-marker:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; }
/* Tiket */
.note { font-size: .85rem; }
.card { background: rgba(255,255,255,.6); border: 1px solid var(--sand-dark); border-radius: 16px; padding: 24px; margin-top: 32px; }
.card h3 { color: var(--sea-deep); margin-bottom: 8px; }
.card p { font-size: .9rem; }
.btn { display: inline-block; background: var(--sea); color: #fff; text-decoration: none; padding: 10px 20px; border-radius: 999px; font-size: .9rem; font-weight: 500; }
.btn:hover { background: var(--sea-deep); }
.table-wrap { overflow-x: auto; border: 1px solid var(--sand-dark); border-radius: 16px; background: rgba(255,255,255,.7); align-self: start; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { background: var(--sea-deep); color: var(--sand); text-align: left; font-weight: 500; padding: 16px 20px; }
td { padding: 14px 20px; border-top: 1px solid var(--sand-dark); color: var(--muted); }
td:first-child { color: var(--sea-deep); font-weight: 500; }
td:last-child { font-family: var(--font-title); color: var(--coral); }
/* Aktivitas */
.activities { counter-reset: act; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--sand-dark); border-radius: 16px; overflow: hidden; margin-top: 48px; }
.activities li { counter-increment: act; background: var(--sand); padding: 28px; }
.activities li:hover { background: #fbf6ee; }
.activities li::before { content: "0" counter(act); font-family: var(--font-title); font-size: 1.8rem; color: var(--coral); opacity: .6; }
.activities h3 { font-family: var(--font-body); font-size: 1rem; color: var(--sea-deep); margin: 12px 0 6px; }
.activities p { font-size: .9rem; margin: 0; }
/* Tips */
.tips { counter-reset: tip; margin-top: 32px; }
.tips li { counter-increment: tip; display: flex; flex-direction: column; position: relative; padding-left: 56px; margin-bottom: 24px; font-size: .9rem; color: var(--muted); }
.tips li::before { content: counter(tip); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border: 1px solid var(--sea); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--sea); font-weight: 600; }
.tips strong { color: var(--sea-deep); font-size: 1rem; }
.warning { align-self: start; background: var(--coral); border-radius: 16px; padding: 32px; }
.warning p { color: rgba(245,236,220,.85) !important; font-size: .9rem; }
.warning .label { font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--sand-dark) !important; }
.warning .big { font-family: var(--font-title); font-size: 1.9rem; line-height: 1.25; color: #fff !important; }
/* Kontak */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; background: var(--sea-deep); color: var(--sand); border-radius: 24px; overflow: hidden; margin-bottom: 96px; }
.contact-info { padding: 40px; }
.contact-info h2 { color: #fff; }
.contact-info p { color: rgba(245,236,220,.75); font-size: .9rem; }
.contact-info .small { margin-top: 32px; margin-bottom: 0; opacity: .8; }
.mail { font-family: var(--font-title); font-size: 1.2rem; color: #fff; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: var(--sea); padding: 40px; }
.form label { font-size: .75rem; font-weight: 500; color: rgba(245,236,220,.8); display: flex; flex-direction: column; gap: 6px; }
.form .full { grid-column: 1 / -1; }
.form input, .form textarea { font: inherit; font-size: .9rem; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 8px; padding: 12px 16px; outline: none; }
.form input:focus, .form textarea:focus { border-color: var(--sand-dark); }
.form button { font: inherit; font-weight: 600; background: var(--sand); color: var(--sea-deep); border: none; border-radius: 999px; padding: 12px; cursor: pointer; }
.form button:hover { background: #fff; }
/* Rekomendasi */
.recs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.recs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }
.recs h3 { color: var(--sea-deep); margin-top: 16px; font-size: 1.25rem; }
.recs p { font-size: .9rem; margin-bottom: 6px; }
.recs a { font-size: .9rem; font-weight: 500; color: var(--coral); }
/* Footer: senja di Wediombo */
.site-footer { position: relative; overflow: hidden; background: var(--sea-deep); color: rgba(245,236,220,.82); padding-top: 96px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .8fr .8fr 1.5fr; gap: 48px; position: relative; z-index: 2; padding-bottom: 56px; }
.site-footer h3 { font-size: 1.1rem; color: #fff; margin-bottom: 18px; }
.site-footer p { font-size: .92rem; line-height: 1.65; }
.brand-lg { font-size: 1.5rem; color: #fff; margin-bottom: 18px; }
.footer-brand p { max-width: 36ch; margin-bottom: 24px; }
.social { display: flex; gap: 10px; }
.social a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 14px; color: var(--sand); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); transition: background .25s, color .25s, transform .25s; }
.social a:hover { background: var(--sand); color: var(--sea-deep); transform: translateY(-3px); }
.footer-col ul { display: grid; gap: 12px; font-size: .92rem; }
.footer-col a { display: inline-block; text-decoration: none; color: rgba(245,236,220,.78); transition: color .2s, transform .2s; }
.footer-col a:hover { color: #fff; transform: translateX(4px); }
.footer-news p { max-width: 38ch; margin-bottom: 18px; }
.news-form { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 20px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); transition: border-color .2s, background .2s; }
.news-form:focus-within { border-color: var(--sun); background: rgba(255,255,255,.12); }
.news-form input { flex: 1; min-width: 0; font: inherit; font-size: .92rem; color: #fff; background: transparent; border: 0; outline: none; }
.news-form input::placeholder { color: rgba(245,236,220,.55); }
.news-form button { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex: none; border: 0; border-radius: 50%; background: var(--sun); color: var(--sea-deep); cursor: pointer; transition: background .2s, transform .2s; }
.news-form button:hover { background: #fbe0b0; transform: translateX(2px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site-footer a:focus-visible, .site-footer button:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; }
.footer-photo { position: relative; margin: 0; height: clamp(340px, 40vw, 600px); }
.footer-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 75%); mask-image: linear-gradient(to bottom, transparent 0%, #000 75%); }
.footer-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--sea-deep) 0%, rgba(8,47,69,0) 55%, rgba(5,31,48,.9) 100%); }
.footer-credit { position: absolute; left: 0; right: 0; bottom: 22px; z-index: 2; padding: 0 24px; text-align: center; text-wrap: balance; font-size: .85rem !important; line-height: 1.7 !important; color: rgba(245,236,220,.85); }
.footer-credit a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer-credit a:hover { color: #fff; }
@media (prefers-reduced-motion: reduce) {
.nav, .nav-cta, .social a, .footer-col a { transition: none; }
}
/* ===== Responsif ===== */
@media (max-width: 800px) {
h2 { font-size: 1.9rem; }
.two-col, .wide-right, .tentang-intro, .contact, .recs { grid-template-columns: 1fr; }
.activities { grid-template-columns: 1fr 1fr; }
.stats { grid-template-columns: 1fr 1fr; }
.section { padding: 64px 0; }
.tentang-photos { height: 340px; }
.fact-card { height: 380px; }
}
@media (max-width: 520px) {
.activities, .form { grid-template-columns: 1fr; }
.contact-info, .form { padding: 28px; }
}
/* ===== Header & footer responsif ===== */
@media (max-width: 960px) {
.footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
.footer-brand, .footer-news { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
.nav-cta { display: none; }
.nav-toggle { display: inline-flex; }
.menu { position: absolute; top: calc(100% + 10px); left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px; border-radius: 28px; background: var(--sand); color: var(--sea-deep); box-shadow: 0 16px 40px rgba(8,47,69,.28); font-size: 1rem; }
.menu:target { display: flex; }
.menu:target ~ .nav-toggle { display: none; }
.menu:target ~ .nav-close { display: inline-flex; }
.menu a { padding: 14px 18px; border-radius: 18px; }
.menu a:hover { background: rgba(14,74,107,.08); }
.menu-cta { display: block; margin-top: 6px; }
.menu-cta a, .menu-cta a:hover { background: var(--sea); color: #fff; text-align: center; font-weight: 600; }
}
@media (max-width: 700px) {
.site-footer { padding-top: 72px; }
.footer-photo { height: 340px; }
.footer-credit { bottom: 18px; font-size: .8rem !important; }
}
@media (max-width: 520px) {
.footer-grid { grid-template-columns: 1fr 1fr; }
.brand { font-size: 1.02rem; }
}