/*
Theme Name: WFC Blog
Theme URI: https://wordsforchange.com/
Author: Andrew Johnston
Description: A custom WordPress theme matching the Words for Change site.
Version: 1.0.0
Text Domain: wfc-blog
*/

:root {
  --plum: #8a5f8a;
  --blue: #5b80bb;
  --teal: #0f7f8c;
  --ink: #161616;
  --muted: #5f5f5f;
  --paper: #edf6f6;
  --panel: #f7fbfb;
  --max: 1180px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

@font-face {
  font-family: 'Usual';
  src: url('/assets/fonts/usual-regular-webfont.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Usual';
  src: url('/assets/fonts/usual-italic-webfont.woff') format('woff');
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: 'Usual';
  src: url('/assets/fonts/usual-medium-webfont.woff') format('woff');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Usual';
  src: url('/assets/fonts/usual-bold-webfont.woff') format('woff');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Usual';
  src: url('/assets/fonts/usual-extrabold-webfont.woff') format('woff');
  font-weight: 800;
  font-style: normal;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Usual', Arial, sans-serif;
  color: var(--ink);
  background: #f4fafa;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--plum);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

.nav {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 54px);
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: #fff;
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.25rem 0.1rem;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  background: rgba(255, 255, 255, 0.92);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.nav a:hover::after,
.nav a[aria-current='page']::after {
  transform: scaleX(1);
}

.page-shell {
  min-height: calc(100vh - 86px);
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(44px, 7vw, 80px) 28px clamp(56px, 8vw, 92px);
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) clamp(125px, 12vw, 165px) minmax(360px, 1.2fr);
  align-items: center;
  gap: clamp(30px, 4vw, 72px);
}

.hero-logo {
  width: min(100%, 470px);
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.06));
}

.headshot-frame {
  width: clamp(125px, 12vw, 165px);
  aspect-ratio: 1 / 1.15;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #e4ecec;
}

.headshot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy p {
  margin: 0;
  font-size: clamp(1.1rem, 1.9vw, 1.7rem);
  line-height: 1.28;
  font-weight: 400;
  max-width: 27ch;
}

.hero-copy h1 {
  margin: 18px 0 0;
  font-size: clamp(2rem, 2.9vw, 3rem);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-brand {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 26px 0 8px;
}

.blog .page-brand,
.home .page-brand {
  display: none;
}

.page-brand img {
  width: clamp(170px, 22vw, 250px);
  height: auto;
}

.page-intro {
  max-width: var(--max);
  margin: 0 auto;
  padding: 54px 28px 26px;
}

.page-intro h1 {
  margin: 0 0 10px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.page-intro p {
  margin: 0;
  max-width: 48rem;
  color: #333;
  font-size: 1.15rem;
  line-height: 1.6;
}

.page-intro--compact {
  padding-top: 0;
}

.feature-panel,
.content-panel {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px 84px;
}

.content-block {
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(91, 128, 187, 0.14);
  border-radius: 28px;
  padding: clamp(28px, 4vw, 46px);
  box-shadow: var(--shadow);
  backdrop-filter: blur(4px);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.7fr);
  gap: 28px;
}

.kicker {
  color: var(--blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.lead {
  font-size: clamp(1.15rem, 1.85vw, 1.4rem);
  line-height: 1.5;
  color: #202020;
}

.lead .feature-list {
  max-width: 36rem;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.feature-list li {
  position: relative;
  margin: 0;
  padding: 0 0 0 26px;
  line-height: 1.6;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  box-shadow: 0 0 0 4px rgba(15, 127, 140, 0.12);
  transform: translateY(-50%);
}

.stat-list {
  display: grid;
  gap: 14px;
}

.stat {
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(84, 121, 185, 0.08);
  border: 1px solid rgba(84, 121, 185, 0.12);
}

.stat strong {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.card {
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(91, 128, 187, 0.14);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.card + .card {
  margin-top: 28px;
}

.wfc-post-list {
  display: grid;
  gap: 28px;
}

.wfc-post-card {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(91, 128, 187, 0.14);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.wfc-post-card h2,
.wfc-post-card h1,
.wfc-entry h1 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.1;
}

.wfc-post-card h2 a,
.wfc-entry h1 a {
  text-decoration: none;
}

.wfc-meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.wfc-post-card p,
.wfc-post-card li,
.wfc-entry p,
.wfc-entry li,
.wfc-entry blockquote {
  font-size: 1.04rem;
  line-height: 1.7;
  color: #252525;
}

.wfc-entry a,
.wfc-post-card a.read-more,
.wfc-pagination a {
  color: var(--blue);
}

.wfc-entry img,
.wfc-post-card img {
  height: auto;
  border-radius: 18px;
}

.wfc-entry .wp-block-image,
.wfc-post-card .wp-block-image {
  margin: 1.5rem 0;
}

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

.wfc-pagination {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-top: 28px;
}

.wfc-pagination .nav-previous,
.wfc-pagination .nav-next {
  max-width: 48%;
}

.wfc-pagination a,
.wfc-back-link {
  text-decoration: none;
  font-weight: 700;
}

.site-footer {
  background: var(--blue);
  color: white;
  margin-top: 70px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 28px 46px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
}

.footer-contact {
  font-size: 0.98rem;
  line-height: 1.45;
}

.footer-contact strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 800;
}

.footer-contact a {
  color: white;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.footer-tagline {
  font-size: clamp(1.2rem, 1.9vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: right;
}

.footer-tagline em {
  font-style: italic;
  font-weight: 700;
}

.screen-reader-text {
  position: absolute;
  left: -9999px;
}

@media (max-width: 920px) {
  .hero-card {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 24px;
  }

  .headshot-frame {
    width: 140px;
  }

  .hero-copy p {
    max-width: 20ch;
  }

  .content-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-tagline {
    text-align: left;
  }
}

@media (max-width: 620px) {
  .nav {
    gap: 12px 20px;
    padding: 16px 0;
    min-height: auto;
  }

  .nav a {
    font-size: 0.98rem;
  }

  .page-brand img {
    width: min(220px, 62vw);
  }

  .hero {
    padding-top: 32px;
  }

  .hero-logo {
    max-width: 310px;
  }

  .card,
  .content-block,
  .wfc-post-card {
    border-radius: 20px;
    padding: 22px;
  }

  .feature-list {
    gap: 12px;
  }

  .feature-list li {
    padding-left: 22px;
  }

}
