@font-face {
  font-family: "Hoopline";
  src: url("/assets/Hoopline-Regular.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Rajdhani";
  src: url("/assets/Rajdhani-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Rajdhani";
  src: url("/assets/Rajdhani-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #e8edf6;
  --muted: #a7b0c1;
  --space: #070a10;
  --panel: #101620;
  --panel-bright: #182231;
  --rim: #e44139;
  --ball: #ffca2d;
  --tag: #0094ff;
  --line: #354151;
  --focus: #ffffff;
  --display: "Hoopline", Impact, sans-serif;
  --body: "Rajdhani", "Arial Narrow", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--space); color: var(--ink); scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 1.1rem; font-weight: 500; letter-spacing: .012em; line-height: 1.6; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.shell { width: min(100% - 2rem, 64rem); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); background: rgba(7, 10, 16, .96); }
.nav { min-height: 3.75rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wordmark { color: var(--ball); font-family: var(--display); font-size: clamp(1.8rem, 5vw, 2.55rem); line-height: 1.3; letter-spacing: .03em; text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: .8rem; font-family: var(--display); font-size: .9rem; letter-spacing: .04em; }
.nav-links a { text-decoration: none; white-space: nowrap; }
.nav-links a:hover { color: var(--ball); }
.nav-toggle { display: none; width: 3rem; height: 3rem; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.nav-toggle-icon, .nav-toggle-icon::before, .nav-toggle-icon::after { display: block; width: 1.25rem; height: 2px; background: currentColor; transition: transform .16s ease, background .16s ease; }
.nav-toggle-icon { position: relative; }
.nav-toggle-icon::before, .nav-toggle-icon::after { position: absolute; content: ""; left: 0; }
.nav-toggle-icon::before { top: -.4rem; }
.nav-toggle-icon::after { top: .4rem; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { transform: translateY(.4rem) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { transform: translateY(-.4rem) rotate(-45deg); }

.hero { padding: clamp(2rem, 6vw, 4.2rem) 0 2rem; overflow: hidden; }
.hero-grid { display: grid; gap: 1.5rem; align-items: center; }
.eyebrow, .kicker { color: var(--ball); font-family: var(--display); font-size: .85rem; line-height: 1.5; letter-spacing: .08em; }
h1, h2, h3 { max-inline-size: 100%; margin: 0; font-family: var(--display); font-weight: 400; line-height: 1.5; letter-spacing: .02em; overflow-wrap: anywhere; }
h1 { max-width: 9ch; font-size: clamp(2.8rem, 7vw, 5rem); }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.8rem); }
h3 { font-size: 1.5rem; }
.hero-copy { margin: .9rem 0 1.3rem; max-width: 31rem; font-size: clamp(1.05rem, 2.3vw, 1.25rem); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.maker-line { display: flex; flex-wrap: wrap; gap: .35rem .65rem; margin: 1.1rem 0 0; color: var(--muted); font-size: .92rem; line-height: 1.4; }
.maker-line a { color: var(--ball); font-weight: 600; text-decoration: none; }
.maker-line a:hover { text-decoration: underline; text-underline-offset: .22em; }
.button { display: inline-flex; min-height: 3rem; align-items: center; justify-content: center; padding: .7rem .95rem; border: 1px solid var(--ball); background: var(--ball); color: #101010; font-family: var(--display); font-size: .95rem; line-height: 1.3; letter-spacing: .04em; text-decoration: none; cursor: pointer; }
.button:hover { background: #ffe078; }
.button.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.button.secondary:hover { border-color: var(--ink); }

.video-launch { position: relative; width: min(100%, 18rem); aspect-ratio: 9 / 16; justify-self: center; padding: 0; overflow: hidden; border: 1px solid var(--line); background: #020305; color: white; cursor: pointer; text-align: left; }
.video-launch img { width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.video-launch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 40%, rgba(228, 65, 57, .34)); pointer-events: none; }
.video-launch span { position: absolute; z-index: 1; left: .75rem; bottom: .75rem; padding: .55rem .7rem; background: var(--rim); font-family: var(--display); font-size: .95rem; letter-spacing: .04em; }
.video-frame { width: min(100%, 18rem); aspect-ratio: 9 / 16; justify-self: center; background: #000; }
.video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }

.band { padding: clamp(2.5rem, 7vw, 4.5rem) 0; border-top: 1px solid var(--line); }
.band-copy { max-width: 43rem; font-size: 1.05rem; }
.game-grid, .release-grid { display: grid; gap: 1rem; margin-top: 1.5rem; }
.stat, .post-card, .release-card, .signup { border: 1px solid var(--line); background: var(--panel); }
.stat { padding: 1.15rem; }
.stat strong { display: block; color: var(--ball); font-family: var(--display); font-size: 1.15rem; font-weight: 400; letter-spacing: .04em; }
.post-list { display: grid; gap: 1rem; margin-top: 1.25rem; }
.post-card { padding: 1.2rem; text-decoration: none; }
.post-card:hover { background: var(--panel-bright); border-color: var(--ball); }
.post-card h3 { margin-top: .35rem; }
.post-card h2 { margin-top: .6rem; font-size: clamp(1.55rem, 3.2vw, 2.25rem); line-height: 1.5; }
.post-card p { margin: .7rem 0 0; color: var(--muted); }
.meta { color: var(--muted); font-family: var(--display); font-size: .8rem; letter-spacing: .05em; }
.section-head { display: flex; justify-content: space-between; gap: 1rem; align-items: end; }
.text-link { color: var(--ball); font-family: var(--display); letter-spacing: .06em; text-decoration-thickness: 1px; text-underline-offset: .25em; }

.signup { padding: clamp(1.3rem, 5vw, 2.4rem); margin-top: 1.5rem; }
.signup p { max-width: 37rem; color: var(--muted); }
.signup form { display: grid; gap: .75rem; max-width: 32rem; }
input[type="email"] { min-height: 3.2rem; width: 100%; padding: .75rem .85rem; border: 1px solid var(--line); background: #080d14; color: var(--ink); font: inherit; }
.form-note { min-height: 1.5em; margin: .5rem 0 0; color: var(--muted); font-size: .9rem; }

.page-head { padding: clamp(2.25rem, 5vw, 3.5rem) 0 1.75rem; border-bottom: 1px solid var(--line); }
.page-head p { max-width: 42rem; margin-bottom: 0; font-size: 1.1rem; }
.log-head { background: linear-gradient(110deg, rgba(255, 202, 45, .06), transparent 45%); }
.log-title-row { display: grid; gap: .8rem; align-items: end; }
.log-head h1 { max-width: none; font-size: clamp(2.7rem, 5.5vw, 4rem); }
.log-head .kicker { margin: 0 0 .7rem; }
.log-intro { max-width: 27rem; margin: 0; color: var(--muted); }
.log-band { padding-top: 1.75rem; }
.log-list { margin-top: 0; }
.release-card { padding: 1.25rem; }
.release-card.latest { border-color: var(--ball); background: linear-gradient(135deg, #1b2026, #101620); }
.release-card h2 { margin: .35rem 0 .9rem; font-size: clamp(1.8rem, 5vw, 2.8rem); }
.release-card p { color: var(--muted); }
.font-page { padding-top: clamp(2rem, 5vw, 3.5rem); }
.font-page > p { max-width: 39rem; }
.font-download { margin-top: 2.5rem; padding: clamp(1.25rem, 4vw, 2rem); }
.font-download .button { margin-top: .45rem; }
.download-note { margin: .9rem 0 0; font-size: .95rem; }
.download-list { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; }
.download { display: inline-flex; min-height: 2.7rem; align-items: center; padding: .45rem .75rem; border: 1px solid var(--line); color: var(--ink); font-family: var(--display); letter-spacing: .06em; text-decoration: none; }
.download:hover { border-color: var(--ball); color: var(--ball); }
.platform-icon { width: 1.05rem; height: 1.05rem; margin-right: .45rem; fill: currentColor; }
.platform-icon.linux path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; }
.architecture { margin-left: .5rem; padding-left: .5rem; border-left: 1px solid currentColor; font-family: var(--body); font-size: .9rem; font-weight: 600; letter-spacing: .03em; }
.empty-state { margin-top: 1.5rem; padding: 1.5rem; border: 1px dashed var(--line); color: var(--muted); }

.prose { width: min(100%, 45rem); padding: clamp(2rem, 7vw, 4.5rem) 0; }
.prose h1 { max-width: none; font-size: clamp(2.8rem, 8vw, 4.8rem); }
.prose h2 { margin-top: 2.5rem; font-size: clamp(1.8rem, 5vw, 2.7rem); }
.prose h3 { margin-top: 2rem; }
.prose p, .prose li { font-size: 1.1rem; }
.prose > .hero-copy { color: var(--ball); }
.prose a { color: var(--ball); }
.prose .person-tag { color: var(--tag); font-weight: 600; }
.prose .button { color: #101010; }
.prose img { width: auto; height: auto; max-width: 100%; }
.prose figure { margin: 2rem 0; }
.prose figcaption { margin-top: .5rem; color: var(--muted); font-size: .9rem; }
.roadmap-now { margin-bottom: 2.5rem; padding: clamp(1.2rem, 4vw, 1.8rem); border: 1px solid var(--ball); background: linear-gradient(135deg, rgba(255, 202, 45, .1), var(--panel)); }
.roadmap-now .meta { margin: 0; }
.roadmap-now h2 { margin: .3rem 0 .65rem; }
.roadmap-now p:last-child { margin-bottom: 0; }
.roadmap-list { margin-left: 0; padding-left: 0; list-style-position: inside; }
.roadmap-list li { margin: 1.2rem 0; padding-left: 0; }
.roadmap-list li::marker { color: var(--ball); font-family: var(--display); }
.roadmap-list strong { color: var(--ball); font-weight: 600; }

.site-footer { padding: 2.5rem 0; border-top: 1px solid var(--line); color: var(--muted); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.footer-row p { margin: 0; font-size: .84rem; }
.footer-row a { color: var(--ink); }

@media (min-width: 44rem) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 18rem; gap: clamp(2rem, 6vw, 4rem); }
  .video-launch, .video-frame { justify-self: end; }
  .game-grid { grid-template-columns: repeat(3, 1fr); }
  .release-grid { grid-template-columns: repeat(2, 1fr); }
  .signup form { grid-template-columns: 1fr auto; }
  .signup form .button { min-width: 11rem; }
  .log-title-row { grid-template-columns: minmax(0, 1fr) minmax(16rem, 25rem); gap: 3rem; }
  .log-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 43.99rem) {
  .nav { position: relative; }
  .nav-toggle { display: inline-flex; }
  .nav-links { position: absolute; z-index: 10; top: 100%; right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: .15rem; padding: .75rem 1rem 1rem; border: 1px solid var(--line); border-top: 0; background: rgba(7, 10, 16, .99); }
  .nav-links[data-open="true"] { display: flex; }
  .nav-links a { padding: .55rem 0; }
}
