/*
 * Light-only by design. The Logic Loft Games logo is dark navy wordmark on a
 * transparent background — it disappears on a dark ground, so the page commits
 * to a light palette rather than shipping a dark mode the brand mark can't live in.
 */

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

:root {
  --bg: #ffffff;
  --panel: #f6f6f4;
  --fg: #16181d;
  --muted: #5f6570;
  --rule: #e6e5e1;
  --accent: #1f5d50;
  --focus: #2f7d6c;
  --head: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

img { max-width: 100%; height: auto; }

a { color: var(--accent); }

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

/* ---------- layout ---------- */

.wrap {
  flex: 1;
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 3rem;
}

.wrap--narrow { max-width: 34rem; }

.head { text-align: center; }

.entity {
  margin: 0;
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(1.5rem, 5.5vw, 2rem);
  letter-spacing: -0.015em;
}

.dba {
  margin: 0.4rem 0 1.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
}

.logo {
  display: block;
  width: min(300px, 76%);
  height: auto;
  margin: 0 auto;
}

.logo--sm { width: min(190px, 55%); margin-bottom: 1.75rem; }

/* ---------- games ---------- */

.games { margin-top: 3.5rem; }

.games-h {
  margin: 0 0 1.5rem;
  font-family: var(--head);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(5.5rem, 1fr));
  gap: 1.25rem 0.75rem;
}

/* Five tiles: one row on wide screens, clean wrapping below. */
@media (min-width: 44rem) {
  .grid { grid-template-columns: repeat(5, 1fr); }
}

.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 0.25rem;
  border-radius: 14px;
  text-decoration: none;
  color: var(--fg);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.tile img {
  width: 100%;
  max-width: 88px;
  aspect-ratio: 1;
  border-radius: 22.5%; /* iOS squircle-ish */
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.10), 0 6px 16px rgb(0 0 0 / 0.10);
}

.tile-name {
  font-family: var(--head);
  font-weight: 500;
  font-size: 0.8125rem;
  line-height: 1.3;
  text-align: center;
  color: var(--muted);
}

.tile:hover { background: var(--panel); transform: translateY(-2px); }
.tile:hover .tile-name { color: var(--fg); }
.tile:active { transform: translateY(0); }

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

/* ---------- buttons ---------- */

.cta-row { margin: 3.5rem 0 0; text-align: center; }

.btn {
  display: inline-block;
  padding: 0.8125rem 2rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--head);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.btn:hover { background: #17463c; }

.btn--ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--rule);
  padding: 0.6875rem 1.5rem;
}

.btn--ghost:hover { background: var(--panel); color: var(--fg); }

/* ---------- contact ---------- */

.page-h {
  margin: 0 0 0.5rem;
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(1.5rem, 5.5vw, 1.875rem);
  letter-spacing: -0.015em;
}

.page-lede { margin: 0 0 2.25rem; color: var(--muted); }

.contact {
  font-style: normal;
  border-top: 1px solid var(--rule);
}

.contact .row {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  padding: 1.125rem 0;
  border-bottom: 1px solid var(--rule);
}

@media (max-width: 26rem) {
  .contact .row { grid-template-columns: 1fr; gap: 0.25rem; }
}

.contact .label {
  font-family: var(--head);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.2rem;
}

.contact a { text-decoration: none; border-bottom: 1px solid rgb(31 93 80 / 0.3); }
.contact a:hover { border-bottom-color: var(--accent); }

/* ---------- footer ---------- */

.foot {
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
}

.foot p { margin: 0; }
