:root {
  color-scheme: light;
  --bg: #eef3f2;
  --paper: #ffffff;
  --ink: #1f2528;
  --muted: #5d6668;
  --line: #d6dfdf;
  --accent: #0d6b5f;
  --accent-dark: #084c44;
  --gold: #b48234;
  --rust: #a84f35;
  --blue: #345e87;
  --shadow: 0 18px 45px rgba(31, 46, 50, 0.12);
  --radius: 8px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(238, 243, 242, 0.98)),
    var(--bg);
  color: var(--ink);
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration-color: rgba(13, 107, 95, 0.36);
  text-underline-offset: 0.18em;
  transition:
    color 160ms ease,
    text-decoration-color 160ms ease;
}

a:hover {
  color: var(--accent-dark);
  text-decoration-color: var(--accent-dark);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max);
  padding: 16px 24px;
}

.brand {
  display: grid;
  gap: 0;
  text-decoration: none;
}

.brand strong {
  font-size: 15px;
  letter-spacing: 0;
  line-height: 1.15;
}

.brand span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.nav-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.nav-links a:hover {
  color: var(--accent-dark);
  transform: translateY(-1px);
}

main {
  margin: 0 auto;
  max-width: var(--max);
  padding: 56px 24px 64px;
}

.hero {
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  margin-bottom: 54px;
}

.hero--plain {
  display: block;
  margin-bottom: 34px;
}

.hero--plain p {
  max-width: 840px;
}

.hero h1 {
  font-family: Georgia, "Times New Roman", ui-serif, serif;
  font-size: clamp(42px, 7vw, 82px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0 0 24px;
  max-width: 900px;
}

.hero p {
  color: #3f484a;
  font-size: clamp(18px, 2vw, 22px);
  margin: 0;
  max-width: 760px;
}

.hero-card,
.content-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.hero-card {
  align-self: end;
  padding: 24px;
}

.hero-card dl {
  display: grid;
  gap: 18px;
  margin: 0;
}

.hero-card dt,
.eyebrow {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-card dd {
  font-size: 15px;
  margin: 4px 0 0;
}

.section {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  padding: 44px 0;
}

.section--tight {
  padding-top: 34px;
}

.section h2 {
  font-family: Georgia, "Times New Roman", ui-serif, serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0;
}

.section-copy {
  color: var(--muted);
  font-size: 16px;
  margin: 12px 0 0;
  max-width: 460px;
}

.source-note {
  border-left: 3px solid var(--accent);
  color: #465052;
  font-size: 15px;
  margin: 24px 0 0;
  padding-left: 14px;
}

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

.content-card {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 22px;
}

.content-card:hover {
  border-color: rgba(13, 107, 95, 0.24);
  box-shadow: 0 22px 48px rgba(31, 46, 50, 0.14);
  transform: translateY(-2px);
}

.content-card h3 {
  font-size: 20px;
  letter-spacing: 0;
  line-height: 1.18;
  margin: 12px 0 10px;
}

.content-card p {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 18px;
}

.content-card .meta {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  gap: 5px;
  margin: 0 0 18px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  border: 1px solid rgba(13, 107, 95, 0.18);
  border-radius: 999px;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  padding: 6px 8px;
  text-transform: uppercase;
  transition:
    background-color 160ms ease,
    border-color 160ms ease;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.button {
  align-items: center;
  border: 1px solid var(--accent);
  border-radius: 999px;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  justify-content: center;
  min-height: 38px;
  padding: 10px 14px;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

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

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

.button.secondary {
  color: var(--accent-dark);
}

.theme-tabs {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 30px;
  padding-bottom: 14px;
}

.theme-tabs button {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  min-height: 36px;
  padding: 10px 14px;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.theme-tabs button:hover {
  border-color: rgba(13, 107, 95, 0.32);
  color: var(--accent-dark);
  transform: translateY(-1px);
}

.theme-tabs button[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

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

.quote-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(31, 46, 50, 0.07);
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 0;
  padding: 22px;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.quote-card:hover {
  border-color: rgba(13, 107, 95, 0.2);
  box-shadow: 0 16px 34px rgba(31, 46, 50, 0.1);
  transform: translateY(-2px);
}

.quote-card--feature {
  grid-column: 1 / -1;
  padding: 28px;
}

.quote-card[data-hidden="true"] {
  display: none;
}

.quote-card .tag-row {
  margin-bottom: 16px;
}

.quote-card blockquote {
  font-family: Georgia, "Times New Roman", ui-serif, serif;
  font-size: 20px;
  line-height: 1.38;
  margin: 0;
}

.quote-card--long blockquote,
.quote-card--feature blockquote {
  font-size: 18px;
  line-height: 1.5;
}

.quote-card--feature blockquote {
  max-width: 940px;
}

.quote-card figcaption {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  margin-top: auto;
  padding-top: 18px;
}

.quote-mark {
  color: var(--gold);
  display: block;
  font-family: Georgia, "Times New Roman", ui-serif, serif;
  font-size: 42px;
  line-height: 0.7;
  margin-bottom: 10px;
}

.quote-card--long .quote-mark,
.quote-card--feature .quote-mark {
  font-size: 36px;
}

.proof-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.proof-list li {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  list-style: none;
  padding: 16px 18px;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.proof-list li:hover {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(13, 107, 95, 0.2);
  transform: translateX(2px);
}

.proof-list strong {
  color: var(--ink);
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.proof-list span {
  color: var(--muted);
  display: block;
  font-size: 14px;
}

.proof-band {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  margin-top: 56px;
  padding-top: 42px;
}

.proof-band h2 {
  font-family: Georgia, "Times New Roman", ui-serif, serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0;
}

.page-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  margin: 0 auto;
  max-width: var(--max);
  padding: 22px 24px 40px;
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes rise-in {
    from {
      opacity: 0;
      transform: translateY(10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .site-header {
    animation: rise-in 420ms ease both;
  }

  .hero h1,
  .hero p,
  .hero-card,
  .section,
  .theme-tabs,
  .quote-card,
  .proof-band,
  .page-footer {
    animation: rise-in 520ms ease both;
  }

  .hero p {
    animation-delay: 80ms;
  }

  .hero-card,
  .theme-tabs {
    animation-delay: 120ms;
  }

  .section:nth-of-type(2),
  .quote-card:nth-child(2n),
  .proof-band {
    animation-delay: 80ms;
  }

  .section:nth-of-type(3),
  .quote-card:nth-child(3n),
  .page-footer {
    animation-delay: 140ms;
  }
}

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

@media (max-width: 900px) {
  main {
    padding-top: 38px;
  }

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

  .hero-card {
    align-self: auto;
  }
}

@media (max-width: 620px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

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

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

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

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

  .quote-card--feature {
    grid-column: 1;
  }
}
