/* Moving Pieces Interactive — matches the Squarespace look:
   near-black page, white text, Dosis for headings/nav/buttons, Roboto for body. */
:root {
  --bg: #111111;
  --text: #ffffff;
  --muted: #cfcfcf;
  --rule: #3a3a3a;
  --heading: "Dosis", "Helvetica Neue", Arial, sans-serif;
  --body: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --max: 1000px;
  --narrow: 760px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.7 var(--body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); }
hr { border: 0; border-top: 1px solid var(--rule); margin: 56px auto; max-width: var(--max); }
h1, h2, h3, h4 { font-family: var(--heading); font-weight: 600; letter-spacing: .04em; line-height: 1.25; }
h2 { font-size: 32px; text-transform: uppercase; }
h3 { font-size: 20px; }
h4 { font-size: 18px; text-transform: uppercase; letter-spacing: .12em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.center { text-align: center; }

/* Header */
.site-header {
  max-width: var(--max); margin: 0 auto; padding: 28px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo img { width: 126px; }
.site-nav { display: flex; gap: 0; flex: 1; justify-content: space-around; max-width: 620px; }
.site-nav a {
  font: 600 13px/1 var(--heading); letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; padding: 8px 4px; border-bottom: 1px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--text); }
.menu-toggle {
  display: none; background: none; color: var(--text); border: 2px solid var(--text); border-radius: 3px;
  font: 600 13px/1 var(--heading); letter-spacing: .15em; text-transform: uppercase; padding: 10px 14px;
}

main { max-width: var(--max); margin: 0 auto; padding: 0 24px 40px; }

/* Home */
.intro { max-width: 640px; margin: 24px auto 64px; font-size: 15.5px; }
.intro p { margin: 0; }
.game-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 32px; max-width: 610px; margin: 0 auto; }
.game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; transition: transform .25s ease; }
.game-card a:hover img { transform: scale(1.015); }
.game-card p { font-size: 14px; line-height: 1.6; margin: 18px 0 0; }
.game-card p a { text-decoration: none; }

/* Buttons */
.btn {
  display: inline-block; background: transparent; color: var(--text); border: 2px solid var(--text);
  border-radius: 3px; padding: 13px 26px; cursor: pointer;
  font: 600 14px/1.2 var(--heading); letter-spacing: 2px; text-transform: uppercase; text-decoration: none;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--text); color: var(--bg); }
.button-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin: 8px 0 32px; }
.button-row:has(> .btn:only-child), .game .button-row:has(> .btn:nth-child(3):last-child) { justify-content: center; gap: 32px; }

/* Game pages */
.game { max-width: var(--max); margin: 0 auto; }
.game-title { text-align: center; margin-top: 8px; }
.video { position: relative; aspect-ratio: 16 / 9; margin: 0 0 32px; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.steam-widget { max-width: 646px; margin: 0 auto 32px; }
.steam-widget iframe { width: 100%; height: 190px; border: 0; }
.quotes, .prose, .features, .closing-quote, .credits, .signup-heading { max-width: var(--narrow); margin-left: auto; margin-right: auto; }
.quotes p { margin: 0 0 14px; font-size: 15px; }
.game .socials { margin: 24px auto 32px; }
.prose { font-size: 15.5px; }
.features { padding-left: 1.2em; font-size: 15.5px; }
.features li { margin-bottom: 10px; }
.game h3 { max-width: var(--narrow); margin: 32px auto 12px; }
.closing-quote { text-align: center; font-style: italic; margin-top: 40px; margin-bottom: 40px; }
.credits { font-size: 14px; color: var(--muted); }
.signup-heading { text-align: center; }

.screenshots.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 40px 0; }
.screenshots.grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.screenshots.stacked { display: grid; gap: 24px; margin: 40px 0; }

/* Newsletter */
.newsletter { max-width: 560px; margin: 0 auto; text-align: center; }
.newsletter p { font-size: 14px; color: var(--muted); }
.newsletter p strong { color: var(--text); }
.newsletter-form { display: flex; gap: 12px; margin-top: 20px; }
.newsletter-form input {
  flex: 1; min-width: 0; padding: 13px 14px; background: #fff; color: #111;
  border: 0; border-radius: 3px; font: 15px var(--body);
}

/* Inner pages */
.page.narrow { max-width: var(--narrow); margin: 0 auto; }
.page.narrow.center .button-row { justify-content: center; }
.contact-image { margin: 24px auto; max-width: 420px; }
.support-block h2 { text-align: center; margin-bottom: 4px; }
.support-block h3 { text-align: center; font-weight: 500; margin-top: 0; }
.support-form { display: grid; gap: 18px; margin-top: 24px; }
.field label, .field legend { display: block; font-size: 14px; margin-bottom: 6px; }
.field fieldset { border: 0; padding: 0; margin: 0; }
.field fieldset label { display: inline-flex; gap: 8px; align-items: center; }
.req { color: var(--muted); font-size: 12px; }
.support-form input:not([type=checkbox]), .support-form textarea, .support-form select {
  width: 100%; padding: 12px; background: #fff; color: #111; border: 0; border-radius: 3px; font: 15px var(--body);
}
.support-form .btn { justify-self: start; }
.form-status { min-height: 1.4em; margin: 0; font-size: 14px; }
.discord-badge { max-width: 240px; margin: 16px auto 0; }

/* Footer */
.site-footer { text-align: center; padding: 40px 24px 56px; color: var(--muted); font-size: 13px; }
.socials { list-style: none; display: flex; justify-content: center; gap: 22px; padding: 0; margin: 0 0 16px; }
.socials img { filter: invert(1); opacity: .9; }
.socials a:hover img { opacity: 1; }

/* Mobile */
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 96px; left: 0; right: 0; flex-direction: column;
    align-items: center; gap: 18px; background: var(--bg); padding: 24px 0 32px; z-index: 10; max-width: none; }
  .site-nav.open { display: flex; }
  .site-header { position: relative; }
  .game-grid { grid-template-columns: 1fr; max-width: 420px; }
  .button-row { justify-content: center; }
  .screenshots.grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  h2 { font-size: 26px; }
}

/* Newsletter signup message (shown after Subscribe) */
.newsletter-status { min-height: 1.4em; margin: 12px 0 0; font-size: 14px; color: var(--text); }
.newsletter-form button:disabled { opacity: .6; cursor: wait; }
