@font-face {
    font-family: 'NectoMono';
    src: url('/fonts/NectoMono-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #312320;
    --secondary: #3A4D36;
    --surface: #F7DFCA;
    --accent: #CC5500;
}

:root.dark-mode,
body.dark-mode {
    --primary: #9A8B7A;
    --secondary: #6A8B5E;
    --surface: #2A1F1A;
    --accent: #D97B3E;
}

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

html,
body {
    height: 100vh;
    font-family: "NectoMono", monospace;
}

body {
    background-color: var(--surface);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#animated-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    height: 100%;
    width: 100%;
    max-width: 20rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.container>* {
    pointer-events: auto;
}

.container-wide {
    max-width: 35rem;
}

.content-wrapper {
    pointer-events: none;
}

.content-wrapper>* {
    pointer-events: auto;
}

.content-wrapper {
    position: relative;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
}

.talyam-header {
    position: absolute;
    top: -3rem;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--surface);
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 0.25rem 0.75rem;
    pointer-events: auto;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.talyam-header h1 {
    font-size: 1.125rem;
    font-weight: normal;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    will-change: transform;
}

.talyam-header h1:hover {
    transform: scale(1.1);
    letter-spacing: 0.2em;
}

.welcome-header {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--surface);
    color: var(--secondary);
    border: 1px solid var(--accent);
    padding: 0.25rem 0.75rem;
    pointer-events: auto;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.welcome-header h1 {
    font-size: 1.125rem;
    font-weight: normal;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    will-change: transform;
}

.welcome-header h1:hover {
    transform: scale(1.1);
    letter-spacing: 0.2em;
}



.links-box {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background-color: var(--surface);
    border: 1px solid var(--accent);
    padding: 1.5rem 1.5rem 1.25rem;
    text-align: center;
    font-size: 1.5rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    width: 100%;
    overflow: hidden;
}

.links-box a {
    color: var(--secondary);
    text-decoration: none;
    transition: filter 150ms, letter-spacing 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    white-space: nowrap;
}

.links-box a:hover {
    filter: blur(1.5px);
    letter-spacing: 0.1em;
}

.bottom-row {
    display: flex;
    gap: 0.5rem;
    height: 2rem;
}

.button-wrapper {
    position: relative;
    flex-grow: 1;
    display: flex;
}

.button-wrapper a {
    width: 100%;
}

.expand-menu {
    display: none;
}

.button-wrapper:nth-child(3) .expand-menu {
    justify-content: center;
}

.expand-menu-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.expand-menu-label {
    color: var(--secondary);
}

.expand-menu-value {
    color: var(--primary);
    font-weight: bold;
}

.expand-menu-icon {
    width: 14px;
    height: 14px;
    color: var(--accent);
    fill: currentColor;
    flex-shrink: 0;
}

.bottom-row a,
.bottom-row .button,
.social-button {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--surface);
    color: var(--secondary);
    border: 1px solid var(--accent);
    text-decoration: none;
    font-size: 1.25rem;
    aspect-ratio: 1;
    padding: 0;
    margin: 0;
    gap: 0;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, flex 0.4s ease-in-out, aspect-ratio 0.4s ease-in-out, padding 0.4s ease-in-out, gap 0.4s ease-in-out;
    position: relative;
    overflow: hidden;
}

.social-button {
    width: 100%;
    font-family: "NectoMono", monospace;
}

.social-button svg {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-button .button-text {
    opacity: 0;
    font-size: 0.875rem;
    font-family: "NectoMono", monospace;
    font-weight: 600;
    white-space: nowrap;
    width: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateZ(0);
    backface-visibility: hidden;
    transition: width 0.3s ease-in, opacity 0.3s ease-in;
    color: var(--secondary);
}

.social-button:hover svg,
.social-button:hover .button-text {
    filter: blur(1.5px);
}

@keyframes smoothReveal {
    from {
        width: 0;
        opacity: 0;
    }

    to {
        width: 100%;
        opacity: 1;
    }
}







.easter-egg {
    position: fixed;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    z-index: 10;
    pointer-events: none;
}

.easter-egg-text {
    position: fixed;
    top: 30px;
    right: 30px;
    font-size: 1.25rem;
    color: var(--secondary);
    background-color: var(--surface);
    border: 1px solid var(--accent);
    padding: 0.25rem 0.75rem;
    opacity: 0;
    pointer-events: auto;
    transition: opacity 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    z-index: 11;
    user-select: none;
    -webkit-user-select: none;
    text-decoration: none;
}

.easter-egg-text span {
    transition: filter 150ms;
}

.easter-egg-text:hover span {
    filter: blur(1.5px);
}

.theme-toggle-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
    height: 200px;
    z-index: 10;
    pointer-events: none;
}

.theme-toggle-button {
    position: fixed;
    top: 30px;
    left: 30px;
    font-size: 1.5rem;
    color: var(--secondary);
    background-color: var(--surface);
    border: 1px solid var(--accent);
    padding: 0.25rem 0.5rem;
    min-width: 3rem;
    text-align: center;
    opacity: 0;
    pointer-events: auto;
    transition: opacity 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    z-index: 11;
    user-select: none;
    -webkit-user-select: none;
    cursor: pointer;
}

.theme-toggle-button:hover {
    opacity: 1;
}

.theme-toggle-button span {
    transition: filter 150ms;
}

.theme-toggle-button:hover span {
    filter: blur(1.5px);
}

.theme-toggle-hint {
    position: fixed;
    top: 30px;
    left: 90px;
    font-size: 0.875rem;
    color: var(--secondary);
    background-color: var(--surface);
    border: 1px solid var(--accent);
    padding: 0.25rem 0.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    z-index: 11;
    user-select: none;
    -webkit-user-select: none;
    white-space: nowrap;
    font-family: "NectoMono", monospace;
}

.theme-toggle-button:hover+.theme-toggle-hint {
    opacity: 1;
}

.theme-hint-bottom {
    font-size: 0.7rem;
    color: var(--secondary);
    text-align: center;
    opacity: 0.25;
    margin-top: 0.5rem;
    font-family: "NectoMono", monospace;
    transition: opacity 0.3s ease, color 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
}

.theme-hint-bottom:hover {
    opacity: 0.5;
}

.easter-egg:hover~.easter-egg-text {
    opacity: 1;
}



@media (max-width: 640px) {
    .content-wrapper {
        margin: 0 2rem;
    }
}

.about-article {
    background-color: var(--surface);
    border: 1px solid var(--accent);
    padding: 2rem;
    color: var(--primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    font-family: "NectoMono", monospace;
    position: relative;
    z-index: 2;
    width: 100%;
    animation: fadeSlideIn 0.6s ease-out;
}

.about-article h1 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 1.25rem;
    font-weight: normal;
}

.about-article p {
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.about-article p:last-child {
    margin-bottom: 0;
}

.home-button {
    width: 100%;
    position: relative;
    z-index: 2;
}

.home-button span {
    transition: filter 150ms, letter-spacing 0.3s ease;
}

.home-button:hover span {
    filter: blur(0.3px);
    letter-spacing: 0.05em;
}

.about-container {
    position: relative;
    z-index: 1;
    height: 100%;
    width: 100%;
    max-width: 26rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.about-bottom {
    display: flex;
    gap: 0.5rem;
    height: 2rem;
    animation: fadeSlideIn 0.6s ease-out 0.15s backwards;
}

.about-home-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--surface);
    color: var(--secondary);
    border: 1px solid var(--accent);
    text-decoration: none;
    font-size: 1.25rem;
    padding: 0;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    position: relative;
    z-index: 2;
}

.about-home-button span {
    transition: filter 150ms, letter-spacing 0.3s ease;
}

.about-home-button:hover span {
    filter: blur(1.5px);
    letter-spacing: 0.05em;
}


@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyfr ames fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}