/* CreatorCapes — simple early-2010s community-site styling */
:root {
  --page: #e9edf2;
  --panel: #ffffff;
  --ink: #222;
  --muted: #666;
  --blue: #2b5797;
  --blue-dark: #1d3f70;
  --line: #c8cdd3;
  --max: 1040px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 15px/1.55 Arial, Helvetica, sans-serif;
}
a { color: var(--blue); text-decoration: underline; }
a:hover { color: var(--blue-dark); }
.site-header {
  background: #fff;
  border-bottom: 4px solid var(--blue);
}
.nav-wrap {
  max-width: var(--max); margin: auto; padding: 12px 20px;
  min-height: 66px; display: flex; align-items: center;
  justify-content: space-between; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: bold; font-size: 22px; color: #222; text-decoration: none; }
.brand img { width: 38px; height: 38px; }
.nav-links { display: flex; align-items: center; gap: 0; flex-wrap: wrap; }
.nav-links a {
  display: inline-block; padding: 8px 11px; color: var(--blue);
  font-size: 14px; text-decoration: none; border-right: 1px solid #e1e4e8;
}
.nav-links a:last-child { border-right: 0; }
.nav-links a.active, .nav-links a:hover { background: #edf2f8; text-decoration: underline; }
.menu-toggle {
  display: none; border: 1px solid var(--line); background: #f5f6f8;
  color: var(--ink); padding: 7px 10px; font: inherit; cursor: pointer;
}
main { min-height: 70vh; }
.container { width: min(var(--max), calc(100% - 32px)); margin: auto; }
.hero {
  padding: 54px 0 48px; background: #dce6f2;
  border-bottom: 1px solid #c4d1df;
}
.eyebrow { color: #53677f; font-size: 12px; font-weight: bold; text-transform: uppercase; letter-spacing: .08em; }
h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.15; margin: 8px 0 14px; color: #1f3550; }
h2 { font-size: 25px; line-height: 1.2; margin: 0 0 12px; color: #263d59; }
h3 { font-size: 18px; margin: 0 0 7px; }
.lead { font-size: 18px; max-width: 700px; color: #394b60; }
.actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.btn {
  display: inline-block; padding: 9px 14px; border: 1px solid #1d477d;
  background: var(--blue); color: #fff; font-weight: bold;
  text-decoration: none; border-radius: 3px;
}
.btn:hover { background: var(--blue-dark); color: #fff; }
.btn-secondary { background: #f7f8fa; color: var(--blue); border-color: #aeb8c4; }
.section { padding: 34px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-head p { color: var(--muted); margin: 0; max-width: 520px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 3px; padding: 18px;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.card p { color: #555; margin: 8px 0 0; }
.card-icon { display: none; }
.page-hero { padding: 32px 0 24px; background: #dce6f2; border-bottom: 1px solid #c4d1df; }
.page-hero h1 { margin-bottom: 8px; }
.page-hero p { color: #394b60; max-width: 760px; margin: 0; }
.notice {
  padding: 12px 15px; border: 1px solid #c7d4e2;
  background: #f4f7fa; border-left: 4px solid var(--blue); color: #394b60;
}
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tier { padding: 14px; border: 1px solid var(--line); background: #fff; border-radius: 3px; }
.tier h3 { color: #263d59; }
.tier small { color: #555; font-size: 14px; }
.download-list { display: grid; gap: 12px; }
.download-card { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { font-size: 12px; color: #394b60; background: #edf2f7; padding: 3px 7px; border: 1px solid #d5dce4; border-radius: 2px; }
.empty { color: var(--muted); padding: 20px; text-align: center; border: 1px dashed var(--line); background: #fff; }
.site-footer { border-top: 1px solid var(--line); padding: 22px 0; color: #666; font-size: 13px; background: #fff; }
.footer-wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; }
.muted { color: var(--muted); }
.tier-image {
  display: block; width: 100%; height: 160px; object-fit: contain;
  background: #f2f3f5; border: 1px solid #e0e3e7; margin-bottom: 12px;
}
.discord-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.discord-widget { width: min(100%, 350px); height: 500px; border: 1px solid var(--line); background: #fff; }
@media (max-width: 760px) {
  .nav-wrap { min-height: 60px; }
  .menu-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 60px; left: 0; right: 0; padding: 8px 16px;
    background: #fff; border-bottom: 1px solid var(--line); flex-direction: column;
    align-items: stretch; gap: 0;
  }
  .nav-links a { border-right: 0; border-bottom: 1px solid #edf0f3; }
  .nav-links.open { display: flex; }
  .grid, .tier-grid { grid-template-columns: 1fr; }
  .hero { padding: 38px 0 34px; }
  .section { padding: 26px 0; }
  .section-head { display: block; }
  .download-card { align-items: flex-start; flex-direction: column; }
}
