/* Mixuvo: a printed page. Cream paper, flat inks, an offset edge for depth -- never a soft shadow. */

@font-face {
  font-family: "Heros";
  src: url("fonts/texgyreheros-regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Heros";
  src: url("fonts/texgyreheros-bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #F2EDE1;
  --card: #FAF6EC;
  --ink: #17150F;
  --muted: #5E594C;
  --grey: #9A9482;
  --red: #CE3B2E;
  --blue: #1E5DAA;
  --yellow: #E8B62C;
  --lattice: rgba(23, 21, 15, 0.055);
  --rule: 3px;
  --offset: 6px;
  --gutter: clamp(16px, 4vw, 48px);
  --measure: 1040px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { min-height: 100%; display: flex; flex-direction: column; }

body {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--lattice) 1px, transparent 1px),
    linear-gradient(90deg, var(--lattice) 1px, transparent 1px);
  background-size: 40px 40px;
  font-family: "Heros", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.page {
  flex: 1;
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(48px, 9vw, 112px) var(--gutter) clamp(40px, 7vw, 88px);
}

/* The intro: the logo as drawn in the kit, with its clear space */

.intro h1 { margin: 0; line-height: 0; }
.logo { width: clamp(220px, 34vw, 340px); }
.lead {
  margin: clamp(28px, 4vw, 40px) 0 0;
  max-width: 30em;
  font-size: clamp(1.2rem, 2.3vw, 1.5rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

/* Buttons: ink-edged blocks that press into their offset */

.actions { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; }
.button {
  display: inline-flex;
  align-items: center;
  padding: 13px 20px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  color: var(--paper);
  background: var(--red);
  border: var(--rule) solid var(--ink);
  box-shadow: var(--offset) var(--offset) 0 var(--ink);
  text-decoration: none;
  transition: transform 80ms ease-out, box-shadow 80ms ease-out;
}
.button:hover { transform: translate(2px, 2px); box-shadow: 4px 4px 0 var(--ink); }
.button:active { transform: translate(var(--offset), var(--offset)); box-shadow: 0 0 0 var(--ink); }
.button-plain { color: var(--ink); background: var(--card); }

/* The game */

.game {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  margin-top: clamp(48px, 8vw, 88px);
  background: var(--card);
  border: var(--rule) solid var(--ink);
  box-shadow: var(--offset) var(--offset) 0 var(--ink);
}
.game-art { display: block; border-right: var(--rule) solid var(--ink); background: var(--paper); }
.game-art img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.game-text { padding: clamp(22px, 3.5vw, 36px); }
.kicker {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}
.game h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4.6vw, 3.2rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}
.tagline { margin: 10px 0 0; font-weight: 700; letter-spacing: -0.01em; }
.game-text > p:not(.kicker):not(.tagline) { margin: 12px 0 0; color: var(--muted); font-size: 0.95rem; }

/* Follow */

.follow { margin-top: clamp(48px, 8vw, 88px); }
.follow h2 {
  margin: 0 0 22px;
  padding-bottom: 8px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  border-bottom: var(--rule) solid var(--ink);
}
.socials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.social {
  display: flex;
  align-items: stretch;
  height: 100%;
  background: var(--card);
  border: var(--rule) solid var(--ink);
  box-shadow: var(--offset) var(--offset) 0 var(--ink);
  text-decoration: none;
  transition: transform 80ms ease-out, box-shadow 80ms ease-out;
}
.social:hover { transform: translate(2px, 2px); box-shadow: 4px 4px 0 var(--ink); }
.social:active { transform: translate(var(--offset), var(--offset)); box-shadow: 0 0 0 var(--ink); }
.social-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  border-right: var(--rule) solid var(--ink);
  color: var(--paper);
}
.social-icon svg { width: 26px; height: 26px; fill: currentColor; }
.s-blue { background: var(--blue); }
.s-red { background: var(--red); }
.s-yellow { background: var(--yellow); color: var(--ink); }
.social-text { display: flex; flex-direction: column; justify-content: center; padding: 12px 16px; min-width: 0; }
.social-text b { font-size: 1.05rem; line-height: 1.2; }
.social-text span { font-size: 0.88rem; color: var(--muted); }

/* Footer */

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  padding: 24px var(--gutter);
  font-size: 0.9rem;
  color: var(--paper);
  background: var(--ink);
}
.footer a { font-weight: 700; text-underline-offset: 3px; }
.footer a:hover { color: var(--yellow); }
.fine { margin-left: auto; color: var(--grey); }

/* Narrow screens */

@media (max-width: 860px) {
  .game { grid-template-columns: minmax(0, 1fr); }
  .game-art { border-right: 0; border-bottom: var(--rule) solid var(--ink); }
  .socials { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .fine { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .button, .social { transition: none; }
}
