/*
Theme Name: Walczak Policy
Theme URI: https://walczakpolicy.com/
Author: Walczak Policy Consulting
Description: A custom one-page theme for Walczak Policy Consulting.
Version: 2.1.0
Text Domain: walczak-policy
*/

:root {
  --wpc-paper: #f5f1e8;
  --wpc-panel: #eee8db;
  --wpc-ink: #1d2733;
  --wpc-ink-soft: #3a4652;
  --wpc-muted: #5a6570;
  --wpc-ochre: #b07b34;
  --wpc-ochre-light: #d3a05e;
  --wpc-dark-muted: #c3cbd3;
  --wpc-dark-faint: #8b96a1;
  --wpc-rule: rgba(29, 39, 51, 0.14);
  --wpc-max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--wpc-paper);
  color: var(--wpc-ink);
  font-family: "IBM Plex Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body,
button,
input,
textarea {
  font-family: "IBM Plex Sans", sans-serif;
}

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

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--wpc-ochre-light);
  outline-offset: 4px;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.wpc-site {
  width: 100%;
  overflow-x: clip;
}

.wpc-container {
  width: min(100%, var(--wpc-max));
  margin-inline: auto;
  padding-inline: 40px;
}

.wpc-site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--wpc-rule);
  background: rgba(245, 241, 232, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.admin-bar .wpc-site-header {
  top: 32px;
}

.wpc-header-inner {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wpc-wordmark,
.wpc-footer-wordmark {
  font-family: "Newsreader", serif;
  font-weight: 600;
  line-height: 1;
}

.wpc-wordmark {
  font-size: 22px;
}

.wpc-footer-wordmark {
  margin-bottom: 16px;
  font-size: 24px;
}

.wpc-accent {
  color: var(--wpc-ochre);
}

.wpc-nav {
  display: flex;
  gap: 30px;
  align-items: center;
  font-size: 14.5px;
  font-weight: 500;
}

.wpc-nav-cta,
.wpc-button,
.wpc-subscribe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 500;
  text-align: center;
}

.wpc-nav-cta {
  border: 1px solid var(--wpc-ink);
  padding: 9px 16px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.wpc-nav-mobile {
  position: relative;
  display: none;
}

.wpc-nav-mobile > summary {
  display: flex;
  width: 44px;
  height: 44px;
  cursor: pointer;
  list-style: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.wpc-nav-mobile > summary::-webkit-details-marker {
  display: none;
}

.wpc-nav-mobile > summary > span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--wpc-ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.wpc-nav-mobile[open] > summary > span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.wpc-nav-mobile[open] > summary > span:nth-child(2) {
  opacity: 0;
}

.wpc-nav-mobile[open] > summary > span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.wpc-mobile-menu {
  position: absolute;
  z-index: 60;
  top: 52px;
  right: 0;
  display: flex;
  min-width: 220px;
  padding: 10px;
  border: 1px solid rgba(29, 39, 51, 0.18);
  border-radius: 8px;
  background: var(--wpc-paper);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  flex-direction: column;
  gap: 2px;
}

.wpc-mobile-menu a {
  min-height: 44px;
  padding: 12px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
}

.wpc-mobile-menu a:hover {
  background: var(--wpc-panel);
  text-decoration: none;
}

.wpc-mobile-menu .wpc-mobile-cta {
  margin-top: 6px;
  background: var(--wpc-ink);
  color: var(--wpc-paper);
  text-align: center;
}

.wpc-hero {
  border-bottom: 1px solid var(--wpc-rule);
}

.wpc-hero-grid {
  display: grid;
  padding-block: 64px 60px;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: stretch;
  gap: 52px;
}

.wpc-hero-copy {
  align-self: center;
}

.wpc-eyebrow {
  color: var(--wpc-ochre);
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.wpc-hero .wpc-eyebrow {
  margin-bottom: 24px;
  letter-spacing: 0.16em;
}

.wpc-hero h1 {
  max-width: 11ch;
  margin: 0 0 24px;
  font-family: "Newsreader", serif;
  font-size: clamp(48px, 5vw, 60px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.02;
}

.wpc-hero-copy > p {
  max-width: 46ch;
  margin: 0 0 30px;
  color: var(--wpc-ink-soft);
  font-size: 18px;
  line-height: 1.6;
}

.wpc-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.wpc-button {
  min-height: 48px;
  padding: 14px 26px;
  border: 1px solid var(--wpc-ink);
  font-size: 15px;
}

.wpc-button-primary {
  background: var(--wpc-ink);
  color: var(--wpc-paper);
}

.wpc-button:hover,
.wpc-nav-cta:hover,
.wpc-subscribe:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.wpc-rail {
  padding: 32px 34px;
  border-radius: 8px;
  background: var(--wpc-ink);
  color: var(--wpc-paper);
}

.wpc-rail-heading {
  display: flex;
  margin-bottom: 16px;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.wpc-rail-label,
.wpc-rail-link,
.wpc-post-date,
.wpc-pub-meta {
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
}

.wpc-rail-label {
  color: var(--wpc-ochre-light);
  font-size: 11.5px;
  letter-spacing: 0.14em;
}

.wpc-rail-link {
  color: var(--wpc-dark-faint);
  font-size: 11.5px;
  white-space: nowrap;
}

.wpc-posts {
  display: grid;
  gap: 15px;
}

.wpc-post {
  display: grid;
  color: var(--wpc-paper);
  grid-template-columns: 70px 1fr;
  align-items: center;
  gap: 14px;
}

.wpc-thumb {
  width: 70px;
  height: 54px;
  border-radius: 5px;
  background: #31404e center/cover no-repeat;
}

.wpc-post-date {
  display: block;
  margin-bottom: 4px;
  color: var(--wpc-dark-faint);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  line-height: 1;
}

.wpc-post-title {
  display: block;
  font-family: "Newsreader", serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.22;
}

.wpc-rail-divider {
  height: 1px;
  margin: 24px 0 20px;
  background: rgba(255, 255, 255, 0.14);
}

.wpc-rail-pubs {
  display: grid;
  gap: 14px;
}

.wpc-rail-pub {
  display: block;
  padding-top: 11px;
  border-top: 2px solid var(--wpc-ochre);
}

.wpc-rail-pub-title {
  margin-bottom: 4px;
  font-family: "Newsreader", serif;
  font-size: 16px;
  line-height: 1.22;
}

.wpc-pub-meta {
  color: var(--wpc-dark-faint);
  font-size: 10.5px;
}

.wpc-stats {
  border-bottom: 1px solid var(--wpc-rule);
}

.wpc-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.wpc-stat {
  padding: 28px 34px;
  border-right: 1px solid rgba(29, 39, 51, 0.12);
}

.wpc-stat:first-child {
  padding-left: 40px;
}

.wpc-stat:last-child {
  border-right: 0;
}

.wpc-stat-number {
  font-family: "Newsreader", serif;
  font-size: 38px;
  line-height: 1.1;
}

.wpc-stat-label {
  color: var(--wpc-muted);
  font-size: 13px;
}

.wpc-section {
  padding-block: 72px;
}

.wpc-section-heading {
  display: flex;
  margin-bottom: 40px;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.wpc-section-heading h2,
.wpc-about h2,
.wpc-saltroad h2,
.wpc-cta h2 {
  margin: 0;
  font-family: "Newsreader", serif;
  font-weight: 500;
}

.wpc-section-heading h2,
.wpc-about h2 {
  font-size: 40px;
}

.wpc-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 38px 44px;
}

.wpc-service-rule {
  width: 28px;
  height: 2px;
  margin-bottom: 16px;
  background: var(--wpc-ochre);
}

.wpc-service h3 {
  margin: 0 0 8px;
  font-family: "Newsreader", serif;
  font-size: 22px;
  font-weight: 500;
}

.wpc-service p {
  margin: 0;
  color: var(--wpc-muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.wpc-about {
  border-block: 1px solid var(--wpc-rule);
  background: var(--wpc-panel);
}

.wpc-about-grid {
  display: grid;
  padding-inline: 0;
  grid-template-columns: 0.9fr 1.1fr;
}

.wpc-about-photo {
  position: relative;
  min-height: 540px;
}

.wpc-about-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wpc-about-copy {
  padding: 72px 40px 72px 56px;
}

.wpc-about h2 {
  margin: 16px 0 24px;
}

.wpc-about p {
  margin: 0 0 18px;
  color: var(--wpc-ink-soft);
  font-size: 16px;
  line-height: 1.65;
}

.wpc-about p:last-of-type {
  margin-bottom: 28px;
}

.wpc-text-link {
  padding-bottom: 3px;
  border-bottom: 2px solid var(--wpc-ochre);
  font-weight: 500;
}

.wpc-publications-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 56px;
}

.wpc-publication {
  display: block;
  padding: 22px 0;
  border-top: 1px solid rgba(29, 39, 51, 0.16);
}

.wpc-publication-title {
  margin-bottom: 6px;
  font-family: "Newsreader", serif;
  font-size: 20px;
  line-height: 1.25;
}

.wpc-publication .wpc-pub-meta {
  color: var(--wpc-muted);
  font-size: 12.5px;
}

.wpc-publications-more {
  margin-top: 8px;
  padding-top: 26px;
  border-top: 1px solid rgba(29, 39, 51, 0.16);
}

.wpc-saltroad {
  background: var(--wpc-ink);
  color: var(--wpc-paper);
}

.wpc-saltroad-inner {
  display: flex;
  padding-block: 52px;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
}

.wpc-saltroad-copy {
  flex: 1 1 560px;
}

.wpc-saltroad .wpc-eyebrow {
  color: var(--wpc-ochre-light);
}

.wpc-saltroad h2 {
  margin: 12px 0 14px;
  font-size: 38px;
  line-height: 1.05;
}

.wpc-saltroad p {
  max-width: 80ch;
  margin: 0;
  color: var(--wpc-dark-muted);
  font-size: 15.5px;
  line-height: 1.6;
}

.wpc-subscribe {
  flex: 0 0 auto;
  min-height: 50px;
  padding: 15px 30px;
  background: var(--wpc-ochre-light);
  color: var(--wpc-ink);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.wpc-cta {
  border-bottom: 1px solid var(--wpc-rule);
  text-align: center;
}

.wpc-cta-inner {
  padding-block: 80px;
}

.wpc-cta h2 {
  margin-bottom: 18px;
  font-size: 46px;
  line-height: 1.05;
}

.wpc-cta p {
  max-width: 52ch;
  margin: 0 auto 32px;
  color: var(--wpc-ink-soft);
  font-size: 17px;
}

.wpc-cta .wpc-button {
  padding: 16px 32px;
  font-size: 16px;
}

.wpc-site-footer-inner {
  display: grid;
  padding-block: 56px;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.wpc-contact {
  color: var(--wpc-ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.wpc-footer-social {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 28px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.wpc-inner-page {
  min-height: 60vh;
  padding-block: 72px;
}

.wpc-inner-page h1 {
  max-width: 18ch;
  margin-top: 0;
  font-family: "Newsreader", serif;
  font-size: 48px;
  font-weight: 500;
  line-height: 1.06;
}

.wpc-inner-page .entry-content {
  max-width: 760px;
  font-size: 17px;
  line-height: 1.7;
}

.wpc-inner-page .entry-content > *:first-child {
  margin-top: 0;
}

.wpc-inner-page .entry-content a {
  border-bottom: 2px solid var(--wpc-ochre);
}

.wpc-entry-meta {
  margin: -10px 0 32px;
  color: var(--wpc-muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wpc-archive-intro {
  max-width: 650px;
  margin: -16px 0 44px;
  color: var(--wpc-ink-soft);
  font-size: 17px;
  line-height: 1.65;
}

.wpc-archive-list {
  display: grid;
  max-width: 980px;
  grid-template-columns: 1fr 1fr;
  column-gap: 56px;
}

.wpc-archive-item {
  display: block;
  padding: 22px 0;
  border-top: 1px solid rgba(29, 39, 51, 0.16);
}

.wpc-archive-title {
  margin-bottom: 7px;
  font-family: "Newsreader", serif;
  font-size: 22px;
  line-height: 1.24;
}

.wpc-archive-meta {
  color: var(--wpc-muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.wpc-pagination {
  display: flex;
  margin-top: 36px;
  gap: 18px;
  font-weight: 600;
}

.wpc-pagination .page-numbers {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--wpc-rule);
  border-radius: 999px;
  align-items: center;
  justify-content: center;
}

.wpc-pagination .current {
  background: var(--wpc-ink);
  color: var(--wpc-paper);
}

.wpc-post-list {
  display: grid;
  max-width: 820px;
  gap: 0;
}

.wpc-post-card {
  padding: 28px 0;
  border-top: 1px solid var(--wpc-rule);
}

.wpc-post-card h2 {
  margin: 0 0 8px;
  font-family: "Newsreader", serif;
  font-size: 30px;
  font-weight: 500;
}

/* The ShareMyPost plugin is configured site-wide, including the homepage.
   Its floating post controls are not part of this landing-page design. */
.sharemypost-share-bar,
.sharemypost-modal-overlay {
  display: none !important;
}

@media (max-width: 900px) {
  .wpc-nav {
    gap: 18px;
  }

  .wpc-hero-grid {
    gap: 32px;
  }

  .wpc-rail {
    padding: 28px;
  }
}

@media (max-width: 768px) {
  body.admin-bar .wpc-site-header {
    top: 46px;
  }

  .wpc-container {
    padding-inline: 28px;
  }

  .wpc-header-inner {
    min-height: 78px;
  }

  .wpc-nav,
  .wpc-nav-cta {
    display: none;
  }

  .wpc-nav-mobile {
    display: block;
  }

  .wpc-hero-grid {
    padding-block: 44px 48px;
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .wpc-hero h1 {
    font-size: 40px;
  }

  .wpc-hero-copy > p {
    font-size: 17px;
  }

  .wpc-rail-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .wpc-stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .wpc-stat,
  .wpc-stat:first-child {
    padding: 24px 28px;
    border-right: 0;
    border-bottom: 1px solid rgba(29, 39, 51, 0.12);
  }

  .wpc-stat:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .wpc-section {
    padding-block: 52px;
  }

  .wpc-section-heading {
    margin-bottom: 32px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .wpc-section-heading h2,
  .wpc-about h2,
  .wpc-saltroad h2 {
    font-size: 32px;
  }

  .wpc-services-grid,
  .wpc-about-grid,
  .wpc-publications-grid,
  .wpc-archive-list,
  .wpc-site-footer-inner {
    grid-template-columns: 1fr;
  }

  .wpc-services-grid {
    gap: 34px;
  }

  .wpc-about-photo {
    min-height: 380px;
  }

  .wpc-about-copy {
    padding: 44px 28px;
  }

  .wpc-saltroad-inner {
    padding-block: 44px;
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .wpc-saltroad-copy {
    flex-basis: auto;
  }

  .wpc-cta-inner {
    padding-block: 60px;
  }

  .wpc-cta h2 {
    font-size: 36px;
  }

  .wpc-site-footer-inner {
    gap: 24px;
  }

  .wpc-footer-social {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 420px) {
  .wpc-container {
    padding-inline: 20px;
  }

  .wpc-hero h1 {
    font-size: 37px;
  }

  .wpc-button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .wpc-button {
    width: 100%;
  }

  .wpc-rail {
    padding: 24px 20px;
  }

  .wpc-post {
    grid-template-columns: 62px 1fr;
    gap: 12px;
  }

  .wpc-thumb {
    width: 62px;
    height: 50px;
  }

  .wpc-stat,
  .wpc-stat:first-child {
    padding: 22px 20px;
  }

  .wpc-stat-number {
    font-size: 34px;
  }

  .wpc-about-photo {
    min-height: 330px;
  }

  .wpc-cta h2 {
    font-size: 33px;
  }

  .wpc-subscribe {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
