/* glemy-website's one stylesheet -- deliberately plain: this site's job
   is to communicate the engine's goals and devlog clearly, not to show
   off CSS. Dark theme matches glemy's own index.html. */

:root {
  --bg: #111;
  --bg-raised: #1a1a1a;
  --fg: #ccc;
  --fg-dim: #888;
  --accent: #e63946;
  --border: #333;
  --max-width: 46rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

.site-header {
  border-bottom: 1px solid var(--border);
}

.site-nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-brand {
  font-weight: bold;
  font-size: 1.25rem;
  color: var(--fg);
}

.site-nav-links {
  display: flex;
  gap: 1.25rem;
}

.site-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  color: var(--fg-dim);
  font-size: 0.9rem;
}

.site-footer p {
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-footer p.site-footer-tagline {
  color: var(--fg);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.hero {
  text-align: center;
  padding: 2rem 0 3rem;
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.25;
  max-width: 32rem;
  margin: 0 auto 1rem;
}

.hero-tagline {
  color: var(--fg-dim);
  font-size: 1.1rem;
  max-width: 38rem;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.button {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--fg);
}

.button:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.button-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.prose-section {
  margin-top: 3rem;
}

.prose-section p {
  margin-bottom: 1rem;
}

.goals-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.goals-list h3 {
  margin-bottom: 0.25rem;
}

.goals-list p {
  color: var(--fg-dim);
  margin-top: 0;
}

.devlog-intro {
  color: var(--fg-dim);
}

.devlog-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.devlog-entry-summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
  flex-wrap: wrap;
}

.devlog-entry-id {
  color: var(--fg-dim);
  font-variant-numeric: tabular-nums;
  margin-right: 0.5rem;
}

.devlog-entry-meta {
  color: var(--fg-dim);
  font-size: 0.9rem;
  white-space: nowrap;
}

.devlog-entry-back {
  margin-bottom: 1rem;
}

.devlog-section {
  margin-top: 2rem;
}

.devlog-section h2 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fg-dim);
}

.devlog-options dt {
  font-weight: bold;
  margin-top: 1rem;
}

.devlog-option-chosen {
  color: #4caf50;
}

.devlog-option-rejected {
  color: var(--fg-dim);
}

.devlog-references {
  padding-left: 1.25rem;
}

.devlog-references code,
.devlog-references a {
  font-family: ui-monospace, monospace;
  font-size: 0.9rem;
}

.games-intro {
  color: var(--fg-dim);
}

.game-card-list {
  display: grid;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.game-card {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-raised);
}

.game-card-icon {
  width: 5rem;
  height: 5rem;
  flex-shrink: 0;
}

.game-card-body h3 {
  margin: 0 0 0.25rem;
  font-size: 1.3rem;
}

.game-card-tagline {
  margin: 0 0 0.5rem;
  color: var(--fg);
  font-weight: 600;
}

.game-card-description {
  margin: 0 0 1rem;
  color: var(--fg-dim);
}

.game-card-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.game-card-play {
  display: inline-block;
}

.game-card-edge-link {
  font-size: 0.85rem;
  color: var(--fg-dim);
}

@media (max-width: 30rem) {
  .game-card {
    flex-direction: column;
    text-align: center;
  }
}

.devlog-category-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.devlog-category-filter-label {
  color: var(--fg-dim);
  font-size: 0.9rem;
}

.devlog-category-pill {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--fg-dim);
}

.devlog-category-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.devlog-category-count {
  color: var(--fg-dim);
  font-variant-numeric: tabular-nums;
}

.devlog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0 0;
}

.devlog-tag {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  background: var(--bg-raised);
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--fg-dim);
  font-family: ui-monospace, monospace;
}

.site-main code {
  font-family: ui-monospace, monospace;
  font-size: 0.9em;
  background: var(--bg-raised);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

/* Roadmap page: rendered from glemy's own docs/development-plan.jsonl,
   structured items grouped by phase (see glemy_website/pages/roadmap). */
.roadmap-intro {
  color: var(--fg-dim);
}

.roadmap-phase {
  margin-top: 2.5rem;
}

.roadmap-item-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.roadmap-item {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.25rem;
}

.roadmap-item-header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.roadmap-item-header h3 {
  margin: 0;
  font-size: 1.05rem;
}

.roadmap-item-id {
  color: var(--fg-dim);
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
}

.roadmap-item-description {
  color: var(--fg-dim);
  margin: 0;
}

.roadmap-item-resolution {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
}

.roadmap-ref {
  margin-right: 0.5rem;
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
}

.roadmap-status {
  display: inline-block;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.roadmap-status-planned {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg-dim);
}

.roadmap-status-in_progress {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.roadmap-status-completed {
  background: #1d3a24;
  color: #4caf50;
}

.roadmap-status-deferred {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg-dim);
}

.roadmap-status-superseded {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg-dim);
  text-decoration: line-through;
}
