/* Atumic Games - studio site. Tokens and type follow D:\MyPortfolio (dark only). */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/manrope-latin.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;

  --bg: #0A0A0B;
  --card: #0F0F11;
  --cover: #16161A;
  --text: #F2F1EE;
  --text-dim: #D6D5D1;
  --text-soft: #AEADA8;
  --muted: #7B7A74;
  --rule: #1C1C1F;
  --rule-strong: #323236;
  --accent: #D9CBB3;

  --sans: "Manrope", ui-sans-serif, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.75, 0.2, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--text); color: var(--bg); }

a { color: inherit; text-decoration: none; }

:where(a, button):focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

img { max-width: 100%; }

.wrap { max-width: 82rem; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 3rem) 5rem; }

/* Head */

.head { padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(2.5rem, 6vw, 4rem); }

.head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: clamp(3rem, 9vw, 6rem);
}

.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--text-soft);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

a.mark:hover { color: var(--text); border-color: var(--accent); }

.links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; }

.links a, .links span {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.links a:hover { color: var(--text); border-color: var(--accent); }

.links a[aria-current="page"] { color: var(--text-dim); border-color: var(--rule-strong); }

.title {
  margin: 0;
  font-size: clamp(2.2rem, 1.2rem + 4vw, 3.75rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.sub {
  margin: 1rem 0 0;
  max-width: 36rem;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  color: var(--text-soft);
}

.facts {
  margin: 1.5rem 0 0;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* Section bar */

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule-strong);
}

.bar h2, .label {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.count { font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.1em; color: var(--muted); }

/* Game */

.games { list-style: none; margin: 0; padding: 1.5rem 0 0; }

.game {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
}

.cover {
  margin: 0;
  background: var(--cover);
  border-bottom: 1px solid var(--rule);
}

.cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1024 / 500;
  object-fit: cover;
}

.game-main { border-right: 1px solid var(--rule); }

.game-body { padding: 1.25rem 1.35rem 1.5rem; }

.game-head { display: flex; align-items: center; gap: 0.9rem; }

.game-icon {
  flex: none;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 12px;
  border: 1px solid var(--rule-strong);
}

.game-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-dim);
}

.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin-top: 0.45rem; }

.tag {
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  padding: 0.12rem 0.35rem;
}

.game-sum { margin: 1rem 0 0; color: var(--text-soft); }

.game-note {
  margin: 1rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--rule);
  font-size: 0.8125rem;
  color: var(--muted);
}

.game-note a { color: var(--text-soft); border-bottom: 1px solid var(--rule-strong); transition: color 0.2s var(--ease), border-color 0.2s var(--ease); }
.game-note a:hover { color: var(--text); border-color: var(--accent); }

.actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }

.button {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  padding: 0.5rem 0.75rem;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

a.button:hover { color: var(--bg); background: var(--accent); border-color: var(--accent); }

.button.soon { color: var(--muted); border-style: dashed; cursor: default; }

.shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  align-content: start;
  margin: 0;
  padding: 1.25rem;
}

.shots img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: var(--cover);
  border: 1px solid var(--rule);
  border-radius: 3px;
}

/* Foot */

.foot { padding: clamp(3rem, 7vw, 5rem) 0 0; }

.email {
  display: inline-block;
  font-size: clamp(1.4rem, 1rem + 2vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--rule-strong);
  transition: border-color 0.2s var(--ease);
  overflow-wrap: anywhere;
}

.email:hover { border-color: var(--accent); }

.foot .label { margin-bottom: 0.75rem; }

.foot .links { margin-top: 1.5rem; }

.note {
  margin: 2.5rem 0 0;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* Policy page */

.doc { max-width: 46rem; }

.doc .title { font-size: clamp(2rem, 1.2rem + 3vw, 3rem); }

.toc {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0.75rem 0 0;
  border-top: 1px solid var(--rule-strong);
  columns: 2 14rem;
  column-gap: 2rem;
}

.toc li { break-inside: avoid; padding: 0.2rem 0; font-size: 0.8125rem; }

.doc .toc a { color: var(--text-soft); border-bottom: 0; transition: color 0.2s var(--ease); }
.doc .toc a:hover { color: var(--text); }

.toc .n { display: inline-block; width: 1.75rem; font-family: var(--mono); font-size: 0.625rem; color: var(--muted); }

.doc section { padding-top: 2.5rem; scroll-margin-top: 1rem; }

.doc h2 {
  margin: 0 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--rule-strong);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.doc h2 .n { color: var(--muted); margin-right: 0.6rem; }

.doc h3 {
  margin: 1.5rem 0 0.4rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-dim);
}

.doc p { margin: 0 0 0.9rem; color: var(--text-soft); }

.doc strong { color: var(--text-dim); font-weight: 600; }

.doc p a, .doc li a, .doc td a {
  color: var(--text-dim);
  border-bottom: 1px solid var(--rule-strong);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
  overflow-wrap: anywhere;
}

.doc p a:hover, .doc li a:hover, .doc td a:hover { color: var(--text); border-color: var(--accent); }

.doc ul { list-style: none; margin: 0 0 0.9rem; padding: 0; }

.doc ul li {
  position: relative;
  padding: 0.3rem 0 0.3rem 1rem;
  font-size: 0.9375rem;
  color: var(--text-soft);
}

.doc ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 5px;
  height: 1px;
  background: var(--muted);
}

.summary {
  margin-top: 2rem;
  padding: 1.1rem 1.25rem 0.4rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 4px;
}

.summary .label { margin-bottom: 0.5rem; color: var(--accent); }

.table-wrap { overflow-x: auto; margin: 0 0 0.9rem; }

.doc table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }

.doc th, .doc td {
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 0.75rem 0.55rem 0;
  border-bottom: 1px solid var(--rule);
  color: var(--text-soft);
}

.doc th {
  font-family: var(--mono);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom-color: var(--rule-strong);
}

.doc td:first-child { color: var(--text-dim); font-weight: 600; width: 32%; }

.ui {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.back { margin-top: 3rem; }

@media (max-width: 900px) {
  .game { grid-template-columns: minmax(0, 1fr); }
  .game-main { border-right: 0; border-bottom: 1px solid var(--rule); }
  .shots { max-width: 32rem; }
}

@media (max-width: 480px) {
  .game-body { padding: 1rem 1rem 1.25rem; }
  .shots { padding: 1rem; gap: 0.6rem; }
  .doc td:first-child { width: 38%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
