/* Xakan Production — monochrome, no external resources, no JS. */

:root {
  --bg: #0b0b0c;
  --surface: #121214;
  --border: #26262a;
  --text: #f2f2f3;
  --muted: #9b9ba1;
  --faint: #6c6c72;
  --max: 1080px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Author display rules would otherwise override the hidden attribute. */
[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

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

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

/* Logo file is black; invert to white. Screen blending hides a white
   (inverted: black) background if the PNG is not transparent. */
.logo {
  height: 44px;
  width: auto;
  filter: invert(1);
  mix-blend-mode: screen;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.nav a:hover {
  color: var(--text);
}

/* ---------- Sections ---------- */

.hero {
  padding: clamp(72px, 14vw, 152px) 0 clamp(56px, 10vw, 112px);
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  letter-spacing: -0.035em;
}

.hero p {
  margin-top: 18px;
  max-width: 34ch;
  color: var(--muted);
  font-size: clamp(1.125rem, 2.4vw, 1.375rem);
}

.section {
  padding: clamp(56px, 9vw, 96px) 0;
  border-top: 1px solid var(--border);
}

.section-title {
  margin-bottom: 32px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 720px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- Game cards ---------- */

.game {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(300px, 46vw, 420px);
  padding: clamp(22px, 4vw, 32px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--surface);
}

/* Film grain, shared by both cards. */
.game::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.game::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

/* MeAndMe: two soft, mirrored light sources. */
.game-meandme::before {
  background:
    radial-gradient(circle at 30% 34%, rgba(255, 255, 255, 0.13), transparent 34%),
    radial-gradient(circle at 70% 34%, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(90deg, transparent 49.8%, rgba(255, 255, 255, 0.06) 50%, transparent 50.2%),
    linear-gradient(180deg, #19191c 0%, #0e0e10 70%);
}

/* Night Control: a sliver of light in the dark, faint scanlines. */
.game-nightcontrol::before {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 4px),
    linear-gradient(90deg, transparent 64%, rgba(255, 255, 255, 0.10) 65%, rgba(255, 255, 255, 0.025) 68%, transparent 74%),
    radial-gradient(ellipse 90% 70% at 66% 0%, rgba(255, 255, 255, 0.06), transparent 70%),
    radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(0, 0, 0, 0.7) 100%),
    #08080a;
}

/* Bottom shade so text stays readable over the artwork. */
.game-body {
  position: relative;
}

.game-body::before {
  content: "";
  position: absolute;
  inset: -120px calc(-1 * clamp(22px, 4vw, 32px)) calc(-1 * clamp(22px, 4vw, 32px));
  z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(8, 8, 10, 0.85) 60%);
}

.game h3 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.game-meta {
  margin-top: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.game-tagline {
  margin-top: 14px;
  font-size: 1.125rem;
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  margin-top: 22px;
  padding: 10px 18px;
  border: 1px solid var(--text);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.95rem;
  text-decoration: none;
}

.button:hover {
  background: var(--text);
  color: var(--bg);
}

/* ---------- Project cards ---------- */

.project {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.project h3 {
  font-size: 1.25rem;
}

.project p {
  color: var(--muted);
  font-size: 1rem;
}

.status {
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- About / Contact ---------- */

.lead {
  max-width: 42ch;
  font-size: clamp(1.25rem, 2.8vw, 1.625rem);
  line-height: 1.45;
}

.email {
  font-size: clamp(1.25rem, 4.2vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: underline;
  text-decoration-color: var(--faint);
  text-underline-offset: 6px;
  overflow-wrap: anywhere;
}

.email:hover {
  text-decoration-color: var(--text);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 28px;
  padding-bottom: 28px;
  font-size: 0.9rem;
  color: var(--faint);
}

.site-footer a {
  color: var(--muted);
}

/* ---------- Privacy page ---------- */

.doc {
  padding: clamp(48px, 9vw, 96px) 0;
}

.doc .wrap {
  max-width: 760px;
}

.doc h1 {
  font-size: clamp(2rem, 6vw, 3rem);
}

.doc .updated {
  margin-top: 10px;
  color: var(--faint);
  font-size: 0.95rem;
}

.doc h2 {
  margin-top: 40px;
  font-size: 1.25rem;
}

.doc p,
.doc ul {
  margin: 12px 0 0;
  color: var(--muted);
}

.doc ul {
  padding-left: 1.25em;
}

.doc li + li {
  margin-top: 6px;
}

.back {
  display: inline-block;
  margin-top: 48px;
  color: var(--text);
}
