/* FortWar dev blog (/blog): the only stylesheet the blog pages load. No game CSS, no fonts. */
:root {
  --bg: #070a16;
  --panel: #0e1428;
  --border: rgba(120, 200, 255, 0.16);
  --text: #dfe8ff;
  --muted: #8b97b8;
  --cyan: #4fe3ff;
  --violet: #a77bff;
  --warn: #ffc24f;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}
body {
  margin: 0;
  background: radial-gradient(1200px 500px at 50% -200px, rgba(167, 123, 255, 0.18), transparent 70%) no-repeat var(--bg);
  color: var(--text);
  font: 17px/1.65 "Segoe UI", system-ui, -apple-system, sans-serif;
  overflow-wrap: break-word;
}
a {
  color: var(--cyan);
}
img,
video,
iframe {
  max-width: 100%;
}
img,
video {
  height: auto;
}
.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header + footer */
header.site {
  border-bottom: 1px solid var(--border);
  background: rgba(7, 10, 22, 0.85);
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 60px;
}
.wordmark {
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.wordmark span {
  color: var(--violet);
}
.wordmark small {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
  margin-left: 4px;
}
footer.site {
  margin-top: 64px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
footer.site a {
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(79, 227, 255, 0.45);
  background: rgba(79, 227, 255, 0.1);
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover {
  background: rgba(79, 227, 255, 0.22);
}
.btn.play {
  border-color: transparent;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  color: #070a16;
}
.btn.play:hover {
  filter: brightness(1.1);
}
.btn.twitch {
  border-color: rgba(167, 123, 255, 0.5);
  background: rgba(167, 123, 255, 0.12);
}
.btn.big {
  font-size: 19px;
  padding: 14px 24px;
  white-space: normal;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* Index */
.hero {
  text-align: center;
  padding: 44px 0 24px;
}
.hero h1 {
  margin: 0;
  font-size: 44px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.tagline {
  color: var(--muted);
  margin: 10px 0 22px;
}
.filters {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 8px 0 24px;
}
.filter {
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.filter.on {
  color: var(--bg);
  background: var(--cyan);
  border-color: var(--cyan);
}
.cards {
  display: grid;
  gap: 18px;
}
.card {
  display: block;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
}
.card:hover {
  border-color: rgba(79, 227, 255, 0.5);
}
.card .cover {
  display: block;
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}
.card-body {
  padding: 16px 20px 18px;
}
.card h2 {
  margin: 6px 0 4px;
  font-size: 23px;
  line-height: 1.25;
}
.card p {
  margin: 0;
  color: var(--muted);
}
.empty {
  text-align: center;
  color: var(--muted);
}
.meta {
  color: var(--muted);
  font-size: 14px;
}
.chip {
  display: inline-block;
  padding: 1px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 1px;
}
.chip.story {
  background: rgba(167, 123, 255, 0.2);
  color: #cdb6ff;
}
.chip.update {
  background: rgba(79, 227, 255, 0.16);
  color: var(--cyan);
}
.banner {
  margin: 0 0 10px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  border: 1px dashed currentColor;
}
.banner.scheduled {
  color: var(--warn);
}
.banner.draft {
  color: #ff7a7a;
}
.post > .banner {
  margin-top: 24px;
}

/* Post */
.post article {
  padding-top: 28px;
}
.post article > .cover {
  display: block;
  width: 100%;
  border-radius: 12px;
  margin-bottom: 20px;
}
.post h1 {
  margin: 8px 0 4px;
  font-size: 38px;
  line-height: 1.15;
  font-weight: 900;
}
.byline {
  margin: 0 0 24px;
  color: var(--muted);
}
.body h2,
.body h3 {
  line-height: 1.25;
  margin: 1.8em 0 0.5em;
}
.body img,
.body video,
.body iframe {
  display: block;
  margin: 1.2em auto;
  border-radius: 10px;
}
.body iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
}
.body blockquote {
  margin: 1.2em 0;
  padding: 2px 18px;
  border-left: 3px solid var(--violet);
  color: #c5cfee;
  background: rgba(167, 123, 255, 0.06);
}
.body code {
  font: 0.9em ui-monospace, SFMono-Regular, Consolas, monospace;
  background: rgba(120, 200, 255, 0.1);
  padding: 1px 5px;
  border-radius: 4px;
}
.body pre {
  overflow-x: auto;
  padding: 14px 16px;
  border-radius: 8px;
  background: #0b1020;
  border: 1px solid var(--border);
}
.body pre code {
  background: none;
  padding: 0;
}
.body hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2em 0;
}
.cta {
  margin: 48px 0 24px;
  padding: 28px 20px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
}
.cta .actions {
  margin-top: 16px;
}
.prevnext {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.prevnext > * {
  flex: 1 1 0;
  text-decoration: none;
  line-height: 1.35;
}
.prevnext .next {
  text-align: right;
}
.prevnext small {
  display: block;
  color: var(--muted);
}
.all {
  text-align: center;
  margin-top: 28px;
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }
  .wrap {
    padding: 0 16px;
  }
  .wordmark {
    font-size: 19px;
  }
  .wordmark small {
    display: none;
  }
  .hero h1 {
    font-size: 34px;
  }
  .post h1 {
    font-size: 29px;
  }
}
