/* Red Rock Studio — shared site stylesheet (homepage only).
   Games must NOT depend on this file (game contract, ADR-001). */

:root {
  --bg: #14100c;
  --bg-soft: #1a1510;
  --panel: #1f1a14;
  --panel-line: #2c251e;
  --ink: #f2e8da;
  --muted: #b3a695;
  --accent: #d96c3b;
  --accent-soft: rgba(217, 108, 59, 0.14);
  --focus: #e8a13a;
  --radius: 0.75rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(217, 108, 59, 0.10), transparent 60%),
    radial-gradient(800px 500px at 5% 110%, rgba(164, 69, 44, 0.08), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* Skip link — keyboard users jump straight to the games grid. */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: #14100c;
  font-weight: 600;
  border-radius: 0 0 0.4rem 0.4rem;
}

.skip-link:focus {
  top: 0;
  text-decoration: none;
}

/* Header */
.site-header {
  padding: 4.5rem 1.5rem 2.5rem;
  text-align: center;
  border-bottom: 1px solid var(--panel-line);
}

.site-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.1;
}

.site-title .accent {
  color: var(--accent);
}

.tagline {
  margin-top: 0.8rem;
  color: var(--muted);
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
}

/* Main */
.site-main {
  flex: 1;
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 3.5rem;
}

.section-label {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0.35rem 0 1.75rem;
}

/* Game grid */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1.25rem;
  list-style: none;
}

.game-card {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  min-height: 11rem;
  transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.game-card a {
  color: inherit;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.game-card a:hover {
  text-decoration: none;
  color: inherit;
}

.game-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  background: var(--bg-soft);
}

.game-card .num {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.game-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  margin-top: 0.5rem;
}

.game-card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 0.4rem;
  flex: 1;
}

.game-card .play {
  margin-top: 0.9rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.game-card .play::after {
  content: " \2192";
}

/* Footer */
.site-footer {
  padding: 1.6rem 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--panel-line);
}

.site-footer .note {
  margin-top: 0.3rem;
  font-style: italic;
}

@media (max-width: 30rem) {
  .site-header {
    padding-top: 3rem;
  }

  .site-main {
    padding-top: 2.25rem;
  }
}
