:root {
  --ink: #1b352e;
  --ink-soft: #31564b;
  --leaf: #2f8a4f;
  --leaf-dark: #226740;
  --sun: #f2b94b;
  --coral: #e16f51;
  --cream: #fbf6ef;
  --mist: #f1efe7;
  --sage: #d9eadc;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(27, 53, 46, 0.12);
  --radius: 24px;
  --radius-sm: 14px;
  --max-width: 1400px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "DM Sans", "Helvetica Neue", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #ffe8c2 0%, transparent 55%),
    radial-gradient(900px 600px at 90% 0%, #d5efe0 0%, transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, var(--mist) 100%);
  line-height: 1.6;
}

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

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

a:hover {
  color: var(--leaf-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(47, 138, 79, 0.4);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", "Times New Roman", serif;
  line-height: 1.1;
  margin: 0 0 0.6rem;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

ol {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.prose li,
.section-card li,
.card li,
.resource-card li {
  margin-bottom: 0.4rem;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
}

.section-header {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.section-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--leaf-dark);
  margin-bottom: 0.8rem;
}

.lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: var(--leaf);
  color: var(--white);
  font-weight: 600;
  border: none;
  box-shadow: 0 18px 30px rgba(47, 138, 79, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 40px rgba(47, 138, 79, 0.3);
}

.button.ghost {
  background: transparent;
  color: var(--leaf-dark);
  border: 2px solid var(--leaf);
  box-shadow: none;
}

.button.small {
  padding: 0.55rem 1.2rem;
  font-size: 0.9rem;
}

.text-link {
  font-weight: 600;
  color: var(--leaf-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.text-link::after {
  content: "\2192";
}

.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card {
  background: var(--white);
  padding: 1.6rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 40px rgba(27, 53, 46, 0.08);
  border: 1px solid rgba(47, 138, 79, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(27, 53, 46, 0.12);
}

.card-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--coral);
  margin-bottom: 0.6rem;
}

.hero {
  padding: 5.5rem 0 4rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 4vw, 4rem);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.6rem 0 2rem;
}

.hero-meta {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  padding-top: 1rem;
  border-top: 1px solid rgba(27, 53, 46, 0.15);
}

.meta-title {
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.meta-text {
  color: var(--ink-soft);
  margin: 0;
}

.hero-visual {
  position: relative;
}

.hero-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}

.hero-stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  margin: 1.5rem 0 1rem;
}

.stat {
  padding: 0.9rem;
  border-radius: 16px;
  background: rgba(47, 138, 79, 0.08);
}

.stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
}

.stat-label {
  font-size: 0.85rem;
  margin: 0.3rem 0 0;
}

.hero-orb {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #f2b94b, #e16f51);
  top: -40px;
  right: -30px;
  opacity: 0.85;
  filter: blur(0.5px);
  animation: float 8s ease-in-out infinite;
}

.section-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.highlight-card {
  background: linear-gradient(160deg, #fff7e0, #ffffff);
}

.metric-row {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin: 1.6rem 0;
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.metric-label {
  margin: 0.2rem 0 0;
  color: var(--ink-soft);
}

.quote-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.quote {
  background: var(--white);
  padding: 1.6rem;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--leaf);
  box-shadow: 0 16px 40px rgba(27, 53, 46, 0.08);
}

.quote p {
  margin: 0 0 1rem;
}

.quote cite {
  font-style: normal;
  font-weight: 600;
  color: var(--ink-soft);
}

.newsletter {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
  padding: 2.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.newsletter-form,
.footer-form {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.newsletter-form input,
.footer-form input {
  flex: 1;
  min-width: 220px;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(27, 53, 46, 0.2);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-form input:focus,
.footer-form input:focus {
  border-color: rgba(47, 138, 79, 0.6);
  box-shadow: 0 0 0 3px rgba(47, 138, 79, 0.15);
}

.newsletter-form button,
.footer-form button {
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: none;
  background: var(--coral);
  color: var(--white);
  font-weight: 600;
}

.db-search {
  margin: 1.5rem 0 2rem;
  background: var(--white);
  border: 1px solid rgba(27, 53, 46, 0.1);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(27, 53, 46, 0.08);
  padding: 1.6rem;
}

.db-controls {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.db-controls label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--ink);
}

.db-controls input,
.db-controls select {
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(27, 53, 46, 0.15);
  font-size: 1rem;
  background: #f9f7f2;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.db-controls input:focus,
.db-controls select:focus {
  border-color: rgba(47, 138, 79, 0.6);
  box-shadow: 0 0 0 3px rgba(47, 138, 79, 0.14);
}

.db-meta {
  margin: 1rem 0 0.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: baseline;
}

.db-count {
  font-weight: 700;
  margin: 0;
}

.db-results {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.db-card {
  border: 1px solid rgba(27, 53, 46, 0.1);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.2rem;
  background: linear-gradient(180deg, #ffffff 0%, #fbf6ef 100%);
  box-shadow: 0 16px 40px rgba(27, 53, 46, 0.08);
}

.db-card h3 {
  margin: 0 0 0.2rem;
}

.db-card em {
  color: var(--ink-soft);
}

.card-media {
  margin: 0 0 0.9rem;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(27, 53, 46, 0.08);
}

.card-media img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.4rem 0 0.8rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(47, 138, 79, 0.12);
  color: var(--leaf-dark);
  font-size: 0.9rem;
  font-weight: 600;
}

.db-meta-list {
  display: grid;
  gap: 0.25rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.db-empty {
  padding: 0.8rem;
  border-radius: 12px;
  background: rgba(27, 53, 46, 0.05);
}

.db-empty[hidden] {
  display: none;
}

.detail-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  align-items: start;
}

.featured-media {
  margin: 0 0 2rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(27, 53, 46, 0.08);
  box-shadow: 0 18px 40px rgba(27, 53, 46, 0.1);
}

.featured-media img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.featured-media figcaption,
.gallery-item figcaption {
  padding: 0.75rem 1rem 0.9rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.featured-media figcaption span,
.gallery-item figcaption span {
  display: block;
}

.media-credit {
  font-weight: 600;
  color: rgba(27, 53, 46, 0.7);
}

.gallery-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gallery-item {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(27, 53, 46, 0.08);
  box-shadow: 0 16px 30px rgba(27, 53, 46, 0.08);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.detail-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  border: 1px solid rgba(27, 53, 46, 0.1);
  box-shadow: 0 18px 40px rgba(27, 53, 46, 0.08);
}

.detail-card h2 {
  margin-top: 0;
}

.detail-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin: 0;
}

.detail-list dt {
  font-weight: 600;
  color: var(--ink);
}

.detail-list dd {
  margin: 0 0 0.6rem;
  color: var(--ink-soft);
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(251, 246, 239, 0.9);
  backdrop-filter: blur(10px);
  z-index: 10;
  border-bottom: 1px solid rgba(27, 53, 46, 0.08);
}

.header-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.2rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #f2b94b, #2f8a4f);
  box-shadow: 0 12px 20px rgba(47, 138, 79, 0.25);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-weight: 700;
}

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav .top-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.site-nav .top-nav > li {
  position: relative;
}

.site-nav a {
  font-weight: 600;
  color: var(--ink-soft);
}

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

.site-nav .submenu {
  list-style: none;
  margin: 0;
  padding: 0.6rem 0;
  position: absolute;
  left: 0;
  /* top: calc(100% + 0.4rem); */
  top: 100%;
  min-width: 220px;
  background: var(--white);
  border: 1px solid rgba(27, 53, 46, 0.1);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(27, 53, 46, 0.12);
  display: none;
  z-index: 11;
}

.site-nav .submenu li {
  padding: 0.35rem 1rem;
}

.site-nav .submenu a {
  display: block;
  width: 100%;
  color: var(--ink);
}

.site-nav .submenu a:hover {
  color: var(--leaf-dark);
}

.site-nav .has-children:hover > .submenu,
.site-nav .has-children:focus-within > .submenu {
  display: block;
}

.nav-cta {
  justify-self: end;
}

.page-hero {
  padding: 4.5rem 0 2.5rem;
  background: rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid rgba(27, 53, 46, 0.08);
}

.page-hero-content {
  max-width: 760px;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 3.4vw, 3.4rem);
}

.page-content {
  padding: 0 0 4rem;
}

.prose {
  /* max-width: 1160px; */
}

.prose h2 {
  margin-top: 2.4rem;
}

.prose h3 {
  margin-top: 1.8rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  display: block;
  overflow-x: auto;
}

.prose th,
.prose td {
  text-align: left;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(27, 53, 46, 0.1);
}

.prose th {
  background: rgba(47, 138, 79, 0.08);
}

.callout {
  background: rgba(47, 138, 79, 0.1);
  padding: 1.4rem;
  border-radius: 16px;
  border-left: 4px solid var(--leaf);
}

.checklist {
  list-style: none;
  padding-left: 0;
}

.checklist li {
  margin-bottom: 0.6rem;
  position: relative;
  padding-left: 1.8rem;
}

.checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--leaf-dark);
  font-weight: 700;
}

.resource-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin: 1.5rem 0;
}

.resource-card {
  background: var(--white);
  padding: 1.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(47, 138, 79, 0.1);
  box-shadow: 0 18px 40px rgba(27, 53, 46, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(27, 53, 46, 0.12);
}

.site-footer {
  background: #132b24;
  color: #f4efe6;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer-brand h2 {
  margin-top: 0;
}

.footer-brand p {
  color: rgba(244, 239, 230, 0.9);
}

.footer-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.site-footer .button.ghost {
  color: #f4efe6;
  border-color: #f4efe6;
}

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

.footer-links a {
  color: rgba(244, 239, 230, 0.9);
}

.footer-signup input {
  border: none;
  background: #ffffff;
  color: #1b352e;
}

.footer-signup button {
  background: var(--sun);
  color: #1b352e;
}

.footer-meta {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  color: rgba(244, 239, 230, 0.7);
}

.fine-print {
  font-size: 0.8rem;
  color: rgba(27, 53, 46, 0.6);
}

.site-footer .fine-print {
  color: rgba(244, 239, 230, 0.6);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--leaf);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  z-index: 20;
}

.skip-link:focus {
  left: 1rem;
}

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

.reveal {
  animation: reveal 0.8s ease forwards;
  opacity: 0;
  transform: translateY(16px);
  animation-delay: var(--delay, 0ms);
}

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

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .hero-orb {
    animation: none;
  }
}

@media (max-width: 900px) {
  .header-grid {
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .nav-cta {
    display: none;
  }
  .site-nav .top-nav {
    justify-content: flex-start;
  }
  .hero {
    padding-top: 4rem;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 3.5rem 0;
  }
  .newsletter {
    padding: 1.8rem;
  }
  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}
