/* ============================================
   SCRAP HEAP GAMES — shared brand tokens
   Import this on every page (landing + games)
   ============================================ */

:root {
  --shg-bg: #1a1714;
  --shg-surface: #2b2521;
  --shg-surface-raised: #36302a;
  --shg-border: #463d35;
  --shg-rust: #c1502e;
  --shg-rust-bright: #e0703f;
  --shg-caution: #e8b23d;
  --shg-text: #ede6d6;
  --shg-text-muted: #9c8f7a;

  --shg-font-display: 'Anton', sans-serif;
  --shg-font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --shg-font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--shg-bg);
  color: var(--shg-text);
  font-family: var(--shg-font-body);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--shg-caution);
  outline-offset: 3px;
}

/* Top bar used on every individual game page to get back home */
.shg-game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--shg-surface);
  border-bottom: 1px solid var(--shg-border);
}

.shg-back-link {
  font-family: var(--shg-font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--shg-text-muted);
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--shg-border);
  border-radius: 4px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.shg-back-link:hover {
  color: var(--shg-caution);
  border-color: var(--shg-caution);
}

.shg-game-title {
  font-family: var(--shg-font-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.1rem;
  margin: 0;
  color: var(--shg-text);
}

/* Footer used on every page */
.shg-footer {
  font-family: var(--shg-font-mono);
  font-size: 0.75rem;
  color: var(--shg-text-muted);
  text-align: center;
  padding: 2rem 1rem 2.5rem;
  letter-spacing: 0.03em;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* Blog — listing + article pages */
.shg-page-header {
  padding: 2.5rem 1.5rem 2rem;
  text-align: center;
  border-bottom: 1px solid var(--shg-border);
  background:
    repeating-linear-gradient(
      135deg,
      rgba(232, 178, 61, 0.04) 0px,
      rgba(232, 178, 61, 0.04) 14px,
      transparent 14px,
      transparent 28px
    ),
    var(--shg-bg);
}

.shg-page-header .shg-back-link {
  display: inline-block;
  margin-bottom: 1.2rem;
}

.shg-page-title {
  font-family: var(--shg-font-display);
  text-transform: uppercase;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1;
  letter-spacing: 0.02em;
  margin: 0 0 0.6rem;
}

.shg-page-subtitle {
  font-size: 0.95rem;
  color: var(--shg-text-muted);
  max-width: 42ch;
  margin: 0 auto;
  line-height: 1.5;
}

.shg-blog-main {
  max-width: 680px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1rem;
}

.shg-post-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.shg-post-card {
  display: block;
  background: var(--shg-surface);
  border: 1px solid var(--shg-border);
  border-radius: 6px;
  padding: 1.4rem 1.5rem;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.shg-post-card:hover {
  transform: rotate(-0.4deg) translateY(-2px);
  border-color: var(--shg-rust);
  box-shadow: 0 10px 20px -12px rgba(0, 0, 0, 0.5);
}

.shg-post-meta {
  font-family: var(--shg-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--shg-text-muted);
  margin-bottom: 0.6rem;
}

.shg-post-tag {
  display: inline-block;
  color: #1a1714;
  background: var(--shg-caution);
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  margin-right: 0.5rem;
}

.shg-post-card-title {
  font-family: var(--shg-font-display);
  text-transform: uppercase;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  margin: 0 0 0.45rem;
}

.shg-post-card-excerpt {
  font-size: 0.92rem;
  color: var(--shg-text-muted);
  margin: 0;
  line-height: 1.5;
}

.shg-article {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--shg-text);
}

.shg-article h2 {
  font-family: var(--shg-font-display);
  text-transform: uppercase;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  margin: 2rem 0 0.75rem;
  color: var(--shg-rust-bright);
}

.shg-article h2:first-child {
  margin-top: 0;
}

.shg-article p {
  margin: 0 0 1rem;
  color: var(--shg-text-muted);
}

.shg-article ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--shg-text-muted);
}

.shg-article li {
  margin-bottom: 0.4rem;
}

.shg-article li strong {
  color: var(--shg-text);
}

.shg-article a {
  color: var(--shg-caution);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.shg-article a:hover {
  color: var(--shg-rust-bright);
}

.shg-callout {
  border-left: 3px solid var(--shg-caution);
  background: var(--shg-surface);
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
  border-radius: 0 4px 4px 0;
}

.shg-callout p {
  margin: 0;
  color: var(--shg-text);
  font-family: var(--shg-font-mono);
  font-size: 0.88rem;
  line-height: 1.55;
}

.shg-footer-nav {
  margin-top: 0.5rem;
}

.shg-footer-nav a {
  color: var(--shg-caution);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.shg-footer-nav a:hover {
  color: var(--shg-rust-bright);
}
