@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/space-grotesk-var.woff2) format("woff2"); }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/dm-mono-400.woff2) format("woff2"); }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/dm-mono-500.woff2) format("woff2"); }

:root {
  --ink: #f4f1ea;
  --muted: #b3b1bb;
  --deep: #0f0f1a;
  --surface: #191929;
  --line: rgba(244, 241, 234, .14);
  --violet: #7c3aed;
  --violet-bright: #c4adff;
  --lime: #c5dc69;
  --berry: #e2553f;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--deep); color: var(--ink); font-family: "Space Grotesk", system-ui, sans-serif; font-size: 16px; line-height: 1.55; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: auto; }
.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; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 20; padding: 10px 14px; background: var(--lime); color: var(--deep); font-weight: 600; border-radius: 6px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
.eyebrow { margin: 0; color: var(--violet-bright); font: 500 12px/1.2 "DM Mono", monospace; letter-spacing: .14em; text-transform: uppercase; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: rgba(15, 15, 26, .9); backdrop-filter: blur(18px); }
.nav { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; font-size: 18px; letter-spacing: -.03em; text-decoration: none; }
.brand .mark { width: 32px; height: 32px; }
.navlinks { display: flex; gap: 24px; color: var(--muted); font-size: 15px; }
.navlinks a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.navlinks a:hover, .navlinks a:focus-visible, .navlinks a[aria-current="page"] { color: var(--ink); }

/* Buttons */
.button { min-height: 46px; display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; border: 1px solid var(--line); border-radius: 6px; font-weight: 600; font-size: 15px; text-decoration: none; transition: transform .2s, border-color .2s; }
.button:hover, .button:focus-visible { transform: translateY(-2px); border-color: rgba(244, 241, 234, .4); }
.button.primary { border-color: var(--violet); background: var(--violet); color: #fff; }
.button.ghost { background: rgba(255, 255, 255, .04); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 110px 0 100px; }
.hero::before { content: ""; position: absolute; width: 620px; height: 620px; right: -130px; top: -210px; border-radius: 50%; background: radial-gradient(circle, rgba(139, 92, 246, .32), transparent 67%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: center; }
h1 { margin: 20px 0; font-size: clamp(3.2rem, 7.6vw, 7rem); line-height: .9; letter-spacing: -.07em; font-weight: 600; }
h1 em { color: var(--lime); font-style: normal; }
.hero-copy { max-width: 500px; margin: 0; color: var(--muted); font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-art { min-height: 360px; position: relative; display: grid; place-items: center; }
.orbit { width: min(380px, 78vw); aspect-ratio: 1; border: 1px solid rgba(196, 173, 255, .35); border-radius: 50%; transform: rotate(-24deg); position: relative; }
.orbit::before, .orbit::after { content: ""; position: absolute; inset: 12%; border: 1px solid rgba(197, 220, 105, .28); border-radius: 50%; transform: rotate(65deg); }
.orbit::after { inset: 25%; border-color: rgba(244, 241, 234, .22); transform: rotate(-38deg); }
.orbit-core { position: absolute; width: 132px; height: 132px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, rgba(197, 220, 105, .2), transparent 70%); }
.orbit-core .mark { width: 112px; height: 112px; transform: rotate(-8deg); }
.float-label { position: absolute; padding: 8px 11px; border: 1px solid var(--line); background: rgba(25, 25, 41, .85); color: var(--muted); font: 11px "DM Mono", monospace; }
.float-label.one { top: 12%; right: 2%; }
.float-label.two { bottom: 14%; left: 0; color: var(--lime); }

/* Sections */
.section { padding: 88px 0; border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 34px; }
h2 { margin: 10px 0 0; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1; letter-spacing: -.055em; }
.section-note { max-width: 380px; margin: 0; color: var(--muted); font-size: 15px; }
.subhead { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin: 56px 0 20px; padding-top: 22px; border-top: 1px dashed var(--line); }

/* Game cards */
.games { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.game { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.game-art { aspect-ratio: 8 / 5; background: #22223a; overflow: hidden; }
.game-art img { width: 100%; height: 100%; object-fit: cover; }
.game.soon .game-art img { filter: saturate(.75); }
.art-fallback { height: 100%; display: grid; place-items: center; }
.art-fallback .mark { width: 30%; opacity: .5; }
.game-body { flex: 1; display: flex; flex-direction: column; padding: 20px 22px 22px; }
.game-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font: 12px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .06em; }
.tag { color: var(--violet-bright); }
.tag.live { color: var(--lime); }
.game-title { margin: 12px 0 0; font-size: 30px; line-height: 1; letter-spacing: -.05em; }
.game-copy { margin: 12px 0 18px; color: var(--muted); font-size: 15px; }
.game-where { margin: -8px 0 18px; color: var(--muted); font: 12px "DM Mono", monospace; }
.game-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.game-actions:empty { display: none; }

/* One live game: a wide card, picture beside the text. */
@media (min-width: 761px) {
  .games.featured { grid-template-columns: 1fr; }
  .games.featured .game { flex-direction: row; }
  .games.featured .game-art { flex: 0 0 58%; }
  .games.featured .game-body { justify-content: center; padding: 32px 36px; }
  .games.featured .game-title { font-size: 46px; }
  .games.featured .game-actions { margin-top: 6px; }
}

/* Prototypes: many small cards, three across on wide screens. */
@media (min-width: 1000px) { .games.protos { grid-template-columns: repeat(3, 1fr); } }
.games.protos .game-title { font-size: 24px; }

.workshop { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.workshop li { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; }
.w-name { font-weight: 600; font-size: 18px; letter-spacing: -.03em; }
.w-genre { color: var(--violet-bright); font: 12px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .06em; }
.w-copy { color: var(--muted); font-size: 14px; }

.manifesto { display: grid; grid-template-columns: .7fr 1.3fr; gap: 72px; align-items: start; }
.manifesto > p { max-width: 690px; margin: 0; color: var(--muted); font-size: clamp(1.3rem, 2.3vw, 1.9rem); line-height: 1.3; letter-spacing: -.03em; }

/* Text pages */
.page { border-top: 0; padding-top: 72px; }
.prose { max-width: 720px; }
.prose h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.prose h2 { font-size: 1.5rem; letter-spacing: -.03em; margin-top: 40px; }
.prose p { color: #d9d6de; }
.prose a { color: var(--violet-bright); text-underline-offset: 3px; }
.updated { font: 13px "DM Mono", monospace; color: var(--muted) !important; }

/* Footer */
.site-footer { padding: 30px 0 42px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-row p { margin: 0; max-width: 640px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--ink); }

@media (max-width: 860px) {
  .workshop { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .wrap { width: min(var(--max), calc(100% - 32px)); }
  .nav { min-height: 60px; }
  .brand span { font-size: 16px; }
  .navlinks { gap: 14px; font-size: 14px; }
  .hero { padding: 64px 0 56px; }
  .hero-grid, .manifesto { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { display: none; }
  .section { padding: 60px 0; }
  .section-head, .subhead { display: block; }
  .section-note { margin-top: 12px; }
  .games, .workshop { grid-template-columns: 1fr; }
  .footer-row { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 380px) {
  .brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
  .button:hover, .button:focus-visible { transform: none; }
}
