/* ============================================================
   style.css — viaav lite
   ============================================================ */


/* ── Fonts ── */
@font-face {
    font-family: 'JM';
    src: url('../fonts/JetBrainsMono-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'JM';
    src: url('../fonts/JetBrainsMono-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}


/* ── Animation ── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
::selection { background: var(--text); color: var(--bg); }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--muted); border-radius: 999px; }
:focus-visible { outline: 1.5px solid var(--muted); outline-offset: 3px; border-radius: 10px; }

/* ── noscript warning ── */
.noscript-warn {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 2px solid var(--muted);
    border-radius: var(--radius);
    padding: 0.65rem 0.85rem;
    margin: 0.75rem auto;
    max-width: var(--max-width);
}

/* ── Variables: Dark (default) ── */
:root {
    --bg:        #0e0e0f;
    --surface:   #161618;
    --border:    #2a2a2e;
    --text:      #e8e8e8;
    --muted:     #77777f;
    --highlight: #ffffff;
    --hover-bg:  #1c1c1f;
    --hover-bd:  #4a4a52;
    --footer:    #383840;
    --mono:      'JM', 'Courier New', monospace;
    --radius:    10px;
    --max-width: 520px;
    --trans:     0.2s ease;
}

/* ── Variables: Light ── */
:root.light {
    --bg:        #f4f4f5;
    --surface:   #ffffff;
    --border:    #e2e2e5;
    --text:      #1a1a1a;
    --muted:     #888892;
    --highlight: #000000;
    --hover-bg:  #f0f0f2;
    --hover-bd:  #c0c0c8;
    --footer:    #b0b0b8;
}


/* ── Transitions ── */
body, a, button, .port-card, .link-icon, .social-pill {
    transition: background-color var(--trans), border-color var(--trans), color var(--trans);
}


/* ── Body ── */
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--mono);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.25rem;
    overscroll-behavior-y: contain;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Ccircle cx='6' cy='6' r='4' fill='%23111113' stroke='%23ffffff' stroke-width='1.5'/%3E%3C/svg%3E") 6 6, auto;
}

a, button, [role="button"] {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Ccircle cx='6' cy='6' r='4' fill='%23111113' stroke='%23ffffff' stroke-width='1.5'/%3E%3Ccircle cx='6' cy='6' r='1.5' fill='%23ffffff'/%3E%3C/svg%3E") 6 6, pointer;
}


/* ── Card / page wrapper ── */
.card {
    width: 100%;
    max-width: var(--max-width);
    display: flex;
    flex-direction: column;
    gap: 1.85rem;
    animation: fadeIn 0.3s ease;
}


/* ── Theme toggle ── */
.toggle-btn {
    position: fixed;
    top: 1.1rem;
    right: 1.1rem;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Ccircle cx='6' cy='6' r='4' fill='%23111113' stroke='%23ffffff' stroke-width='1.5'/%3E%3Ccircle cx='6' cy='6' r='1.5' fill='%23ffffff'/%3E%3C/svg%3E") 6 6, pointer;
    font-size: 0.95rem;
    color: var(--muted);
}
.toggle-btn:hover { border-color: var(--hover-bd); color: var(--text); }


/* ── Divider ── */
.divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border) 20%, var(--border) 80%, transparent);
}


/* ── Section label ── */
.section-label {
    font-size: 0.65rem;
    color: var(--text);
    font-weight: 600;
    opacity: 0.65;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}


/* ── Footer ── */
.footer {
    font-size: 0.62rem;
    color: var(--footer);
    text-align: center;
    letter-spacing: 0.06em;
    padding-top: 0.25rem;
}


/* ── Header ── */
.handle {
    font-size: 0.72rem;
    color: var(--muted);
    letter-spacing: 0.1em;
    margin-bottom: 0.3rem;
}
.name {
    font-size: clamp(2rem, 8vw, 2.75rem);
    font-weight: 700;
    color: var(--highlight);
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.subheading {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 0.4rem;
    letter-spacing: 0.03em;
}
.pgp {
    font-size: 0.58rem;
    color: var(--muted);
    letter-spacing: 0.06em;
    margin-top: 0.3rem;
    display: block;
    opacity: 0.4;
}


/* ── Intro ── */
.intro { font-size: 0.88rem; color: var(--muted); line-height: 1.8; }
.intro strong { color: var(--text); font-weight: 500; }


/* ── Social pills ── */
.socials { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.social-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.9rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.68rem;
    color: var(--muted);
    letter-spacing: 0.05em;
}
.social-pill:hover { border-color: var(--hover-bd); color: var(--text); background: var(--hover-bg); }


/* ── Profile link rows ── */
.links { display: flex; flex-direction: column; gap: 0.45rem; }
.link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 2px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
}
.link-item:hover { border-color: var(--hover-bd); border-left-color: var(--highlight); background: var(--hover-bg); }
.link-left { display: flex; align-items: center; gap: 0.85rem; }
.link-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 7px;
    flex-shrink: 0;
}
.link-icon img { width: 16px; height: 16px; opacity: 0.5; transition: opacity var(--trans); }
.link-item:hover .link-icon img { opacity: 1; }
.link-info { display: flex; flex-direction: column; gap: 0.05rem; }
.link-name { font-size: 0.87rem; font-weight: 500; color: var(--text); }
.link-handle { font-size: 0.68rem; color: var(--muted); }
.link-arrow { color: var(--border); font-size: 0.9rem; transition: color var(--trans), transform var(--trans); }
.link-item:hover .link-arrow { color: var(--muted); transform: translateX(2px); }


/* ── Subpage cards ── */
.port-grid { display: block; columns: 2; column-gap: 0.45rem; }
.port-card {
    display: flex;
    break-inside: avoid;
    margin-bottom: 0.45rem;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.85rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
}
.port-card:hover { border-color: var(--hover-bd); background: var(--hover-bg); }
.port-title { font-size: 0.87rem; font-weight: 500; color: var(--text); }
.port-desc { font-size: 0.68rem; color: var(--muted); margin-top: 0.15rem; }


/* ── 404 page ── */
.card--center   { justify-content: center; min-height: 60vh; }
.subheading--mt { margin-top: 0.75rem; }
.name--sm      { font-size: clamp(1.5rem, 6vw, 2rem); }
.back-link     {
    font-size: 0.78rem;
    color: var(--muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color var(--trans);
}
.back-link:hover { color: var(--text); }


/* ── Scroll to top ── */
.scroll-top {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--muted);
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Ccircle cx='6' cy='6' r='4' fill='%23111113' stroke='%23ffffff' stroke-width='1.5'/%3E%3Ccircle cx='6' cy='6' r='1.5' fill='%23ffffff'/%3E%3C/svg%3E") 6 6, pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, color var(--trans), border-color var(--trans);
    z-index: 99;
}
.scroll-top.visible  { opacity: 1; pointer-events: auto; }
.scroll-top:hover    { color: var(--text); border-color: var(--hover-bd); }


/* ── WIP cards ── */
.port-card--wip {
    position: relative;
    opacity: 0.5;
    cursor: not-allowed;
    user-select: none;
}
.port-card--wip:hover {
    border-color: var(--border);
    background: var(--surface);
}
.wip-badge {
    position: absolute;
    top: 0.55rem;
    right: 0.65rem;
    font-size: 0.55rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    opacity: 0.7;
}


/* ── Toast notification ── */
.toast {
    position: fixed;
    bottom: 4.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.68rem;
    color: var(--muted);
    padding: 0.5rem 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
    z-index: 200;
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ── Mobile ── */
@media (max-width: 400px) {
    .link-item, .port-card { padding: 0.75rem 0.85rem; }
    .social-pill { font-size: 0.65rem; padding: 0.32rem 0.75rem; }
}

