:root {
    --accent-color: #161413;
    --text-color: #f0eeeb;
    --muted-text: rgba(240, 238, 235, 0.7);
    --surface-color: #111013;
    --surface-soft: #1a181b;
}

* {
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

a {
    color: inherit;
    text-decoration: none;
}

a:visited {
    color: inherit;
}

a:hover {
    color: var(--text-color);
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    margin: 0;
    font-family: "JetBrains Mono", "Fira Code", "Source Code Pro", Menlo, Consolas, monospace;
    color: var(--text-color);
    background-color: #0b0a0c;
    line-height: 1.6;
    letter-spacing: 0.01em;
    height: 100%;
    overflow: hidden;
}

.container {
    width: 90%;
    max-width: 720px;
    margin: 0 auto;
}

.pages {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.page {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 0;
    background: radial-gradient(circle at top, rgba(22, 20, 19, 0.85), #0b0a0c 75%);
    opacity: 0;
    pointer-events: none;
    transform: translateX(-10%);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.page:target {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}


.page__content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.page__content a {
    color: var(--text-color);
    padding: 0;
    display: inline;
    text-decoration-line: underline;
    text-decoration-style: dashed;
    text-decoration-color: rgba(240, 238, 235, 0.4);
    text-underline-offset: 6px;
    transition: text-decoration-color 0.2s ease;
}

.page__content a:hover {
    text-decoration-color: rgba(240, 238, 235, 0.7);
}

.page--home .page__content {
    max-width: 520px;
}

.page--home h2 {
    font-size: 2.2rem;
    margin: 0;
}

.page--home p {
    margin: 0;
    color: var(--muted-text);
}

.page--about h3,
.page--contact h3 {
    font-size: 1.6rem;
    margin: 0;
}

.page--about p,
.page--contact p {
    margin: 0;
    color: var(--muted-text);
}

.link {
    margin-top: 4px;
    font-weight: 500;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-list li {
    color: var(--muted-text);
}

.btn {
    align-self: flex-start;
    display: inline-block;
    margin-top: 4px;
    color: var(--text-color);
    font-weight: 600;
    text-decoration-line: underline;
    text-decoration-style: dashed;
    text-decoration-color: rgba(240, 238, 235, 0.4);
    text-underline-offset: 8px;
}

.btn:hover,
.btn:focus {
    text-decoration-color: rgba(240, 238, 235, 0.7);
    outline: none;
}

.btn:active {
    text-decoration-color: rgba(240, 238, 235, 0.85);
}

.btn:visited {
    color: var(--text-color);
}

.btn--back {
    margin-top: 8px;
}

@media (max-width: 600px) {
    .site-header .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .nav {
        gap: 12px;
    }

    .nav a {
        margin-left: 0;
        margin-right: 16px;
    }

    .page {
        padding: 32px 0;
        align-items: center;
    }

    .page__content {
        gap: 16px;
    }

    .page--home h2 {
        font-size: 1.7rem;
    }

}
