@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/DMSans-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/DMSans-Bold.woff2") format("woff2");
}

@font-face {
  font-family: "Comic Neue";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/ComicNeue-Bold.woff2") format("woff2");
}

@font-face {
  font-family: "ADLaM Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ADLaMDisplay-Regular.woff2") format("woff2");
}

:root {
  --base: #ffffff;
  --contrast: #000000;
  --primary: #9dff20;
  --secondary: #345c00;
  --tertiary: #f6f6f6;
  --header-border: #aaffaaeb;
  --space: clamp(1.5rem, 5vw, 2rem);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --heading: "DM Sans", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--tertiary);
  color: var(--contrast);
  font-family: var(--font);
  font-size: clamp(1rem, 1rem + 0.15vw, 1.125rem);
  line-height: 1.6;
}

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

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

a:hover,
a:focus {
  color: var(--secondary);
}

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: 0;
  transform: translateY(-120%);
  background: var(--primary);
  color: var(--contrast);
  padding: 0.5rem 0.8rem;
  z-index: 10;
}

.skip-link:focus {
  transform: none;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem var(--space) 0;
  background: var(--base);
  border: 26px solid var(--header-border);
  border-radius: 49px;
}

.brand {
  flex: 0 0 30%;
  max-width: 320px;
  display: flex;
  justify-content: center;
  padding: 0.5rem;
}

.brand img {
  width: 250px;
  height: auto;
}

.brand-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0.75rem clamp(1rem, 3vw, 2rem) 1rem 0;
}

.nav-toggle {
  display: none;
}

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.25rem;
  width: 100%;
  flex-wrap: wrap;
  font-family: "Comic Neue", cursive;
  font-weight: 700;
  font-size: clamp(1.35rem, 2vw, 1.875rem);
}

.site-nav a {
  text-decoration: underline;
}

.tagline {
  margin: 0.6rem 0 0;
  font-family: "ADLaM Display", system-ui;
  font-size: clamp(1.25rem, 1.6vw, 2rem);
  line-height: 1.3;
  text-align: right;
}

main {
  margin: clamp(2.5rem, 8vw, 4.5rem) 0 clamp(3rem, 8vw, 5rem);
  padding: 0 var(--space);
}

h1,
h2,
h3 {
  font-family: var(--heading);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.032rem, 2rem + 2vw, 3.625rem);
  margin: 0 0 clamp(1.5rem, 4vw, 2.5rem);
}

h1.center {
  text-align: center;
}

h2 {
  font-size: clamp(1.75rem, 2.2vw, 2.625rem);
  margin: 0.4rem 0;
}

.lead {
  font-size: clamp(1.5rem, 1.6rem + 0.4vw, 1.875rem);
  line-height: 1.45;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  background: #ddd;
}

.content-image {
  margin: 1.25rem 0;
}

.content-image img {
  display: block;
  width: 100%;
  height: auto;
}

.content-image.narrow img {
  max-width: 767px;
}

.video {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 1.25rem 0;
  aspect-ratio: 16 / 9;
  background: #111;
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.plant-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--base);
  text-align: center;
}

.plant-table th,
.plant-table td {
  padding: 0.85rem 0.6rem;
  border-bottom: 1px solid #d5d5d5;
  vertical-align: middle;
}

.plant-table th {
  font-family: var(--heading);
}

.plant-table img {
  width: min(450px, 100%);
  height: auto;
}

.table-caption {
  margin: 0.8rem 0 0;
  text-align: center;
  font-size: 1.05rem;
}

.post-grid {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 1.25rem;
}

.post-card img,
.archive-card img {
  width: 100%;
  height: clamp(180px, 30vh, 400px);
  object-fit: cover;
  display: block;
  background: #ddd;
}

.post-card h2,
.archive-card h2 {
  margin-top: 0.6rem;
}

.post-card h2 a,
.archive-card h2 a {
  text-decoration: underline;
}

.excerpt {
  margin: 0.4rem 0;
}

.more {
  margin: 0.2rem 0 0.6rem;
}

.tags,
.post-meta,
.post-date {
  font-size: clamp(0.875rem, 0.9rem + 0.1vw, 1rem);
}

.tags a,
.post-meta a,
.post-date a {
  text-decoration: underline;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.4rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #ccc;
}

.archive-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 1.25rem;
}

.form-placeholder {
  max-width: 40rem;
  background: var(--base);
  border: 3px solid var(--secondary);
  padding: 1rem 1.15rem;
  margin: 0 0 1.25rem;
}

.contact-form {
  max-width: 40rem;
  display: grid;
  gap: 0.9rem;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

legend {
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.contact-form label,
.name-field {
  display: grid;
  gap: 0.25rem;
  font-weight: 700;
}

.name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.sub-label {
  font-weight: 400;
}

input,
textarea {
  width: 100%;
  font: inherit;
  font-weight: 400;
  color: var(--contrast);
  background: var(--base);
  border: 1px solid var(--contrast);
  border-radius: 0;
  padding: 0.6em 0.7em;
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

button,
.nav-toggle {
  background: var(--primary);
  color: var(--contrast);
  border: 0;
  border-radius: 0;
  font: inherit;
  font-weight: 700;
  padding: 0.7em 1.35em;
  cursor: pointer;
}

.contact-form button {
  justify-self: start;
}

button:hover,
button:focus,
.nav-toggle:hover,
.nav-toggle:focus {
  background: var(--contrast);
  color: var(--base);
}

.required {
  color: var(--secondary);
}

.hp {
  position: absolute;
  left: -9999px;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 1.4em;
  font-weight: 700;
}

.search-form {
  display: flex;
  gap: 0.5rem;
  max-width: 36rem;
  margin-top: 1rem;
}

.search-form label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.search-results {
  list-style: none;
  padding: 0;
  max-width: 40rem;
}

.search-results li {
  margin: 0.8rem 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: clamp(1.8rem, 4vw, 3rem) var(--space) 2rem;
}

.site-footer p {
  margin: 0;
}

.site-title a {
  text-decoration: underline;
}

.footer-note {
  text-align: right;
}

@media (max-width: 900px) {
  .post-grid,
  .archive-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 781px) {
  .site-header {
    flex-direction: column;
    align-items: stretch;
    border-width: 14px;
    border-radius: 28px;
  }

  .brand {
    flex-basis: auto;
    max-width: none;
  }

  .brand img {
    width: 180px;
  }

  .brand-text {
    align-items: stretch;
    padding: 0 1rem 1rem;
  }

  .nav-toggle {
    display: inline-flex;
    align-self: center;
    margin-bottom: 0.75rem;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .tagline {
    text-align: center;
  }

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

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

  .plant-table thead {
    display: none;
  }

  .plant-table,
  .plant-table tbody,
  .plant-table tr,
  .plant-table td {
    display: block;
    width: 100%;
  }

  .plant-table tr {
    margin: 0 0 1rem;
    border: 1px solid #d5d5d5;
    background: var(--base);
  }

  .plant-table td {
    border: 0;
    text-align: center;
  }

  .plant-table td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--heading);
    font-weight: 700;
    margin-bottom: 0.2rem;
  }

  .footer-note,
  .site-footer {
    text-align: left;
  }
}
