/* =============================================
   Reference palette (not currently used)
   Saved for future color/effect experiments. Not applied anywhere —
   purely notes for later.

   Alternate "Store" shimmer gradient seen elsewhere (muted bronze/amber,
   vs. our current brighter gold at #8a6318 / #f0c14b / #fff6d0):
     linear-gradient(90deg, #8a6a2a 0%, #a8813a 50%, #8a6a2a 100%)

   Named colors from that same source, in case any fit a future palette:
     --sunny-yellow:  #FCD472
     --honey-amber:   #D4A65D
     --honey-deep:    #b8893f
     --lavender-mist: #C8B5D0
     --moss-green:    #7A9B76
     --blush-rose:    #E5C5D0
     --brick-red:     #C27B6B
     --autumn-orange: #D89B6A
     --mc-emerald:    #55bb55
   ============================================= */

:root {
  --bg: #141019;
  --bg-alt: #1a1522;
  --surface: #1c1826;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8e6f0;
  --text-muted: #9b96b0;
  --accent: #a476e0;
  --accent-contrast: #1a1626;

  /* Display font for headers/buttons/nav — Silkscreen (Google Fonts,
     SIL OFL license, loaded in default.hbs <head>), a freely licensed
     blocky pixel font. Only weights 400 and 700 exist, so headers use
     700 directly rather than a browser-faked bold.

     If you have legal rights to the actual Minecraft font file instead
     (e.g. extracted from your own game install for personal server
     branding — note Mojang's font itself isn't freely redistributable,
     so don't source it from random "free download" sites), uncomment
     the @font-face block below, drop the file at
     assets/fonts/minecraft.woff2, and change this variable to
     'Minecraft', sans-serif.
  */
  --font-display: 'Silkscreen', sans-serif;
  --font-body: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/*
@font-face {
  font-family: 'Minecraft';
  src: url('../fonts/minecraft.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
*/

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

.site-content { flex: 1 0 auto; }

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

img { max-width: 100%; display: block; }

.empty-state { text-align: center; color: var(--text-muted); }

/* Header */
.site-header {
  position: sticky;
  top: 6px;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  background-color: rgba(20, 16, 25, 0.94);
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.015) 0px, rgba(255, 255, 255, 0.015) 1px,
      transparent 1px, transparent 3px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(164, 118, 224, 0.02) 0px, rgba(164, 118, 224, 0.02) 1px,
      transparent 1px, transparent 3px
    );
}
.top-strip {
  position: sticky;
  top: 0;
  z-index: 101;
  height: 6px;
  background-image: repeating-linear-gradient(
    90deg,
    #6b4f96 0px, #6b4f96 6px,
    #2e2b38 6px, #2e2b38 12px
  );
  image-rendering: pixelated;
}
.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-logo-text { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: #fff; }
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; flex-wrap: wrap; }

.nav-more { position: relative; }
.nav-more-toggle {
  font-family: var(--font-display); background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-weight: 400; font-size: 0.85rem; letter-spacing: 0.02em;
  padding: 6px 2px; display: flex; align-items: center; gap: 4px;
}
.nav-more-toggle:hover { color: #fff; }
.nav-more-caret { font-size: 0.6rem; transition: transform 0.15s ease; }

.nav-more-menu {
  position: absolute; top: 100%; right: 0; margin-top: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  min-width: 170px; padding: 6px; display: flex; flex-direction: column; gap: 2px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}
.nav-more.open .nav-more-menu,
.nav-more:hover .nav-more-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-more.open .nav-more-caret,
.nav-more:hover .nav-more-caret {
  transform: rotate(180deg);
}
.nav-more-menu a {
  display: block; text-align: center; padding: 8px 10px; border-radius: 6px;
  font-family: var(--font-display); font-size: 0.82rem; color: var(--text-muted);
}
.nav-more-menu a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.site-nav a {
  font-family: var(--font-display); color: var(--text-muted); font-weight: 400; font-size: 0.85rem;
  letter-spacing: 0.02em; padding: 6px 2px; border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.site-nav a:hover { color: #fff; }
.site-nav .nav-current a { color: #fff; border-color: var(--accent); }

.site-nav a[href*="store" i] {
  font-weight: 700;
  color: #D4A65D;
  background-image: linear-gradient(90deg, #D4A65D 0%, #f5e0a0 50%, #D4A65D 100%);
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: navStoreSweep 6s ease-in-out infinite;
}
.site-nav a[href*="store" i]:hover {
  animation-duration: 1.5s;
  text-shadow: 0 0 10px rgba(212, 166, 93, 0.7);
}
@keyframes navStoreSweep {
  0%, 85% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Footer */
.site-footer {
  margin-top: 0;
  position: relative;
  background-color: rgba(20, 16, 25, 0.94);
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.015) 0px, rgba(255, 255, 255, 0.015) 1px,
      transparent 1px, transparent 3px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(164, 118, 224, 0.02) 0px, rgba(164, 118, 224, 0.02) 1px,
      transparent 1px, transparent 3px
    );
}
.site-footer::before {
  content: '';
  display: block;
  height: 6px;
  background-image: repeating-linear-gradient(
    90deg,
    #6b4f96 0px, #6b4f96 6px,
    #2e2b38 6px, #2e2b38 12px
  );
  image-rendering: pixelated;
}
.site-footer-inner {
  max-width: 1100px; margin: 0 auto; padding: 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 14px; color: var(--text-muted); font-size: 0.85rem;
}
.footer-copy { font-family: var(--font-display); font-size: 0.78rem; }
.footer-disclaimer {
  font-family: var(--font-display); font-size: 0.7rem; color: var(--text-muted);
  margin-top: -8px;
}
.footer-nav ul { list-style: none; display: flex; justify-content: center; gap: 16px; margin: 0; padding: 0; flex-wrap: wrap; }
.footer-nav a {
  font-family: var(--font-display); color: var(--text-muted); font-weight: 400; font-size: 0.82rem;
  letter-spacing: 0.02em; padding: 6px 2px; border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.footer-nav a:hover { color: #fff; }

/* Homepage feed */
.index-page { max-width: 1100px; margin: 0 auto; padding: 40px 24px 60px; }

/* Hero-only landing page */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  padding: 48px 24px 80px;
  position: relative;
  overflow: hidden;
  background-image: url('../images/hero-bg.webp');
  background-size: cover;
  background-position: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 25, 0.72);
}
.hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 14px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--bg) 0px, var(--bg) 14px,
    transparent 14px, transparent 28px
  );
  background-position: 0 bottom;
}
.hero-inner { position: relative; z-index: 1; max-width: 900px; width: 100%; margin: 0 auto; }
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-particle {
  position: absolute;
  bottom: -20px;
  border-radius: 50%;
  opacity: 0;
  animation: heroParticleFloat linear infinite;
}
@keyframes heroParticleFloat {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-110vh) translateX(var(--drift, 20px)); opacity: 0; }
}
.hero-connect { margin: 0 0 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero-connect[hidden] { display: none; }

.server-status { display: flex; align-items: center; gap: 8px; }
.status-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted);
  box-shadow: 0 0 6px var(--text-muted);
}
.status-dot--online { background: #55dd55; box-shadow: 0 0 6px #55dd55; }
.status-dot--offline { background: #dd5555; box-shadow: 0 0 6px #dd5555; }
.status-text { font-family: var(--font-body); font-size: 0.8rem; color: var(--text-muted); }

.ip-toggle { display: flex; gap: 6px; }
.ip-toggle-btn {
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 700;
  padding: 4px 12px; border-radius: 6px; border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04); color: var(--text-muted); cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.ip-toggle-btn:hover { color: #fff; }
.ip-toggle-btn.active { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }

.ip-box {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 24px; cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease;
}
.ip-box:hover { border-color: var(--accent); background: rgba(164, 118, 224, 0.08); }
.ip-label {
  font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 0.65rem; color: var(--text-muted);
}
.ip-address { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: #fff; }
.ip-port { font-family: var(--font-body); font-size: 0.8rem; color: var(--accent); }
.ip-hint { font-family: var(--font-body); font-size: 0.7rem; color: var(--accent); }



.hero-kicker {
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em;
  font-size: 0.8rem; font-weight: 700; margin: 0 0 8px;
}
.hero-title { font-family: var(--font-display); font-weight: 700; font-size: 6rem; line-height: 1; margin: 0 0 4px; color: #fff; }
@media (max-width: 700px) {
  .hero-title { font-size: 3rem; }
}
.hero-smp {
  font-family: var(--font-display); color: var(--text-muted); opacity: 0.6;
  font-size: 0.85rem; letter-spacing: 0.15em; margin: 0 0 10px;
}
.hero-tagline { color: var(--text); font-size: 1.05rem; margin: 0 0 24px; }
.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.discord-status {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.02em;
  font-size: 0.85rem; font-weight: 700; color: var(--accent); margin: 14px 0 0;
}
.btn { font-family: var(--font-display); padding: 12px 28px; border-radius: 8px; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.02em; }
.btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-secondary { background: rgba(255, 255, 255, 0.06); color: #fff; border: 1px solid var(--border); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); }

/* Minecraft-style beveled GUI buttons, scoped to the hero and CTA band */
.hero .btn,
.cta-band .btn {
  border-radius: 2px;
  border-style: solid;
  border-width: 3px;
  border-color: rgba(255, 255, 255, 0.45) rgba(0, 0, 0, 0.45) rgba(0, 0, 0, 0.45) rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
  transition: transform 0.08s ease, border-color 0.08s ease;
}
.hero .btn:hover,
.cta-band .btn:hover {
  border-color: rgba(0, 0, 0, 0.3) rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.3) rgba(0, 0, 0, 0.3);
  transform: translateY(1px);
}
.hero .btn:active,
.cta-band .btn:active {
  border-color: rgba(0, 0, 0, 0.45) rgba(255, 255, 255, 0.45) rgba(255, 255, 255, 0.45) rgba(0, 0, 0, 0.45);
  transform: translateY(2px);
}

/* Feature grid */
.feature-section {
  padding: 48px 24px 80px;
  background-color: var(--bg-alt);
  background-image:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.025) 0px, rgba(255, 255, 255, 0.025) 1px, transparent 1px, transparent 20px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.025) 0px, rgba(255, 255, 255, 0.025) 1px, transparent 1px, transparent 20px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.feature-section-inner { max-width: 1000px; margin: 0 auto; text-align: center; }
.feature-kicker {
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em;
  font-size: 0.78rem; font-weight: 700; margin: 0 0 8px;
}
.feature-heading { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; margin: 0 0 32px; color: #fff; }

/* Bento-style feature grid — two independent flex rows, so each row's
   cells can have different proportions without CSS Grid cell-count
   mismatches */
.feature-bento { display: flex; flex-direction: column; gap: 16px; text-align: left; }
.bento-row { display: flex; gap: 16px; flex-wrap: wrap; }
.bento-cell {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 22px;
  flex: 1 1 220px;
}
.bento-wide { flex: 2 1 280px; display: flex; align-items: center; gap: 14px; }
.bento-stat { flex: 1 1 140px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.bento-stat-number { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; color: var(--accent); }
.bento-stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 4px; }
.bento-stat-title { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--accent); margin: 0 0 8px; }

.feature-icon { display: inline-block; font-size: 1.4rem; color: var(--accent); margin-bottom: 10px; }
.feature-title { font-family: var(--font-display); font-weight: 700; margin: 0 0 8px; font-size: 1.05rem; color: #fff; }
.bento-wide-text { flex: 1; }
.bento-wide-text .feature-title { margin: 0 0 8px; }
.bento-wide-icon { width: 48px; height: 48px; image-rendering: pixelated; flex-shrink: 0; }
.feature-desc { margin: 0; font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* Pick a Path activity grid */
.path-grid {
  margin-top: 16px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; text-align: center;
}
.path-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 20px 14px;
  display: block; text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.path-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
.path-icon { display: block; font-size: 1.5rem; color: var(--accent); margin-bottom: 10px; }
.path-icon-slot { height: 56px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.path-icon-img { width: 48px; height: 48px; image-rendering: pixelated; }
.path-icon-img--large { width: 64px; height: 64px; }
.path-title {
  font-family: var(--font-display); font-weight: 700; font-size: 0.78rem;
  color: #fff; text-transform: uppercase; letter-spacing: 0; white-space: nowrap;
  margin: 0 0 6px;
}
.path-desc { font-size: 0.78rem; color: var(--text-muted); margin: 0; }

/* News preview */
.news-preview { padding: 56px 24px 60px; }
.news-preview-inner { max-width: 700px; margin: 0 auto; text-align: center; }
.news-kicker {
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.15em;
  font-size: 0.75rem; font-weight: 700; margin: 0 0 8px;
}
.news-heading { font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; margin: 0 0 28px; color: #fff; }

.news-card {
  text-align: left; background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 24px; margin-bottom: 20px;
}
.news-card-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.news-tag {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em;
  color: var(--tag-color, var(--text-muted));
  background: color-mix(in srgb, var(--tag-color, var(--text-muted)) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--tag-color, var(--text-muted)) 35%, transparent);
  border-radius: 6px; padding: 3px 8px;
}
.news-tag-pinned { color: var(--accent); background: rgba(164, 118, 224, 0.12); }
.news-card-date { font-size: 0.78rem; color: var(--text-muted); margin-left: auto; }
.news-card-title { font-size: 1.2rem; margin: 0 0 8px; color: #fff; }
.news-card-excerpt { font-size: 0.92rem; color: var(--text-muted); line-height: 1.6; margin: 0 0 14px; }
.news-card-link { font-size: 0.85rem; font-weight: 700; color: var(--accent); }

.news-readall {
  display: inline-block; font-family: var(--font-display); font-weight: 700;
  font-size: 0.85rem; color: var(--accent); border-bottom: 2px solid var(--accent); padding-bottom: 2px;
}

.news-list { margin-bottom: 24px; }
.news-list-item {
  display: flex; align-items: center; gap: 12px; padding: 14px 4px;
  border-bottom: 1px solid var(--border); color: var(--text);
}
.news-list-item:last-child { border-bottom: none; }
.news-list-date { font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; }
.news-list-title { flex: 1; text-align: left; font-size: 0.92rem; }
.news-list-arrow { color: var(--text-muted); font-size: 1.1rem; }
.news-list-item:hover .news-list-title { color: var(--accent); }

/* Full news index page (index.hbs) */
.news-page { max-width: 800px; margin: 0 auto; padding: 0 24px 80px; }

.news-controls { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 32px 0 28px; }
.news-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.news-tab {
  font: inherit; font-size: 0.8rem; font-weight: 600; padding: 7px 16px;
  border-radius: 8px; border: 1px solid var(--border); background: rgba(255,255,255,0.04);
  color: var(--text-muted); cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.news-tab:hover { background: rgba(255,255,255,0.08); }
.news-tab.active { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }

.news-search-row { display: flex; gap: 10px; width: 100%; max-width: 420px; }
.news-search-input {
  flex: 1; font: inherit; font-size: 0.9rem; padding: 10px 14px;
  border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
}
.news-search-input::placeholder { color: var(--text-muted); }
.news-rss-btn {
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 700;
  padding: 10px 16px; border-radius: 8px; border: 1px solid var(--border);
  background: rgba(255,255,255,0.04); color: var(--text-muted); white-space: nowrap;
}
.news-rss-btn:hover { color: #fff; background: rgba(255,255,255,0.08); }

.news-full-list { display: flex; flex-direction: column; gap: 18px; }
.news-full-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 22px;
}
.news-full-card-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.news-full-card-date { font-size: 0.78rem; color: var(--text-muted); margin-left: auto; }
.news-full-card-title { font-size: 1.15rem; margin: 0 0 8px; }
.news-full-card-title a { color: #fff; }
.news-full-card-title a:hover { color: var(--accent); }
.news-full-card-excerpt { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; margin: 0 0 12px; }

/* Closing CTA band */
.cta-band {
  text-align: center; padding: 64px 24px; background: var(--surface);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.cta-title { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; margin: 0 0 8px; color: #fff; }
.cta-text { margin: 0 0 24px; color: var(--text-muted); }

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.post-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.post-card:hover { border-color: var(--accent); }
.post-card-image { width: 100%; height: 160px; object-fit: cover; }
.post-card-body { padding: 16px; }
.post-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.03em; color: var(--accent); border: 1px solid var(--accent);
  border-radius: 6px; padding: 2px 8px; margin-bottom: 10px;
}
.post-card-title { margin: 0 0 6px; font-size: 1rem; color: #fff; }
.post-card-meta { margin: 0; font-size: 0.8rem; color: var(--text-muted); }
.post-card-excerpt { margin: 12px 0 0; font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

.post-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.post-card--featured .post-card-image { height: 100%; min-height: 260px; }
.post-card--featured .post-card-body { padding: 28px; display: flex; flex-direction: column; }
.post-card--featured .post-card-title { font-size: 1.5rem; }

.post-card-footer {
  margin-top: auto; padding-top: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.author-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; display: inline-block; vertical-align: middle; }
.author-name { margin-left: 8px; font-size: 0.85rem; color: var(--text-muted); vertical-align: middle; }
.read-more-btn {
  font-size: 0.82rem; font-weight: 700; color: var(--accent-contrast);
  background: var(--accent); padding: 8px 16px; border-radius: 8px;
}

@media (max-width: 700px) {
  .post-card--featured { grid-template-columns: 1fr; }
  .post-card--featured .post-card-image { height: 180px; }
}

/* Post / generic page */
.post-article, .page-article { max-width: 720px; margin: 0 auto; padding: 48px 24px 80px; }
.post-article-title, .page-article-title { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 1.9rem; margin: 0 0 8px; }
.post-article-meta { color: var(--text-muted); font-size: 0.85rem; margin: 0 0 24px; }
.post-article-image { width: 100%; border-radius: 10px; margin-bottom: 24px; }
.post-article-content, .page-article-content { font-family: var(--font-body); color: #d8d5e2; line-height: 1.7; }
.post-article-content a, .page-article-content a { color: var(--accent); text-decoration: underline; }

/* Koenig editor width classes — required so wide/full images and cards
   break out of the narrow article column instead of looking broken */
.kg-width-wide {
  width: 1040px;
  max-width: 1040px;
  margin-left: calc(50% - 520px);
  margin-right: calc(50% - 520px);
}
.kg-width-full {
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}
.kg-width-full img { width: 100%; display: block; }
@media (max-width: 1040px) {
  .kg-width-wide { width: 100%; max-width: 100%; margin-left: 0; margin-right: 0; }
}

/* =============================================
   Shared page header (partials/page-header.hbs)
   Used on every page except the homepage: Staff, Rules, Vote, News.
   ============================================= */
.page-header {
  text-align: center; padding: 40px 24px 32px;
  border-bottom: 2px dashed var(--border);
}
.page-header-kicker {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body);
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.3em;
  font-size: 0.74rem; font-weight: 800; margin: 0 0 10px;
}
.page-header-icon { width: 18px; height: 18px; image-rendering: pixelated; flex-shrink: 0; }
.page-header-title { font-family: var(--font-display); font-weight: 700; font-size: 2rem; margin: 0 0 8px; color: #fff; }
.page-header-subtitle { margin: 0; color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }
