/* ── TOKENS ── */
:root {
  --ironoxide:    #A24936;
  --ironoxide-dk: #7d3828;
  --ridgeline:    #3E5642;
  --holler:       #282B27;
  --limestone:    #D8D6CF;
  --laurel:       #A3AD91;
  --ember:        #D56235;

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ════════════════════════════════════════════
   FRONT PAGE / COMING SOON
════════════════════════════════════════════ */

body.home,
body.page-template-front-page {
  min-height: 100vh;
  background-color: var(--ironoxide) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  overflow-x: hidden;
  position: relative;
}

/* ── TOPO BACKGROUND ── */
.topo-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.topo-bg img {
  width: 110%;
  height: 110%;
  margin: -5% 0 0 -5%;
  object-fit: cover;
  object-position: center;
  opacity: 0.25;
  mix-blend-mode: screen;
}

/* vignette removed */

/* ── PAGE WRAPPER ── */
.front-page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 2rem 6rem;
  text-align: center;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  animation: fadeIn 0.9s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── LOGO ── */
.front-logo {
  width: min(500px, 86vw);
  margin-bottom: 3rem;
  filter: drop-shadow(0 2px 28px rgba(0,0,0,0.3));
}

.front-logo img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── CTA BUTTON ── */
.front-cta {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ironoxide);
  background: var(--limestone);
  padding: 1rem 2.5rem;
  text-decoration: none;
  transition: background 0.15s;
  margin-bottom: 3.5rem;
}

.front-cta:hover { background: #fff; }

/* ── RECENT POSTS ── */
.front-posts {
  width: 100%;
  margin-bottom: 3.5rem;
}

.front-posts-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(216, 214, 207, 0.45);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.front-posts-label::before,
.front-posts-label::after {
  content: '';
  flex: 1;
  max-width: 3rem;
  height: 1px;
  background: rgba(216, 214, 207, 0.2);
}

.front-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(216, 214, 207, 0.1);
  border: 1px solid rgba(216, 214, 207, 0.1);
  text-align: left;
}

.front-post-card {
  background: rgba(40, 43, 39, 0.5);
  padding: 1.5rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: background 0.15s;
  backdrop-filter: blur(4px);
}

.front-post-card:hover {
  background: rgba(40, 43, 39, 0.75);
}

.front-post-tag {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember);
}

.front-post-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--limestone);
}

.front-post-date {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(216, 214, 207, 0.4);
  margin-top: auto;
  padding-top: 0.75rem;
}

.front-posts-none {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(216, 214, 207, 0.3);
  padding: 2rem;
  border: 1px solid rgba(216, 214, 207, 0.1);
}

/* ── DIVIDER ── */
.front-divider {
  width: 2.5rem;
  height: 1px;
  background: rgba(216, 214, 207, 0.25);
  margin-bottom: 3rem;
}

/* ── SOCIAL ICONS ── */
.front-socials {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.front-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(216, 214, 207, 0.45);
  text-decoration: none;
  transition: color 0.15s, transform 0.15s;
}

.front-social-link:hover {
  color: var(--limestone);
  transform: translateY(-2px);
}

.front-social-link svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* ── ELECTION NOTE ── */
.front-election-note {
  position: fixed;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(216, 214, 207, 0.3);
  white-space: nowrap;
  z-index: 2;
}

/* ════════════════════════════════════════════
   SINGLE POST
════════════════════════════════════════════ */

body.single-post,
body.page {
  background: var(--holler);
  color: var(--limestone);
  font-family: var(--font-body);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--holler);
  border-bottom: 1px solid rgba(216,214,207,0.08);
  padding: 0 2rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--limestone);
  text-decoration: none;
}

.site-nav-logo span { color: var(--ember); }

.site-nav-back {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(216,214,207,0.5);
  text-decoration: none;
  transition: color 0.15s;
}
.site-nav-back:hover { color: var(--limestone); }

.post-single {
  max-width: 740px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.post-single-eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.post-single-eyebrow::before {
  content: '';
  width: 1.5rem;
  height: 2px;
  background: var(--ember);
}

.post-single-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--limestone);
  margin-bottom: 1.25rem;
}

.post-single-meta {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(216,214,207,0.4);
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(216,214,207,0.08);
}

.post-feature-image {
  margin-bottom: 3rem;
}
.post-feature-image img {
  width: 100%;
  height: auto;
  display: block;
}

.post-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: rgba(216,214,207,0.8);
}

.post-content p { margin-bottom: 1.5rem; }

.post-content h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.8rem;
  text-transform: uppercase;
  color: var(--limestone);
  margin: 2.5rem 0 1rem;
  line-height: 1.1;
}

.post-content h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  text-transform: uppercase;
  color: var(--limestone);
  margin: 2rem 0 0.75rem;
}

.post-content a {
  color: var(--laurel);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.post-content a:hover { color: var(--limestone); }

.post-content blockquote {
  border-left: 4px solid var(--ironoxide);
  padding: 1.25rem 1.5rem;
  background: rgba(162,73,54,0.08);
  margin: 2rem 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.35;
  color: var(--limestone);
}

.post-content ul,
.post-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.post-content li { margin-bottom: 0.4rem; }

.post-content strong { color: var(--limestone); }

.post-content hr {
  border: none;
  border-top: 1px solid rgba(216,214,207,0.1);
  margin: 3rem 0;
}

.post-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2rem 0;
}

/* ── POST FOOTER ── */
.post-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(216,214,207,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.post-footer-back {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(216,214,207,0.5);
  text-decoration: none;
  transition: color 0.15s;
}
.post-footer-back:hover { color: var(--limestone); }

/* ── KG CARD WIDTHS (WordPress Gutenberg compat) ── */
.alignwide {
  margin-left: calc(50% - min(46vw, 560px));
  margin-right: calc(50% - min(46vw, 560px));
}

.alignfull {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
}

/* ── RESPONSIVE ── */
@media (max-width: 680px) {
  .front-posts-grid {
    grid-template-columns: 1fr;
  }

  .front-socials { gap: 1.5rem; }

  .front-election-note {
    font-size: 0.6rem;
    letter-spacing: 0.12em;
  }

  .post-single { padding: 3rem 1.5rem 5rem; }
}
