/*
Theme Name: FHHE
Theme URI: https://fhhe.org/
Author: Foundation for Holistic Health Education
Description: A lightweight, accessible one-page theme for the Foundation for Holistic Health Education.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fhhe
Tags: one-column, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, theme-options, translation-ready, wide-blocks
*/

:root {
  --fhhe-forest: #173f35;
  --fhhe-forest-deep: #0d2d26;
  --fhhe-leaf: #6c973b;
  --fhhe-sage: #dce7d6;
  --fhhe-cream: #f6f3ea;
  --fhhe-paper: #fffdf8;
  --fhhe-clay: #bd6d4a;
  --fhhe-ink: #20302c;
  --fhhe-muted: #61706b;
  --fhhe-line: rgba(23, 63, 53, 0.16);
  --fhhe-content: 1180px;
  --fhhe-radius: 24px;
  --fhhe-section-space: clamp(4.5rem, 8vw, 8rem);
  --fhhe-body-size: 18px;
  --fhhe-hero-max: 88px;
  --fhhe-heading-font: Georgia, "Times New Roman", serif;
  --fhhe-body-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--fhhe-ink);
  background: var(--fhhe-paper);
  font-family: var(--fhhe-body-font);
  font-size: var(--fhhe-body-size);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.admin-bar .site-header {
  top: 32px;
}

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

a {
  color: var(--fhhe-forest);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--fhhe-clay);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--fhhe-clay);
  outline-offset: 4px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  position: fixed !important;
  z-index: 100000;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 0.8rem 1rem;
  clip: auto;
  color: #fff;
  background: var(--fhhe-forest-deep);
}

.fhhe-wrap {
  width: min(calc(100% - 2.5rem), var(--fhhe-content));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--fhhe-line);
  background: color-mix(in srgb, var(--fhhe-paper) 92%, transparent);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-branding {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.custom-logo {
  width: auto;
  max-height: 54px;
}

.custom-logo-link {
  display: block;
}

.site-branding__mark {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 14px 14px 14px 4px;
  color: #fff;
  background: var(--fhhe-forest);
  font-family: var(--fhhe-heading-font);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}

.site-branding__text {
  display: grid;
  gap: 0.05rem;
}

.site-title {
  color: var(--fhhe-forest-deep);
  font-family: var(--fhhe-heading-font);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
  line-height: 1.15;
}

.site-description {
  color: var(--fhhe-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1.2;
  text-transform: uppercase;
}

.anchor-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.7rem, 2vw, 1.4rem);
  font-size: 0.88rem;
  font-weight: 700;
}

.anchor-nav ul {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.anchor-nav a {
  color: var(--fhhe-forest-deep);
  text-decoration: none;
}

.anchor-nav a:hover {
  color: var(--fhhe-clay);
}

.anchor-nav .anchor-nav__contact {
  padding: 0.65rem 1rem;
  border-radius: 999px;
  color: #fff;
  background: var(--fhhe-forest);
}

.anchor-nav .anchor-nav__contact:hover {
  color: #fff;
  background: var(--fhhe-clay);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(5rem, 10vw, 9rem) 0 clamp(4.5rem, 9vw, 8rem);
  background:
    radial-gradient(circle at 85% 18%, color-mix(in srgb, var(--fhhe-sage) 72%, transparent) 0 18%, transparent 19%),
    linear-gradient(145deg, var(--fhhe-paper) 0%, var(--fhhe-cream) 100%);
}

.hero::after {
  position: absolute;
  z-index: -1;
  right: -8rem;
  bottom: -12rem;
  width: min(44vw, 620px);
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--fhhe-leaf) 30%, transparent);
  border-radius: 48% 52% 36% 64% / 58% 42% 58% 42%;
  content: "";
  transform: rotate(-12deg);
}

.hero__grid {
  display: grid;
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.7fr);
}

.hero__grid > * {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 1.2rem;
  color: var(--fhhe-leaf);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  color: var(--fhhe-forest-deep);
  font-family: var(--fhhe-heading-font);
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  max-width: 820px;
  margin: 0;
  overflow-wrap: break-word;
  font-size: clamp(3rem, 6vw, var(--fhhe-hero-max));
  font-weight: 600;
  letter-spacing: -0.045em;
}

h2 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
}

h3 {
  margin: 0;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.hero__intro {
  max-width: 720px;
  margin: 1.75rem 0 0;
  color: var(--fhhe-muted);
  font-size: clamp(1.15rem, 2vw, 1.42rem);
}

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

.fhhe-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.35rem;
  border: 2px solid var(--fhhe-forest);
  border-radius: 999px;
  color: #fff;
  background: var(--fhhe-forest);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.fhhe-button:hover {
  color: #fff;
  border-color: var(--fhhe-clay);
  background: var(--fhhe-clay);
  transform: translateY(-2px);
}

.fhhe-button--ghost {
  color: var(--fhhe-forest);
  background: transparent;
}

.fhhe-button--ghost:hover {
  color: #fff;
}

.hero__aside {
  position: relative;
  padding: clamp(2rem, 4vw, 3.5rem);
  border: 1px solid var(--fhhe-line);
  border-radius: var(--fhhe-radius);
  background: color-mix(in srgb, var(--fhhe-paper) 82%, transparent);
  box-shadow: 0 24px 70px rgba(13, 45, 38, 0.09);
}

.hero__aside::before {
  display: block;
  width: 54px;
  height: 6px;
  margin-bottom: 1.8rem;
  border-radius: 99px;
  background: var(--fhhe-clay);
  content: "";
}

.hero__aside p {
  margin: 0;
  color: var(--fhhe-forest-deep);
  font-family: var(--fhhe-heading-font);
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
  line-height: 1.25;
}

.fhhe-section {
  padding: var(--fhhe-section-space) 0;
  scroll-margin-top: 86px;
}

.fhhe-section--cream {
  background: var(--fhhe-cream);
}

.fhhe-section--forest {
  color: rgba(255, 255, 255, 0.86);
  background: var(--fhhe-forest-deep);
}

.fhhe-section--forest h2,
.fhhe-section--forest h3,
.fhhe-section--forest a {
  color: #fff;
}

.section-heading {
  display: grid;
  max-width: 850px;
  gap: 1.25rem;
  margin-bottom: clamp(2.8rem, 5vw, 5rem);
}

.section-heading p {
  max-width: 760px;
  margin: 0;
  color: var(--fhhe-muted);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
}

.fhhe-section--forest .section-heading p,
.fhhe-section--forest .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

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

.mission-statement {
  margin: 0;
  color: var(--fhhe-forest-deep);
  font-family: var(--fhhe-heading-font);
  font-size: clamp(1.6rem, 3vw, 2.55rem);
  line-height: 1.3;
}

.rich-copy > :first-child {
  margin-top: 0;
}

.rich-copy > :last-child {
  margin-bottom: 0;
}

.focus-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.focus-card {
  position: relative;
  min-height: 310px;
  padding: clamp(1.7rem, 3vw, 2.5rem);
  overflow: hidden;
  border: 1px solid var(--fhhe-line);
  border-radius: var(--fhhe-radius);
  background: var(--fhhe-paper);
}

.focus-card__number {
  display: block;
  margin-bottom: 3.5rem;
  color: var(--fhhe-leaf);
  font-family: var(--fhhe-heading-font);
  font-size: 1.1rem;
  font-weight: 700;
}

.focus-card p {
  margin: 1.15rem 0 0;
  color: var(--fhhe-muted);
}

.education-layout {
  display: grid;
  gap: clamp(2.5rem, 6vw, 6rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.75fr);
}

.education-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.education-list li {
  display: grid;
  align-items: start;
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  grid-template-columns: 32px 1fr;
}

.education-list li::before {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  content: "✓";
  font-size: 0.8rem;
}

.about-layout {
  display: grid;
  gap: clamp(2.5rem, 6vw, 6rem);
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1fr);
}

.about-visual {
  position: relative;
  min-height: 520px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--fhhe-radius);
  background: var(--fhhe-sage);
}

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

.about-visual figcaption {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  padding: 1rem 1.15rem;
  border-radius: calc(var(--fhhe-radius) * 0.65);
  color: #fff;
  background: color-mix(in srgb, var(--fhhe-forest-deep) 88%, transparent);
  font-size: 0.88rem;
  line-height: 1.45;
}

.about-copy {
  align-self: center;
}

.about-copy:only-child {
  max-width: 850px;
  grid-column: 1 / -1;
}

.nonprofit-note {
  margin-top: 2rem;
  padding: 2rem;
  border-left: 5px solid var(--fhhe-clay);
  border-radius: 0 var(--fhhe-radius) var(--fhhe-radius) 0;
  background: var(--fhhe-cream);
}

.nonprofit-note p {
  margin: 0;
  color: var(--fhhe-forest-deep);
  font-family: var(--fhhe-heading-font);
  font-size: 1.25rem;
  line-height: 1.45;
}

.editor-content {
  border-top: 1px solid var(--fhhe-line);
}

.editor-content .alignwide {
  width: min(100%, var(--fhhe-content));
  margin-inline: auto;
}

.editor-content .alignfull {
  width: 100%;
}

.contact-panel {
  display: grid;
  align-items: center;
  gap: 2rem;
  padding: clamp(2.3rem, 6vw, 5rem);
  border-radius: var(--fhhe-radius);
  background: var(--fhhe-sage);
  grid-template-columns: minmax(0, 1fr) auto;
}

.contact-panel h2 {
  max-width: 780px;
}

.contact-panel p {
  max-width: 720px;
  margin: 1rem 0 0;
}

.contact-form-wrap {
  margin-top: 2.5rem;
}

.contact-form-wrap input,
.contact-form-wrap textarea,
.contact-form-wrap select {
  max-width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--fhhe-line);
  border-radius: 8px;
  font: inherit;
}

.donation-panel {
  padding: clamp(2.5rem, 6vw, 5rem);
  border-radius: var(--fhhe-radius);
  color: #fff;
  background: var(--fhhe-clay);
}

.donation-panel h2,
.donation-panel a {
  color: #fff;
}

.donation-panel .fhhe-button {
  border-color: #fff;
  color: var(--fhhe-clay);
  background: #fff;
}

.site-footer {
  padding: 2.4rem 0;
  color: rgba(255, 255, 255, 0.72);
  background: var(--fhhe-forest-deep);
  font-size: 0.84rem;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #fff;
}

.standard-content {
  min-height: 65vh;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.standard-content__inner {
  width: min(calc(100% - 2.5rem), 820px);
  margin-inline: auto;
}

.entry-title {
  margin: 0 0 2rem;
  font-size: clamp(2.6rem, 6vw, 5rem);
}

.entry-content > :first-child {
  margin-top: 0;
}

.post-list {
  display: grid;
  gap: 2rem;
}

.post-list article {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--fhhe-line);
}

@media (max-width: 1180px) and (min-width: 961px) {
  .hero__grid {
    gap: 3rem;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  }

  h1 {
    font-size: clamp(3rem, 5.7vw, min(var(--fhhe-hero-max), 78px));
  }

  .hero__aside {
    padding: 2.25rem;
  }

  .hero__aside p {
    font-size: clamp(1.25rem, 2.1vw, 1.75rem);
  }
}

@media (max-width: 960px) {
  .hero__grid,
  .mission-grid,
  .education-layout,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .hero__aside {
    max-width: 620px;
  }

  .about-visual {
    min-height: 420px;
  }

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

  .focus-card {
    min-height: 0;
  }

  .focus-card__number {
    margin-bottom: 2rem;
  }

  .anchor-nav a:not(.anchor-nav__contact) {
    display: none;
  }
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 680px) {
  body {
    font-size: min(var(--fhhe-body-size), 17px);
  }

  .fhhe-wrap {
    width: min(calc(100% - 1.5rem), var(--fhhe-content));
  }

  .site-header__inner {
    min-height: 68px;
    gap: 0.8rem;
  }

  .site-description {
    display: none;
  }

  .site-branding__mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    font-size: 1.3rem;
  }

  .site-title {
    max-width: 190px;
    font-size: 0.92rem;
  }

  .anchor-nav .anchor-nav__contact {
    padding: 0.55rem 0.8rem;
    font-size: 0.78rem;
  }

  h1 {
    font-size: clamp(2.55rem, 12vw, min(var(--fhhe-hero-max), 4.1rem));
  }

  .hero {
    padding-top: 4rem;
  }

  .contact-panel {
    grid-template-columns: 1fr;
  }

  .about-visual {
    min-height: 320px;
  }

  .contact-panel .fhhe-button {
    justify-self: start;
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .hero__actions,
  .site-footer {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }
}
