@import url("https://fonts.bunny.net/css?family=bowlby-one:400|rubik:400,500,700&display=swap");

/* Colours come from the logos: Alley Rats pink and lime, the pants mint. */
:root {
  --bg: #16111d;
  --bg-2: #221a2b;
  --text: #fbf2f6;
  --muted: #cbbccf;
  --line: #3a2d44;
  --pink: #ec4f9f;
  --lime: #b8f046;
  --mint: #cfe8e6;
  --ink: #16111d;
  --display: "Bowlby One", "Arial Black", Impact, sans-serif;
  --body: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1080px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a {
  color: var(--pink);
  font-weight: 500;
  text-decoration: underline 2px color-mix(in srgb, var(--pink) 40%, transparent);
  text-underline-offset: 3px;
}
a:hover { text-decoration-color: currentColor; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(2.5rem, 7vw, 4.5rem); }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.02; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 7vw, 4.25rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.lede { font-size: clamp(1.2rem, 2.4vw, 1.45rem); line-height: 1.45; }
.muted { color: var(--muted); }

/* header */
.top { display: flex; align-items: center; gap: 1rem; padding-block: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; }
.brand img:first-child { width: 44px; height: 41px; transform: rotate(-8deg); }
.brand img:last-child { width: 140px; height: 32px; }
.nav { display: flex; gap: clamp(1rem, 3vw, 1.75rem); margin-left: auto; }
.nav a { color: var(--text); font-weight: 700; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--lime); }

/* home: studio intro */
.intro { display: flex; align-items: center; gap: clamp(1rem, 4vw, 2.75rem); padding-block: clamp(1rem, 5vw, 3.5rem) clamp(2.5rem, 7vw, 4.5rem); }
.logo-mark { flex: 0 0 auto; width: clamp(84px, 17vw, 170px); transform: rotate(-8deg); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.logo-mark:hover { transform: rotate(6deg) scale(1.05); }
.intro h1 { margin: 0 0 .9rem; }
.wordmark { width: 100%; max-width: 540px; }
.intro .lede { max-width: 30ch; margin: 0; }

/* home: game feature band */
.band { background: var(--bg-2); padding-block: clamp(2.5rem, 7vw, 4.5rem); }
.feature { display: grid; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 820px) { .feature { grid-template-columns: 1.3fr 1fr; } }
.feature-art img { width: 100%; border-radius: 6px; box-shadow: 8px 8px 0 var(--pink); transition: transform .15s, box-shadow .15s; }
.feature-art:hover img { transform: translate(-3px, -3px); box-shadow: 11px 11px 0 var(--pink); }
.feature h2 a { color: var(--text); text-decoration: none; }
.feature h2 a:hover { color: var(--pink); }
.sticker { display: inline-block; font: .8rem/1 var(--display); letter-spacing: .04em; text-transform: uppercase; background: var(--lime); color: var(--ink); padding: .4rem .65rem .35rem; transform: rotate(-3deg); margin-bottom: 1.1rem; }
.more { font-weight: 700; }
.more::after { content: " \2192"; }

/* home: people */
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; }
@media (min-width: 640px) { .people { grid-template-columns: 1fr 1fr; } }
.person { display: flex; align-items: center; gap: 1.25rem; }
.person img { flex: 0 0 auto; width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 4px solid var(--mint); }
.person:nth-child(2) img { border-color: var(--pink); }
.person h3 { font-size: 1.6rem; margin: 0 0 .25rem; }
.person p { color: var(--muted); margin: 0 0 .3rem; line-height: 1.4; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; font: 400 1.05rem/1 var(--display); letter-spacing: .02em; color: var(--ink); background: var(--pink); border: 3px solid var(--ink); border-radius: 10px; padding: .85rem 1.4rem .8rem; box-shadow: 4px 4px 0 var(--lime); text-decoration: none; cursor: pointer; transition: transform .1s, box-shadow .1s; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--lime); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--lime); }
.btn.ghost { background: var(--text); box-shadow: 4px 4px 0 var(--pink); }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.75rem; }

/* alley rats page */
.splash { max-width: 1200px; margin: 0 auto; }
.splash img { width: 100%; }
@media (min-width: 1240px) { .splash img { border-radius: 8px; } }
.tagline { font: clamp(1.4rem, 3.6vw, 2.1rem)/1.15 var(--display); color: var(--pink); margin-block: clamp(1.5rem, 4vw, 2.5rem) 0; text-wrap: balance; }
.game-info { display: grid; gap: 2.75rem; padding-block: clamp(2rem, 5vw, 3rem) clamp(3rem, 7vw, 5rem); }
@media (min-width: 860px) { .game-info { grid-template-columns: 1.6fr 1fr; gap: 4.5rem; } }
.list { margin: 1.5rem 0 0; padding-left: 1.2rem; }
.list li { margin-bottom: .65rem; }
.list li::marker { color: var(--lime); }
.fact-side { border-top: 4px solid var(--lime); padding-top: 1.25rem; align-self: start; }
.fact-side h2 { font-size: 1.5rem; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: .55rem 1.25rem; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; }

/* inner pages: support, privacy, terms, 404 */
.narrow { padding-bottom: clamp(3rem, 7vw, 5rem); }
.narrow > * { max-width: 720px; }
.page-head { padding-block: clamp(1.5rem, 5vw, 3rem) 2.25rem; }
.page-head h1 { margin-bottom: .35em; }
.narrow > section + section { margin-top: 3rem; }
.prose h2 { font-size: 1.55rem; margin: 2.5rem 0 .6rem; }
.updated { font-size: .92rem; color: var(--muted); margin-bottom: 2rem; }
.updated + h2 { margin-top: 0; }
.prose ul { margin: 0 0 1em; padding-left: 1.2rem; }
.prose li { margin-bottom: .45rem; }
.prose li::marker { color: var(--lime); }
.big { font-size: clamp(3.5rem, 14vw, 6rem); }

/* form */
.form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 700; }
.field .hint { font-size: .92rem; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--text); background: var(--bg-2);
  border: 2px solid var(--line); border-radius: 8px; padding: .75rem .9rem; width: 100%;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lime); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { display: none; padding: .9rem 1rem; border-left: 4px solid; font-weight: 500; }
.status.ok { display: block; border-color: var(--lime); background: color-mix(in srgb, var(--lime) 12%, transparent); }
.status.err { display: block; border-color: var(--pink); background: color-mix(in srgb, var(--pink) 14%, transparent); }
details { border-top: 2px solid var(--line); padding: 1rem 0; }
details:last-of-type { border-bottom: 2px solid var(--line); }
summary { font-weight: 700; cursor: pointer; }
summary::marker { color: var(--pink); }
details p { margin: .6rem 0 0; color: var(--muted); }

/* footer */
.foot { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; padding-block: 1.75rem 2.5rem; border-top: 2px solid var(--line); font-size: .95rem; color: var(--muted); }
.foot a { color: var(--muted); font-weight: 400; text-decoration: none; }
.foot a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

@media (max-width: 479px) {
  .brand img:last-child { display: none; }
  .intro { flex-direction: column; align-items: flex-start; }
  .person img { width: 88px; height: 88px; }
}
