:root {
    color-scheme: dark;
    --bg: #080706;
    --ink: #eee9de;
    --muted: #b8b0a1;
    --quiet: #7b7366;
    --line: #332e26;
    --panel: #12100d;
    --panel-dark: #070604;
    --accent: #c2a46d;
    --accent-strong: #dec37f;
    --button: #d2ad62;
    --button-hover: #e0c174;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: #000;
}

body {
    min-height: 100%;
    margin: 0;
    background: #000;
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.45;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    content: "";
    background:
        rgba(8, 7, 6, 0.76),
        repeating-linear-gradient(0deg, rgba(238, 233, 222, 0.018) 0 1px, transparent 1px 7px);
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}

img,
video {
    display: block;
    max-width: 100%;
}

.page-video {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100vw;
    height: 100vh;
    max-width: none;
    object-fit: cover;
    opacity: 0.16;
    pointer-events: none;
    filter: saturate(0.55) sepia(0.12) contrast(1.04) brightness(0.32);
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 99;
    transform: translateY(-150%);
    padding: 8px 10px;
    border: 1px solid var(--accent);
    background: var(--panel-dark);
}

.skip-link:focus {
    transform: translateY(0);
}

.site {
    position: relative;
    z-index: 2;
    width: min(1240px, 100%);
    margin: 0 auto;
    padding: clamp(14px, 3vw, 34px);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.55fr);
    gap: 18px;
    align-items: start;
}

.media-panel,
.intro,
.notes {
    border: 1px solid var(--line);
    background: var(--panel);
}

.media-panel {
    display: grid;
    gap: 10px;
    align-items: start;
    padding: 10px;
}

.inline-trailer,
.screenshot-button img {
    width: 100%;
    height: auto;
    border: 1px solid #262119;
    background: #000;
}

.inline-trailer {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.intro {
    display: flex;
    flex-direction: column;
    padding: clamp(18px, 2.4vw, 28px);
}

.kicker {
    margin: 0 0 12px;
    color: var(--accent);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
}

h1,
h2,
p,
dl {
    margin-top: 0;
}

h1 {
    margin-bottom: 18px;
}

.title-logo {
    width: min(430px, 100%);
    height: auto;
}

h2 {
    margin-bottom: 10px;
    color: var(--accent);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 4px;
    margin-bottom: 22px;
}

.actions a,
.actions button,
.site-links a,
.trailer-close,
.lightbox-close {
    min-height: 44px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 0;
    background: var(--panel-dark);
    color: var(--ink);
    cursor: pointer;
    font-size: 0.84rem;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
}

.actions .buy-link {
    border-color: #e6d6b5;
    background: var(--button);
    color: #120f09;
}

.actions a:hover,
.actions a:focus-visible,
.actions button:hover,
.actions button:focus-visible,
.site-links a:hover,
.site-links a:focus-visible,
.trailer-close:hover,
.trailer-close:focus-visible,
.lightbox-close:hover,
.lightbox-close:focus-visible {
    border-color: var(--accent-strong);
    color: var(--accent-strong);
}

.actions .buy-link:hover,
.actions .buy-link:focus-visible {
    color: #120f09;
    background: var(--button-hover);
}

.specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin-bottom: 0;
    border-top: 1px solid var(--line);
}

.specs div {
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
}

.specs div:nth-child(odd) {
    padding-right: 12px;
}

.specs div:nth-child(even) {
    padding-left: 12px;
    border-left: 1px solid var(--line);
}

.specs dt {
    color: var(--quiet);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.specs dd {
    margin: 2px 0 0;
    color: var(--accent-strong);
    font-weight: 900;
    text-transform: uppercase;
}

.notes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 18px;
    padding: clamp(18px, 2.4vw, 26px);
}

.notes p {
    margin-bottom: 0;
    color: var(--muted);
}

.screenshots {
    display: flex;
    gap: 8px;
    align-items: start;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    padding: 0 0 2px;
}

.screenshot-button {
    flex: 0 0 clamp(210px, 24vw, 300px);
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    scroll-snap-align: start;
}

.screenshot-button img {
    aspect-ratio: 16 / 9;
    height: clamp(96px, 8vw, 128px);
    object-fit: cover;
}

.screenshot-button:hover img,
.screenshot-button:focus-visible img {
    border-color: var(--accent);
}

.footer {
    position: relative;
    z-index: 2;
    display: grid;
    justify-items: center;
    gap: 10px;
    width: min(1240px, 100%);
    margin: 0 auto;
    padding: 0 clamp(14px, 3vw, 34px) 28px;
    color: var(--quiet);
    font-size: 0.78rem;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
}

.site-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.site-links a {
    min-height: auto;
    padding: 8px 10px;
    color: var(--muted);
}

.footer-meta {
    margin: 0;
}

.trailer-slot,
.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: grid;
    place-items: center;
    padding: clamp(14px, 2vw, 24px);
    background: rgba(0, 0, 0, 0.9);
}

.trailer-slot[hidden],
.image-lightbox[hidden] {
    display: none;
}

.trailer-frame,
.lightbox-frame {
    position: relative;
    width: min(100%, 1100px);
}

.trailer-close,
.lightbox-close {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
}

.trailer-frame video {
    width: min(100%, 1100px);
    max-height: 78svh;
    border: 1px solid var(--line);
    background: #000;
}

.lightbox-frame img {
    max-height: 82svh;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    border: 1px solid var(--line);
    background: #000;
}

.lightbox-caption {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.86rem;
    text-align: center;
}

@media (max-width: 900px) {
    .hero,
    .notes {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 560px) {
    .site {
        padding: 10px;
    }

    .specs {
        grid-template-columns: 1fr;
    }

    .screenshot-button {
        flex-basis: min(74vw, 280px);
    }

    .screenshot-button img {
        height: 118px;
    }

    .specs div:nth-child(even),
    .specs div:nth-child(odd) {
        padding-right: 0;
        padding-left: 0;
        border-left: 0;
    }
}

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

    .page-video,
    .inline-trailer {
        opacity: 0.18;
    }
}
