/* Banish Studios: black and white, as the logo is. Michroma echoes the wordmark's wide letters. */
:root {
  --black: #000;
  --ink: #0a0a0b;
  --line: rgba(255, 255, 255, .12);
  --white: #fff;
  --text: #c9c9cc;
  --muted: #8a8a90;

  --wide: "Michroma", "Eurostile", "Arial Black", sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--black); color: var(--text);
  font: 400 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--white); text-decoration-thickness: 1px; text-underline-offset: 4px; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; }
h1, h2 { margin: 0; color: var(--white); font-weight: 400; }
h2 { font: 400 clamp(26px, 3.4vw, 40px)/1.25 var(--wide); letter-spacing: -.01em; margin-bottom: 24px; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 12vw, 150px) 0; border-top: 1px solid var(--line); }
.label { font: 400 12px/1 var(--wide); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-bottom: 40px; }

/* Navigation */
.nav { position: fixed; inset: 0 0 auto; z-index: 10; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.nav.scrolled { background: rgba(0, 0, 0, .88); backdrop-filter: blur(10px); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; height: 68px; gap: 24px; }
.nav-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.nav-brand img { height: 30px; width: auto; }
.nav-brand span { font: 400 13px/1 var(--wide); letter-spacing: .24em; text-transform: uppercase; color: var(--white); white-space: nowrap; }
.nav nav { margin-left: auto; }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav ul a { font: 400 11px/1 var(--wide); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.nav ul a:hover { color: var(--white); }
@media (max-width: 560px) {
  .nav-brand span { display: none; }
  .nav ul { gap: 18px; }
}

/* Hero: the logo, with light passing over the mark */
.hero {
  min-height: max(620px, 100svh); display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 110px var(--gutter) 80px; position: relative;
  background: radial-gradient(700px 520px at 50% 42%, rgba(255, 255, 255, .06), transparent 70%), var(--black);
}
.logo { display: flex; flex-direction: column; align-items: center; gap: clamp(28px, 4vh, 44px); margin-bottom: clamp(36px, 6vh, 60px); }
.mark { position: relative; display: block; width: clamp(96px, 13vh, 150px); }
.mark img { width: 100%; opacity: .92; }
.mark::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .95) 50%, transparent 62%) no-repeat;
  background-size: 260% 100%; background-position: 140% 0;
  -webkit-mask: url("assets/mark.png") center / contain no-repeat; mask: url("assets/mark.png") center / contain no-repeat;
  mix-blend-mode: screen; filter: blur(.5px) drop-shadow(0 0 12px rgba(255, 255, 255, .8));
  animation: sweep 7s ease-in-out 1s infinite;
}
@keyframes sweep { 0% { background-position: 140% 0; } 30%, 100% { background-position: -40% 0; } }
.wordmark { width: clamp(260px, 44vw, 520px); }
.hero-line { font: 400 clamp(13px, 1.6vw, 15px)/1.4 var(--wide); letter-spacing: .28em; text-transform: uppercase; color: var(--text); margin-bottom: 18px; }
.hero-next { color: var(--muted); text-decoration: none; font-size: 16px; }
.hero-next em { color: var(--white); font-style: normal; }
.hero-next:hover { color: var(--white); }
.hero-next span { display: inline-block; margin-left: 6px; animation: nudge 2s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }

/* Games */
.games { background: var(--ink); }
.game { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.game-media { position: relative; display: block; overflow: hidden; border: 1px solid var(--line); background: #110f14; }
.game-media video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .8s, filter .8s; }
.game-media:hover video { transform: scale(1.03); filter: brightness(1.1); }
.game-status {
  position: absolute; left: 16px; top: 16px; padding: 7px 10px;
  font: 400 10px/1 var(--wide); letter-spacing: .22em; text-transform: uppercase; color: var(--white);
  background: rgba(0, 0, 0, .7); border: 1px solid rgba(255, 255, 255, .25);
}
/* The game's own title face, Cinzel, and its amber */
.game-title { font: 400 clamp(38px, 4.6vw, 58px)/1 "Cinzel", Georgia, serif; letter-spacing: .03em; text-transform: uppercase; color: #eee5cc; margin-bottom: 14px; }
.game-tagline { color: #e4bf72; font-weight: 500; font-size: 19px; margin-bottom: 22px; }
.game-meta { font: 400 11px/1.6 var(--wide); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 26px 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; padding: 15px 22px; text-decoration: none; white-space: nowrap;
  font: 400 11px/1 var(--wide); letter-spacing: .2em; text-transform: uppercase; transition: background .2s, color .2s, border-color .2s;
}
.btn-solid { background: var(--white); color: var(--black); border: 1px solid var(--white); }
.btn-solid:hover { background: transparent; color: var(--white); }
.btn-line { border: 1px solid rgba(255, 255, 255, .35); color: var(--white); }
.btn-line:hover { border-color: var(--white); }
@media (max-width: 860px) { .game { grid-template-columns: 1fr; } }

/* About and contact */
.about-grid { display: grid; grid-template-columns: 220px 1fr; gap: 40px; }
.about-grid > div { max-width: 680px; }
.about-grid .label { margin-top: 12px; }
.email { font: 400 clamp(17px, 2.4vw, 24px)/1.4 var(--wide); margin: 10px 0 34px; word-break: break-word; }
.email a { text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .35); }
.email a:hover { border-color: var(--white); }
.press-note { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; gap: 0; } }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 44px 0 52px; }
.footer-inner { display: flex; align-items: center; gap: 20px; }
.footer img { height: 34px; width: auto; opacity: .7; }
.footer p { margin: 0; color: var(--muted); font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mark::after, .hero-next span { animation: none; }
  .mark::after { display: none; }
  .game-media video { transition: none; }
}
