:root {
  color-scheme: light;
  --bg: #f7f8f3;
  --panel: #ffffff;
  --ink: #1d2320;
  --muted: #65706b;
  --line: #dfe5dc;
  --accent: #287b6b;
  --accent-dark: #175b50;
  --warm: #c06f37;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
}

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

code {
  border-radius: 4px;
  background: #edf1ea;
  padding: 0.1rem 0.3rem;
  font-size: 0.92em;
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header,
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.nav a {
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  background: #e8eee6;
  color: var(--ink);
}

.hero {
  display: flex;
  align-items: center;
  min-height: 560px;
  padding: 64px 0 48px;
}

.hero-copy {
  max-width: 820px;
}

.hero-copy h1,
.page-title h1,
.game-info h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 4.8rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy p,
.page-title p,
.game-info p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.08rem;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--warm);
  font-weight: 800;
  text-transform: uppercase;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 700;
}

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

.button.ghost {
  background: #fff;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0 56px;
}

.section-grid article,
.project-item,
.game-placeholder {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 24px;
}

.section-grid h2,
.section-heading h2 {
  margin: 0 0 8px;
}

.section-grid p,
.project-item p {
  margin: 0;
  color: var(--muted);
}

.content-section,
.page-title,
.article,
.game-shell {
  padding: 56px 0;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-heading a,
.back-link,
.source-link {
  color: var(--accent-dark);
  font-weight: 700;
}

.post-list,
.project-list {
  display: grid;
  gap: 12px;
}

.post-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px 20px;
}

.post-row span,
.project-item span {
  font-weight: 800;
}

.post-row time {
  flex: 0 0 auto;
  color: var(--muted);
}

.article {
  max-width: 780px;
}

.article header h1 {
  margin: 16px 0 8px;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.article header p,
.article header time {
  color: var(--muted);
}

.article-body {
  margin-top: 36px;
  font-size: 1.06rem;
}

.prose {
  max-width: 760px;
}

.game-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 32px;
  align-items: center;
}

.game-placeholder {
  display: grid;
  min-height: 320px;
  place-items: center;
  text-align: center;
}

.game-placeholder span {
  color: var(--accent);
  font-size: 3rem;
  font-weight: 900;
}

.game-placeholder strong {
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 760px) {
  .site-header,
  .site-footer,
  .post-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .section-grid,
  .game-shell {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 36px;
  }

}
