/* Molt and Bloom — design system
   Palette (brand): green 4DB870 / 2F8A4C / 1F6536, slate 1F2937,
   grey 6B7280, tint EDF7F0, white. Outfit 700 display, Albert Sans text. */

@font-face {
  font-display: swap;
  font-family: "Albert Sans";
  font-style: normal;
  font-weight: 100 900;
  src: url("/assets/fonts/albert-sans-var.woff2") format("woff2");
}
@font-face {
  font-display: swap;
  font-family: "Outfit";
  font-style: normal;
  font-weight: 700;
  src: url("/assets/fonts/outfit-700.woff2") format("woff2");
}

:root {
  --green: #4db870;
  --green-mid: #2f8a4c;
  --green-deep: #1f6536;
  --green-ink: #174d29;
  --slate: #1f2937;
  --grey: #6b7280;
  --tint: #edf7f0;
  --zebra: #f7faf8;
  --line: #dbe4de;
  --white: #ffffff;
  --error-tint: #fdecea;
  --error-ink: #8c2318;
  --display: "Outfit", "Albert Sans", system-ui, sans-serif;
  --text: "Albert Sans", system-ui, sans-serif;
  --wrap: 74rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

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

body {
  margin: 0;
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.6rem);
}
h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
}
h3 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
}

p {
  margin: 0 0 1.1em;
}

a {
  color: var(--green-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--green-mid);
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -100vw;
  top: 0;
  background: var(--slate);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 20;
}

.skip-link:focus {
  left: 0;
  color: var(--white);
}

:focus-visible {
  outline: 3px solid var(--green-mid);
  outline-offset: 2px;
}

.section--slate :focus-visible,
.site-foot :focus-visible {
  outline-color: var(--green);
}

/* Buttons */

.button {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 3px;
  padding: 0.85rem 1.6rem;
  transition: background-color 160ms ease-out, color 160ms ease-out, border-color 160ms ease-out;
}

.button--solid {
  background: var(--green-deep);
  color: var(--white);
  border: 2px solid var(--green-deep);
}

.button--solid:hover {
  background: var(--green-ink);
  border-color: var(--green-ink);
  color: var(--white);
}

.button--ghost {
  background: transparent;
  color: var(--slate);
  border: 2px solid var(--slate);
}

.button--ghost:hover {
  background: var(--slate);
  color: var(--white);
}

.button--light {
  background: var(--white);
  color: var(--slate);
  border: 2px solid var(--white);
}

.button--light:hover {
  background: var(--tint);
  border-color: var(--tint);
  color: var(--slate);
}

/* Header */

.site-head {
  border-bottom: 1px solid var(--line);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand__lockup {
  height: 3.25rem;
  width: auto;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__list > li > a:not(.button) {
  font-weight: 560;
  font-size: 0.98rem;
  color: var(--slate);
  text-decoration: none;
}

.site-nav__list > li > a:not(.button):hover,
.site-nav__list > li > a:not(.button)[aria-current="page"] {
  color: var(--green-deep);
  text-decoration: underline;
  text-decoration-color: var(--green);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}

.site-nav__cta .button {
  padding: 0.55rem 1.1rem;
  font-size: 0.92rem;
}

.site-nav__toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}

.site-nav__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--slate);
  margin: 5px 0;
  transition: transform 160ms ease-out, opacity 160ms ease-out;
}

@media (max-width: 860px) {
  .site-nav__toggle {
    display: block;
  }
  .site-nav__list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem var(--gutter) 1.4rem;
    gap: 1rem;
  }
  .site-nav__list.is-open {
    display: flex;
  }
  .site-nav__toggle[aria-expanded="true"] .site-nav__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .site-nav__toggle[aria-expanded="true"] .site-nav__bar:nth-child(2) {
    opacity: 0;
  }
  .site-nav__toggle[aria-expanded="true"] .site-nav__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}

.hero__copy {
  padding: clamp(2.5rem, 7vw, 5.5rem) clamp(1.25rem, 4vw, 4rem) clamp(2.5rem, 7vw, 5rem);
  max-width: 44rem;
  justify-self: end;
  align-self: center;
}

.hero__copy h1 em {
  font-style: normal;
  color: var(--green-mid);
}

.hero__lede {
  font-size: 1.125rem;
  color: #3d4654;
  max-width: 62ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.hero__media {
  position: relative;
  min-height: 24rem;
}

.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero__media {
    order: -1;
    min-height: 15rem;
  }
  .hero__copy {
    justify-self: start;
  }
}

/* Sections */

.section {
  padding-block: clamp(3rem, 8vw, 5.5rem);
}

.section--tint {
  background: var(--tint);
}

.section--slate {
  background: var(--slate);
  color: var(--white);
}

.section--slate a:not(.button) {
  color: var(--green);
}

.section__label {
  font-family: var(--display);
  font-weight: 700;
  color: var(--green-mid);
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

.section--slate .section__label {
  color: var(--green);
}

.section__intro {
  max-width: 62ch;
  font-size: 1.1rem;
  color: #3d4654;
}

.section--slate .section__intro,
.section--slate p {
  color: #d4dae3;
}

/* Audience rows (home) */

.audiences {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(2rem, 5vw, 4rem);
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.audience {
  padding: 2rem 0 2.2rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.audience h3 {
  margin-bottom: 0.5em;
}

.audience p {
  color: #3d4654;
  flex-grow: 1;
}

.audience__link {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  color: var(--green-deep);
}

.audience__link::after {
  content: " \2192";
}

.audience__link:hover {
  text-decoration: underline;
}

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

/* Founders band (home) */

.founders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: 2.5rem;
}

.founder {
  display: grid;
  grid-template-columns: minmax(7rem, 9rem) 1fr;
  gap: 1.4rem;
  align-items: start;
}

.founder img {
  border-radius: 4px;
  aspect-ratio: 1;
  object-fit: cover;
}

.founder h3 {
  margin-bottom: 0.2em;
}

.founder__role {
  font-size: 0.92rem;
  color: var(--green-deep);
  font-weight: 600;
  margin-bottom: 0.7em;
}

.founder p {
  margin-bottom: 0.6em;
}

.founder__more {
  font-weight: 600;
}

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

@media (max-width: 480px) {
  .founder {
    grid-template-columns: 1fr;
  }
  .founder img {
    max-width: 9rem;
  }
}

/* CTA band */

.cta-band {
  position: relative;
  overflow: hidden;
}

.cta-band__inner {
  max-width: 46rem;
}

.cta-band .button {
  margin-top: 0.8rem;
}

.cta-band__finch {
  position: absolute;
  right: -3rem;
  bottom: -4rem;
  width: clamp(14rem, 26vw, 22rem);
  opacity: 0.14;
  pointer-events: none;
}

/* Services */

.service-areas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(2rem, 5vw, 4rem);
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.service {
  padding: 2.2rem 0 2.4rem;
  border-bottom: 1px solid var(--line);
}

.service__summary {
  font-style: italic;
  color: #3d4654;
  max-width: 55ch;
}

.service ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.service li {
  padding: 0.4rem 0 0.4rem 1.6rem;
  position: relative;
}

.service li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 0.85rem;
  height: 2px;
  background: var(--green);
}

@media (max-width: 700px) {
  .service-areas {
    grid-template-columns: 1fr;
  }
}

/* FAQ */

.faq {
  max-width: 50rem;
  margin-top: 2rem;
}

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

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

.faq summary {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.08rem;
  padding: 1.1rem 2.2rem 1.1rem 0;
  cursor: pointer;
  list-style: none;
  position: relative;
}

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

.faq summary:hover {
  color: var(--green-deep);
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--green-mid);
  transition: transform 160ms ease-out;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details > p {
  max-width: 65ch;
  padding-bottom: 1.2rem;
  color: #3d4654;
}

/* Article listing */

.post-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 2.5rem;
}

.post-card {
  display: flex;
  flex-direction: column;
}

.post-card__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 4px;
  background: var(--tint);
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease-out;
}

.post-card:hover .post-card__media img {
  transform: scale(1.04);
}

.post-card h2,
.post-card h3 {
  font-size: 1.25rem;
  line-height: 1.25;
  margin: 0.9rem 0 0.4rem;
}

.post-card a {
  color: var(--slate);
  text-decoration: none;
}

.post-card a:hover {
  color: var(--green-deep);
  text-decoration: underline;
  text-decoration-color: var(--green);
}

.post-card__meta {
  font-size: 0.88rem;
  color: var(--grey);
}

.post-feature {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  margin-top: 2.5rem;
  padding-bottom: clamp(2rem, 5vw, 3rem);
  border-bottom: 1px solid var(--line);
}

.post-feature__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 4px;
}

.post-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-feature h2 {
  margin-top: 0.4rem;
}

.post-feature a {
  color: var(--slate);
  text-decoration: none;
}

.post-feature a:hover {
  color: var(--green-deep);
}

@media (max-width: 860px) {
  .post-list {
    grid-template-columns: 1fr;
  }
  .post-feature {
    grid-template-columns: 1fr;
  }
  .post-feature__media {
    order: -1;
  }
}

/* Article page */

.article-head {
  padding-top: clamp(2.5rem, 6vw, 4rem);
}

.article-head__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  color: var(--grey);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.article-head__meta .cat {
  color: var(--green-deep);
  font-weight: 600;
}

.article-head h1 {
  max-width: 24ch;
}

.article-hero {
  margin: clamp(1.5rem, 4vw, 2.5rem) 0 0;
}

.article-hero img {
  border-radius: 4px;
  width: 100%;
  max-height: 32rem;
  object-fit: cover;
}

.article-body {
  max-width: 44rem;
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

.article-body h2 {
  font-size: 1.55rem;
  margin-top: 1.8em;
}

.article-body h3 {
  margin-top: 1.5em;
}

.article-body blockquote {
  margin: 1.8rem 0;
  padding: 1.3rem 1.5rem;
  background: var(--tint);
  border: 3px solid var(--green-deep);
  border-radius: 4px;
}

.article-body blockquote p {
  margin: 0 0 0.5em;
}

.article-body blockquote p:last-child {
  margin-bottom: 0;
}

.article-body ul,
.article-body ol {
  padding-left: 1.3rem;
  margin: 0 0 1.2em;
}

.article-body li {
  margin-bottom: 0.45em;
}

.article-body li::marker {
  color: var(--green-mid);
}

.article-body table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5rem 0;
  font-size: 0.98rem;
}

.article-body th {
  text-align: left;
  font-family: var(--display);
  font-weight: 700;
  background: var(--tint);
}

.article-body th,
.article-body td {
  border: 1px solid var(--line);
  padding: 0.55rem 0.8rem;
}

.article-body tr:nth-child(even) td {
  background: var(--zebra);
}

.author-box {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1.3rem;
  align-items: start;
  max-width: 44rem;
  border-top: 1px solid var(--line);
  padding-block: 2rem 3rem;
}

.author-box img {
  border-radius: 50%;
  aspect-ratio: 1;
  object-fit: cover;
}

.author-box h2 {
  font-size: 1.15rem;
  margin-bottom: 0.4em;
}

.author-box p {
  font-size: 0.98rem;
  color: #3d4654;
  margin-bottom: 0.6em;
}

/* About page */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 2.5rem;
}

.pillar {
  border-top: 3px solid var(--green);
  padding-top: 1.2rem;
}

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

.quote {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  max-width: 30ch;
  margin: 0;
}

.quote footer {
  font-family: var(--text);
  font-weight: 400;
  font-size: 1rem;
  color: var(--grey);
  margin-top: 1rem;
}

.bio {
  display: grid;
  grid-template-columns: minmax(12rem, 16rem) 1fr;
  gap: clamp(1.8rem, 4vw, 3.5rem);
  align-items: start;
  padding-block: clamp(2rem, 5vw, 3rem);
}

.bio + .bio {
  border-top: 1px solid var(--line);
}

.bio img {
  border-radius: 4px;
  aspect-ratio: 1;
  object-fit: cover;
}

.bio > div {
  max-width: 44rem;
}

.bio h3 {
  margin-bottom: 0.2em;
}

.bio__role {
  color: var(--green-deep);
  font-weight: 600;
  margin-bottom: 1em;
}

.bio dl {
  margin: 1.2em 0 0;
}

.bio dt {
  font-weight: 700;
  margin-top: 0.9em;
}

.bio dd {
  margin: 0.15em 0 0;
  color: #3d4654;
}

@media (max-width: 700px) {
  .bio {
    grid-template-columns: 1fr;
  }
  .bio img {
    max-width: 14rem;
  }
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.split__media img {
  border-radius: 4px;
  width: 100%;
  object-fit: cover;
}

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

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.contact-direct {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 1.6rem;
}

.contact-direct a {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--slate);
}

.contact-direct a:hover {
  color: var(--green-deep);
}

.contact-media {
  margin-top: 2.5rem;
}

.contact-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
}

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

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.3rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  font-weight: 600;
  font-size: 0.95rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  color: var(--slate);
  padding: 0.7rem 0.85rem;
  border: 1px solid #b6c2ba;
  border-radius: 3px;
  background: var(--white);
}

.form-field input,
.form-field select {
  height: 3rem;
  box-sizing: border-box;
}

.form-field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%231f2937' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 12px 8px;
}

.form-field ::placeholder {
  color: var(--grey);
  opacity: 1;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 3px solid rgba(77, 184, 112, 0.45);
  outline-offset: 0;
  border-color: var(--green-mid);
}

.form-note {
  grid-column: 1 / -1;
  font-size: 0.9rem;
  color: var(--grey);
  margin: 0;
}

.form-status {
  grid-column: 1 / -1;
  padding: 1rem 1.2rem;
  border-radius: 3px;
  font-weight: 600;
}

.form-status--ok {
  background: var(--tint);
  color: var(--green-deep);
}

.form-status--error {
  background: var(--error-tint);
  color: var(--error-ink);
}

.hp-field {
  position: absolute;
  left: -100vw;
}

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

/* Motion: one authored moment on the hero */

@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * {
    animation: rise 1100ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
  }
  .hero__copy > *:nth-child(2) {
    animation-delay: 120ms;
  }
  .hero__copy > *:nth-child(3) {
    animation-delay: 240ms;
  }
  .hero__copy > *:nth-child(4) {
    animation-delay: 360ms;
  }
  .hero__copy > *:nth-child(5) {
    animation-delay: 480ms;
  }
  .hero__media {
    overflow: hidden;
  }
  .hero__media img {
    animation: unveil 1300ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(6px);
  }
  60% {
    filter: blur(0);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

@keyframes unveil {
  from {
    clip-path: inset(0 0 0 100%);
    transform: scale(1.06);
  }
  to {
    clip-path: inset(0);
    transform: scale(1);
  }
}

/* Footer */

.site-foot {
  background: var(--slate);
  color: #d4dae3;
}

.site-foot a {
  color: #eef1f5;
  text-decoration: none;
}

.site-foot a:hover {
  color: var(--green);
  text-decoration: underline;
}

.site-foot__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  padding-block: 3rem 2rem;
}

.site-foot__tag {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  margin-top: 1rem;
  max-width: 18ch;
}

.site-foot__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-foot__contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-foot__legal {
  border-top: 1px solid #35404f;
  padding-block: 1.1rem;
  font-size: 0.88rem;
}

.site-foot__legal p {
  margin: 0;
}

@media (max-width: 700px) {
  .site-foot__inner {
    grid-template-columns: 1fr;
  }
}
