:root {
  color-scheme: light;
  --ink: #18211f;
  --muted: #5f6b67;
  --paper: #f7f4ec;
  --panel: #ffffff;
  --line: #dcd5c6;
  --green: #1f6f5b;
  --green-dark: #174d42;
  --gold: #d8a83f;
  --blue: #2f5f88;
  --rose: #a64f58;
  --shadow: 0 24px 60px rgba(36, 31, 22, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid rgba(220, 213, 198, 0.8);
  background: rgba(247, 244, 236, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  min-width: 0;
}

.brand span:last-child {
  overflow-wrap: anywhere;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--green-dark);
  color: #fffef8;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: clamp(12px, 2vw, 26px);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.nav-links a:hover,
.nav-links a.is-active,
.text-link:hover,
.site-footer a:hover {
  color: var(--green);
}

.nav-links a.is-active {
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-thickness: 2px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.65fr);
  gap: clamp(28px, 5vw, 80px);
  min-height: calc(100vh - 79px);
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 72px) 40px;
  background:
    linear-gradient(115deg, rgba(247, 244, 236, 0.94), rgba(247, 244, 236, 0.7)),
    url("https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
}

main {
  width: 100%;
}

.page-hero {
  display: grid;
  gap: 18px;
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: #fffdf7;
}

.page-hero h1 {
  max-width: 980px;
  font-size: clamp(3rem, 7vw, 5.8rem);
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.24rem);
}

.page-section {
  padding: clamp(52px, 7vw, 88px) clamp(20px, 5vw, 72px);
}

.page-section.alt {
  background: #fffdf7;
  border-block: 1px solid var(--line);
}

.content-narrow {
  max-width: 860px;
}

.content-narrow p {
  font-size: 1.04rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.7fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  max-width: 1180px;
}

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

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

.info-card h2,
.info-card h3 {
  margin-bottom: 12px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 1.25rem;
  line-height: 1.25;
}

.info-card p {
  margin: 0;
}

.resource-section-heading {
  max-width: 860px;
  margin-bottom: 28px;
}

.resource-section-heading p:not(.eyebrow) {
  margin-bottom: 0;
  font-size: 1.04rem;
}

.resource-card-grid {
  align-items: stretch;
}

.resource-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.resource-card-cover {
  display: grid;
  max-height: 220px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(220, 213, 198, 0.9);
  border-radius: 8px;
  background: #fffdf7;
  aspect-ratio: 16 / 10;
}

.resource-card-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.resource-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.resource-card p {
  flex: 1;
}

.resource-download {
  align-self: flex-start;
  margin-top: 8px;
}

.resource-label,
.resource-action {
  align-self: flex-start;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.resource-label {
  color: var(--rose);
}

.resource-action {
  margin-top: 8px;
  border: 1px solid rgba(31, 111, 91, 0.22);
  padding: 8px 10px;
  background: #eef3ef;
  color: var(--green-dark);
}

.featured-product-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.62fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: stretch;
  max-width: 1120px;
}

.product-cover-slot {
  order: 2;
  display: grid;
  min-height: 360px;
  align-content: center;
  justify-items: center;
  gap: 12px;
  border: 1px dashed rgba(31, 111, 91, 0.35);
  border-radius: 8px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.88), rgba(238, 243, 239, 0.94)),
    repeating-linear-gradient(
      135deg,
      rgba(31, 111, 91, 0.07) 0,
      rgba(31, 111, 91, 0.07) 1px,
      transparent 1px,
      transparent 14px
    );
  color: var(--muted);
  text-align: center;
}

.product-cover-slot span {
  color: var(--rose);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-cover-slot strong {
  max-width: 240px;
  color: var(--green-dark);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.05;
}

.product-cover-slot img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.product-details {
  order: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-details h3 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.04;
}

.product-subtitle {
  color: var(--green-dark);
  font-size: 1.08rem;
  font-weight: 800;
}

.product-benefits {
  display: grid;
  gap: 10px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.product-benefits li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.5;
}

.product-benefits li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold);
}

.product-purchase-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 10px;
}

.product-purchase-row > strong {
  color: var(--ink);
  font-size: 1.5rem;
}

.hero-copy {
  align-self: center;
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.03;
}

h1,
h2 {
  font-family: "Source Serif 4", Georgia, serif;
}

h1 {
  max-width: 850px;
  font-size: clamp(3rem, 8vw, 7.5rem);
}

h2 {
  font-size: clamp(2.1rem, 5vw, 4.2rem);
}

h3 {
  font-size: 1.45rem;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 680px;
  margin: 24px 0 0;
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}

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

.button,
.newsletter button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
}

.primary,
.newsletter button {
  background: var(--green-dark);
  color: #fffef8;
}

.secondary {
  border-color: rgba(31, 111, 91, 0.3);
  background: rgba(255, 255, 255, 0.72);
  color: var(--green-dark);
}

.button:hover,
.newsletter button:hover {
  transform: translateY(-1px);
}

.hero-panel {
  align-self: end;
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.metric {
  border: 1px solid rgba(220, 213, 198, 0.92);
  border-radius: 8px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.metric span,
.article-meta {
  color: var(--rose);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 9px;
  font-size: 1.12rem;
}

.metric p {
  margin: 8px 0 0;
}

.intro-band,
.section,
.topics,
.sample-article,
.about-newsletter,
.resource-band {
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 72px);
}

.ad-slot {
  display: grid;
  gap: 8px;
  align-content: center;
  border: 1px solid rgba(220, 213, 198, 0.95);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.94), rgba(238, 243, 239, 0.9)),
    repeating-linear-gradient(
      135deg,
      rgba(31, 111, 91, 0.08) 0,
      rgba(31, 111, 91, 0.08) 1px,
      transparent 1px,
      transparent 12px
    );
  color: var(--muted);
}

.ad-slot span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ad-slot strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.ad-slot p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
}

.ad-slot-wide {
  min-height: 120px;
  margin: clamp(28px, 5vw, 52px) clamp(20px, 5vw, 72px) 0;
  padding: 24px;
  text-align: center;
}

.ad-slot-side {
  position: sticky;
  top: 104px;
  min-height: 280px;
  padding: 22px;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 0.65fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  background: #fffdf7;
  border-block: 1px solid var(--line);
}

.path-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.path-list li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.path-list li::before {
  content: counter(step, decimal-leading-zero);
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  background: #eef3ef;
  color: var(--green-dark);
  font-weight: 800;
}

.path-list strong,
.path-list span {
  grid-column: 2;
}

.path-list span {
  color: var(--muted);
  line-height: 1.6;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  max-width: 1320px;
  margin-inline: auto;
}

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

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) repeat(3, minmax(210px, 0.65fr));
  gap: 16px;
  max-width: 1320px;
  margin-inline: auto;
}

.featured-article,
.article-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.featured-article {
  display: flex;
  min-height: 440px;
  flex-direction: column;
  justify-content: end;
  padding: clamp(24px, 4vw, 40px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.96)),
    url("https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=1200&q=80");
  background-position: center;
  background-size: cover;
}

.featured-article h3 {
  max-width: 620px;
  margin-top: 14px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.04;
}

.featured-article p {
  max-width: 620px;
}

.featured-article .button {
  align-self: flex-start;
  margin-top: 10px;
}

.article-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}

.article-card:nth-child(2) {
  border-top: 6px solid var(--blue);
}

.article-card:nth-child(3) {
  border-top: 6px solid var(--gold);
}

.article-card:nth-child(4) {
  border-top: 6px solid var(--green);
}

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

.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 1320px;
  margin-inline: auto;
}

.topic-grid a {
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: #fffdf7;
  color: var(--green-dark);
  font-weight: 800;
}

.topic-grid a:hover {
  border-color: var(--green);
  background: #eef3ef;
}

.resource-band {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.7fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  border-top: 1px solid var(--line);
  background: #fffdf7;
}

.resource-band.alt {
  background: #f1f4ef;
}

.resource-band > div:first-child {
  max-width: 760px;
}

.mini-grid {
  display: grid;
  gap: 14px;
}

.mini-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: var(--panel);
}

.mini-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
}

.mini-grid p {
  margin: 0;
}

.contact-band {
  border-bottom: 1px solid var(--line);
}

.sample-article {
  background: #17221f;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 850px) minmax(220px, 300px);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  max-width: 1220px;
  margin: 0 auto;
}

.article-shell {
  max-width: 850px;
}

.article-shell h2,
.article-shell p {
  color: #fffef8;
}

.article-shell .lede {
  font-size: 1.3rem;
}

.article-shell p:not(.eyebrow) {
  color: rgba(255, 254, 248, 0.78);
}

.about-newsletter {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.5fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
  background: #fffdf7;
}

.about-newsletter > div {
  max-width: 720px;
}

.newsletter {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.newsletter label,
.contact-form label {
  display: block;
  margin-bottom: 12px;
  font-size: 1.1rem;
  font-weight: 800;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.newsletter input,
.contact-form input,
.contact-form textarea {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  font: inherit;
  background: #fffef8;
  color: var(--ink);
}

.contact-form {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.contact-form input {
  min-height: 48px;
}

.contact-form textarea {
  min-height: 180px;
  padding-block: 14px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus,
.newsletter input:focus {
  border-color: var(--green);
  outline: 3px solid rgba(31, 111, 91, 0.16);
}

.contact-form button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  background: var(--green-dark);
  color: #fffef8;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.contact-form button:hover {
  transform: translateY(-1px);
}

.form-note {
  margin: 0;
  font-size: 0.92rem;
}

.newsletter p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 1080px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero,
  .intro-band,
  .article-layout,
  .about-newsletter,
  .contact-layout,
  .resource-band {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    grid-template-columns: repeat(3, 1fr);
  }

  .article-grid {
    grid-template-columns: 1fr 1fr;
  }

  .featured-article {
    grid-column: 1 / -1;
  }

  .featured-product-card {
    grid-template-columns: 1fr;
  }

  .product-cover-slot {
    order: 1;
    min-height: 280px;
  }

  .product-details {
    order: 2;
  }

  .ad-slot-side {
    position: static;
    min-height: 120px;
  }

  .card-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
    gap: 14px;
    padding: 16px 18px;
  }

  .nav-links {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
    padding-bottom: 0;
    font-size: 0.82rem;
  }

  .nav-links a {
    min-height: 42px;
    justify-content: center;
    border: 1px solid rgba(220, 213, 198, 0.9);
    border-radius: 8px;
    background: rgba(255, 253, 247, 0.7);
    padding: 0 6px;
    text-align: center;
  }

  .nav-links a.is-active {
    background: #eef3ef;
    text-decoration: none;
  }

  .brand {
    width: 100%;
  }

  .brand-mark {
    flex: 0 0 auto;
  }

  .hero {
    min-height: auto;
    padding: 44px 18px 28px;
  }

  .page-hero,
  .page-section,
  .intro-band,
  .section,
  .topics,
  .sample-article,
  .about-newsletter,
  .resource-band {
    padding: 44px 18px;
  }

  h1,
  .page-hero h1 {
    font-size: clamp(2.45rem, 14vw, 3.35rem);
    line-height: 1.02;
  }

  h2 {
    font-size: clamp(1.8rem, 10vw, 2.45rem);
  }

  h3 {
    font-size: 1.22rem;
    line-height: 1.2;
  }

  .hero-text,
  .page-hero p,
  .article-shell .lede {
    font-size: 1.02rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .button {
    min-height: 50px;
  }

  .product-purchase-row,
  .product-purchase-row .button {
    width: 100%;
  }

  .resource-card-cover {
    max-height: 190px;
  }

  .resource-download {
    width: 100%;
  }

  .hero-panel,
  .article-grid,
  .topic-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .newsletter input,
  .newsletter button,
  .contact-form button {
    min-height: 48px;
    width: 100%;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .featured-article {
    min-height: 380px;
  }

  .article-card {
    min-height: 220px;
  }
}

@media (max-width: 430px) {
  .nav-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-links a:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .brand span:last-child {
    font-size: 0.95rem;
  }

  .brand-mark {
    width: 44px;
  }
}
