/* Shmeeble Games: the Meep tabletop look (solid lips, white tiles, no gradients or blurred shadows).
   Fonts are self-hosted so the site makes no third-party requests. */
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("fonts/nunito-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("fonts/nunito-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 900; font-display: swap; src: url("fonts/nunito-latin-900-normal.woff2") format("woff2"); }

:root {
  --cobalt: #4E68C8;
  --cobalt-surface: #E8ECFA;
  --key: #5771CC;
  --key-lip: #324487;
  --gold: #F3D663;
  --gold-lip: #A59141;
  --teal: #477F79;
  --canvas: #F2F5FC;
  --surface: #FFFFFF;
  --surface-lip: color-mix(in srgb, var(--surface) 75%, #000);
  --ink: #3F3F3F;
  --ink-muted: #616161;
  --hairline: #D9D9D9;
  --tile: #FFFFFF;
  --tile-ink: #3F3F3F;
  --tile-lip: color-mix(in srgb, #FFFFFF 75%, #000);
  --font-game: "Nunito", ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-read: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r-chip: 8px; --r-control: 14px; --r-card: 18px; --r-keycap: 22px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --lip: 5px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --cobalt: #8B9FE7; --cobalt-surface: #3F4A6B; --teal: #8FBDB7;
    --canvas: #22282E; --surface: #373D43;
    --ink: #F2F2F2; --ink-muted: #C2C8CE; --hairline: #51575D;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --cobalt: #8B9FE7; --cobalt-surface: #3F4A6B; --teal: #8FBDB7;
  --canvas: #22282E; --surface: #373D43;
  --ink: #F2F2F2; --ink-muted: #C2C8CE; --hairline: #51575D;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-read);
  font-size: 1rem;
  line-height: 1.55;
}
a { color: var(--cobalt); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: var(--r-chip); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
p { margin: 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; }

.wrap {
  max-width: 60rem;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 72px; }
.brand-small {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-family: var(--font-game); font-weight: 900; font-size: 1.125rem;
  color: var(--ink); text-decoration: none; min-height: 44px;
}
.brand-small img { width: 28px; height: 28px; }
.top nav { display: flex; gap: var(--s4); }
.top nav a {
  font-family: var(--font-game); font-weight: 800; font-size: 0.9375rem;
  color: var(--ink-muted); text-decoration: none;
  min-height: 44px; display: inline-flex; align-items: center;
}
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }

/* type voices */
.eyebrow {
  font-family: var(--font-game); font-weight: 800; font-size: 0.75rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted);
}
h2 { font-family: var(--font-game); font-weight: 900; font-size: clamp(1.625rem, 1.3rem + 1.5vw, 2.25rem); line-height: 1.15; }
h3 { font-family: var(--font-game); font-weight: 800; font-size: 1.375rem; line-height: 1.25; }
.lede { font-size: 1.0625rem; color: var(--ink-muted); max-width: 34em; }

/* hero: the company name spelled in tiles */
.hero { padding-top: clamp(24px, 6vw, 72px); padding-bottom: clamp(32px, 6vw, 64px); display: grid; gap: var(--s4); }
.tiles { display: flex; flex-wrap: wrap; gap: clamp(4px, 1.2vw, 10px); margin: var(--s2) 0 var(--s1); }
.tiles span {
  display: grid; place-items: center;
  width: clamp(34px, 9vw, 64px); aspect-ratio: 1;
  border-radius: 26%;
  background: var(--tile); color: var(--tile-ink);
  box-shadow: 0 5px 0 var(--tile-lip);
  font-family: var(--font-game); font-weight: 900; font-size: clamp(1.25rem, 5vw, 2.25rem);
  line-height: 1;
}
.tiles span.gold { background: var(--gold); box-shadow: 0 5px 0 var(--gold-lip); }
.hero h1 .word2 {
  display: block; font-family: var(--font-game); font-weight: 900;
  font-size: clamp(1.75rem, 1.2rem + 2.5vw, 2.75rem); line-height: 1.1; margin-top: var(--s4);
}

/* sections and cards */
.block { padding-bottom: clamp(40px, 7vw, 72px); display: grid; gap: var(--s4); }
.card {
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: 0 4px 0 var(--surface-lip);
  padding: var(--s5);
  min-width: 0;
}
.game { display: grid; grid-template-columns: auto 1fr; gap: var(--s4) var(--s5); align-items: start; }
.game img { width: 72px; height: 72px; border-radius: 22%; }
.game .body { display: grid; gap: var(--s3); min-width: 0; }
.status-pill {
  justify-self: start;
  display: inline-flex; align-items: center; gap: var(--s2);
  min-height: 32px; padding: 0 var(--s3); border-radius: 999px;
  background: var(--cobalt-surface); color: var(--ink);
  font-family: var(--font-game); font-weight: 800; font-size: 0.875rem;
}
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cobalt); }
.links { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); }
.links a { min-height: 44px; display: inline-flex; align-items: center; gap: 0.25em; font-weight: 600; }

.key {
  justify-self: start;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 var(--s5);
  font-family: var(--font-game); font-weight: 800; font-size: 1.0625rem;
  color: #FFFFFF; background: var(--key);
  border-radius: var(--r-control);
  box-shadow: 0 var(--lip) 0 var(--key-lip);
  text-decoration: none; margin-bottom: var(--lip);
  transition: transform 90ms ease-out, box-shadow 90ms ease-out;
  overflow-wrap: anywhere;
}
.key:active { transform: translateY(var(--lip)); box-shadow: 0 0 0 var(--key-lip); }

.grid2 { display: grid; gap: var(--s4); }
@media (min-width: 720px) {
  .grid2 { grid-template-columns: 1fr 1fr; }
  .game { grid-template-columns: auto 1fr; }
}
.contact { display: grid; gap: var(--s3); align-content: start; }
address { font-style: normal; }

/* reading pages */
.doc { max-width: 42rem; padding-top: var(--s5); padding-bottom: 64px; display: grid; gap: var(--s4); }
.doc h1 { font-family: var(--font-game); font-weight: 900; font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); line-height: 1.1; }
.doc h2 { font-size: 1.375rem; margin-top: var(--s4); }
.doc ul { margin: 0; padding-left: 1.25rem; display: grid; gap: var(--s2); }
.doc .updated { color: var(--ink-muted); font-size: 0.9375rem; }

/* footer */
.foot { border-top: 1px solid var(--hairline); padding-top: var(--s5); padding-bottom: 40px; color: var(--ink-muted); font-size: 0.875rem; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); justify-content: space-between; }
.foot nav { display: flex; gap: var(--s4); }
.foot a { color: var(--ink-muted); }

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