114 lines
2.9 KiB
CSS
114 lines
2.9 KiB
CSS
*, *::before, *::after { box-sizing: border-box; }
|
|
|
|
html, body { overflow-x: clip; }
|
|
|
|
html {
|
|
overflow-anchor: none;
|
|
color-scheme: light;
|
|
background: var(--color-paper);
|
|
scrollbar-color: var(--color-edge) var(--color-paper-2);
|
|
scroll-padding-top: var(--space-3xl);
|
|
-webkit-text-size-adjust: 100%;
|
|
text-size-adjust: 100%;
|
|
}
|
|
|
|
body {
|
|
position: relative;
|
|
isolation: isolate;
|
|
min-height: 100dvh;
|
|
margin: 0;
|
|
color: var(--color-ink);
|
|
font-family: var(--font-body);
|
|
font-size: var(--text-md);
|
|
line-height: 1.55;
|
|
font-synthesis: none;
|
|
-webkit-font-smoothing: antialiased;
|
|
caret-color: var(--color-accent);
|
|
}
|
|
|
|
/* Kanvas: dua lapis gradien linear sangat tipis; tanpa lingkaran cahaya di belakang kaca */
|
|
body::before {
|
|
content: "";
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: -1;
|
|
pointer-events: none;
|
|
background:
|
|
linear-gradient(118deg, var(--color-wash) 0%, transparent 46%),
|
|
linear-gradient(242deg, var(--color-wash-2) 0%, transparent 40%),
|
|
linear-gradient(200deg, var(--color-paper) 0%, var(--color-paper-2) 54%, var(--color-paper-3) 100%);
|
|
}
|
|
|
|
::selection {
|
|
background: color-mix(in oklab, var(--color-gold) 45%, transparent);
|
|
color: var(--color-ink);
|
|
}
|
|
|
|
:focus-visible {
|
|
outline: 2px solid var(--color-focus);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
a {
|
|
color: inherit;
|
|
text-decoration-thickness: 1px;
|
|
text-underline-offset: 0.16em;
|
|
}
|
|
|
|
h1, h2, h3, h4 {
|
|
margin: 0;
|
|
font-family: var(--font-display);
|
|
font-weight: 500;
|
|
font-synthesis: none;
|
|
letter-spacing: var(--tracking-display);
|
|
overflow-wrap: break-word;
|
|
min-width: 0;
|
|
text-wrap: balance;
|
|
}
|
|
|
|
h1 { font-size: var(--text-display-s); line-height: 1.15; max-width: 32ch; }
|
|
h2 { font-size: var(--text-section); line-height: 1.25; max-width: 30ch; }
|
|
h3 { font-size: var(--text-title); line-height: 1.3; max-width: 40ch; }
|
|
|
|
@media (width >= 40rem) {
|
|
h1 { font-size: var(--text-display); }
|
|
}
|
|
|
|
p { margin: 0; text-wrap: pretty; }
|
|
p:not([class]) { max-width: 65ch; }
|
|
|
|
ul, ol { margin: 0; padding: 0; list-style: none; }
|
|
dl, dd, figure { margin: 0; }
|
|
|
|
img, video { max-width: 100%; height: auto; display: block; }
|
|
svg { display: block; }
|
|
[hidden] { display: none !important; }
|
|
[x-cloak] { display: none !important; }
|
|
|
|
button, input, select, textarea { font: inherit; color: inherit; }
|
|
button { cursor: pointer; }
|
|
|
|
.num, td.num, .figure { font-variant-numeric: tabular-nums; }
|
|
|
|
.visually-hidden {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
overflow: hidden;
|
|
clip-path: inset(50%);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* Tampilkan elemen khusus JS hanya bila skrip jalan (kelas .js dipasang di <html>) */
|
|
.js-only { display: none; }
|
|
.js .js-only { display: revert; }
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
*:not(.keep-motion), *:not(.keep-motion)::before, *:not(.keep-motion)::after {
|
|
animation-duration: 0.01ms !important;
|
|
animation-iteration-count: 1 !important;
|
|
transition-duration: 0.01ms !important;
|
|
scroll-behavior: auto !important;
|
|
}
|
|
}
|