﻿*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #f4f1ea;
  --color-surface: #ffffff;
  --color-surface-soft: #f8f6f1;
  --color-primary: #c85a2b;
  --color-primary-hover: #a9471f;
  --color-text: #1d261f;
  --color-muted: #5d6a62;
  --color-border: #d8d1c6;
  --color-accent: #6b4a2e;
  --color-accent-soft: rgba(107, 74, 46, 0.12);
  --color-logo-chip: #ffffff;
  --font-main: "Manrope", "Segoe UI", system-ui, sans-serif;
  --max-width: 1180px;
  --shadow-soft: 0 10px 30px rgba(29, 38, 31, 0.08);
  --shadow-card: 0 12px 32px rgba(29, 38, 31, 0.1);
  --border-radius: 18px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at top, rgba(149, 112, 84, 0.1) 0, transparent 34%),
    linear-gradient(180deg, #fbfaf7 0%, var(--color-bg) 100%);
  color: var(--color-text);
  font-family: var(--font-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Layout ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

main.container {
  flex: 1;
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}

/* ── Header / Nav ── */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  padding: 0.85rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: var(--color-logo-chip);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 0.4rem 0.65rem;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(29, 38, 31, 0.06);
}

.site-logo-image {
  width: auto;
  height: 50px;
  max-width: 260px;
  object-fit: contain;
  border-radius: 0;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition:
    color 0.2s,
    transform 0.2s,
    opacity 0.2s;
  padding: 0.35rem 0;
  opacity: 0.86;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--color-primary);
  opacity: 1;
}

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 4.75rem 1.5rem;
  background: linear-gradient(
    180deg,
    var(--color-surface) 0%,
    var(--color-surface-soft) 100%
  );
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 4rem);
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero-brand-heading {
  margin-bottom: 1rem;
}

.hero-brand-logo {
  width: min(620px, 100%);
  height: auto;
  display: inline-block;
}

.hero p {
  font-size: 1.1rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.games-intro {
  margin-bottom: 1.25rem;
}

.games-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.game-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(107, 74, 46, 0.3);
  box-shadow: 0 16px 36px rgba(29, 38, 31, 0.14);
}

.game-card-media {
  height: 150px;
}

.game-card-media-hallway {
  background: linear-gradient(
    125deg,
    #1f252d 0%,
    #2d3642 35%,
    #1d232a 70%,
    #14181d 100%
  );
}

.game-card-media-soon {
  background: linear-gradient(125deg, #49423c 0%, #6c6258 45%, #3a3530 100%);
}

.game-card-body {
  padding: 1.15rem 1.15rem 1.25rem;
}

.game-card-body h2 {
  margin: 0.2rem 0 0.55rem;
  color: var(--color-text);
  font-size: 1.2rem;
}

.game-card-body p {
  color: var(--color-muted);
}

.game-card-link {
  display: inline-block;
  margin-top: 0.65rem;
  color: var(--color-primary);
  font-weight: 600;
}

.status-pill-muted {
  background: rgba(107, 74, 46, 0.1);
  border-color: rgba(107, 74, 46, 0.22);
  color: var(--color-accent);
}

/* ── Games Page ── */
.game-spotlight {
  margin-top: 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.game-spotlight h2 {
  color: var(--color-text);
  margin-bottom: 0.4rem;
}

.status-pill {
  display: inline-block;
  background: rgba(200, 90, 43, 0.12);
  border: 1px solid rgba(200, 90, 43, 0.28);
  color: var(--color-primary);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.feature-list {
  margin: 0.75rem 0 1.2rem 1.1rem;
}

.feature-list li {
  margin-bottom: 0.55rem;
  color: var(--color-text);
}

.game-tagline {
  font-weight: 600;
  color: var(--color-text);
}

/* ── Cup o' Pandemonium card gradient ── */
.game-card-media-cafe {
  background: linear-gradient(
    125deg,
    #3d2a1a 0%,
    #7a4f2d 35%,
    #4a2e1a 70%,
    #2a1a10 100%
  );
}

/* ── Feature Grid (game detail pages) ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin: 0.75rem 0 2rem;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: 0 8px 18px rgba(29, 38, 31, 0.06);
}

.feature-card h3 {
  margin-bottom: 0.4rem;
  color: var(--color-text);
  font-size: 1rem;
}

.feature-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.93rem;
}

/* ── Roadmap Grid (game detail pages) ── */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 0.75rem 0 2rem;
}

.phase-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: 0 8px 18px rgba(29, 38, 31, 0.06);
}

.phase-card h3 {
  color: var(--color-text);
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.phase-card p {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.phase-status {
  font-size: 0.85rem;
}

.phase-status-active {
  color: #ffd97d;
}

.phase-timeline {
  font-size: 0.82rem !important;
  color: #8f8477 !important;
}

/* ── Home page sections ── */
.home-games,
.home-about {
  margin-top: 3.5rem;
}

.home-about {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-card);
}

.home-about h2 {
  margin-bottom: 0.75rem;
}

.home-about p {
  color: var(--color-muted);
  max-width: 680px;
  margin-bottom: 1.5rem;
}

/* ── About page sections ── */
.about-section {
  margin-bottom: 2.5rem;
}

.about-section p {
  color: var(--color-muted);
}

.about-section a:not(.btn) {
  color: var(--color-primary);
}

.back-link {
  display: inline-block;
  color: var(--color-primary);
  text-decoration: none;
  margin-bottom: 0.9rem;
}

.back-link:hover {
  color: var(--color-primary-hover);
}

/* ── Headings ── */
h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

/* ── Button ── */
.btn {
  display: inline-block;
  background-color: var(--color-primary);
  color: #fffaf2;
  padding: 0.82rem 1.55rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition:
    background-color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 8px 18px rgba(200, 90, 43, 0.2);
}

.btn:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-1px);
}

/* ── Forms ── */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin-top: 1.5rem;
}

label {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 0.25rem;
  display: block;
}

input,
textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  color: var(--color-text);
  font-size: 1rem;
  font-family: var(--font-main);
  transition: border-color 0.2s;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* ── Footer ── */
.site-footer {
  background-color: rgba(255, 255, 255, 0.72);
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 0;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.85rem;
}

.site-footer a {
  color: var(--color-primary);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--color-primary-hover);
}

.footer-newsletter {
  max-width: 620px;
  margin: 0 auto 1rem;
}

.footer-newsletter h3 {
  margin-bottom: 0.25rem;
}

.footer-newsletter p {
  margin-bottom: 0.6rem;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  align-items: center;
  margin: 0.35rem auto 0.5rem;
}

.newsletter-form input[type="email"] {
  min-width: 240px;
  max-width: 380px;
}

.newsletter-form .btn {
  padding: 0.65rem 1.25rem;
}

.newsletter-message {
  font-size: 0.9rem;
  margin-top: 0.4rem;
}

.newsletter-message.success {
  color: #166534;
}

.newsletter-message.error {
  color: #b91c1c;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* -- Devlog -- */
.devlog-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.post-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-card);
}

.post-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

.post-card h2 a {
  color: var(--color-text);
  text-decoration: none;
}

.post-card h2 a:hover {
  color: var(--color-primary-hover);
}

.meta {
  color: var(--color-muted);
  font-size: 0.85rem;
  margin: 0 0 0.75rem;
}

.read-more {
  font-size: 0.9rem;
  color: var(--color-primary-hover);
  text-decoration: none;
}

.read-more:hover {
  text-decoration: underline;
}

.narrow {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.page-heading {
  margin-bottom: 0.25rem;
}

.page-subheading {
  color: var(--color-muted);
  margin-bottom: 2rem;
}

.post-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.btn-secondary {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: var(--color-surface);
}

article p.lead {
  font-size: 1.1rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

article h2,
article h3 {
  margin-top: 2rem;
}

/* ── Responsive cleanup ── */
@media (max-width: 900px) {
  .site-header .container {
    gap: 1rem;
    align-items: center;
    flex-direction: column;
  }

  .site-nav ul {
    gap: 1rem;
    justify-content: flex-start;
  }

  .hero {
    padding: 3.5rem 1.25rem;
  }
}

@media (max-width: 700px) {
  .site-logo-image {
    height: 42px;
    max-width: 220px;
  }

  .hero-brand-logo {
    width: min(440px, 100%);
  }

  .games-gallery {
    grid-template-columns: 1fr;
  }

  .home-about,
  .game-spotlight,
  .feature-card,
  .phase-card,
  .post-card {
    box-shadow: none;
  }
}
