/* Chocolate Chips Games: studio colours (warm) and Asset 1963 colours (from art/title). */
:root {
  --bg: #f6eddd;
  --text: #2e1d14;
  --muted: #6b4f3e;
  --link: #8a3f16;
  --rule: #e2d3bc;

  --ink: #1b1a1f;
  --cream: #fff1d6;
  --cream-muted: #cfc4b0;
  --red: #e8352b;
  --red-text: #ff7a6e; /* the title red, lightened for small text on ink */

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1e1510;
    --text: #f3e6d3;
    --muted: #c4ad97;
    --link: #f0a46c;
    --rule: #3a2a20;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.6 var(--sans);
}

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

a { color: var(--link); text-underline-offset: 0.15em; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }

.wrap {
  width: 100%;
  max-width: 64rem;
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 48rem) { .wrap { padding-inline: 2rem; } }

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.5rem 0.75rem;
  background: var(--text);
  color: var(--bg);
  z-index: 10;
}
.skip:focus { top: 1rem; }

/* Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.25rem;
}
.wordmark {
  font: 700 1.375rem/1.2 var(--serif);
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.site-header nav { display: flex; gap: 1.25rem; }
.site-header nav a { color: var(--muted); text-decoration: none; font-size: 0.9375rem; }
.site-header nav a:hover { color: var(--text); text-decoration: underline; }

/* Studio intro */
.intro { padding-block: 2.5rem 3rem; }
.intro-line {
  margin: 0;
  max-width: 34ch;
  font: 400 clamp(1.5rem, 1.1rem + 2vw, 2.375rem)/1.25 var(--serif);
}

/* Asset 1963 */
.game { background: var(--ink); color: var(--cream); }

.game-art { position: relative; overflow: hidden; }
.game-art picture img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 60% 50%;
}
.game-title {
  position: absolute;
  margin: 0;
  left: 6%;
  top: 4%;
  width: 52%;
  filter: drop-shadow(0 0.25rem 0.75rem rgb(0 0 0 / 0.45));
}
/* Wide screens: the full frame, with the title where the Steam capsule has it. */
@media (min-width: 45rem) {
  .game-art picture img { aspect-ratio: auto; }
  .game-title { left: 27.4%; top: 3.4%; width: 34.8%; }
}
.game-art::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 18%;
  background: linear-gradient(to bottom, rgb(27 26 31 / 0), var(--ink));
  pointer-events: none;
}

.game-text { padding-block: 1.5rem 3.5rem; }
.game-text > * { max-width: 46rem; }
.game-text .eyebrow {
  margin: 0 0 1rem;
  color: var(--red-text);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.game-text p { margin: 0 0 1rem; color: var(--cream-muted); }
.game-text .lead {
  color: var(--cream);
  font: 400 clamp(1.25rem, 1.05rem + 1vw, 1.625rem)/1.4 var(--serif);
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}
.facts li {
  padding: 0.25rem 0.75rem;
  border: 1px solid rgb(255 241 214 / 0.3);
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--cream);
}
.game-text .soon { margin: 0; color: var(--cream); font-weight: 600; }

/* Contact */
.contact { padding-block: 3rem; }
.contact h2 {
  margin: 0 0 0.75rem;
  font: 700 1.75rem/1.2 var(--serif);
}
.contact p { margin: 0 0 0.5rem; overflow-wrap: anywhere; }

/* Footer */
.site-footer {
  padding-block: 1.5rem 2.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.8125rem;
}
.site-footer p { margin: 0 0 0.25rem; }
