:root {
  --ink: #16201d;
  --muted: #65716d;
  --paper: #fbfaf6;
  --panel: #ffffff;
  --line: #dfe5dd;
  --green: #1f6b57;
  --green-dark: #164c40;
  --blue: #245f8f;
  --red: #a94c3a;
  --gold: #d8a53d;
  --shadow: 0 22px 60px rgba(22, 32, 29, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(31, 107, 87, 0.08), transparent 420px),
    var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

a:hover {
  color: var(--green-dark);
}

button,
input,
textarea {
  font: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  z-index: 20;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 12px;
  color: #fff;
  background: var(--ink);
  clip: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 64px);
  background: rgba(251, 250, 246, 0.92);
  border-bottom: 1px solid rgba(223, 229, 221, 0.8);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--green);
  border-radius: 8px;
  font-weight: 800;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.main-nav .menu,
.site-footer .menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav {
  color: var(--muted);
  font-size: 0.95rem;
}

.main-nav a,
.nav-action {
  display: inline-flex;
  padding: 10px 12px;
  border-radius: 8px;
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
  color: var(--green-dark);
  background: rgba(31, 107, 87, 0.08);
}

.nav-action,
.button-link {
  color: #fff;
  background: var(--ink);
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.menu-toggle span:not(.screen-reader-text) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

main,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
  gap: clamp(24px, 5vw, 68px);
  align-items: center;
  min-height: calc(92vh - 84px);
  padding: clamp(42px, 6vw, 76px) 0 48px;
}

.eyebrow,
.category {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.single-header h1,
.section-heading h2,
.split-section h2,
.author-section h2,
.empty-state h1 {
  margin: 0;
  font-family: Newsreader, Georgia, serif;
  line-height: 1.02;
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(3rem, 6vw, 5.9rem);
}

.hero-text,
.page-hero p {
  max-width: 680px;
  margin: 24px 0;
  color: #3f4b47;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.65;
}

.search-box {
  display: flex;
  width: min(100%, 660px);
  padding: 6px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(22, 32, 29, 0.08);
}

.search-box input {
  min-width: 0;
  flex: 1;
  padding: 14px 16px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
}

.search-box button,
.form-submit .submit {
  min-width: 116px;
  color: #fff;
  background: var(--green);
  border: 0;
  border-radius: 7px;
  font-weight: 800;
  cursor: pointer;
}

.topic-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.topic-row a {
  padding: 9px 12px;
  color: var(--green-dark);
  background: rgba(31, 107, 87, 0.1);
  border: 1px solid rgba(31, 107, 87, 0.2);
  border-radius: 8px;
  font-weight: 700;
}

.hero-panel {
  position: relative;
  padding: 28px;
  color: #fff;
  background:
    linear-gradient(160deg, rgba(22, 32, 29, 0.92), rgba(31, 107, 87, 0.84)),
    radial-gradient(circle at 30% 20%, rgba(216, 165, 61, 0.35), transparent 34%),
    var(--green-dark);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
}

.hero-panel .category {
  color: #ffffff;
}

.hero-panel h2 {
  margin: 82px 0 14px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.05;
}

.hero-panel p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.65;
}

.hero-panel .text-link {
  display: inline-block;
  margin-top: 12px;
  color: #fff;
  font-weight: 800;
}

.section-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 20px 0 72px;
  overflow: hidden;
  background: var(--ink);
  border-radius: 8px;
}

.stats div {
  padding: 24px;
  color: #fff;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.stats div:last-child {
  border-right: 0;
}

.stats strong,
.stats span {
  display: block;
}

.stats strong {
  font-size: 1.5rem;
}

.stats span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.66);
}

.content-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
  margin-bottom: 82px;
}

.section-heading {
  grid-column: 1 / -1;
  max-width: 720px;
  margin-bottom: 8px;
}

.section-heading h2,
.split-section h2,
.author-section h2,
.page-hero h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.post-card {
  min-height: 290px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.post-card-image {
  display: block;
  height: 180px;
  margin: -24px -24px 22px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card h3 {
  margin: 22px 0 10px;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.15;
}

.post-card p,
.resource-item em,
.split-section p,
.author-section p,
.author-card p,
.widget,
.post-meta {
  color: var(--muted);
  line-height: 1.65;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 14px;
  font-size: 0.9rem;
}

.read-more,
.post-card a {
  color: var(--green-dark);
  font-weight: 800;
}

.resource-section {
  margin-bottom: 82px;
}

.resource-list {
  display: grid;
  gap: 12px;
}

.resource-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 0.72fr) minmax(260px, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.resource-item span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--blue);
  border-radius: 8px;
  font-weight: 800;
}

.resource-item strong {
  font-size: 1.1rem;
  line-height: 1.35;
}

.resource-item em {
  font-style: normal;
}

.split-section,
.author-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  margin-bottom: 82px;
  padding: clamp(28px, 5vw, 52px);
  border-radius: 8px;
}

.split-section {
  color: #fff;
  background: var(--green-dark);
}

.split-section .eyebrow,
.split-section p {
  color: rgba(255, 255, 255, 0.75);
}

.reference-stack {
  display: grid;
  gap: 12px;
}

.reference-stack a {
  padding: 18px 20px;
  color: var(--ink);
  background: #fff;
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  font-weight: 800;
}

.author-section {
  background: #ffffff;
  border: 1px solid var(--line);
}

.author-card {
  padding: 24px;
  background: #f8f1ee;
  border-left: 5px solid var(--red);
  border-radius: 8px;
}

.author-card strong {
  font-size: 1.35rem;
}

.page-hero {
  max-width: 860px;
  padding: clamp(48px, 8vw, 92px) 0 42px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
  align-items: start;
  margin-bottom: 82px;
}

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

.post-list .post-card {
  min-height: auto;
}

.sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
}

.widget {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.widget-title {
  margin: 0 0 14px;
  font-size: 1.1rem;
}

.widget ul {
  margin: 0;
  padding-left: 18px;
}

.single-layout {
  max-width: 860px;
}

.single-article {
  padding: clamp(48px, 8vw, 92px) 0 32px;
}

.single-header h1 {
  max-width: 820px;
  margin-top: 8px;
  font-size: clamp(2.7rem, 6vw, 5.4rem);
}

.single-featured-image {
  margin: 32px 0;
}

.single-featured-image img {
  width: 100%;
  border-radius: 8px;
}

.entry-content {
  font-size: 1.08rem;
  line-height: 1.85;
}

.entry-content a {
  color: var(--green-dark);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 2em;
  line-height: 1.2;
}

.entry-content blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 22px;
  color: #3f4b47;
  border-left: 5px solid var(--gold);
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
}

.entry-content th,
.entry-content td {
  padding: 10px;
  border: 1px solid var(--line);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.tag-list a {
  padding: 8px 10px;
  color: var(--green-dark);
  background: rgba(31, 107, 87, 0.1);
  border-radius: 8px;
  font-weight: 700;
}

.post-navigation,
.pagination-nav,
.comments-area,
.empty-state {
  margin: 34px 0 72px;
}

.post-navigation {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.post-navigation a,
.pagination-nav a,
.pagination-nav span,
.button-link {
  display: inline-flex;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.nav-next {
  text-align: right;
}

.comments-area {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.comment-list {
  padding-left: 22px;
}

.comment-respond input,
.comment-respond textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 32px 0 44px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer nav {
  margin-left: auto;
}

@media (max-width: 900px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .main-nav {
    display: none;
    width: 100%;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav .menu {
    justify-content: flex-start;
  }

  .nav-action {
    display: none;
  }

  .hero,
  .content-grid,
  .split-section,
  .author-section,
  .two-column {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .section-band {
    grid-template-columns: repeat(2, 1fr);
  }

  .resource-item {
    grid-template-columns: 46px 1fr;
  }

  .resource-item em {
    grid-column: 2;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 560px) {
  main,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  .brand {
    min-width: 0;
  }

  .hero h1,
  .single-header h1 {
    font-size: 3rem;
  }

  .search-box {
    display: grid;
  }

  .search-box button {
    min-height: 48px;
  }

  .section-band {
    grid-template-columns: 1fr;
  }

  .stats div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .post-navigation,
  .site-footer {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .site-footer nav {
    margin-left: 0;
  }
}
