:root {
  --paper: #f5f1e8;
  --ink: #2d2a22;
  --line: #d8ccb8;
  --blue: #1f4f86;
  --green: #3d6b3e;
  --orange: #bc5a19;
  --card: #f8f4eb;
  --button-text: #fffdf8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Lora", Georgia, "Times New Roman", serif;
  line-height: 1.45;
  background:
    radial-gradient(circle at 12% 18%, rgba(183, 155, 110, 0.12) 0, rgba(183, 155, 110, 0) 28%),
    radial-gradient(circle at 85% 82%, rgba(148, 122, 86, 0.1) 0, rgba(148, 122, 86, 0) 26%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.5), rgba(245, 241, 232, 0.93)),
    repeating-linear-gradient(to bottom, rgba(109, 83, 48, 0.09) 0, rgba(109, 83, 48, 0.09) 1px, transparent 1px, transparent 52px),
    repeating-linear-gradient(90deg, rgba(108, 83, 53, 0.02) 0, rgba(108, 83, 53, 0.02) 1px, transparent 1px, transparent 4px),
    var(--paper);
  background-attachment: fixed;
}

main,
footer {
  max-width: 1160px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

.site-header {
  max-width: 1160px;
  margin: 0 auto 0.25rem;
  padding: 0.28rem 1.1rem;
  display: grid;
  grid-template-columns: 280px 1fr auto;
  align-items: center;
  column-gap: 1.25rem;
  row-gap: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    radial-gradient(circle at 0% 50%, rgba(144, 170, 108, 0.18) 0, rgba(144, 170, 108, 0) 38%),
    radial-gradient(circle at 100% 0%, rgba(144, 170, 108, 0.18) 0, rgba(144, 170, 108, 0) 34%),
    linear-gradient(180deg, #f8f4ec, #f3eee4);
  border-bottom: 1px solid var(--line);
}

.site-logo {
  display: block;
  width: 280px;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  margin: -0.08rem 0;
  grid-column: 1;
  grid-row: 1 / span 2;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.45rem;
  line-height: 1.15;
}

a {
  color: var(--blue);
}

.site-title + .lede {
  margin-bottom: 0.6rem;
}

.site-header nav a {
  margin-right: 0.9rem;
  font-weight: 600;
  font-size: 1.04rem;
  font-family: "Source Sans 3", "Segoe UI", Tahoma, sans-serif;
  text-decoration: none;
  color: #2e3a32;
}

.site-header nav a:last-child {
  margin-right: 0;
}

.site-header nav a::after {
  content: " .";
  color: #7a7264;
  margin-left: 0.5rem;
}

.site-header nav a:last-child::after {
  content: "";
}

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

.lede {
  grid-column: 2;
  grid-row: 1;
  margin: 0 0 0.05rem;
  max-width: 34ch;
  font-size: clamp(1.05rem, 2.15vw, 1.18rem);
  color: #3d3933;
}

.site-header nav {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  line-height: 1.15;
}

.header-cta {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  border-radius: 999px;
  padding: 0.68rem 1.35rem;
  font-size: 1.04rem;
  white-space: nowrap;
}

.hero-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(300px, 1.4fr) minmax(260px, 1fr);
  align-items: start;
  margin-bottom: 1rem;
}

.hero-photo {
  min-height: 290px;
  border: 6px solid #fff;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.2);
  background:
    linear-gradient(175deg, rgba(16, 42, 70, 0.15), rgba(255, 255, 255, 0.06)),
    linear-gradient(120deg, #3f63a8 0%, #5f7dc0 32%, #8ba3d6 50%, #a2ba5f 72%, #6f8f3d 100%);
}

.hero-photo.state-hero-image {
  display: block;
  width: 100%;
  height: 290px;
  min-height: 290px;
  object-fit: cover;
  background: none;
}

.home-hero-wildflower {
  background-image:
    linear-gradient(165deg, rgba(20, 28, 36, 0.26), rgba(255, 255, 255, 0.06)),
    url("images/states/state-texas.png");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat;
}

.cta-stack {
  display: grid;
  gap: 0.75rem;
}

.cta-btn {
  display: block;
  border: 0;
  border-radius: 2px;
  padding: 0.82rem 1rem;
  text-align: center;
  color: var(--button-text);
  text-decoration: none;
  font-family: "Source Sans 3", "Segoe UI", Tahoma, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.cta-btn.orange {
  background: linear-gradient(180deg, #d97733, var(--orange));
}

.cta-btn.green {
  background: linear-gradient(180deg, #568d58, var(--green));
}

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

.feature-list li {
  font-family: "Source Sans 3", "Segoe UI", Tahoma, sans-serif;
  padding: 0.42rem 0;
  border-bottom: 1px solid var(--line);
}

.content-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 300px 1fr;
}

.card {
  border: 1px solid var(--line);
  background: var(--card);
  padding: 0.8rem 1rem;
}

.quick-facts dl {
  margin: 0;
}

.quick-facts div {
  display: grid;
  grid-template-columns: 115px 1fr;
  gap: 0.5rem;
  padding: 0.28rem 0;
  border-bottom: 1px solid var(--line);
}

.quick-facts dt {
  font-family: "Source Sans 3", "Segoe UI", Tahoma, sans-serif;
  font-weight: 700;
}

.section {
  border-top: 2px solid var(--line);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
}

.ad-strip {
  margin-top: 0.6rem;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
}

.ad-slot {
  margin: 0.95rem 0;
}

.ad-slot__label {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-family: "Source Sans 3", "Segoe UI", Tahoma, sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b5e4b;
}

.ad-slot__box {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: "Source Sans 3", "Segoe UI", Tahoma, sans-serif;
  font-size: 0.95rem;
  color: #5f5546;
  border: 1px dashed #b8a88f;
  background: #eee4d3;
}

.ad-slot--billboard .ad-slot__box {
  width: 970px;
  max-width: 100%;
  height: 250px;
}

.ad-slot--leaderboard .ad-slot__box {
  width: 728px;
  max-width: 100%;
  height: 90px;
}

.ad-slot--leaderboard {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0.2rem auto 0.45rem;
  width: 100%;
}

.leaderboard-link {
  display: block;
  width: min(728px, 100%);
  height: auto;
  overflow: visible;
  text-decoration: none;
  line-height: 0;
}

.leaderboard-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  border: 1px solid #cdbb9f;
  box-shadow: 0 2px 8px rgba(54, 42, 24, 0.14);
}

.mediumrect-link {
  display: block;
  width: 300px;
  max-width: 100%;
  text-decoration: none;
}

.mediumrect-image {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #cdbb9f;
  box-shadow: 0 2px 8px rgba(54, 42, 24, 0.14);
}

.ad-slot--mrec .ad-slot__box {
  width: 300px;
  max-width: 100%;
  height: 250px;
}

.ad-slot--halfpage .ad-slot__box {
  width: 300px;
  max-width: 100%;
  height: 600px;
}

.ad-slot--mobile {
  display: none;
}

.ad-slot--mobile .ad-slot__box {
  width: 320px;
  max-width: 100%;
  height: 100px;
}

.ad-slot--sidebar {
  margin-left: auto;
  margin-right: auto;
}

.ad-tile {
  position: relative;
  border: 1px solid var(--line);
  background: #efe6d8;
  padding: 1.95rem 0.55rem 0.55rem;
}

.ad-tile::before {
  content: "Sponsored";
  position: absolute;
  top: 0.45rem;
  left: 0.55rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: "Source Sans 3", "Segoe UI", Tahoma, sans-serif;
  color: #6b5e4b;
  background: #e9ddc9;
  border: 1px solid #cdbb9f;
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
}

.ad-visual {
  height: 84px;
  margin-bottom: 0.45rem;
  background: linear-gradient(140deg, #799fcb, #97bf6a);
}

.ad-photo {
  display: block;
  width: 100%;
  height: 84px;
  margin-bottom: 0.45rem;
  object-fit: cover;
  border: 1px solid #dccdb8;
  background: #d7cab4;
}

.ad-tile h4 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.ad-tile .cta-btn {
  padding: 0.55rem 0.7rem;
  font-size: 0.92rem;
}

.newsletter {
  margin-top: 1rem;
  background: linear-gradient(180deg, #264c8f, #213b67);
  color: #fff;
}

.newsletter p {
  margin: 0.45rem 0;
}

.newsletter input {
  width: 100%;
  margin-bottom: 0.45rem;
  border: 1px solid #b7c7dd;
  font-family: "Source Sans 3", "Segoe UI", Tahoma, sans-serif;
  padding: 0.55rem 0.6rem;
}

/* Keep the homepage MailerLite block constrained to the sidebar width. */
#mlb2-37495827.ml-form-embedContainer,
#mlb2-37495827.ml-form-embedContainer .ml-form-align-center,
#mlb2-37495827.ml-form-embedContainer .ml-form-embedWrapper,
#mlb2-37495827.ml-form-embedContainer .ml-form-embedWrapper.embedForm {
  width: 100% !important;
  max-width: 100% !important;
}

#mlb2-37495827.ml-form-embedContainer .ml-form-embedWrapper {
  display: block !important;
}

#mlb2-37495827.ml-form-embedContainer .ml-form-recaptcha {
  overflow: hidden;
}

#mlb2-37495827.ml-form-embedContainer .g-recaptcha {
  transform: scale(0.9);
  transform-origin: left top;
}

input,
textarea {
  width: 100%;
  max-width: 520px;
  border: 1px solid #b7c7dd;
  font-family: "Source Sans 3", "Segoe UI", Tahoma, sans-serif;
  padding: 0.55rem 0.6rem;
  background: #fffdfa;
}

.where-grid {
  margin-top: 0.6rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 0.75rem;
}

.state-list {
  margin: 0;
  padding-left: 1.2rem;
  columns: 3;
  column-gap: 1.2rem;
}

.state-list li {
  break-inside: avoid;
  margin-bottom: 0.35rem;
}

.map-block {
  min-height: 170px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 20% 30%, #b1ca89 0 18%, transparent 19%),
    radial-gradient(circle at 48% 42%, #a3be77 0 14%, transparent 15%),
    radial-gradient(circle at 76% 57%, #96b56f 0 16%, transparent 17%),
    linear-gradient(180deg, #dbe7c7, #c5d8ab);
}

footer {
  color: #5f5546;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 220px 1fr;
  }

  .site-logo {
    width: 220px;
  }

  .header-cta {
    grid-column: 2;
    grid-row: 3;
    justify-self: start;
    margin-top: 0.25rem;
  }

  .site-header nav {
    grid-row: 2;
  }

  .hero-grid,
  .content-grid,
  .where-grid {
    grid-template-columns: 1fr;
  }

  .ad-strip {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }

  .state-list {
    columns: 2;
  }

  .ad-slot--billboard .ad-slot__box {
    width: 728px;
    height: 90px;
  }

  .ad-slot--sidebar .mediumrect-link {
    width: min(300px, 100%);
  }
}

@media (max-width: 600px) {
  .ad-strip {
    grid-template-columns: 1fr;
  }

  .quick-facts div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .state-list {
    columns: 1;
  }

  .site-logo {
    width: 180px;
    height: auto;
    margin: 0 auto 0.35rem;
    grid-row: auto;
  }

  .site-header {
    grid-template-columns: 1fr;
    row-gap: 0.25rem;
    text-align: center;
  }

  .site-logo,
  .site-title,
  .lede,
  .site-header nav,
  .header-cta {
    grid-column: 1;
  }

  .site-title {
    grid-row: auto;
  }

  .site-header nav a {
    margin-right: 0.6rem;
    font-size: 0.98rem;
  }

  .site-header nav a::after {
    margin-left: 0.35rem;
  }

  .lede {
    grid-row: auto;
    max-width: 60ch;
    margin: 0 auto 0.15rem;
  }

  .header-cta {
    grid-row: auto;
    justify-self: center;
    margin-top: 0.25rem;
    padding: 0.62rem 1.1rem;
  }

  .ad-slot--billboard,
  .ad-slot--leaderboard {
    display: none;
  }

  .ad-slot--mobile {
    display: block;
  }
}
