/* Halo Games front page: black, bone white, and the logo's cut running across the page. */
@font-face {
    font-family: "Jost";
    src: url("jost.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --bg: #0b0b0d;
    --ink: #f3efe6;
    --soft: #a9a59c;
    --dim: #6f6c66;
    --line: rgba(243, 239, 230, 0.22);
    --warm: #e9b949;
    --gut: clamp(16px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 300 18px/1.6 "Jost", "Segoe UI", Helvetica, Arial, sans-serif;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 1px solid var(--warm); outline-offset: 4px; }

/* top links */
.top {
    position: absolute; top: 0; right: 0;
    display: flex; gap: clamp(16px, 3vw, 36px);
    padding: 22px var(--gut);
    font-size: 13px; letter-spacing: 0.24em; text-transform: lowercase;
}
.top a { text-decoration: none; color: var(--soft); transition: color .2s; }
.top a:hover { color: var(--ink); }

/* the logo, with its cut carried out to both edges of the screen */
.hero {
    min-height: 100svh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 96px var(--gut) 72px;
    position: relative;
    overflow: hidden;
}
.mark { margin: 0; position: relative; width: min(560px, 74vw); line-height: 0; }
.mark img { width: 100%; height: auto; display: block; }
.mark::before, .mark::after {
    content: ""; position: absolute; top: 49.9%; height: 1px; width: 50vw;
    background: var(--line);
    transform: scaleX(0);
    animation: draw 1.6s cubic-bezier(.2, .7, .1, 1) .25s forwards;
}
.mark::before { right: calc(100% + 4px); transform-origin: right; }
.mark::after { left: calc(100% + 4px); transform-origin: left; }
@keyframes draw { to { transform: scaleX(1); } }

.lede {
    margin: clamp(36px, 7vh, 64px) 0 0;
    text-align: center; color: var(--soft);
    font-size: clamp(16px, 2.1vw, 20px); letter-spacing: 0.04em;
    opacity: 0; animation: rise 1s ease .9s forwards;
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* sections: a small numbered label on the left, the words on the right */
main { max-width: 1180px; margin: 0 auto; padding: 0 var(--gut); }
.block {
    display: grid; grid-template-columns: minmax(150px, 1fr) 3fr; gap: 24px clamp(24px, 5vw, 72px);
    padding: clamp(56px, 9vw, 112px) 0;
    border-top: 1px solid var(--line);
}
.label {
    margin: 0; font-size: 13px; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase;
    color: var(--soft); line-height: 1.4;
}
.label span { display: block; color: var(--dim); margin-bottom: 6px; letter-spacing: 0.1em; }
.body > p { margin: 0 0 1em; color: var(--soft); max-width: 640px; }
.body > p.big, .big {
    color: var(--ink); font-size: clamp(22px, 3vw, 34px); line-height: 1.3; font-weight: 300;
    letter-spacing: -0.005em; max-width: 760px; margin-bottom: 0.9em;
}

/* the game */
.game { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.screen {
    display: block; line-height: 0; position: relative;
    outline: 1px solid var(--line); outline-offset: 10px;
    transition: outline-color .3s;
}
.screen:hover { outline-color: var(--ink); }
.screen video { width: 100%; height: auto; image-rendering: pixelated; background: #1a1410; }
.meta { margin: 0 0 10px; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); }
.game h3 { margin: 0 0 14px; font-size: clamp(30px, 3.6vw, 44px); font-weight: 400; line-height: 1.05; letter-spacing: -0.01em; }
.about p { color: var(--soft); margin: 0 0 1em; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px !important; }
.btn {
    display: inline-block; padding: 12px 20px; text-decoration: none;
    border: 1px solid var(--line); color: var(--ink);
    font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 400;
    transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { border-color: var(--ink); }
.btn.main { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.main:hover { background: var(--warm); border-color: var(--warm); }
.next { margin-top: clamp(40px, 6vw, 64px) !important; display: flex; align-items: center; gap: 14px; }
.dot {
    flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--warm);
    animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: .25; } }

/* find us: big rows divided by hairlines */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows li { border-bottom: 1px solid var(--line); }
.rows a {
    display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: baseline; gap: 20px;
    padding: 20px 0; text-decoration: none;
}
.rows .name { font-size: clamp(28px, 4.4vw, 52px); line-height: 1.1; font-weight: 300; transition: transform .35s cubic-bezier(.2, .7, .1, 1); }
.rows .what { color: var(--dim); font-size: 15px; text-align: right; transition: color .2s; }
.rows .arrow { color: var(--dim); font-size: 22px; transition: color .2s, transform .35s; }
.rows a:hover .name { transform: translateX(14px); }
.rows a:hover .what { color: var(--soft); }
.rows a:hover .arrow { color: var(--warm); transform: translate(3px, -3px); }

.mail { text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color .2s; }
.mail:hover { border-color: var(--warm); }

/* footer */
.foot {
    max-width: 1180px; margin: 0 auto; padding: 56px var(--gut) 48px;
    border-top: 1px solid var(--line);
    color: var(--dim); font-size: 13px; line-height: 1.7;
}
.foot .small { width: 64px; height: auto; opacity: .55; margin-bottom: 18px; display: block; }
.foot p { margin: 0 0 10px; }
.foot .fine a { color: var(--dim); text-decoration: none; }
.foot .fine a:hover { color: var(--soft); }

@media (max-width: 760px) {
    body { font-size: 17px; }
    .top { position: static; justify-content: center; padding-top: 18px; }
    .hero { min-height: 82svh; padding-top: 40px; }
    .mark { width: min(420px, 78vw); }
    .block { grid-template-columns: 1fr; }
    .game { grid-template-columns: 1fr; }
    .screen { outline-offset: 6px; }
    .rows a { grid-template-columns: minmax(0, 1fr) auto; }
    .rows .what { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01s !important; animation-delay: 0s !important; transition: none !important; }
    html { scroll-behavior: auto; }
}
