:root {
  --ink: #1a1a1a;
  --muted: #666;
  --line: #ddd;
  --bg: #f5f5f5;
  --panel: #fff;
  --bar: #222;
  --green: #2e8b57;
  --green-dark: #246b43;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 14px/1.5 "Trebuchet MS", Tahoma, sans-serif;
}

a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-bar {
  background: var(--bar);
  color: #fff;
}

.site-bar .row {
  width: min(960px, calc(100% - 20px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}

.logo {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.logo a { color: #fff; text-decoration: none; }

.site-bar nav {
  display: flex;
  gap: 16px;
  font-size: 13px;
}

.site-bar nav a { color: #ccc; }

.tagline {
  background: var(--green);
  color: #fff;
  text-align: center;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 700;
}

.wrap {
  width: min(960px, calc(100% - 20px));
  margin: 0 auto;
}

main.wrap {
  padding: 16px 0 28px;
}

.page-head {
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  margin: 0 0 4px;
  font-size: 22px;
}

.page-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.downloads {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 0 18px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.download {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.download:last-child { border-bottom: 0; }

.icon-img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  background: #eee;
  display: block;
}

.icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
}

.icon.bloons { background: #2f6fed; }
.icon.cafe { background: #c45c26; }
.icon.clash { background: #d4a017; color: #1a1200; }
.icon.pool { background: #1f7a3d; }
.icon.town { background: #5b7cfa; }

.sheet-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 0 0 12px;
}

.sheet-head .icon-img {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  flex-shrink: 0;
}

.sheet-head h1 {
  margin: 0;
}

.download h2 {
  margin: 0 0 2px;
  font-size: 16px;
  line-height: 1.25;
}

.cat {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.download .desc {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  min-width: 280px;
}

.btn {
  display: inline-block;
  text-align: center;
  padding: 7px 12px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
}

.btn.details {
  background: var(--green);
  color: #fff;
}

.btn.details:hover { background: var(--green-dark); }

.btn.play {
  background: #fff;
  color: var(--green-dark);
  border: 1px solid var(--green);
}

.btn.apple {
  background: #111;
  color: #fff;
}

.blog {
  margin: 0;
  padding: 14px 16px 8px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.blog h2 {
  margin: 0 0 8px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.blog-list article {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.blog-list article:last-child { border-bottom: 0; }

.blog-list h3 {
  margin: 0 0 3px;
  font-size: 14px;
}

.blog-list p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.site-foot {
  padding: 12px 0 24px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--line);
  background: #eee;
}

.site-foot .wrap { padding-top: 12px; }

.sheet {
  width: min(720px, calc(100% - 20px));
  margin: 16px auto 32px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 18px 20px;
}

.sheet .crumb {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--muted);
}

.sheet h1 {
  margin: 0 0 12px;
  font-size: 24px;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.sheet h2 {
  margin: 16px 0 6px;
  font-size: 16px;
}

.sheet p {
  margin: 0 0 10px;
  color: #333;
}

.post-hero {
  margin: 0 0 14px;
}

.post-hero img,
.post-body img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
}

.post-body {
  font-size: 14px;
  line-height: 1.55;
}

.post-body h2,
.post-body h3 {
  margin: 18px 0 8px;
  font-size: 17px;
}

.blog-list a {
  color: var(--ink);
  text-decoration: none;
}

.blog-list a:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

.blog-list .thumb {
  float: left;
  width: 72px;
  height: 48px;
  object-fit: cover;
  margin: 0 10px 0 0;
  border: 1px solid var(--line);
}

@media (max-width: 720px) {
  .site-bar .row {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-bar nav {
    gap: 12px;
    flex-wrap: wrap;
  }

  .tagline {
    font-size: 12px;
    line-height: 1.35;
    padding: 8px 12px;
  }

  .download {
    grid-template-columns: 56px 1fr;
  }

  .icon,
  .icon-img {
    width: 52px;
    height: 52px;
    font-size: 15px;
    border-radius: 10px;
  }

  .actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    min-width: 0;
  }

  .sheet {
    padding: 14px 12px;
    margin: 12px auto 24px;
  }

  .sheet h1 {
    font-size: 22px;
  }

  .blog-list .thumb {
    width: 64px;
    height: 42px;
  }

  .blog-list article {
    overflow: hidden;
  }
}
