/* LGI: the approved visual polish, independent of WordPress. */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/poppins-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/poppins-semibold-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --ink: #203832;
  --text: #40554d;
  --teal: #267e70;
  --teal-dark: #1d6559;
  --soft: #f4f7f5;
  --line: #dce6e0;
  --white: #ffffff;
  --content-width: 1120px;
  --heading-font: "Poppins", "Avenir Next", "Segoe UI", sans-serif;
  --body-font: "Poppins", "Avenir Next", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body, button { font-family: var(--body-font); }
img { display: block; max-width: 100%; height: auto; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: var(--teal-dark); text-underline-offset: .2em; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 5px;
}
h1, h2, h3, h4 {
  margin: 0 0 .6em;
  color: var(--ink);
  font-family: var(--heading-font);
  font-weight: 600;
  line-height: 1.25;
  text-wrap: balance;
}
h1 { font-size: clamp(36px, 4vw, 50px); letter-spacing: -.035em; }
h2 { font-size: clamp(26px, 2.8vw, 34px); letter-spacing: -.025em; }
h3 { font-size: 23px; letter-spacing: -.015em; }
p, ul, ol { margin: 0 0 1.2em; }
ul, ol { padding-left: 1.35em; }
li + li { margin-top: .55em; }
li::marker { color: var(--teal); }
strong { color: var(--ink); font-weight: 600; }
figure { margin: 0; }
blockquote {
  margin: 1.5em 0;
  padding: .25em 0 .25em 1.35em;
  border-left: 3px solid var(--teal);
}
blockquote > :last-child { margin-bottom: 0; }
hr { margin: 2.5rem 0; border: 0; border-top: 1px solid var(--line); }
.container { width: min(calc(100% - 56px), var(--content-width)); margin-inline: auto; }
.skip-link {
  position: absolute;
  z-index: 20;
  top: 10px;
  left: 20px;
  padding: 10px 18px;
  border-radius: 4px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); color: var(--white); }

/* Shared navigation. The links remain available when JavaScript is disabled. */
.site-header { position: relative; z-index: 5; background: var(--white); }
.contact-strip { padding-block: 6px; color: var(--white); background: var(--teal); }
.contact-strip .container { display: flex; align-items: center; }
.contact-strip a { color: inherit; font-size: 13px; text-decoration: none; letter-spacing: .01em; }
.contact-strip a:hover { text-decoration: underline; }
.contact-strip a:focus-visible { outline-color: var(--white); }
.nav-shell { display: flex; align-items: center; gap: 30px; min-height: 100px; }
.site-header { border-bottom: 1px solid var(--line); }
.brand { display: block; flex: 0 0 auto; }
.brand img { width: 92px; height: auto; }
.site-nav { display: flex; align-items: center; justify-content: flex-end; gap: 25px; flex: 1; }
.site-nav > a {
  position: relative;
  padding-block: 12px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .025em;
  line-height: 1.4;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}
.site-nav > a:not(.contact-link)::after {
  content: "";
  position: absolute;
  inset: auto 0 4px;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .16s ease;
}
.site-nav > a:hover::after, .site-nav > a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav > a.contact-link {
  margin-left: 16px;
  padding: 15px 22px;
  border: 1px solid var(--teal);
  border-radius: 6px;
  color: var(--white);
  background: var(--teal);
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  transition: background .16s ease, border-color .16s ease;
}
.site-nav > a.contact-link:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.menu-toggle { display: none; }

/* Page structure and original homepage photograph. */
main { min-height: 45vh; }
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 510px;
  padding-block: 80px;
  color: var(--white);
  background-color: var(--ink);
  background-image: linear-gradient(90deg, rgba(10,38,31,.87), rgba(10,38,31,.54) 62%, rgba(10,38,31,.22)), var(--hero-image);
  background-size: cover;
  background-position: center;
}
.hero h1 {
  max-width: 800px;
  margin: 0;
  color: var(--white);
  font-size: clamp(36px, 4.2vw, 58px);
  line-height: 1.14;
  letter-spacing: -.035em;
  text-wrap: initial;
}
.page-intro { padding-block: 66px 58px; background: var(--soft); border-bottom: 1px solid var(--line); }
.page-intro h1 { margin: 0; }
.page-intro p { max-width: 740px; margin: 18px 0 0; font-size: 18px; }
.page-intro.has-image {
  display: flex;
  align-items: center;
  min-height: 250px;
  padding-block: 54px;
  color: var(--white);
  background-color: var(--ink);
  background-image: linear-gradient(90deg, rgba(10,38,31,.82), rgba(10,38,31,.65)), var(--intro-image);
  background-size: cover;
  background-position: center;
  border-bottom: 0;
}
.page-intro.has-image h1 { color: var(--white); }
.content-section { padding-block: 64px 76px; }
.content-section + .content-section { padding-top: 0; }
.section-heading { max-width: 820px; margin-bottom: 28px; }
.section-heading > :last-child { margin-bottom: 0; }
.prose { overflow-wrap: anywhere; }
.prose > :last-child { margin-bottom: 0; }
.prose h2:not(:first-child), .prose h3:not(:first-child) { margin-top: 1.6em; }
.prose a { font-weight: 500; }
.prose img { margin-block: 24px; }
.prose img.aligncenter, .prose img[style*="margin"] { margin-inline: auto; }
.split-grid, .story-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: start; }
.split-grid > *, .story-grid > * { min-width: 0; }
.story-grid { grid-template-columns: 1.12fr .88fr; gap: 56px; align-items: center; }
.story-photo { width: 100%; border-radius: 8px; }
body[data-page="home"] .content-section { padding-top: 70px; }
body[data-page="home"] .section-heading { margin-inline: auto; text-align: center; }
.home-intro { max-width: 1000px; margin: 0 auto 22px; text-align: center; }
.home-intro h2 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 400; line-height: 1.5; letter-spacing: -.015em; }
.focus-image { width: 100%; max-width: 710px; margin: 20px auto 30px; }
.funds-image { width: 100%; max-width: 745px; margin-inline: auto; }
body[data-page="home"] .container > .prose { max-width: 1000px; margin-inline: auto; }
body[data-page="home"] .container > .prose > h2,
body[data-page="home"] .container > .prose > h3 { text-align: center; }
.focus-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 32px; }
.focus-card { min-width: 0; padding: 28px 30px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.focus-card ul { margin: 0; }
.focus-card li { padding-left: 3px; font-size: 15px; }
.focus-card li + li { margin-top: 12px; }

/* People, portfolio marks and news preserve their original content. */
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.team-card { overflow: hidden; min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.team-card > img, .team-card > a > img { width: 100%; height: 330px; object-fit: cover; object-position: center 20%; }
.card-copy { padding: 24px; }
.team-card h2 { margin-bottom: 5px; font-size: 19px; line-height: 1.4; letter-spacing: -.01em; text-wrap: initial; }
.team-card p { margin: 0; color: #536a62; font-size: 14px; line-height: 1.6; }
.team-card a { text-decoration-thickness: 1px; }
.portfolio-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; }
.portfolio-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 158px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  transition: border-color .18s ease, box-shadow .18s ease;
}
a.portfolio-card:hover { border-color: var(--teal); box-shadow: 0 5px 18px rgba(22,62,47,.08); }
.portfolio-card img { width: 100%; max-width: 165px; height: 100px; object-fit: contain; }
.news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.news-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.news-card > img, .news-card > a > img { width: 100%; height: 260px; object-fit: cover; }
.news-card .card-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 28px; }
.news-card h2 { font-size: 22px; line-height: 1.4; letter-spacing: -.015em; text-wrap: initial; }
.news-card .prose { font-size: 15px; line-height: 1.75; }
.text-link { display: inline-block; font-size: 14px; font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.news-card .text-link { margin-top: auto; padding-top: 22px; }

.timeline { max-width: 960px; margin-inline: auto; }
.timeline-step { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 30px; padding-bottom: 44px; }
.timeline-step:not(:last-child)::before { content: ""; position: absolute; left: 27px; top: 60px; bottom: 4px; width: 2px; background: var(--line); }
.timeline-step:last-child { padding-bottom: 0; }
.step-number { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; color: var(--white); background: var(--teal); font-size: 22px; font-weight: 600; line-height: 1; }
.step-content { padding-top: 9px; }
.step-content h3 { margin-bottom: 14px; }
.bio-list { max-width: 900px; margin-inline: auto; }
.bio { padding-block: 32px; border-top: 1px solid var(--line); scroll-margin-top: 32px; }
.bio:first-child { padding-top: 0; border: 0; }
.bio:last-child { padding-bottom: 0; }
.bio h2 { font-size: 26px; margin-bottom: 18px; }
.image-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; margin-top: 36px; }
.image-gallery img { width: 100%; height: auto; border-radius: 6px; }
.image-gallery > :not(img):not(a) { grid-column: 1 / -1; }
.image-gallery > .detail-image { width: auto; max-width: 100%; margin-inline: auto; }
body[data-page="fairona"] .image-gallery { grid-template-columns: 1fr; max-width: 1100px; margin: 0 auto; }
body[data-page="fairona"] .detail-image { width: 100%; }
body[data-page="virgin-plants"] .image-gallery { grid-template-columns: 1fr; max-width: 900px; margin: 0 auto; text-align: center; }
body[data-page="virgin-plants"] .detail-image { width: 200px; }
body[data-page="privacy-policy"] .image-gallery,
body[data-page="hello-world"] .image-gallery { display: block; max-width: 900px; margin: 0 auto; }
.legacy-comment { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.legacy-comment h2 { font-size: 23px; }
body[data-page="fairona"] .container > .prose,
body[data-page="virgin-plants"] .container > .prose,
body[data-page="privacy-policy"] .container > .prose,
body[data-page="hello-world"] .container > .prose { max-width: 900px; margin-inline: auto; }

.site-footer { padding-block: 48px 22px; border-top: 1px solid var(--line); background: var(--soft); }
.footer-grid { display: grid; grid-template-columns: 1fr 2.2fr; gap: 48px; }
.footer-brand img { width: 92px; height: auto; }
.footer-content { min-width: 0; font-size: 13px; line-height: 1.75; }
.footer-content h2, .footer-content h3 { font-size: 16px; line-height: 1.6; letter-spacing: 0; }
.footer-content p { margin-bottom: .8em; }
.footer-content > :last-child { margin-bottom: 0; }
.footer-content ul { padding-left: 0; list-style: none; }
.footer-content li + li { margin-top: 8px; }
.footer-content a { overflow-wrap: anywhere; }
.footer-bottom { margin-top: 32px; padding-top: 19px; border-top: 1px solid var(--line); font-size: 12px; }
.footer-bottom p { margin: 0; }

@media (max-width: 999px) {
  .nav-shell { position: relative; flex-wrap: wrap; justify-content: space-between; gap: 0; min-height: 88px; padding-block: 14px; }
  .brand img { width: 80px; }
  .site-nav { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
  .site-nav > a { padding: 13px 4px; font-size: 14px; }
  .site-nav > a:not(.contact-link)::after { display: none; }
  .site-nav > a[aria-current="page"] { color: var(--teal-dark); font-weight: 700; }
  .site-nav > a.contact-link { align-self: flex-start; margin: 10px 0 6px; padding: 13px 22px; }
  .js .menu-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: var(--white); font-size: 14px; cursor: pointer; }
  .menu-toggle span { position: relative; display: block; width: 17px; height: 2px; background: currentColor; }
  .menu-toggle span::before, .menu-toggle span::after { position: absolute; content: ""; left: 0; width: 17px; height: 2px; background: currentColor; transition: transform .16s ease; }
  .menu-toggle span::before { top: -5px; }
  .menu-toggle span::after { top: 5px; }
  .menu-toggle[aria-expanded="true"] span { background: transparent; }
  .menu-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
  .js .site-nav { display: none; }
  .js .menu-open .site-nav { display: flex; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portfolio-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split-grid, .story-grid { gap: 32px; }
  .story-grid { align-items: start; }
}

@media (max-width: 699px) {
  body { font-size: 15px; }
  .container { width: calc(100% - 40px); }
  .contact-strip { padding-block: 5px; }
  .contact-strip a { font-size: 12px; }
  .nav-shell { min-height: 82px; }
  .brand img { width: 76px; }
  .hero { min-height: 430px; padding-block: 58px; }
  .hero h1 { font-size: clamp(32px, 8.7vw, 42px); line-height: 1.16; letter-spacing: -.03em; }
  .page-intro { padding-block: 38px 34px; }
  .page-intro.has-image { min-height: 190px; padding-block: 38px; }
  .page-intro h1 { font-size: 34px; }
  .page-intro p { font-size: 16px; }
  .content-section, body[data-page="home"] .content-section { padding-block: 40px 50px; }
  .content-section + .content-section { padding-top: 0; }
  .section-heading { margin-bottom: 24px; }
  .home-intro br { display: none; }
  .split-grid, .story-grid, .focus-grid, .team-grid, .news-grid, .image-gallery { grid-template-columns: 1fr; gap: 24px; }
  .focus-grid { gap: 18px; margin-top: 24px; }
  .focus-card { padding: 24px; }
  .story-photo { max-height: 500px; object-fit: cover; }
  .team-card > img, .team-card > a > img { height: auto; aspect-ratio: 1 / 1; max-height: 480px; }
  .card-copy { padding: 22px; }
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .portfolio-card { min-height: 130px; padding: 14px; }
  .portfolio-card img { height: 84px; }
  .news-card > img, .news-card > a > img { height: 220px; }
  .news-card .card-copy { padding: 22px; }
  .news-card h2 { font-size: 21px; }
  .timeline-step { grid-template-columns: 42px minmax(0, 1fr); gap: 18px; padding-bottom: 30px; }
  .timeline-step:not(:last-child)::before { left: 20px; top: 48px; }
  .step-number { width: 42px; height: 42px; font-size: 18px; }
  .step-content { padding-top: 6px; }
  .step-content h3 { font-size: 21px; }
  .bio { padding-block: 26px; }
  .bio h2 { font-size: 23px; }
  .site-footer { padding-block: 36px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 25px; }
  .footer-brand img { width: 80px; }
  .footer-bottom { margin-top: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; }
}

@media print {
  .contact-strip, .menu-toggle, .site-nav, .skip-link { display: none !important; }
  .nav-shell { min-height: 0; padding-block: 12px; }
  .container { width: 100%; }
  .hero { min-height: 0; padding-block: 30px; background: none; }
  .hero h1 { color: var(--ink); font-size: 32px; }
  .page-intro { padding-block: 24px; background: none; }
  .page-intro.has-image { min-height: 0; background: none; }
  .page-intro.has-image h1 { color: var(--ink); }
  .content-section { padding-block: 24px; }
  .team-card, .news-card, .portfolio-card, .bio, .timeline-step { break-inside: avoid; }
}
