@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #070708;
  --ink: #0c0c0e;
  --surface: #141416;
  --fg: #f4f1ea;
  --muted: #b8b0a4;
  --gold: #e8b84a;
  --ember: #d4451a;
  --flame: #f07a1a;
  --card: #f3c12b;
  --card-ink: #111;
  --border: #2a2a2e;
  --font-display: "Bebas Neue", "Arial Narrow", sans-serif;
  --font-sans: "Manrope", ui-sans-serif, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
body {
  font-family: var(--font-sans);
  color: var(--fg);
  background: #070708;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, [type="submit"] { cursor: pointer; font-family: inherit; }

.site-wash {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(240, 122, 26, 0.35), transparent 55%),
    linear-gradient(180deg, #1a0c04 0%, #3a1508 18%, #c44812 42%, #e07a18 62%, #f0c24a 100%);
}

.header {
  background: var(--ink);
  border-bottom: 1px solid rgba(232, 184, 74, 0.2);
}
.header-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
}
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}
.logo-mark {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 0.4rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--gold);
  flex: 0 0 auto;
}
.logo-name {
  font-family: var(--font-display);
  font-size: 1.9rem;
  letter-spacing: 0.12em;
  color: var(--gold);
}
.search {
  display: flex;
  width: 100%;
  border: 1px solid rgba(232, 184, 74, 0.4);
  overflow: hidden;
}
.search input {
  flex: 1;
  min-width: 0;
  min-height: 2.75rem;
  border: 0;
  background: var(--surface);
  color: var(--fg);
  padding: 0 0.75rem;
  outline: none;
}
.search button {
  flex: 0 0 3.25rem;
  min-height: 2.75rem;
  border: 0;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
}
@media (min-width: 768px) {
  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.25rem;
  }
  .logo { justify-content: flex-start; }
  .logo-name { font-size: 2.25rem; }
  .search { max-width: 22rem; }
}

.wrap { max-width: 72rem; margin: 0 auto; padding: 1.25rem 1rem 2.5rem; }
.wrap.is-post { max-width: 58rem; }
@media (min-width: 768px) {
  .wrap { padding: 1.75rem 1.5rem 3.5rem; }
}
.hero { text-align: center; margin-bottom: 1.75rem; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 4vw, 2.25rem);
  letter-spacing: 0.12em;
  margin: 0;
  text-shadow: 0 1px 0 #7a4a00;
  text-wrap: balance;
}
.welcome {
  font-family: var(--font-display);
  letter-spacing: 0.16em;
  text-align: right;
  margin: 0.35rem 0 0;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
}
.rule { height: 1px; background: rgba(232, 184, 74, 0.5); margin-top: 0.75rem; }

.grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, 1fr); } }

.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  color: var(--card-ink);
  border: 2px solid var(--gold);
  border-radius: 0.4rem;
  overflow: hidden;
  box-shadow: 0 8px 0 rgba(0,0,0,0.35);
  height: 100%;
  min-width: 0;
}
.art {
  position: relative;
  aspect-ratio: 4/3;
  background: #0c0c0e;
  overflow: hidden;
}
.art-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(232,184,74,0.18), transparent 45%),
    linear-gradient(160deg, #1a1208, #0c0c0e 55%, #2a1408);
}
.art-frame {
  position: absolute;
  inset: 0.5rem;
  border: 1px solid rgba(232,184,74,0.7);
  pointer-events: none;
}
.art-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0c0c0e;
}
.art-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  color: var(--fg);
}
.art-brand { font-family: var(--font-display); font-size: clamp(1.3rem, 3vw, 1.75rem); letter-spacing: 0.18em; color: var(--gold); margin: 0; }
.art-kind { font-family: var(--font-display); font-size: clamp(0.95rem, 2vw, 1.15rem); letter-spacing: 0.14em; margin: 0.25rem 0 0; }
.stamp {
  position: absolute;
  right: 1.1rem;
  bottom: 1.2rem;
  transform: rotate(-18deg);
  border: 2px solid var(--ember);
  color: rgba(212, 69, 26, 0.9);
  font-family: var(--font-display);
  letter-spacing: 0.2em;
  padding: 0.1rem 0.4rem;
  font-size: 1.35rem;
  z-index: 2;
}
.card-body { padding: 0.9rem 1rem 1rem; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }
.card-body h2 { margin: 0; font-size: 0.86rem; line-height: 1.4; text-transform: uppercase; overflow-wrap: anywhere; }
.meta { font-size: 0.75rem; font-weight: 600; opacity: 0.75; margin: 0; }
.excerpt { font-size: 0.75rem; line-height: 1.45; opacity: 0.85; margin: 0; }
.btn-more {
  margin-top: auto;
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  background: #1e6bff;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 0.2rem;
}

.pager {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(232,184,74,0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.pager-meta { font-size: 0.75rem; letter-spacing: 0.04em; }
.pager-nav { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; }
.pager a, .pager span.cur {
  min-width: 2.75rem;
  min-height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 0.4rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.pager a { border: 1px solid rgba(232,184,74,0.45); background: var(--ink); color: var(--gold); }
.pager span.cur { background: var(--gold); color: var(--ink); }
.pager a.dim { opacity: 0.3; pointer-events: none; }

.post-page {
  color: var(--fg);
  background: rgba(10, 8, 8, 0.78);
  border: 1px solid rgba(232, 184, 74, 0.28);
  border-radius: 12px;
  padding: 1.15rem 0.9rem 1.5rem;
  overflow: hidden;
}
@media (min-width: 640px) {
  .post-page { padding: 1.5rem 1.5rem 1.85rem; }
}
.post-heading {
  display: block;
  width: 100%;
  margin: 0 0 0.85rem;
  text-align: center;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(1.05rem, 4.2vw, 1.75rem);
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-wrap: balance;
}
.post-rule {
  height: 1px;
  width: 100%;
  background: rgba(244, 241, 234, 0.28);
  margin: 0 0 0.7rem;
  border: 0;
}
.crumb {
  font-size: 0.78rem;
  color: #d8cfc4;
  margin: 0 0 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.crumb a { color: var(--gold); }
.post-frame {
  width: 100%;
  margin: 0 0 1.1rem;
  padding: 0;
  overflow: hidden;
  background: #0c0c0e;
  border: 2px solid var(--gold);
  border-radius: 6px;
}
.post-frame img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
  background: #0c0c0e;
}
.post-frame .art { aspect-ratio: 16/9; }
.post-copy {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #efe8dc;
  overflow-wrap: anywhere;
}
.post-copy p { margin: 0 0 0.7rem; }

.back { color: var(--gold); font-size: 0.9rem; display: inline-block; margin-top: 0.5rem; }
.empty { text-align: center; padding: 2rem 1rem; background: rgba(12,12,14,0.7); border: 1px solid rgba(232,184,74,0.4); border-radius: 0.6rem; }
