/* oveey.id — halaman link. Tema Midnight Editorial (lihat docs/DESIGN.md). */

@font-face { font-family: 'Satoshi'; src: url('/fonts/satoshi-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('/fonts/satoshi-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('/fonts/satoshi-900.woff2') format('woff2'); font-weight: 900; font-display: swap; }

:root {
    --bg: #050505;
    --surface: #111111;
    --surface-hover: #181818;
    --border: #2a2a2a;
    --text: #ebebeb;
    --text-muted: #a6a6a6;
    --accent: #ff6b50;
    --accent-hover: #e55a40;
    --font: 'Satoshi', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(ellipse at 50% -10%, #1a1a1a 0%, var(--bg) 60%) no-repeat, var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
svg { flex: none; width: 22px; height: 22px; }
::selection { background: var(--accent); color: #000; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap {
    max-width: 460px;
    margin: 0 auto;
    padding: 56px 20px calc(40px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Profil */
.profile { text-align: center; margin-bottom: 40px; }
.mono {
    width: 88px; height: 88px;
    margin: 0 auto 20px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: #fff; color: #000;
    font-size: 36px; font-weight: 900; letter-spacing: -0.04em;
}
h1 { font-size: 2.25rem; font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.bio { margin-top: 10px; color: var(--text-muted); }

/* Tombol link */
.links { display: grid; gap: 12px; }
.link {
    display: flex; align-items: center; gap: 14px;
    min-height: 60px;
    padding: 0 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1rem;
    font-weight: 700;
    transition: background-color .2s, border-color .2s, transform .2s;
}
.label { flex: 1; }
.go { width: 18px; height: 18px; color: var(--text-muted); transition: color .2s, transform .2s; }

a.link:hover { background: var(--surface-hover); border-color: #444; }
a.link:hover .go { color: var(--accent); transform: translate(2px, -2px); }
a.link:active { transform: scale(.98); }

.link.primary { background: var(--accent); border-color: var(--accent); color: #000; }
.link.primary .go { color: #000; }
a.link.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
a.link.primary:hover .go { color: #000; }

.link.disabled { color: var(--text-muted); cursor: not-allowed; background: transparent; border-style: dashed; }
.soon { font-size: .8125rem; font-weight: 500; }

/* Halaman /mods/ */
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 32px; color: var(--text-muted); font-weight: 500; font-size: .9375rem; }
.back svg { width: 18px; height: 18px; }
.back:hover { color: var(--text); }
.page-head { margin-bottom: 28px; }
.page-head .bio { margin-top: 8px; }
.mods { display: grid; gap: 16px; }
.mod {
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1rem;
}
.mod-head { display: flex; align-items: center; gap: 14px; }
.mod-icon { width: 56px; height: 56px; flex: none; border-radius: .5rem; image-rendering: pixelated; background: #000; }
.mod-name { margin: 0; font-size: 1.25rem; font-weight: 900; letter-spacing: -0.02em; line-height: 1.2; }
.mod-ver { margin: 2px 0 0; color: var(--text-muted); font-size: .875rem; font-weight: 500; }
.mod-desc { margin: 16px 0 0; }
.mod-req { margin: 16px 0 0; padding: 0; display: grid; gap: 4px; color: var(--text-muted); font-size: .875rem; }
.mod-req li::before { content: "– "; }
.mod .link { margin-top: 20px; }
.mod-note { margin: 10px 0 0; color: var(--text-muted); font-size: .8125rem; text-align: center; }
.page-head, .mods > li { animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; }
.mods > li { animation-delay: .12s; }

/* Footer */
.foot { margin-top: auto; padding-top: 40px; text-align: center; font-size: .875rem; }
.foot a { color: var(--text-muted); border-bottom: 1px solid var(--border); }
.foot a:hover { color: var(--text); }

/* Animasi masuk: fade + naik halus, berurutan. Hanya CSS; konten tetap terlihat bila animasi mati. */
@keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}
@keyframes pop {
    from { opacity: 0; transform: scale(.85); }
    to   { opacity: 1; transform: none; }
}
.mono  { animation: pop  .7s cubic-bezier(.2, .8, .2, 1) both; }
h1     { animation: rise .7s cubic-bezier(.2, .8, .2, 1) .12s both; }
.bio   { animation: rise .7s cubic-bezier(.2, .8, .2, 1) .22s both; }
.links li { animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; }
.links li:nth-child(1) { animation-delay: .34s; }
.links li:nth-child(2) { animation-delay: .43s; }
.links li:nth-child(3) { animation-delay: .52s; }
.links li:nth-child(4) { animation-delay: .61s; }
.links li:nth-child(5) { animation-delay: .70s; }
.foot  { animation: rise .7s cubic-bezier(.2, .8, .2, 1) .8s both; }

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}
