/* Sitka — matches the original pipdig theme used by dapperanimals.com and
   thebloggerunion.com: edge-to-edge image grid with text overlaid on each
   tile, Karla UI type, Playfair Display headlines. */

:root {
  --ui-font: "Karla", -apple-system, sans-serif;
  --display-font: "Playfair Display", Georgia, serif;
}

body {
  font-family: var(--ui-font);
  font-size: 16px;
  background: #fff;
  color: #1f2025;
}
h1, h2, h3, h4 { font-family: var(--display-font); font-weight: 400; letter-spacing: 0; }

/* ------------------------------------------------------------- header --- */
.site-header {
  position: static;
  background: var(--navbar-bg, #fff);
  border-bottom: none;
  backdrop-filter: none;
}
.header-inner {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 34px;
  padding: 0;
  min-height: 54px;
  max-width: none;
}
.nav-list { gap: 30px; }
.nav-list a, .nav-sub-toggle {
  font-family: var(--ui-font);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--navbar-ink, #1f2025);
}
.nav-list a:hover { color: var(--accent); text-decoration: none; }
.sub { border-radius: 0; box-shadow: 0 8px 26px rgba(0,0,0,0.13); }
.sub a { font-size: 12px; letter-spacing: 1px; }

/* wordmark / logo band sits below the nav bar, centered */
.brand-band { text-align: center; padding: 26px 20px 22px; background: #fff; }
.brand-band img { margin: 0 auto; max-height: 118px; width: auto; }
.brand-band .wordmark {
  font-family: var(--ui-font);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1f2025;
}
.brand-band a:hover { text-decoration: none; }
/* the logo in the nav row is redundant in this theme */
.header-inner .logo { display: none; }

/* --------------------------------------------------------- post grid --- */
/* full-bleed three-across tiles, no gaps, caption overlaid on the image */
.page-blog .page-plain-head, .page-home .page-plain-head { display: none; }
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin: 0 0 3px;
  max-width: none;
}
.wrap:has(> .post-grid) { max-width: none; padding: 0; }

.post-card {
  position: relative;
  border-radius: 0;
  box-shadow: none;
  background: #111;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: block;
}
.post-card:hover { transform: none; box-shadow: none; }
.post-card img, .post-card .ph {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s ease;
}
.post-card:hover img { transform: scale(1.05); }
.post-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.45) 100%);
}

.pc-body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 0 26px 30px;
  text-align: center;
  color: #fff;
}
.pc-body h2 {
  font-family: var(--display-font);
  font-size: 1.5rem;
  line-height: 1.3;
  color: #fff;
  margin: 0 0 12px;
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}
/* category eyebrow above the headline */
.pc-cats {
  font-family: var(--ui-font);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
  margin: 0 0 10px;
}
.pc-cats a { color: #fff; }
.pc-cats a:hover { text-decoration: underline; }
/* date with the theme's flanking rules */
.post-card .post-meta {
  font-family: var(--ui-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.post-card .post-meta::before, .post-card .post-meta::after {
  content: ""; height: 1px; width: 26px; background: rgba(255,255,255,0.75);
}
.pc-excerpt { display: none; }

.pager { max-width: 1140px; margin: 40px auto 70px; padding: 0 24px; font-family: var(--ui-font); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; }

/* ------------------------------------------------------------- single --- */
.post-head { text-align: center; padding: 54px 0 6px; }
.post-head h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.25; }
.page-post .post-meta, .page-plain-head + .wrap .post-meta {
  font-family: var(--ui-font); font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--accent);
}
.page-plain-head { text-align: center; padding: 54px 0 4px; }
.prose { font-size: 16px; line-height: 1.8; }
.prose img { border-radius: 0; }
.post-hero img { border-radius: 0; }
.rel-card { border-radius: 0; box-shadow: none; }
.rel-card img { border-radius: 0; }
.rel-card span { font-family: var(--display-font); }
.related h3 { text-align: center; font-family: var(--ui-font); font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }

.site-footer { background: var(--navbar-bg, #1f2025); color: rgba(255,255,255,0.9); text-align: center; }
.site-footer a { color: #fff; }

@media (max-width: 900px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .post-grid { grid-template-columns: 1fr; }
  .header-inner { justify-content: space-between; padding: 10px 20px; }
  .brand-band { padding: 18px 20px 16px; }
}
