@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Montserrat:wght@400;500;600;700&display=swap");

:root {
  --forest: #1e2d24;
  --forest-deep: #111a15;
  --coal: #262726;
  --ivory: #f4f2ee;
  --paper: #e9e6de;
  --sand: #cdba9a;
  --stone: #8c8376;
  --ink: #172019;
  --muted: #636a64;
  --green: #7ac943;
  --line: rgba(30, 45, 36, 0.18);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--sans);
  letter-spacing: 0;
}

body.article-page {
  background: #f7f5f1;
}

img {
  max-width: 100%;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.site-header {
  min-height: 78px;
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 10px max(20px, calc((100vw - 1380px) / 2));
  color: var(--ivory);
  background: rgba(17, 26, 21, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-brand svg {
  width: 48px;
  height: 36px;
  fill: var(--ivory);
}

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

.site-brand strong {
  font-size: 18px;
  letter-spacing: 0.12em;
}

.site-brand small {
  margin-top: 4px;
  color: var(--sand);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.site-nav a:hover {
  color: var(--sand);
}

.site-nav .header-book {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  color: var(--forest-deep);
  background: var(--sand);
  border-radius: 4px;
}

.blog-hero,
.article-hero {
  min-height: min(76svh, 760px);
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--ivory);
  background: var(--forest-deep);
}

.blog-hero > img,
.article-hero > img,
.hero-overlay {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.blog-hero > img,
.article-hero > img {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(10, 16, 12, 0.84), rgba(10, 16, 12, 0.2) 72%),
    linear-gradient(0deg, rgba(10, 16, 12, 0.88), transparent 56%);
}

.hero-content {
  width: min(1380px, calc(100% - 48px));
  position: relative;
  z-index: 1;
  margin: 0 auto;
  padding: 88px 0 76px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: rgba(244, 242, 238, 0.72);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.breadcrumbs span[aria-current="page"] {
  color: var(--sand);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--sand);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.blog-hero h1,
.article-hero h1 {
  max-width: 1000px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 600;
  line-height: 0.94;
}

.blog-hero .lead,
.article-hero .lead {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(244, 242, 238, 0.84);
  font-size: 18px;
  line-height: 1.6;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
  color: rgba(244, 242, 238, 0.7);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.blog-index {
  width: min(1380px, calc(100% - 48px));
  margin: 0 auto;
  padding: 94px 0 120px;
}

.index-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
  gap: 50px;
  align-items: end;
  margin-bottom: 48px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.index-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(46px, 5vw, 76px);
  font-weight: 600;
  line-height: 0.98;
}

.index-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

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

.blog-card {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.blog-card:first-child {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
}

.blog-card-media {
  min-height: 250px;
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--forest);
}

.blog-card:not(:first-child) .blog-card-media {
  aspect-ratio: 16 / 10;
  min-height: 0;
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  transition: transform 420ms ease;
}

.blog-card:hover .blog-card-media img {
  transform: scale(1.025);
}

.blog-card-media span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 7px 10px;
  color: var(--ivory);
  background: rgba(17, 26, 21, 0.82);
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.blog-card-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
}

.blog-card:first-child .blog-card-content {
  justify-content: center;
  padding: clamp(24px, 3vw, 40px);
}

.card-meta {
  margin: 0 0 12px;
  color: var(--stone);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
}

.blog-card h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.04;
  overflow-wrap: break-word;
}

.blog-card:first-child h2 {
  font-size: clamp(36px, 3vw, 46px);
}

.blog-card-content > p:not(.card-meta) {
  margin: 16px 0 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.read-link {
  margin-top: auto;
  color: var(--forest);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.article-shell {
  width: min(1180px, calc(100% - 48px));
  display: grid;
  grid-template-columns: minmax(0, 780px) minmax(220px, 280px);
  gap: clamp(54px, 8vw, 100px);
  align-items: start;
  margin: 0 auto;
  padding: 88px 0 110px;
}

.article-body {
  min-width: 0;
}

.article-body .article-intro {
  margin: 0 0 46px;
  padding-bottom: 38px;
  color: var(--forest);
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 31px;
  line-height: 1.32;
}

.article-body h2 {
  margin: 62px 0 20px;
  font-family: var(--serif);
  font-size: 46px;
  font-weight: 600;
  line-height: 1.02;
  scroll-margin-top: 104px;
}

.article-body h3 {
  margin: 34px 0 14px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
}

.article-body p,
.article-body li {
  color: #3e4740;
  font-size: 16px;
  line-height: 1.82;
}

.article-body p {
  margin: 0 0 20px;
}

.article-body ul,
.article-body ol {
  margin: 18px 0 28px;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 10px;
}

.article-callout {
  margin: 36px 0;
  padding: 26px 28px;
  color: var(--ivory);
  background: var(--forest);
  border-left: 5px solid var(--sand);
  border-radius: 4px;
}

.article-callout strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
}

.article-callout p {
  margin: 0;
  color: rgba(244, 242, 238, 0.78);
  font-size: 14px;
  line-height: 1.65;
}

.article-aside {
  position: sticky;
  top: 108px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.article-aside strong {
  display: block;
  margin-bottom: 16px;
  font-size: 11px;
  text-transform: uppercase;
}

.article-aside ol {
  display: grid;
  gap: 11px;
  margin: 0;
  padding-left: 18px;
}

.article-aside a {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.article-aside a:hover {
  color: var(--forest);
}

.faq-block {
  margin-top: 70px;
  padding-top: 44px;
  border-top: 1px solid var(--line);
}

.faq-block h2 {
  margin-top: 0;
}

.faq-block details {
  border-top: 1px solid var(--line);
}

.faq-block details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-block summary {
  padding: 20px 38px 20px 0;
  position: relative;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
  list-style: none;
}

.faq-block summary::-webkit-details-marker {
  display: none;
}

.faq-block summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 18px;
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 400;
}

.faq-block details[open] summary::after {
  content: "−";
}

.faq-block details p {
  padding: 0 40px 20px 0;
}

.article-sources {
  margin-top: 54px;
  padding: 24px;
  background: #eeebe4;
  border-radius: 4px;
}

.article-sources strong {
  display: block;
  margin-bottom: 12px;
  font-size: 11px;
  text-transform: uppercase;
}

.article-sources ul {
  margin: 0;
}

.article-sources li,
.article-sources a {
  font-size: 12px;
  line-height: 1.6;
}

.article-sources a {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-cta {
  width: min(1180px, calc(100% - 48px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
  margin: 0 auto 110px;
  padding: clamp(34px, 5vw, 60px);
  color: var(--ivory);
  background: var(--forest);
  border-radius: 6px;
}

.article-cta h2 {
  max-width: 760px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 600;
  line-height: 1;
}

.article-cta p {
  max-width: 650px;
  margin: 18px 0 0;
  color: rgba(244, 242, 238, 0.72);
  font-size: 14px;
  line-height: 1.65;
}

.cta-button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  color: var(--forest-deep);
  background: var(--sand);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.related-section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto 110px;
}

.geo-entry {
  width: min(1180px, calc(100% - 48px));
  margin: -62px auto 110px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.geo-entry > strong {
  display: block;
  margin-bottom: 18px;
  font-size: 11px;
  text-transform: uppercase;
}

.geo-entry > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.geo-entry a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: var(--green);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.related-section h2 {
  margin: 0 0 30px;
  font-family: var(--serif);
  font-size: 46px;
  font-weight: 600;
}

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

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

.related-card span {
  color: var(--stone);
  font-size: 9px;
  text-transform: uppercase;
}

.related-card h3 {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
  line-height: 1.05;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 38px max(24px, calc((100vw - 1380px) / 2));
  color: rgba(244, 242, 238, 0.68);
  background: var(--forest-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
}

.site-footer a {
  color: var(--sand);
}

.mobile-book {
  display: none;
}

html.theme-green {
  --forest: #244e2d;
  --forest-deep: #0d120e;
  --coal: #29282a;
  --ivory: #ffffff;
  --paper: #202020;
  --sand: #7ac943;
  --stone: #a8b0a9;
  --ink: #ffffff;
  --muted: #c9cdc9;
  --line: rgba(255, 255, 255, 0.15);
  --serif: "Montserrat", Arial, sans-serif;
}

html.theme-green body,
html.theme-green body.article-page {
  color: var(--ivory);
  background:
    radial-gradient(circle at 10% 0%, rgba(122, 201, 67, 0.08), transparent 30%),
    #1a1a1a;
}

html.theme-green body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(115deg, rgba(122, 201, 67, 0.025) 0 1px, transparent 1px 24px);
}

html.theme-green .site-header {
  color: #ffffff;
  background: rgba(13, 18, 14, 0.97);
  border-bottom-color: rgba(122, 201, 67, 0.22);
}

html.theme-green .site-brand svg {
  fill: #ffffff;
}

html.theme-green .site-brand small,
html.theme-green .site-nav a:hover,
html.theme-green .breadcrumbs span[aria-current="page"],
html.theme-green .eyebrow {
  color: var(--green);
}

html.theme-green .site-nav .header-book,
html.theme-green .cta-button,
html.theme-green .mobile-book {
  color: #081006;
  background: var(--green);
}

html.theme-green .hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 10, 6, 0.88), rgba(5, 10, 6, 0.2) 72%),
    linear-gradient(0deg, rgba(5, 10, 6, 0.92), transparent 58%);
}

html.theme-green .blog-hero h1,
html.theme-green .article-hero h1,
html.theme-green .index-heading h2,
html.theme-green .blog-card h2,
html.theme-green .article-body .article-intro,
html.theme-green .article-body h2,
html.theme-green .article-body h3,
html.theme-green .faq-block summary,
html.theme-green .article-cta h2,
html.theme-green .related-section h2,
html.theme-green .related-card h3 {
  font-weight: 800;
}

html.theme-green .blog-hero h1,
html.theme-green .article-hero h1 {
  letter-spacing: 0;
}

html.theme-green .blog-card,
html.theme-green .related-card,
html.theme-green .article-aside,
html.theme-green .article-sources {
  color: #ffffff;
  background: #202020;
  border-color: var(--line);
}

html.theme-green .blog-card-media span {
  color: #081006;
  background: var(--green);
}

html.theme-green .blog-card-content > p:not(.card-meta),
html.theme-green .index-heading p,
html.theme-green .article-body p,
html.theme-green .article-body li,
html.theme-green .article-aside a {
  color: var(--muted);
}

html.theme-green .read-link,
html.theme-green .article-aside a:hover,
html.theme-green .article-sources a {
  color: var(--green);
}

html.theme-green .article-body .article-intro {
  color: #ffffff;
}

html.theme-green .article-callout {
  color: #ffffff;
  background: #244e2d;
  border-left-color: var(--green);
}

html.theme-green .article-callout p,
html.theme-green .article-cta p {
  color: rgba(255, 255, 255, 0.76);
}

html.theme-green .article-cta {
  color: #ffffff;
  background:
    linear-gradient(115deg, rgba(122, 201, 67, 0.13), transparent 44%),
    #202020;
  border: 1px solid rgba(122, 201, 67, 0.34);
}

html.theme-green .site-footer {
  color: rgba(255, 255, 255, 0.64);
  background: #0d120e;
  border-top-color: rgba(122, 201, 67, 0.2);
}

html.theme-green .site-footer a {
  color: var(--green);
}

@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }

  .blog-card:first-child {
    grid-column: 1 / -1;
  }

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

  .article-aside {
    position: static;
    order: -1;
  }

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

@media (max-width: 680px) {
  .site-header {
    min-height: 68px;
    padding: 8px 14px;
  }

  .site-brand svg {
    width: 42px;
  }

  .site-brand strong {
    font-size: 15px;
  }

  .site-nav > a:not(.header-book) {
    display: none;
  }

  .site-nav .header-book {
    min-height: 42px;
    padding: 0 12px;
    font-size: 9px;
  }

  .blog-hero,
  .article-hero {
    min-height: 72svh;
  }

  .hero-content,
  .blog-index,
  .article-shell,
  .article-cta,
  .related-section {
    width: min(100% - 28px, 1380px);
  }

  .hero-content {
    padding: 64px 0 48px;
  }

  .blog-hero h1,
  .article-hero h1 {
    font-size: 46px;
    line-height: 0.98;
  }

  .blog-hero .lead,
  .article-hero .lead {
    font-size: 15px;
  }

  .blog-index {
    padding: 68px 0 90px;
  }

  .index-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .index-heading h2 {
    font-size: 46px;
  }

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

  .blog-card:first-child {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .blog-card:first-child .blog-card-media,
  .blog-card:not(:first-child) .blog-card-media {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .blog-card:first-child h2 {
    font-size: 38px;
  }

  .article-shell {
    gap: 36px;
    padding: 64px 0 82px;
  }

  .article-body .article-intro {
    font-size: 25px;
  }

  .article-body h2,
  .related-section h2 {
    font-size: 38px;
  }

  .article-body p,
  .article-body li {
    font-size: 15px;
    line-height: 1.75;
  }

  .article-cta {
    grid-template-columns: 1fr;
    margin-bottom: 82px;
  }

  .cta-button {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .related-section {
    margin-bottom: 90px;
  }

  .site-footer {
    flex-direction: column;
    padding: 32px 18px 96px;
  }

  .mobile-book {
    min-height: 54px;
    position: fixed;
    z-index: 60;
    right: 14px;
    bottom: 14px;
    left: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--forest-deep);
    background: var(--sand);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
