:root {
  --bg: #0b0f14;
  --bg-raised: #121820;
  --border: #1f2b38;
  --text: #d7e0e8;
  --text-dim: #8ba0b3;
  --accent: #34d399;
  --accent-dim: #1f8a63;
  --danger: #f87171;
  --max-width: 960px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(11, 15, 20, 0.9);
  backdrop-filter: blur(6px);
  z-index: 10;
}
.brand {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.site-header nav a {
  color: var(--text-dim);
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.95rem;
}
.site-header nav a:hover { color: var(--accent); }

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.hero h1 { font-size: 2.2rem; line-height: 1.2; margin: 0 0 1rem; }
.hero .tagline { color: var(--text-dim); font-size: 1.05rem; }
.hero-art {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }

.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #06120c; }
.btn-primary:hover { background: #4fe3ad; }
.btn-secondary { background: transparent; color: var(--accent); border-color: var(--accent-dim); }
.btn-secondary:hover { border-color: var(--accent); }

section { max-width: var(--max-width); margin: 0 auto; padding: 2.5rem 1.5rem; }
section h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }

.trailer-section { text-align: center; border-top: 1px solid var(--border); }
.trailer-embed {
  margin-top: 1.5rem;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}
.trailer-embed iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.trailer-facade {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-raised);
  cursor: pointer;
  overflow: hidden;
}
.trailer-facade img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.trailer-facade .play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4rem;
  height: 4rem;
  line-height: 4rem;
  border-radius: 50%;
  background: rgba(11, 15, 20, 0.75);
  color: var(--accent);
  font-size: 1.5rem;
  padding-left: 0.3rem; /* optically center the triangle */
}
.trailer-facade:hover .play-icon { background: var(--accent); color: #06120c; }

.play-section { text-align: center; border-top: 1px solid var(--border); }
.game-embed {
  margin-top: 1.5rem;
  padding: 3rem 1rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.game-embed iframe { border: 1px solid var(--border); border-radius: 8px; max-width: 100%; }
.embed-hint { color: var(--text-dim); font-size: 0.85rem; margin-top: 0.75rem; }

.about { border-top: 1px solid var(--border); }
.about p { color: var(--text-dim); }

.wishlist-section { border-top: 1px solid var(--border); }
.form-row { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1rem; }
.form-row input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-raised);
  color: var(--text);
  font-size: 1rem;
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status { min-height: 1.2rem; margin-top: 0.6rem; font-size: 0.9rem; }
.form-status-ok { color: var(--accent); }
.form-status-error { color: var(--danger); }

.feedback-section { border-top: 1px solid var(--border); }
.feedback-section textarea {
  width: 100%;
  margin-top: 1rem;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-raised);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
}

.devlog-preview { border-top: 1px solid var(--border); }
.post-list { list-style: none; padding: 0; margin: 1rem 0; }
.post-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}
.post-list a { color: var(--text); text-decoration: none; }
.post-list a:hover { color: var(--accent); }
.post-date { color: var(--text-dim); font-size: 0.85rem; white-space: nowrap; }

.devlog-post article, .devlog-index { max-width: 720px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.devlog-post h1 { font-size: 1.8rem; margin-bottom: 0.25rem; }
.devlog-post article :is(p, li) { color: var(--text-dim); }
.devlog-post article a { color: var(--accent); }
.back-link { color: var(--text-dim); text-decoration: none; font-size: 0.9rem; display: block; padding: 1rem 1.5rem 0; max-width: 720px; margin: 0 auto; }
.back-link:hover { color: var(--accent); }

.site-footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 2rem 1.5rem 3rem;
  color: var(--text-dim);
  font-size: 0.85rem;
}
.site-footer a { color: var(--text-dim); }
.site-footer a:hover { color: var(--accent); }

@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
}
