:root {
    --black: #030303;
    --white: #f8f7ef;
    --pink: #ff427f;
    --green: #8cff32;
    --pixel-font: "Lucida Console", "Cascadia Mono", "Courier New", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    color: var(--white);
    background-color: #050505;
    background-image:
        linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .5)),
        url("assets/doom-background-new.png");
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    font-family: var(--pixel-font);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .02em;
    -webkit-font-smoothing: none;
    text-rendering: geometricPrecision;
}

body::after {
    position: fixed;
    inset: 0;
    z-index: 10;
    pointer-events: none;
    content: "";
    opacity: .1;
    background: repeating-linear-gradient(to bottom, transparent 0 3px, #000 3px 4px);
}

a { color: inherit; }

.site-header,
.page,
footer {
    width: min(980px, 100%);
    margin-inline: auto;
    background: var(--black);
}

.site-header {
    min-height: 72px;
    display: flex;
    align-items: center;
    padding: 0 28px;
    border-bottom: 1px solid #242424;
}

.brand {
    color: var(--white);
    font-size: 17px;
    text-decoration: none;
}

.page {
    min-height: calc(100vh - 120px);
    display: grid;
    grid-template-columns: 165px minmax(0, 1fr);
}

.project-links {
    padding: 50px 22px;
    border-right: 1px solid #242424;
}

.project-links h2 {
    margin: 0 0 25px;
    color: #707070;
    font-size: 11px;
    letter-spacing: .14em;
}

.project-links a {
    position: relative;
    display: block;
    padding-left: 17px;
    color: var(--green);
    font-size: 13px;
    text-decoration: none;
}

.project-links a::before {
    position: absolute;
    left: 0;
    content: ">";
}

.project-links a:hover { color: #b0ff68; }
.project-page { width: 100%; max-width: 790px; margin: 0 auto; padding: 60px 54px 90px; }

.project-preview {
    position: relative;
    overflow: hidden;
    margin: 0;
    border: 2px solid #bdbdbd;
    background: #080808;
    cursor: zoom-in;
}

.project-preview img {
    display: block;
    width: 100%;
    height: auto;
}

.image-lens {
    position: absolute;
    top: 0;
    left: 0;
    width: 180px;
    height: 180px;
    border: 3px solid rgba(255, 255, 255, .9);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    background-image: url("assets/tuinwad-launcher.png");
    background-repeat: no-repeat;
    box-shadow:
        0 0 0 5px rgba(0, 0, 0, .6),
        inset 14px 14px 24px rgba(255, 255, 255, .12),
        inset -14px -14px 24px rgba(0, 0, 0, .3);
    transform: translate(-50%, -50%) scale(.85);
    transition: opacity .12s steps(3, end), transform .12s steps(3, end);
}

.project-preview.is-magnifying .image-lens {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.project-title {
    margin-top: 36px;
    text-align: center;
}

.project-title h1 {
    margin: 0;
    color: var(--white);
    font-size: clamp(27px, 4vw, 39px);
    line-height: 1.15;
}

.project-title p {
    margin: 11px 0 0;
    color: var(--pink);
    font-size: 12px;
}

.story {
    max-width: 590px;
    margin: 62px auto 0;
}

.story h2 {
    margin: 0 0 22px;
    font-size: clamp(19px, 2.4vw, 24px);
    line-height: 1.45;
}

.story p {
    margin: 0;
    color: #d7d7d7;
    font-size: 15px;
    line-height: 1.85;
}

.download-button {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 19px;
    color: #050505;
    background: var(--green);
    font-size: 13px;
    text-decoration: none;
}

.download-button:hover { background: #b0ff68; }

footer {
    padding: 17px 28px;
    border-top: 1px solid #242424;
    color: #666;
    font-size: 10px;
}

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

@media (max-width: 700px) {
    body { background-attachment: scroll; }
    .site-header { padding-inline: 18px; }
    .brand { max-width: 190px; font-size: 14px; }
    .page { display: block; }
    .project-links { padding: 16px 18px; border-right: 0; border-bottom: 1px solid #242424; }
    .project-links h2 { display: none; }
    .project-links a { width: max-content; }
    .project-page { padding: 38px 18px 62px; }
    .story { margin-top: 47px; }
}

@media (hover: none), (pointer: coarse) {
    .project-preview { cursor: default; }
    .image-lens { display: none; }
}
