/* Smug Face Gaming — studio site.
 *
 * The palette comes off the studio logo and nothing else: near-black ground,
 * one amber accent, white type. That is deliberate. The two game sites each
 * have a strong identity of their own (FLUTTER's daylight blues, Hireling's
 * Nocturne violet), and a studio page that borrowed either one would look
 * like it belonged to that game. So this page is the neutral room the games
 * hang in — the only colour on it is the one in the logo.
 *
 * No webfont. The logo's own typeface is not licensed for the web here, and
 * loading one from a CDN would break the claim on this very page that the
 * sites load nothing from anybody else's server. The system UI stack is
 * geometric enough at display sizes to sit under that mark honestly.
 */

:root {
  --ground: #0a0a0b;
  --ground-2: #101012;
  --panel: #161619;
  --panel-2: #1c1c20;

  --text: #f4f4f5;
  --muted: #a1a1aa;
  --muted-2: #71717a;
  --dim: #52525b;

  --amber: #ffc61a;
  --amber-soft: #ffd75e;
  --amber-tint: rgba(255, 198, 26, .12);

  --line: rgba(244, 244, 245, .08);
  --line-2: rgba(244, 244, 245, .15);

  --pad-x: clamp(20px, 5vw, 72px);
  --pad-y: clamp(60px, 8vw, 128px);
  --content-w: 1120px;
  --radius: 16px;
  --radius-sm: 10px;

  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--amber-soft); text-decoration: underline; }

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

img { max-width: 100%; }

.wrap {
  width: 100%;
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 99;
  background: var(--amber);
  color: #17130a;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}
.skip:focus { left: 16px; }

/* ---------- Type ---------- */

.h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.15;
  letter-spacing: -.025em;
  font-weight: 700;
  margin: 10px 0 0;
  max-width: 22ch;
}
.h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.01em;
  margin: 0 0 8px;
}
.eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber);
}
.hl { color: var(--amber); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-2);
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}
.btn:hover { border-color: var(--muted-2); text-decoration: none; color: var(--text); }
.btn--solid {
  background: var(--amber);
  border-color: var(--amber);
  color: #17130a;
}
.btn--solid:hover { background: var(--amber-soft); border-color: var(--amber-soft); color: #17130a; }
.btn--small { padding: 9px 15px; font-size: 14px; }
.btn--big { padding: 15px 26px; font-size: 17px; margin-top: 22px; }
.btn--muted {
  color: var(--dim);
  border-style: dashed;
  cursor: default;
}
.btn--muted:hover { border-color: var(--line-2); color: var(--dim); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 0 var(--pad-x) clamp(56px, 8vw, 110px);
  background:
    radial-gradient(120% 90% at 12% -10%, rgba(255, 198, 26, .13) 0%, rgba(255, 198, 26, 0) 55%),
    var(--ground);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.topbar {
  position: relative;
  max-width: var(--content-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  flex-wrap: wrap;
}
.topbar__brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--text);
}
.topbar__brand:hover { text-decoration: none; color: var(--text); }
.topbar__wordmark {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.12;
  letter-spacing: -.01em;
}
.topbar__links {
  display: flex;
  gap: clamp(16px, 2vw, 30px);
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
  font-size: 15px;
  flex-wrap: wrap;
}
.topbar__links a { color: var(--muted); }
.topbar__links a:hover { color: var(--text); text-decoration: none; }

.hero__inner {
  position: relative;
  max-width: var(--content-w);
  margin: 0 auto;
  padding: clamp(48px, 9vw, 110px) 0 0;
}
.hero__h1 {
  margin: 0;
  font-size: clamp(38px, 6.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -.038em;
  font-weight: 700;
  max-width: 19ch;
}
.hero__sub {
  margin: 26px 0 0;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--muted);
  max-width: 60ch;
}
.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 34px 0 0;
}

/* A shorter hero for the inner pages: same room, less ceiling. */
.hero--page { padding-bottom: clamp(44px, 6vw, 80px); }
.hero--page .hero__inner { padding-top: clamp(36px, 6vw, 72px); }
.hero__h1--page { font-size: clamp(34px, 5.2vw, 60px); margin-top: 10px; }
.topbar__links a[aria-current="page"] { color: var(--text); }

/* ---------- Games ---------- */

.games { padding: var(--pad-y) 0; background: var(--ground-2); }

.games__list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 44px 0 0;
}

.game {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px);
  transition: border-color .18s ease;
}
.game:hover { border-color: var(--line-2); }

/* One plate per game, all the same shape so the row reads as a set, but
 * each filled the way its own art wants to be: FLUTTER's poster frame is a
 * portrait phone capture and gets cropped to the bird, RuneWorks' is a real
 * 16:9 screenshot and simply fits, and Hireling has no screenshot in this
 * repo — so it gets its Emberkeep backdrop with the boss standing on it,
 * which is the same two layers the game's own combat screen draws. */
.game__art {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--panel-2);
  overflow: hidden;
  align-self: start;
}
.game__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.game--flutter .game__art img { object-position: 50% 42%; }

/* The backdrop is a 640x208 banner and the boss is a 32x32 sprite, so they
 * are placed rather than stretched: the scene covers, the body stands on
 * the ground line at its own aspect. */
.game__art--layered { background: linear-gradient(150deg, #0f111d, #1c1e2b); }
.game__bg { opacity: .85; }
.game__fg {
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: 46%;
  height: auto;
  transform: translateX(-50%);
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .6));
}

.game__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 10px;
  font-size: 12.5px;
  color: var(--muted-2);
}
.pill {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--muted);
}
.pill--live {
  background: var(--amber-tint);
  border-color: rgba(255, 198, 26, .4);
  color: var(--amber);
}
.game__platform::after { content: '·'; margin-left: 10px; color: var(--dim); }

.game__name {
  margin: 0;
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 700;
  letter-spacing: -.025em;
}
.game__tag {
  margin: 4px 0 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--amber);
}
.game__text { margin: 0; color: var(--muted); font-size: 15.5px; max-width: 62ch; }
.game__note {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted-2);
  padding-left: 12px;
  border-left: 2px solid var(--line-2);
}
.game__links { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 0; }

/* ---------- Studio ---------- */

.studio { padding: var(--pad-y) 0; border-top: 1px solid var(--line); }
.studio__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: end;
}
.studio__lede { margin: 0; color: var(--muted); font-size: 16px; }
.studio__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1px;
  margin: 44px 0 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
/* Four facts side by side rather than three-and-a-gap. */
.studio__grid--four { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.fact { background: var(--ground); padding: 26px 24px 28px; }
.fact p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Support ---------- */

.support__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin: 44px 0 0;
}
.support-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px);
  transition: border-color .18s ease;
}
.support-card:hover { border-color: var(--line-2); }
.support-card__text { margin: 10px 0 0; color: var(--muted); font-size: 15px; flex: 1; }

.faq { padding: var(--pad-y) 0; border-top: 1px solid var(--line); }
.faq__list { margin: 36px 0 0; padding: 0; }
.faq__item { padding: 22px 0; border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item dt { font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.faq__item dd { margin: 8px 0 0; color: var(--muted); font-size: 15.5px; max-width: 70ch; }

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

.contact {
  padding: var(--pad-y) 0;
  background: var(--ground-2);
  border-top: 1px solid var(--line);
  text-align: center;
}
.contact__inner { display: flex; flex-direction: column; align-items: center; }
.contact .h2 { max-width: 24ch; }
.contact__sub { margin: 14px 0 0; color: var(--muted); max-width: 52ch; }
.contact__alt { margin: 26px 0 0; color: var(--muted-2); font-size: 14.5px; max-width: 52ch; }

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

.footer { border-top: 1px solid var(--line); padding: 30px 0; }
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__legal { margin: 0; color: var(--muted-2); font-size: 14px; }
.footer__nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14.5px; }
.footer__nav a { color: var(--muted); }
.footer__nav a:hover { color: var(--text); text-decoration: none; }

/* ---------- Narrow ---------- */

@media (max-width: 780px) {
  .game { grid-template-columns: 1fr; }
  .game__art { aspect-ratio: 16 / 9; }
  .studio__head { grid-template-columns: 1fr; align-items: start; }
  .h2 { max-width: none; }
}
@media (max-width: 520px) {
  .topbar__links { display: none; }
  .btn--big { font-size: 15px; padding: 14px 18px; word-break: break-all; }
}
