:root {
  --bg: #fffaf2;
  --surface: #ffffff;
  --ink: #243026;
  --muted: #667063;
  --line: #e7dfd2;
  --green: #2f6d45;
  --green-dark: #1d4f32;
  --tomato: #b74735;
  --lemon: #f4c95d;
  --sage: #dfe9d9;
  --shadow: 0 18px 55px rgba(36, 48, 38, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(255, 250, 242, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark,
.author-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-weight: 800;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--tomato);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: 9px 12px;
  font-weight: 800;
}

.hero,
.page-hero,
.section,
.newsletter,
.content-page,
.feature-band,
.author-preview,
.article,
.post-grid.wide {
  width: min(1160px, calc(100% - 36px));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: 54px 0 36px;
}

.hero-copy h1,
.page-hero h1,
.article-header h1 {
  margin: 0;
  max-width: 920px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

.article-header h1 {
  font-size: clamp(38px, 5.4vw, 62px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--tomato);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.lede {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--green);
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--green);
  color: white;
}

.button.secondary {
  background: transparent;
  color: var(--green-dark);
}

.hero-image img,
.page-hero.media img,
.article-image,
.post-card img,
.category-card img {
  border-radius: 8px;
  object-fit: cover;
}

.hero-image img {
  width: 100%;
  aspect-ratio: 1.2 / 1;
  box-shadow: var(--shadow);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(1160px, calc(100% - 36px));
  margin: 18px auto 54px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.trust-strip div {
  padding: 20px;
  background: var(--surface);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip span {
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 30px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.section h2,
.newsletter h2,
.feature-band h2,
.author-preview h2,
.content-page h2,
.article-section h2,
.related h2,
.author-box h2 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
  letter-spacing: 0;
}

.category-grid,
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.category-card,
.post-card a {
  display: block;
  min-height: 100%;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(36, 48, 38, 0.06);
}

.category-card img,
.post-card img {
  width: 100%;
  aspect-ratio: 1.35 / 1;
  margin-bottom: 14px;
}

.category-card strong,
.post-card h3 {
  display: block;
  margin: 4px 0 6px;
  font-size: 22px;
  line-height: 1.18;
}

.category-card span,
.post-card p,
.content-page p,
.article-section p {
  color: var(--muted);
}

.post-card span {
  color: var(--tomato);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  background: #f7efd9;
  border: 1px solid #eadfbd;
  border-radius: 999px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 850;
}

.post-card dl {
  display: flex;
  gap: 12px;
  margin: 14px 0 0;
}

.post-card dl div,
.quick-facts div {
  padding: 10px 12px;
  background: var(--sage);
  border-radius: 8px;
}

dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

dd {
  margin: 0;
  font-weight: 800;
}

.newsletter {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 28px;
  align-items: center;
  margin-block: 56px;
  padding: clamp(24px, 5vw, 44px);
  background: var(--green-dark);
  color: white;
  border-radius: 8px;
}

.newsletter p,
.newsletter .eyebrow {
  color: #f7eedf;
}

.newsletter form,
.contact-form {
  display: grid;
  gap: 12px;
}

.feature-band {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(24px, 5vw, 54px);
  align-items: start;
  margin-block: 42px;
  padding: clamp(24px, 5vw, 42px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(36, 48, 38, 0.06);
}

.feature-band p,
.author-preview p {
  color: var(--muted);
}

.finder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.finder-grid a {
  display: block;
  min-height: 132px;
  padding: 18px;
  background: #f8f1e6;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}

.finder-grid strong,
.finder-grid span {
  display: block;
}

.finder-grid span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.author-preview {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-block: 38px;
  padding: 24px;
  background: #f3eadb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.author-profile {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 30px;
}

.author-profile img,
.author-photo {
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}

.author-profile img {
  width: 100%;
}

.author-photo {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
}

.text-link {
  color: var(--green-dark);
  font-weight: 850;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  font: inherit;
}

.page-hero {
  padding: 54px 0 28px;
}

.page-hero.media {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 30px;
  align-items: center;
}

.page-hero.media img {
  aspect-ratio: 1.35 / 1;
}

.content-page {
  max-width: 820px;
  padding: 18px 0 70px;
}

.search-page {
  max-width: 900px;
}

.search-results {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.search-result a {
  display: block;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}

.search-result span {
  color: var(--tomato);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-result h2 {
  margin: 4px 0;
  font-size: 24px;
  line-height: 1.15;
}

.search-result p {
  margin: 0;
  color: var(--muted);
}

.article {
  max-width: 900px;
  padding-bottom: 70px;
}

.article-header {
  padding: 42px 0 16px;
}

.crumb {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 14px;
}

.article-image {
  width: 100%;
  aspect-ratio: 1.55 / 1;
  margin-top: 28px;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.quick-facts strong,
.quick-facts span {
  display: block;
}

.quick-facts span {
  color: var(--muted);
  font-size: 13px;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.toc a {
  color: var(--green-dark);
  font-weight: 800;
}

.article-header .tag-list {
  margin-top: 18px;
}

.article-links {
  margin: 28px 0;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.article-links h2 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 2.5vw, 34px);
  line-height: 1.08;
}

.article-links div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.article-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 12px;
  background: var(--sage);
  border-radius: 8px;
  color: var(--green-dark);
  font-weight: 850;
  text-decoration: none;
}

.article-section {
  margin-top: 34px;
}

.article-section h3 {
  margin: 22px 0 8px;
  font-size: 23px;
}

.check-list,
.step-list {
  padding-left: 24px;
}

.check-list li,
.step-list li,
.article-section li {
  margin-bottom: 8px;
}

details {
  margin: 12px 0;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

summary {
  cursor: pointer;
  font-weight: 900;
}

.notice {
  padding: 14px 16px;
  background: #fff4cf;
  border-left: 4px solid var(--lemon);
  border-radius: 8px;
}

.note-card {
  padding: 18px;
  background: #f3eadb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.note-card h2 {
  font-size: clamp(25px, 2.5vw, 34px);
}

.sources {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.post-grid.mini {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.author-box {
  display: flex;
  gap: 18px;
  margin-top: 42px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 30px;
  padding: 38px clamp(18px, 4vw, 56px);
  background: var(--ink);
  color: white;
}

.site-footer p,
.fineprint {
  color: #d7ded4;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  align-content: start;
  gap: 14px 20px;
}

.site-footer a {
  color: white;
  font-weight: 800;
}

.not-found {
  min-height: 58vh;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero,
  .page-hero.media,
  .author-profile,
  .feature-band,
  .author-preview,
  .newsletter,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .category-grid,
  .post-grid,
  .post-grid.mini,
  .finder-grid,
  .quick-facts,
  .trust-strip {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .site-footer nav {
    justify-content: start;
  }
}
