/* Tadmoreco Games hub — no external dependencies. */
:root {
  --paper: #f6f1e6;
  --oat: #e9dfcb;
  --green: #22302a;
  --sage: #7f8f71;
  --gold: #b4914f;
  --ink: #1c1c1c;
  --muted: #4a5348;
  --cream: #fffaf3;
  --shadow: 0 10px 28px rgba(34, 48, 42, 0.12);
  --radius: 20px;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, #efe6cf 0%, transparent 60%),
    var(--paper);
  line-height: 1.45;
}

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

a {
  color: inherit;
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding-top: max(1.25rem, env(safe-area-inset-top));
  padding-bottom: max(1.75rem, env(safe-area-inset-bottom));
}

.site-header {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mark {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: block;
}

.eyebrow {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 650;
}

.site-header h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--green);
  font-family: Georgia, "Times New Roman", Times, serif;
}

.lede {
  margin: 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border: 1px solid rgba(34, 48, 42, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  min-height: 100%;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(34, 48, 42, 0.16);
}

.card:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.art {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  background: var(--oat);
}

.body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.95rem 1rem 1.05rem;
  flex: 1;
}

.title-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex: 0 0 44px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  background: var(--oat);
}

h2 {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.15;
  color: var(--green);
  letter-spacing: -0.02em;
}

.desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.meta {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--sage);
  letter-spacing: 0.01em;
}

.play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  align-self: stretch;
  min-height: 48px;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  background: var(--green);
  color: var(--paper);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.card:hover .play,
.card:focus-visible .play {
  background: #18241f;
}

.site-footer {
  margin-top: 1.6rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

@media (min-width: 700px) and (max-width: 1099px) {
  .wrap {
    width: min(1120px, calc(100% - 2.5rem));
  }

  .site-header {
    margin-bottom: 1.25rem;
  }

  .card {
    flex-direction: row;
    align-items: stretch;
  }

  .art {
    width: 46%;
    flex: 0 0 46%;
    aspect-ratio: auto;
    height: auto;
    min-height: 210px;
    align-self: stretch;
  }

  .body {
    padding: 1rem 1.15rem;
    justify-content: center;
  }

  .play {
    align-self: flex-start;
    min-width: 8.5rem;
  }
}

@media (min-width: 1100px) {
  .wrap {
    width: min(1120px, calc(100% - 3rem));
    padding-top: 1.5rem;
  }

  .site-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.15rem;
  }

  .site-header h1 {
    font-size: 2.35rem;
  }

  .lede {
    max-width: 26rem;
    padding-bottom: 0.15rem;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem;
  }

  .card {
    flex-direction: row;
    align-items: stretch;
  }

  .art {
    width: 46%;
    flex: 0 0 46%;
    aspect-ratio: auto;
    height: auto;
    min-height: 200px;
    align-self: stretch;
  }

  .body {
    padding: 0.9rem 1.05rem;
    justify-content: center;
  }

  .play {
    align-self: flex-start;
    min-width: 8.5rem;
  }

  .site-footer {
    margin-top: 1.15rem;
  }
}

@media (max-width: 399px) {
  .wrap {
    width: calc(100% - 1.4rem);
  }

  .site-header {
    gap: 0.65rem;
    margin-bottom: 1.1rem;
  }

  .site-header h1 {
    font-size: 1.8rem;
  }

  .lede {
    font-size: 0.95rem;
  }

  .art {
    aspect-ratio: 2.15 / 1;
  }

  .body {
    padding: 0.8rem 0.9rem 0.95rem;
    gap: 0.35rem;
  }
}
