:root {
  --ink: #17211f;
  --ink-soft: #4d5a56;
  --muted: #75817d;
  --paper: #f4f3ee;
  --surface: #ffffff;
  --surface-soft: #e8eee8;
  --line: #d7dfda;
  --accent: #bdf45b;
  --accent-strong: #8acb35;
  --coral: #ff826b;
  --blue: #a9dce4;
  --dark: #14201e;
  --shadow: 0 18px 45px rgba(23, 33, 31, 0.08);
  --radius-sm: 0.65rem;
  --radius-md: 1rem;
  --radius-lg: 1.45rem;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

a:hover {
  color: #476c1c;
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.65rem 0.9rem;
  border-radius: 0.5rem;
  background: var(--accent);
  color: var(--ink);
  font-weight: 800;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.container {
  width: min(var(--max-width), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(215, 223, 218, 0.9);
  background: rgba(244, 243, 238, 0.96);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  min-height: 4.55rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: -0.04em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 0.7rem;
  background: var(--accent);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 0.88rem;
  font-weight: 950;
  letter-spacing: -0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-link,
.search-button,
.menu-toggle {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-link {
  padding: 0.7rem 0.78rem;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  background: var(--surface);
  color: var(--ink);
}

.search-button,
.menu-toggle {
  display: inline-grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  padding: 0;
}

.search-button:hover,
.menu-toggle:hover {
  background: var(--accent);
  color: var(--ink);
  transform: translateY(-1px);
}

.icon {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.menu-toggle {
  display: none;
}

.header-search {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.header-search__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-block: 0.85rem;
}

.header-search[hidden] {
  display: none;
}

.search-form {
  display: flex;
  gap: 0.6rem;
  width: 100%;
}

.search-field {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--paper);
  padding-inline: 0.85rem;
}

.search-field:focus-within {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(138, 203, 53, 0.18);
}

.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  padding-block: 0.78rem;
}

.button {
  display: inline-flex;
  min-height: 2.85rem;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  padding: 0.68rem 1rem;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  color: #fff;
  background: #2d403a;
  box-shadow: 3px 3px 0 var(--accent);
  transform: translateY(-1px);
}

.button--light {
  border-color: rgba(255, 255, 255, 0.7);
  background: #fff;
  color: var(--ink);
}

.button--light:hover {
  background: var(--accent);
  color: var(--ink);
}

.button--accent {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
}

.button--accent:hover {
  background: #d2fb87;
  color: var(--ink);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 31rem;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: var(--dark);
  color: #fff;
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: 0;
  display: block;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.hero::before {
  top: -10rem;
  right: 14%;
  width: 22rem;
  height: 22rem;
  background: var(--accent);
  opacity: 0.95;
}

.hero::after {
  right: -4rem;
  bottom: -7rem;
  width: 19rem;
  height: 19rem;
  border: 1.4rem solid var(--coral);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 31rem;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  align-items: center;
  gap: 3rem;
  padding: 4.8rem clamp(1.25rem, 5vw, 5.5rem);
}

.eyebrow,
.section-kicker,
.category-tag {
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
}

.hero h1 {
  max-width: 12ch;
  margin: 0;
  color: #fff;
  font-size: clamp(2.8rem, 6.4vw, 5.7rem);
  font-weight: 860;
  letter-spacing: -0.075em;
  line-height: 0.96;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 36rem;
  margin: 1.4rem 0 1.75rem;
  color: #c6d0cd;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.hero-search {
  max-width: 38rem;
}

.hero-search .search-field {
  min-height: 3.7rem;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
}

.hero-search .search-field input {
  color: #fff;
  font-size: 0.98rem;
}

.hero-search .search-field input::placeholder {
  color: #b7c2bf;
}

.hero-art {
  position: relative;
  min-height: 22rem;
}

.hero-art__card {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: min(15rem, 72%);
  min-height: 10.5rem;
  border: 1px solid var(--ink);
  border-radius: 1.25rem;
  box-shadow: 9px 9px 0 rgba(0, 0, 0, 0.28);
  color: var(--ink);
  padding: 1.15rem;
}

.hero-art__card strong {
  display: block;
  max-width: 9ch;
  font-size: 1.45rem;
  letter-spacing: -0.06em;
  line-height: 1;
}

.hero-art__card small {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-art__card--one {
  top: 1rem;
  right: 14%;
  transform: rotate(5deg);
  background: var(--accent);
}

.hero-art__card--two {
  top: 8.5rem;
  left: 5%;
  transform: rotate(-7deg);
  background: var(--blue);
}

.hero-art__card--three {
  right: 2%;
  bottom: 0;
  transform: rotate(3deg);
  background: var(--coral);
}

.search-status {
  min-height: 1.35rem;
  margin: 0.65rem 0 0;
  color: #c6d0cd;
  font-size: 0.78rem;
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6.2rem);
}

.section--tight {
  padding-block: 2.75rem;
}

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

.section--green {
  background: var(--surface-soft);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.7rem;
}

.section-heading h2,
.page-hero h1 {
  margin: 0.35rem 0 0;
  color: var(--ink);
  font-size: clamp(1.75rem, 3.7vw, 3.1rem);
  font-weight: 850;
  letter-spacing: -0.065em;
  line-height: 1;
}

.section--dark .section-heading h2 {
  color: #fff;
}

.section-heading p {
  max-width: 30rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.section--dark .section-heading p {
  color: #b8c5c1;
}

.text-link {
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 850;
  white-space: nowrap;
}

.section--dark .text-link {
  color: var(--accent);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.post-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 4px 0 rgba(23, 33, 31, 0.03);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.post-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.post-card[hidden] {
  display: none;
}

.post-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--surface-soft);
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.post-card:hover .post-card__media img {
  transform: scale(1.03);
}

.post-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.1rem;
}

.post-card .category-tag {
  margin-bottom: 0.55rem;
}

.post-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 820;
  letter-spacing: -0.035em;
  line-height: 1.16;
}

.post-card h3 a {
  text-decoration: none;
}

.post-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0.7rem 0 1rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.card-arrow {
  color: var(--ink);
  font-size: 1.1rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
}

.feature-card {
  min-height: 15rem;
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 4vw, 2.5rem);
}

.feature-card--lime {
  background: var(--accent);
}

.feature-card--blue {
  background: var(--blue);
}

.feature-card--coral {
  background: var(--coral);
}

.feature-card h3 {
  max-width: 14ch;
  margin: 0.55rem 0 0.8rem;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 850;
  letter-spacing: -0.07em;
  line-height: 1;
}

.feature-card p {
  max-width: 36rem;
  margin: 0 0 1.2rem;
  color: var(--ink-soft);
}

.feature-card .category-tag {
  color: var(--ink);
}

.feature-card__list {
  display: grid;
  gap: 0.25rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.feature-card__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(23, 33, 31, 0.18);
  padding-block: 0.65rem;
  font-size: 0.92rem;
  font-weight: 750;
  text-decoration: none;
}

.feature-card__list a::after {
  content: "↗";
  font-size: 1.1rem;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.tool-card {
  min-height: 12.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 1.25rem;
}

.tool-card__icon {
  display: inline-grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  border-radius: 0.8rem;
  background: var(--accent);
  color: var(--ink);
  font-size: 1.35rem;
}

.tool-card h3 {
  margin: 1rem 0 0.35rem;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.tool-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.83rem;
}

.status-pill {
  display: inline-flex;
  margin-top: 1rem;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--ink-soft);
  padding: 0.25rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-hero {
  padding: clamp(3.5rem, 8vw, 6rem) 0 3rem;
  background: var(--surface-soft);
}

.page-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.42fr);
  align-items: end;
  gap: 2rem;
}

.page-hero h1 {
  max-width: 15ch;
  font-size: clamp(2.55rem, 6vw, 5rem);
}

.page-hero p {
  max-width: 42rem;
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.page-hero__aside {
  justify-self: end;
  max-width: 18rem;
  border-left: 3px solid var(--accent-strong);
  padding-left: 1rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  width: min(var(--max-width), calc(100% - 2rem));
  margin-inline: auto;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb__separator {
  color: var(--muted);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0.55rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.filter-button:hover,
.filter-button[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.collection-grid--focused {
  grid-template-columns: minmax(0, 42rem);
  max-width: 46rem;
}

.collection-grid .post-card {
  min-height: 100%;
}

.search-empty {
  display: none;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink-soft);
  padding: 1.3rem;
}

.search-empty.is-visible {
  display: block;
}

.article-shell {
  padding-block: clamp(2.5rem, 7vw, 5rem);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 820px) minmax(12rem, 1fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 5rem);
}

.article {
  min-width: 0;
}

.article__header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.7rem;
}

.article__header h1 {
  max-width: 14ch;
  margin: 0.55rem 0 1rem;
  font-size: clamp(2.35rem, 5.5vw, 4.7rem);
  font-weight: 860;
  letter-spacing: -0.075em;
  line-height: 0.98;
}

.article__summary {
  max-width: 48rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.article__body {
  padding-top: 1.8rem;
}

.article-hero-image {
  margin: 2rem 0 0;
}

.article-hero-image img {
  width: 100%;
  max-height: 34rem;
  object-fit: cover;
  background: var(--surface-soft);
}

.article-hero-image figcaption {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.sources-section {
  border-top: 1px solid var(--line);
  margin-top: 2.5rem;
  padding-top: 0.5rem;
}

.sources-section code {
  font-size: 0.8em;
}

.article__body h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  letter-spacing: -0.055em;
  line-height: 1.1;
}

.article__body h3 {
  margin: 1.8rem 0 0.55rem;
  font-size: 1.2rem;
  letter-spacing: -0.035em;
}

.article__body p,
.article__body li {
  color: var(--ink-soft);
  font-size: 1rem;
}

.article__body ul,
.article__body ol {
  padding-left: 1.35rem;
}

.article__body li + li {
  margin-top: 0.4rem;
}

.article__body a {
  color: #47741f;
  font-weight: 700;
}

.article__body table {
  width: 100%;
  margin: 1.2rem 0 1.7rem;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.article__body th,
.article__body td {
  border: 1px solid var(--line);
  padding: 0.75rem;
  text-align: left;
  vertical-align: top;
}

.article__body th {
  background: var(--surface-soft);
  color: var(--ink);
  font-weight: 850;
}

.article__body blockquote {
  margin: 1.5rem 0;
  border-left: 4px solid var(--accent-strong);
  background: var(--surface-soft);
  padding: 1rem 1.2rem;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 750;
}

.article-note {
  margin: 1.5rem 0;
  border: 1px solid #b7d4b4;
  border-radius: var(--radius-md);
  background: #eaf5e6;
  padding: 1rem 1.1rem;
}

.article-note strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--ink);
}

.article-note p {
  margin: 0;
  font-size: 0.9rem;
}

.article-sidebar {
  position: sticky;
  top: 6.2rem;
}

.related-posts {
  border-top: 1px solid var(--ink);
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-top: 1.35rem;
}

.related-posts__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.related-posts__heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
}

.related-posts__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.related-post-card {
  min-width: 0;
}

.sidebar-card {
  border-top: 3px solid var(--accent-strong);
  border-bottom: 1px solid var(--line);
  padding-block: 1rem;
}

.sidebar-card h2 {
  margin: 0 0 0.7rem;
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.sidebar-card ul {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-card li {
  font-size: 0.82rem;
}

.sidebar-card a {
  color: var(--ink-soft);
  font-weight: 700;
  text-decoration: none;
}

.ad-slot {
  display: grid;
  min-height: 6rem;
  place-items: center;
  margin-block: 1.5rem;
  border: 1px dashed #bcc7c1;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.36);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ad-slot::before {
  content: "Ad space reserved";
}

.affiliate-button {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  padding: 0.65rem 1rem;
  font-size: 0.84rem;
  font-weight: 850;
  text-decoration: none;
}

.affiliate-button:hover {
  color: var(--ink);
  background: #d1fb85;
}

.policy-card,
.contact-card {
  max-width: 820px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: clamp(1.3rem, 4vw, 2.5rem);
}

.policy-card h2,
.contact-card h2 {
  margin: 2rem 0 0.65rem;
  font-size: 1.45rem;
  letter-spacing: -0.05em;
}

.policy-card h2:first-child,
.contact-card h2:first-child {
  margin-top: 0;
}

.policy-card p,
.policy-card li,
.contact-card p {
  color: var(--ink-soft);
}

.policy-card ul {
  padding-left: 1.3rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.55fr);
  gap: 1rem;
}

.contact-form {
  display: grid;
  gap: 0.9rem;
}

.form-field {
  display: grid;
  gap: 0.35rem;
}

.form-field label {
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 850;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--paper);
  color: var(--ink);
  padding: 0.75rem 0.85rem;
}

.form-field textarea {
  min-height: 9rem;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent-strong);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(138, 203, 53, 0.18);
}

.site-footer {
  background: var(--dark);
  color: #d6e0dc;
  padding: 3.3rem 0 1.2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 2rem;
  padding-bottom: 2.6rem;
}

.site-footer .brand {
  color: #fff;
}

.footer-intro {
  max-width: 22rem;
  margin: 1rem 0 0;
  color: #aebcb7;
  font-size: 0.88rem;
}

.footer-heading {
  margin: 0 0 0.85rem;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: #d6e0dc;
  font-size: 0.86rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(214, 224, 220, 0.18);
  padding-top: 1.2rem;
  color: #91a09a;
  font-size: 0.75rem;
}

.footer-bottom p {
  margin: 0;
}

.no-results-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 980px) {
  .site-nav {
    position: absolute;
    top: 4.55rem;
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: 0.6rem;
  }

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

  .nav-link {
    border-radius: 0.65rem;
    padding: 0.85rem;
  }

  .search-button {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.75fr);
    gap: 1rem;
  }

  .card-grid--4,
  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 700px) {
  .container,
  .breadcrumb {
    width: min(100% - 2rem, var(--max-width));
  }

  .hero {
    border-radius: 0 0 1rem 1rem;
  }

  .hero-inner {
    display: block;
    min-height: 0;
    padding: 4.2rem 1.3rem 2rem;
  }

  .hero h1 {
    max-width: 10ch;
  }

  .hero-art {
    min-height: 15.5rem;
    margin-top: 1.2rem;
  }

  .hero-art__card {
    min-height: 7.7rem;
    width: 10.8rem;
    padding: 0.9rem;
  }

  .hero-art__card strong {
    font-size: 1.15rem;
  }

  .hero-art__card--one {
    right: 3%;
  }

  .hero-art__card--two {
    left: 1%;
    top: 5.2rem;
  }

  .hero-art__card--three {
    right: 10%;
    bottom: 0;
  }

  .section-heading,
  .page-hero__inner {
    display: block;
  }

  .section-heading .text-link {
    display: inline-block;
    margin-top: 0.75rem;
  }

  .card-grid,
  .card-grid--4,
  .collection-grid,
  .feature-grid,
  .tool-grid,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 0;
  }

  .page-hero {
    padding-top: 3rem;
  }

  .page-hero__aside {
    margin-top: 1.5rem;
    justify-self: start;
  }

  .article-sidebar {
    display: block;
  }

  .sidebar-card + .sidebar-card {
    margin-top: 1.25rem;
  }

  .article__body table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .header-inner {
    min-height: 4.1rem;
  }

  .site-nav {
    top: 4.1rem;
  }

  .brand {
    font-size: 0.96rem;
  }

  .brand-mark {
    width: 1.9rem;
    height: 1.9rem;
  }

  .hero h1 {
    font-size: 3.15rem;
  }

  .search-form {
    flex-direction: column;
  }

  .search-form .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Editorial blog home */
.blog-home {
  --paper: #f8f7f2;
  --surface: #fffefa;
  --surface-soft: #ebeae3;
  --ink: #161815;
  --ink-soft: #50544f;
  --muted: #767b74;
  --line: #cfcec6;
  --accent: #dff036;
  --accent-strong: #748000;
  background: var(--paper);
}

.blog-header {
  position: relative;
  border-bottom: 0;
  background: var(--paper);
  backdrop-filter: none;
}

.blog-brand-row {
  display: grid;
  min-height: 7rem;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.blog-brand {
  justify-self: start;
  font-size: 1.35rem;
}

.blog-brand .brand-mark {
  border-radius: 50%;
  background: var(--accent);
  box-shadow: none;
}

.brand-tagline {
  margin: 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.94rem;
  font-style: italic;
}

.blog-nav-wrap {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.blog-nav {
  justify-content: center;
  gap: 2.5rem;
  min-height: 3.35rem;
}

.blog-nav .nav-link {
  padding: 0;
  border-radius: 0;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.blog-nav .nav-link:hover {
  background: transparent;
  color: var(--accent-strong);
}

.blog-intro {
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.5rem, 6vw, 5.2rem);
}

.blog-intro__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.6fr);
  align-items: end;
  gap: clamp(2rem, 7vw, 6rem);
}

.blog-date,
.sidebar-label {
  margin: 0 0 0.8rem;
  color: var(--accent-strong);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.blog-intro h1 {
  margin: 0;
  max-width: 13ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7.2vw, 6.3rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.91;
}

.blog-intro__copy {
  margin: 0;
  border-left: 2px solid var(--ink);
  padding-left: 1.25rem;
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  line-height: 1.55;
}

.blog-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(20rem, 0.75fr);
  align-items: stretch;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--ink);
  padding-block: clamp(2rem, 5vw, 4rem);
}

.blog-feature__image {
  display: block;
  min-height: 25rem;
  overflow: hidden;
  background: #ecece5;
}

.blog-feature__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-feature__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.blog-feature__content h2 {
  margin: 0.8rem 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4vw, 3.8rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.blog-feature__content h2 a,
.story-row h3 a {
  color: var(--ink);
  text-decoration: none;
}

.blog-feature__content > p {
  margin: 0 0 1.2rem;
  color: var(--ink-soft);
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.read-link {
  display: inline-block;
  margin-top: 1.5rem;
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.blog-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.34fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 5rem);
  padding-block: clamp(3rem, 7vw, 6rem);
}

.blog-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 0.85rem;
}

.blog-section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.compact-search input {
  width: 13rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 0.45rem 0;
  color: var(--ink);
  font-size: 0.8rem;
  outline: none;
}

.compact-search input:focus {
  border-color: var(--ink);
}

.blog-search-status {
  margin: 0.8rem 0 0;
  color: var(--muted);
}

.story-row {
  display: grid;
  grid-template-columns: minmax(11rem, 0.38fr) minmax(0, 0.62fr);
  gap: 1.4rem;
  border-bottom: 1px solid var(--line);
  padding-block: 1.7rem;
}

.story-row[hidden] {
  display: none;
}

.story-row__image {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #ecece5;
}

.story-row__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.story-row:hover .story-row__image img {
  transform: scale(1.025);
}

.story-row__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.story-row h3 {
  margin: 0.45rem 0 0.55rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.story-row p {
  margin: 0 0 0.8rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.55;
}

.archive-link {
  display: block;
  margin-top: 1.5rem;
  border: 1px solid var(--ink);
  padding: 0.85rem 1rem;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.archive-link:hover {
  background: var(--ink);
  color: #fff;
}

.blog-sidebar {
  position: sticky;
  top: 1rem;
}

.sidebar-block {
  border-top: 4px solid var(--ink);
  padding: 1.4rem 0 2rem;
}

.sidebar-block + .sidebar-block {
  margin-top: 1.5rem;
}

.sidebar-block--accent {
  border: 0;
  background: var(--accent);
  padding: 1.5rem;
}

.sidebar-block--accent .sidebar-label {
  color: #5f6800;
}

.sidebar-block h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.quick-fix-list {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.quick-fix-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(22, 24, 21, 0.25);
  padding-block: 0.75rem;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 750;
  text-decoration: none;
}

.quick-fix-list b {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  font-weight: 500;
}

.topic-list {
  display: grid;
  margin-top: 1rem;
}

.topic-list a {
  display: grid;
  border-bottom: 1px solid var(--line);
  padding-block: 0.8rem;
  color: var(--ink);
  text-decoration: none;
}

.topic-list span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
}

.topic-list small {
  color: var(--muted);
  font-size: 0.7rem;
}

.blog-category-strip {
  border-top: 1px solid var(--ink);
  padding-block: clamp(3rem, 6vw, 5rem);
}

.category-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.category-tiles--live {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.category-tiles a {
  display: flex;
  min-height: 13rem;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  padding: 1.2rem;
  text-decoration: none;
  transition: background 150ms ease;
}

.category-tiles a:hover {
  background: var(--accent);
}

.category-tiles__number {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
}

.category-tiles strong {
  margin-top: auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.category-tiles small {
  color: var(--muted);
  font-size: 0.72rem;
}

.blog-footer {
  border-top: 6px solid var(--accent);
}

@media (max-width: 980px) {
  .blog-brand-row {
    min-height: 5.3rem;
    grid-template-columns: 1fr auto;
  }

  .brand-tagline {
    display: none;
  }

  .blog-brand-row .menu-toggle {
    display: inline-grid;
  }

  .blog-nav-wrap {
    border-top: 1px solid var(--ink);
  }

  .blog-nav {
    top: 5.3rem;
    justify-content: flex-start;
  }

  .blog-intro__inner,
  .blog-feature {
    grid-template-columns: 1fr;
  }

  .blog-intro__copy {
    max-width: 38rem;
  }

  .blog-feature__image {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .blog-feature__content h2 {
    max-width: 17ch;
  }

  .blog-main-grid {
    grid-template-columns: minmax(0, 1fr) minmax(14rem, 0.36fr);
    gap: 2rem;
  }

  .category-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .blog-intro h1 {
    font-size: clamp(2.8rem, 14vw, 4.3rem);
  }

  .blog-main-grid {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: static;
  }

  .story-row {
    grid-template-columns: minmax(7.5rem, 0.38fr) minmax(0, 0.62fr);
    gap: 1rem;
  }

  .story-row p {
    display: none;
  }

  .compact-search input {
    width: 9rem;
  }
}

@media (max-width: 430px) {
  .blog-brand-row {
    min-height: 4.8rem;
  }

  .blog-nav {
    top: 4.8rem;
  }

  .blog-intro {
    padding-block: 2.3rem;
  }

  .blog-feature {
    padding-block: 1.4rem 2.5rem;
  }

  .blog-feature__content h2 {
    font-size: 2.15rem;
  }

  .blog-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .compact-search,
  .compact-search input {
    width: 100%;
  }

  .story-row {
    grid-template-columns: 7.5rem minmax(0, 1fr);
  }

  .story-row h3 {
    font-size: 1.2rem;
  }

  .story-meta span {
    display: none;
  }

  .category-tiles {
    grid-template-columns: 1fr;
  }

  .category-tiles a {
    min-height: 9rem;
  }
}

/* Editorial treatment for category, article, and policy pages */
body:not(.blog-home) {
  --paper: #f8f7f2;
  --surface: #fffefa;
  --surface-soft: #eeede7;
  --ink: #161815;
  --ink-soft: #50544f;
  --muted: #767b74;
  --line: #cfcec6;
  --accent: #dff036;
  --accent-strong: #748000;
  background: var(--paper);
}

body:not(.blog-home) .site-header {
  position: relative;
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
  backdrop-filter: none;
}

body:not(.blog-home) .brand-mark {
  border-radius: 50%;
  background: var(--accent);
  box-shadow: none;
}

body:not(.blog-home) .nav-link {
  border-radius: 0;
  color: var(--ink);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body:not(.blog-home) .nav-link:hover,
body:not(.blog-home) .nav-link[aria-current="page"] {
  background: transparent;
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 0.35rem;
}

body:not(.blog-home) .breadcrumb {
  padding-top: 1rem;
}

body:not(.blog-home) .page-hero {
  border-bottom: 1px solid var(--ink);
  background: transparent;
}

body:not(.blog-home) .page-hero h1,
body:not(.blog-home) .article__header h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.065em;
}

body:not(.blog-home) .page-hero__aside {
  border-left-color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}

body:not(.blog-home) .filter-bar {
  border-bottom: 2px solid var(--ink);
  padding-bottom: 1rem;
}

body:not(.blog-home) .filter-button {
  border: 0;
  border-radius: 0;
  padding: 0.35rem 0.55rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body:not(.blog-home) .filter-button:hover,
body:not(.blog-home) .filter-button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--ink);
}

body:not(.blog-home) .collection-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 1.5rem;
}

body:not(.blog-home) .post-card {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body:not(.blog-home) .post-card:hover {
  box-shadow: none;
  transform: none;
}

body:not(.blog-home) .post-card__media {
  border-radius: 0;
}

body:not(.blog-home) .post-card__body {
  padding: 1rem 0 0;
}

body:not(.blog-home) .post-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.04em;
}

body:not(.blog-home) .post-card p {
  margin-bottom: 0.8rem;
}

body:not(.blog-home) .tool-card,
body:not(.blog-home) .policy-card,
body:not(.blog-home) .contact-card {
  border-radius: 0;
  box-shadow: none;
}

body:not(.blog-home) .tool-card h2,
body:not(.blog-home) .policy-card h2,
body:not(.blog-home) .contact-card h2,
body:not(.blog-home) .article__body h2,
body:not(.blog-home) .article__body h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

body:not(.blog-home) .article-layout {
  grid-template-columns: minmax(0, 790px) minmax(13rem, 1fr);
}

body:not(.blog-home) .article__summary {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.5;
}

.comparison-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0 0;
}

.comparison-photo {
  min-width: 0;
  margin: 0;
}

.comparison-photo img {
  display: block;
  width: 100%;
  max-height: 30rem;
  background: var(--surface-soft);
  object-fit: contain;
}

.comparison-photo picture,
.article-hero-image picture {
  display: block;
}

.comparison-photo figcaption {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

/* Keep placement hooks in the HTML, but show no empty ad boxes before approval. */
body:not(.ads-enabled) .ad-slot {
  display: none;
}

.blog-feature__image > picture,
.story-row__image > picture,
.post-card__media > picture {
  height: 100%;
}

.blog-feature__image picture img,
.story-row__image picture img,
.post-card__media picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-results[hidden],
.home-latest-list[hidden] {
  display: none;
}

@media (max-width: 700px) {
  body:not(.blog-home) .collection-grid {
    grid-template-columns: 1fr;
  }

  .category-tiles--live {
    grid-template-columns: 1fr;
  }

  body:not(.blog-home) .page-hero h1 {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  html,
  body {
    overflow-x: hidden;
  }

  .article__header h1 {
    max-width: none;
    overflow-wrap: anywhere;
    font-size: clamp(2.2rem, 11vw, 3.6rem);
  }

  .article__summary,
  .article__body {
    overflow-wrap: anywhere;
  }

  .related-posts__grid {
    grid-template-columns: 1fr;
  }

  .related-posts__heading {
    display: block;
  }

  .related-posts__heading h2 {
    margin-top: 0.35rem;
  }
}

@media (max-width: 980px) {
  body:not(.blog-home) .article-layout {
    grid-template-columns: 1fr;
  }

  body:not(.blog-home) .article-sidebar {
    position: static;
  }
}

@media (max-width: 700px) {
  body:not(.blog-home) .article-layout {
    gap: 1.5rem;
  }

  .comparison-photos {
    grid-template-columns: 1fr;
  }

  body:not(.blog-home) .article-sidebar {
    grid-row: 1;
  }

  body:not(.blog-home) .article {
    grid-row: 2;
  }

  .comparison-photo img {
    max-height: none;
  }

  .article__meta {
    gap: 0.45rem 0.75rem;
  }
}
