/* Shmeeble Games: Night Studio. Dark navy studio, one lime accent, mono labels.
   Fonts are self-hosted so the site makes no third-party requests. */
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap; src: url("/fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url("/fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url("/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("/fonts/inter-latin-500-normal.woff2") format("woff2"); }

:root {
  --bg: #12151F;
  --panel: #1A1F2C;
  --line: #2A3042;
  --ink: #EDEFF5;
  --muted: #A9B0C2;
  --accent: #D4F56A;
  --on-accent: #12151F;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--ink); text-underline-offset: 4px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--on-accent); }
p { margin: 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap {
  width: 100%;
  max-width: 75rem;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { .wrap { padding-left: 40px; padding-right: 40px; } }

.mono { font-family: var(--font-mono); font-weight: 500; font-size: 0.875rem; }
.label { color: var(--muted); }
.accent { color: var(--accent); }

/* header */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; }
.brand svg { flex: none; }
.brand span { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; letter-spacing: 0.04em; }
.top nav { display: flex; gap: 24px; }
.top nav a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; color: var(--muted); }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }

main { flex: 1; }

/* hero */
.hero { padding-top: clamp(48px, 10vw, 112px); display: grid; gap: 28px; }
.hero::after { content: ""; border-bottom: 1px solid var(--line); margin-top: clamp(28px, 8vw, 84px); }
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.75rem, 1.4rem + 6vw, 6rem);
  line-height: 0.98; letter-spacing: -0.035em; max-width: 11em;
}
.lede { font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem); color: var(--muted); max-width: 34em; }

/* sections */
.section { padding-top: clamp(56px, 9vw, 96px); display: grid; gap: 28px; }
.section:last-of-type { padding-bottom: clamp(56px, 9vw, 96px); }

.game {
  display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px;
}
.game img { width: 96px; height: 96px; border-radius: 22px; flex: none; }
.game .body { flex: 999 1 320px; min-width: 0; display: grid; gap: 10px; }
.game h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 1.6rem + 1.5vw, 2.5rem); letter-spacing: -0.02em; }
.game .body p:not(.mono) { font-size: 1.0625rem; color: var(--muted); }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px; border-radius: 12px;
  background: var(--accent); color: var(--on-accent);
  font-weight: 500; text-decoration: none;
}
.button:hover { color: var(--on-accent); background: #E1FA8C; }

.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 40px; }
.contact > div { display: grid; gap: 12px; align-content: start; }
.contact .big { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.375rem, 1rem + 1.6vw, 2rem); min-height: 44px; display: inline-flex; align-items: center; overflow-wrap: anywhere; }
address { font-style: normal; font-size: 1.0625rem; line-height: 1.6; }

/* reading pages */
.doc { max-width: 44rem; padding-top: clamp(40px, 8vw, 80px); padding-bottom: 80px; display: grid; gap: 18px; }
.doc h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.25rem, 1.6rem + 3vw, 3.5rem); line-height: 1.02; letter-spacing: -0.03em; margin-bottom: 8px; }
.doc h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; margin-top: 20px; }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--ink); font-weight: 500; }
.doc ul { margin: 0; padding-left: 1.25rem; display: grid; gap: 8px; }
.doc .button { justify-self: start; margin-top: 8px; }

/* footer */
.foot { border-top: 1px solid var(--line); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; padding-top: 16px; padding-bottom: 24px; color: var(--muted); }
.foot nav { display: flex; gap: 24px; }
.foot a { color: var(--muted); min-height: 44px; display: inline-flex; align-items: center; }
.foot a:hover { color: var(--ink); }
