* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --background: #080808;
    --white: #ffffff;
    --border: rgba(255, 255, 255, 0.12);
}

html {
    scroll-behavior: smooth;
    scrollbar-width: none;
}

html::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

body {
    min-height: 100vh;
    background: var(--background);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(
        ellipse at 50% 48%,
        rgba(255, 255, 255, 0.045),
        rgba(255, 255, 255, 0.012) 28%,
        transparent 65%
    );
}

.navbar {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6%;
    border-bottom: 1px solid var(--border);
    background: rgba(8, 8, 8, 0.85);
    opacity: 0;
    animation: fadeIn 1.2s ease forwards;
}

.logo {
    display: inline-flex;
    align-items: baseline;
    color: #fff;
    text-decoration: none;
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -0.075em;
    white-space: nowrap;
}

.logo-s {
    display: inline-block;
    margin-right: 0.015em;
    font-family: 'Allura', cursive;
    font-size: 1.65em;
    font-weight: 400;
    line-height: 0;
    letter-spacing: -0.035em;
    transform: translateY(0.045em) rotate(-7deg);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8), 0 0 18px rgba(255, 255, 255, 0.22);
}

.logo-text {
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.12);
}

.nav-links {
    position: absolute;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 28px;
    transform: translateX(-50%);
}

.nav-links a {
    position: relative;
    color: rgba(255, 255, 255, 0.42);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.04em;
}

.nav-links a:hover,
.nav-links a.is-active {
    color: #f1f1f1;
}

.nav-links a.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -30px;
    width: 28px;
    height: 1px;
    background: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.45);
    transform: translateX(-50%);
}

.nav-account {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.78rem;
}

.nav-user {
    max-width: 140px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.62);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-signout {
    padding: 0;
    color: rgba(255, 255, 255, 0.34);
    background: none;
    border: 0;
    font: 400 0.68rem Inter, sans-serif;
    letter-spacing: 0.06em;
    text-transform: lowercase;
    cursor: pointer;
    transition: color 0.2s ease;
}

.nav-signout:hover {
    color: #fff;
}

.nav-signin {
    padding: 7px 12px;
    color: rgba(255, 255, 255, 0.62);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 99px;
    font: 400 0.68rem Inter, sans-serif;
    letter-spacing: 0.06em;
    text-transform: lowercase;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-signin:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.05);
}

.site-footer {
    position: absolute;
    left: 6%;
    right: 6%;
    bottom: 28px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
}

.site-credits {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.site-credit {
    color: rgba(255, 255, 255, 0.28);
}

.site-copy {
    margin-left: auto;
    white-space: nowrap;
}

.about {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 82px);
    min-height: calc(100svh - 82px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 70px 24px 100px;
    isolation: isolate;
}

.ambient-glow {
    position: absolute;
    z-index: -1;
    width: min(70vw, 650px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015) 35%, transparent 70%);
    filter: blur(18px);
    pointer-events: none;
}

.hero-logo {
    position: relative;
    display: flex;
    align-items: baseline;
    justify-content: center;
    white-space: nowrap;
    font-size: clamp(4.5rem, 13vw, 10rem);
    font-weight: 500;
    letter-spacing: -0.085em;
    line-height: 1.2;
    user-select: none;
    opacity: 0;
    filter: blur(8px);
    animation: titleFadeIn 1.8s ease forwards;
}

.hero-s {
    position: relative;
    display: inline-block;
    margin-right: -0.015em;
    font-family: 'Allura', cursive;
    font-size: 1.55em;
    font-weight: 400;
    line-height: 0.8;
    letter-spacing: -0.045em;
    transform: translateY(0.055em) rotate(-8deg);
    transform-origin: center;
    text-shadow: 0 0 2px #fff, 0 0 8px rgba(255, 255, 255, 0.8), 0 0 22px rgba(255, 255, 255, 0.4), 0 0 55px rgba(255, 255, 255, 0.15);
}

.hero-text {
    display: inline-block;
    color: #fff;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.95), 0 0 12px rgba(255, 255, 255, 0.3), 0 0 32px rgba(255, 255, 255, 0.1);
}

.archive-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 38px;
    padding: 15px 23px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 3px;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.09em;
    text-transform: lowercase;
    text-decoration: none;
    opacity: 0;
    animation: fadeIn 1.2s ease 0.85s forwards;
    transition: background 250ms ease, border-color 250ms ease, box-shadow 250ms ease, color 250ms ease;
}

.archive-button:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.075);
    border-color: rgba(255, 255, 255, 0.65);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.06), 0 0 28px rgba(255, 255, 255, 0.045);
}

.archive-button:focus-visible {
    outline: 1px solid #fff;
    outline-offset: 5px;
}

.button-arrow {
    position: relative;
    display: inline-block;
    width: 15px;
    height: 1px;
    background: currentColor;
}

.button-arrow::after {
    content: "";
    position: absolute;
    top: -3px;
    right: 0;
    width: 6px;
    height: 6px;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
    transform: rotate(45deg);
}

.signin {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 20px;
}

.signin[hidden] {
    display: none;
}

.signin-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 4, 4, 0.72);
    backdrop-filter: blur(9px);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.signin.is-open .signin-backdrop {
    opacity: 1;
}

.signin-card {
    position: relative;
    width: min(360px, 100%);
    padding: 26px clamp(20px, 4vw, 30px) 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: linear-gradient(155deg, #151515, #0a0a0a 58%, #131313);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: translateY(10px) scale(0.985);
    transition: opacity 0.22s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.signin.is-open .signin-card {
    opacity: 1;
    transform: none;
}

.signin-close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    color: rgba(255, 255, 255, 0.45);
    background: transparent;
    border: 0;
    border-radius: 50%;
    font: 300 1.15rem Inter, sans-serif;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.signin-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.signin-kicker {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: lowercase;
}

.signin-title {
    margin: 9px 0 7px;
    color: #fff;
    font-size: 1.9rem;
    font-weight: 400;
    letter-spacing: -0.075em;
}

.signin-copy {
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.76rem;
    line-height: 1.6;
}

.signin-form label {
    display: block;
    margin: 12px 0 6px;
    color: rgba(255, 255, 255, 0.46);
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.signin-form input {
    width: 100%;
    padding: 11px 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 5px;
    font: 400 0.84rem Inter, sans-serif;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.signin-form input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.035);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.055);
}

.signin-form input:-webkit-autofill,
.signin-form input:-webkit-autofill:hover,
.signin-form input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff;
    -webkit-box-shadow: 0 0 0 1000px #0b0b0b inset;
    box-shadow: 0 0 0 1000px #0b0b0b inset;
    caret-color: #fff;
}

.signin-submit {
    width: 100%;
    margin-top: 18px;
    padding: 12px 16px;
    color: #080808;
    background: #fff;
    border: 1px solid #fff;
    border-radius: 4px;
    font: 500 0.74rem Inter, sans-serif;
    letter-spacing: 0.05em;
    text-transform: lowercase;
    cursor: pointer;
    transition: background 0.2s ease;
}

.signin-submit:hover {
    background: #eaeaea;
}

.signin-switch {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 4px;
    color: rgba(255, 255, 255, 0.5);
    background: transparent;
    border: 0;
    font: 400 0.7rem Inter, sans-serif;
    letter-spacing: 0.03em;
    text-align: center;
    cursor: pointer;
    transition: color 0.2s ease;
}

.signin-switch:hover {
    color: #fff;
}

.signin-switch[hidden] {
    display: none;
}

.signin-error {
    margin-top: 12px;
    color: #ffc2c2;
    font-size: 0.7rem;
    line-height: 1.5;
}

.signin-error[hidden] {
    display: none;
}

.signin-error.is-note {
    color: rgba(255, 255, 255, 0.68);
}

body.signin-open {
    overflow: hidden;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes titleFadeIn {
    from {
        opacity: 0;
        filter: blur(8px);
    }
    to {
        opacity: 1;
        filter: blur(0);
    }
}

@media (max-width: 600px) {
    .navbar {
        height: 72px;
        padding: 0 5%;
    }

    .logo {
        font-size: 1.65rem;
    }

    .nav-links {
        gap: 18px;
    }

    .nav-user {
        max-width: 84px;
        font-size: 0.72rem;
    }

    .nav-account {
        gap: 8px;
    }

    .nav-signout {
        font-size: 0.62rem;
    }

    .nav-links a.is-active::after {
        bottom: -26px;
    }

    .about {
        min-height: calc(100vh - 72px);
        min-height: calc(100svh - 72px);
        padding: 60px 20px 70px;
    }

    .hero-logo {
        font-size: clamp(4rem, 14vw, 6rem);
    }

    .archive-button {
        margin-top: 32px;
        padding: 14px 20px;
        font-size: 0.72rem;
    }

    .site-footer {
        left: 5%;
        right: 5%;
        bottom: 18px;
        font-size: 0.56rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        scroll-behavior: auto !important;
        transition: none !important;
    }

    .fetch-dots i {
        animation: fetchJump .9s ease-in-out infinite !important;
    }

    .navbar,
    .hero-logo,
    .archive-button {
        opacity: 1;
        filter: none;
    }
}
