/*
Theme Name: Rainmatter Foundation
Theme URI: https://rainmatter.org
Author: Rainmatter Foundation
Version: 0.1.0
Text Domain: rf
*/

:root {
  --background: #fff;
  --foreground: #222;
  --card: #fff;
  --card-foreground: #222;
  --primary: #685441;
  --primary-foreground: #fff;
  --secondary: #f4f4f5;
  --secondary-foreground: #43382e;
  --muted: #f4f4f5;
  --muted-foreground: #666;
  --faint: #fafafa;
  --accent: #eef5ef;
  --accent-foreground: #043927;
  --border: #e6e6e6;
  --input: #d4d4d8;
  --ring: #685441;
  --rf-green: #043927;
  --rf-section-space: 6rem;
}

body {
  min-width: 320px;
}

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

a {
  text-decoration-thickness: 2px;
}

hr, hr.wp-block-separator {
  height: 1px;
  background: var(--border);
  border: 0;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--background);
}

.site-header .row {
  align-items: center;
}

.site-logo img {
  display: block;
  width: auto;
  max-height: 50px;
  padding: .6rem 0;
}

.main-nav {
  display: flex;
  justify-content: flex-end;
  gap: clamp(1rem, 4vw, 3.5rem);
}

.main-nav a {
  display: inline-block;
  padding: 1rem 0 .85rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  border-bottom-color: var(--primary);
}

.nav-toggle {
  display: none;
  margin-left: auto;
}

.wrap {
  min-height: 65vh;
  padding-block: 3rem 1rem;
}

.home.wrap {
  padding-top: 2rem;
}

.page-title {
  margin: 1rem 0 3rem;
}

section {
  margin-bottom: var(--rf-section-space);
}

section:last-child {
  margin-bottom: 0;
}

.welcome .text {
  padding-top: min(18vh, 9rem);
  font-size: 1.15rem;
  line-height: 1.75;
}

.welcome h1 {
  margin-top: 0;
  font-size: clamp(3rem, 7vw, 4.8rem);
  line-height: 1.05;
}

.caption,
.subtext,
.text-small,
.text-tiny,
.dim {
  color: var(--muted-foreground);
}

.text-small {
  font-size: .9rem;
}

.text-tiny {
  font-size: .85rem;
}

.text-centre,
.align-center,
.center {
  text-align: center;
}

.flat,
.noul {
  list-style: none;
  padding-left: 0;
}

.spaced li {
  margin-bottom: 1.25rem;
}

.intro-points li {
  border-left: 8px solid var(--border);
  padding-left: 1.5rem;
  margin-bottom: 2.5rem;
}

.intro-points h3 {
  margin-top: 0;
}

.rf-video {
  text-align: center;
}

.rf-video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.home-partners {
  text-align: center;
}

.home-partners img {
  display: inline-block;
  max-height: 40px;
  width: auto;
  margin: .75rem clamp(1rem, 4vw, 3.5rem);
  vertical-align: middle;
}

.blocks article {
  min-height: 28rem;
  display: flex;
  flex-direction: column;
}

.blocks footer {
  margin-top: auto;
  text-align: center;
}

.people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.8rem;
  margin-block: 1.5rem 3rem;
}

.people .person-card figure {
  margin: 0;
}

.people img {
  display: inline-block;
  max-width: 120px;
  border-radius: 4px;
  filter: grayscale(100%);
}

.people .name {
  margin: .5rem 0 0;
  line-height: 1.35;
}

.people .name a {
  text-decoration: none;
}

.people .title {
  display: block;
  color: var(--muted-foreground);
}

.investments .row {
  padding-block: 1rem;
  border-bottom: 1px solid var(--border);
}

.investments h4 {
  margin: 0 0 .35rem;
}

.amount {
  color: var(--muted-foreground);
}

.guidebook {
  max-width: 450px;
  margin-bottom: 2rem;
}

.thumb-img {
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgb(0 0 0 / .08);
}

.posters,
.donees {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  padding-left: 0;
  list-style: none;
}

.donees {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.donees .head {
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.donees img {
  max-height: 150px;
  border: 1px solid var(--border);
}

.pledgers {
  list-style: none;
  padding-left: 0;
}

.pledgers li {
  margin-bottom: .6rem;
}

.disclosure-ol {
  padding-left: 0;
  list-style: none;
  counter-reset: item;
}

.disclosure-ol > li {
  counter-increment: item;
}

.disclosure-ol > li .title::before {
  content: counter(item) ". ";
}

.disclosure-inner-ol > li {
  list-style: none;
  display: flex;
  gap: .5rem;
}

.site-footer {
  margin-top: 4rem;
  padding: 2.5rem 0;
  background: var(--rf-green);
  color: #fff;
  font-size: .9rem;
}

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

.site-footer a:hover {
  color: #ddd;
}

.site-footer img {
  max-width: 32px;
}

.person-profile {
  max-width: 900px;
}

.person-profile .row {
  align-items: start;
}

.person-profile figure {
  margin: 0;
}

.person-profile img {
  border-radius: 4px;
  filter: grayscale(100%);
}

.person-profile .role {
  color: var(--muted-foreground);
  margin-top: -1.5rem;
}

.blog .row {
  align-items: start;
}

.blog-post-list article {
  padding-block: 0 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.post-title {
  margin: 0 0 .75rem;
}

.post-title a {
  text-decoration: none;
}

.post-list-image {
  margin: 1rem 0;
}

.post-list-image img {
  display: block;
  width: 100%;
}

.post-meta,
.post-tags {
  color: var(--muted-foreground);
}

.blog-sidebar {
  padding-left: 2rem;
  border-left: 1px solid var(--border);
}

.blog-sidebar h2,
.blog-sidebar h3 {
  margin-top: 0;
}

.blog-sidebar h3 {
  margin-bottom: .5rem;
}

.blog-sidebar ul {
  margin-bottom: 2rem;
}

.blog-sidebar li {
  margin-bottom: .5rem;
}

.blog-sidebar a {
  text-decoration: none;
}

.post-featured-image {
  margin: 0 0 2rem;
}

.post-footer {
  margin-top: 2rem;
}

.post-nav,
.nav-links {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}

@media (max-width: 900px) {
  body {
    padding-inline: .75rem;
  }

  .site-header {
    position: relative;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    gap: 0;
    padding-bottom: 1rem;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: .65rem 0;
  }

  .welcome .text {
    padding-top: 2rem;
  }

  .blocks article {
    min-height: auto;
  }

  .blog-sidebar {
    padding-left: 0;
    border-left: 0;
  }
}
