@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    color-scheme: dark;

    --background: #050505;
    --foreground: #f5f5f5;
    --secondary: #a8a8a8;
    --muted: #777;
    --border: rgba(255, 255, 255, 0.18);
    --border-hover: rgba(255, 255, 255, 0.8);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--background);
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background: var(--background);
    color: var(--foreground);
    font-family: "JetBrains Mono", monospace;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

body.is-leaving .home,
body.is-leaving .page {
    opacity: 0;
    transform: translateY(-8px);
    transition:
        opacity 180ms ease,
        transform 180ms ease;
}

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

.home,
.page {
    animation: page-in 500ms ease both;
}

@keyframes page-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

.contacts {
    width: min(100%, 680px);
    margin: 0;
}

.contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    color: var(--secondary);
    font-size: 14px;
    line-height: 1.8;
}

.contact-item dt {
    min-width: 90px;
    color: var(--foreground);
}

.contact-item dd {
    margin: 0;
}

.home {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(150px, 220px));
    gap: 16px;
    width: min(100%, 460px);
}

.menu-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 96px;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--foreground);
    font-size: 15px;
    transform: translateY(0);
    transition:
        color 500ms cubic-bezier(0.22, 1, 0.36, 1),
        border-color 500ms cubic-bezier(0.22, 1, 0.36, 1),
        background-color 500ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 600ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.menu-item span {
    position: relative;
    z-index: 2;
}

.menu-item::before {
    position: absolute;
    z-index: 1;
    inset: -70px;
    background:
        radial-gradient(
            circle at center,
            rgba(255, 255, 255, 0.13) 0%,
            rgba(255, 255, 255, 0.055) 28%,
            rgba(255, 255, 255, 0.018) 48%,
            transparent 72%
        );
    content: "";
    opacity: 0;
    transform: scale(0.72);
    transition:
        opacity 600ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 850ms cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.menu-item::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow:
        0 0 18px rgba(255, 255, 255, 0.13),
        0 0 42px rgba(255, 255, 255, 0.07);
    content: "";
    opacity: 0;
    transform: scale(0.96);
    transition:
        opacity 600ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.menu-item:hover,
.menu-item:focus-visible,
.menu-item.is-touch-active {
    border-color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.028);
    box-shadow:
        inset 0 0 22px rgba(255, 255, 255, 0.035),
        0 0 10px rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
    outline: none;
}

.menu-item:hover::before,
.menu-item:focus-visible::before,
.menu-item.is-touch-active::before {
    opacity: 1;
    transform: scale(1);
}

.menu-item:hover::after,
.menu-item:focus-visible::after,
.menu-item.is-touch-active::after {
    opacity: 1;
    transform: scale(1);
}

.menu-item:active {
    transform: translateY(-1px) scale(0.99);
}

.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 32px;
}

.back-link {
    align-self: flex-start;
    color: var(--muted);
    font-size: 13px;
    transition:
        color 180ms ease,
        transform 180ms ease;
}

.back-link:hover,
.back-link:focus-visible {
    color: var(--foreground);
    transform: translateX(-3px);
    outline: none;
}

.page h1 {
    margin: 54px 0 0;
    color: var(--foreground);
    font-size: clamp(22px, 4vw, 36px);
    font-weight: 400;
}

.page-center {
    display: flex;
    flex: 1;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    padding: 60px 0;
}

.thoughts,
.page-content {
    width: min(100%, 760px);
}

.thought {
    padding: 0 0 36px;
    margin: 0 0 36px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.thought:last-child {
    margin-bottom: 0;
}

.thought h2 {
    margin: 0 0 16px;
    color: var(--foreground);
    font-size: 16px;
    font-weight: 400;
}

.thought p,
.text {
    max-width: 680px;
    margin: 0 0 24px;
    color: var(--secondary);
    font-size: 14px;
    line-height: 1.8;
}

.text:last-child {
    margin-bottom: 0;
}

.inline-link {
    color: var(--foreground);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.45);
    text-underline-offset: 4px;
    transition:
        opacity 180ms ease,
        text-decoration-color 180ms ease;
}

.inline-link:hover {
    opacity: 0.7;
    text-decoration-color: var(--foreground);
}

.equipment-list {
    width: min(100%, 760px);
}

.equipment-section {
    margin: 0 0 36px;
    padding: 0 0 36px;
    border: none;
}

.equipment-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.equipment-section h2 {
    margin: 0 0 16px;
    color: var(--foreground);
    font-size: 16px;
    font-weight: 400;
    text-transform: lowercase;
}

.equipment-section ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.equipment-section li {
    margin: 0;
    padding: 7px 0;
    color: var(--secondary);
    overflow-wrap: anywhere;
    font-size: 14px;
    line-height: 1.7;
}

.page-center--top {
    align-items: flex-start;
}

@media (max-width: 520px) {
    .home {
        padding: 20px;
    }

    .menu-item {
        min-height: 74px;
    }
}
