/* Self-hosted: no visitor data to font hosts. Fontsource, OFL-1.1. */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url(../fonts/nunito-sans-latin-opsz-normal.woff2)
    format('woff2-variations');
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(../fonts/caveat-latin-500-normal.woff2) format('woff2');
}

:root {
  --paper: #faf8f1;
  --white: #fffdf8;
  --ink: #243e32;
  --body: #4d5c51;
  --forest: #234d3b;
  --forest-light: #315e49;
  --forest-dark: #143d2a;
  --clay: #b75132;
  /* Artwork: hero plant and program tree */
  --clay-soft: #c86640;
  --sage: #b6c99e;
  --light: #eaf0e1;
  --peach: #f1c9ae;
  --sand: #e6c58c;
  --lilac: #dfdceb;
  --line: #ced6c5;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    400 16px/1.6 'Nunito Sans',
    sans-serif;
  overflow-x: clip;
}
button,
input,
textarea {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 5px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1.08;
}
h1 em,
h2 em {
  font: inherit;
  color: var(--clay);
}
h2 {
  font-size: clamp(34px, 3.5vw, 50px);
}
h3 {
  font-size: 27px;
}
img {
  max-width: 100%;
  display: block;
}
:where(.ap-page, .idea-page) p {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink);
}
:where(.ap-page, .idea-page) h2 em {
  font-style: normal;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--white);
}
.skip-link:focus {
  top: 10px;
}
.hand {
  font:
    500 30px/1.15 'Caveat',
    cursive;
}
.section {
  max-width: 1280px;
  padding: 90px 60px;
  margin: auto;
  position: relative;
}
.eyebrow {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  padding: 17px 25px;
  border: 0;
  background: var(--forest);
  color: var(--white);
  border-radius: 30px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
  min-height: 49px;
  transition:
    background 0.2s,
    box-shadow 0.2s;
}
.button:hover {
  background: var(--forest-light);
  box-shadow: 0 5px 15px color-mix(in srgb, var(--forest) 10%, transparent);
}

.header {
  display: flex;
  align-items: center;
  gap: 35px;
  margin: 20px auto 0;
  padding: 15px 0;
  max-width: 1330px;
  width: calc(100% - 68px);
  position: relative;
  z-index: 10;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--forest);
  flex: none;
}
.brand img {
  width: auto;
  height: 60px;
  object-fit: contain;
}
.header nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 800;
}
.header nav a {
  padding: 10px 0;
}
.header nav a:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}
.header nav a[aria-current] {
  color: var(--clay);
  text-decoration: underline;
  text-underline-offset: 7px;
}
.member-link {
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 11px 17px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}
.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  align-items: center;
  max-width: 1330px;
  margin: auto;
  padding: 28px 40px 35px;
  border-top: 1px solid var(--line);
}
.footer .brand {
  font-size: 26px;
}
.footer .brand img {
  height: 46px;
}
.footer-contact {
  margin-left: auto;
  font-size: 17px;
  font-weight: 800;
}

/* Reveal on scroll (site.js) */
[data-reveal] {
  transition:
    opacity 0.7s,
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.is-ready:not(.motion-off) [data-reveal].in-view {
  animation: section-arrive 0.7s ease-out;
}
@keyframes section-arrive {
  from {
    opacity: 0.65;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Artwork holds its opening frame until on screen */
.is-ready:not(.motion-off) [data-motion]:not(.in-view) *,
.is-ready:not(.motion-off) [data-motion]:not(.is-visible) * {
  animation-play-state: paused !important;
}
html:has(.motion-off) {
  scroll-behavior: auto;
}
.motion-off *,
.motion-off *::before,
.motion-off *::after {
  animation: none !important;
  transition: none !important;
}
.motion-off [data-reveal] {
  opacity: 1;
  transform: none;
}

@media (max-width: 1100px) {
  .header {
    width: calc(100% - 40px);
    gap: 22px;
  }
  .header nav {
    gap: 20px;
  }
  .brand {
    font-size: 27px;
  }
  .brand img {
    height: 54px;
  }
  .section {
    padding: 70px 40px;
  }
}
@media (max-width: 800px) {
  .header {
    flex-wrap: wrap;
    gap: 8px 20px;
    padding: 12px 0;
  }
  .header nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    justify-content: center;
    gap: 35px;
    font-size: 14px;
  }
  .member-link {
    margin-left: auto;
    font-size: 13px;
  }
}
@media (max-width: 640px) {
  :where(.ap-page, .idea-page) p {
    font-size: 18px;
  }
}
@media (max-width: 540px) {
  .header {
    margin-top: 12px;
    width: calc(100% - 24px);
    padding: 10px 0 7px;
    gap: 2px 12px;
  }
  .brand {
    font-size: 24px;
    letter-spacing: -0.045em;
  }
  .brand img {
    height: 48px;
  }
  .member-link {
    padding: 9px 12px;
    font-size: 12px;
    gap: 7px;
  }
  .header nav {
    gap: 22px;
  }
  .header nav a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    font-size: 13px;
  }
  .eyebrow {
    font-size: 13px;
  }
  .section {
    padding: 58px 23px;
  }
  h2 {
    font-size: 37px;
  }
  .button {
    font-size: 16px;
    gap: 19px;
  }
  .footer {
    padding: 25px 22px 30px;
    gap: 10px 20px;
  }
  .footer .brand {
    font-size: 24px;
  }
  .footer .brand img {
    height: 42px;
  }
  .footer-contact {
    margin: 15px 0 0;
  }
}
@media (max-width: 360px) {
  .header {
    gap: 1px 5px;
  }
  .brand {
    font-size: 22px;
  }
  .brand img {
    height: 44px;
  }
  .member-link {
    padding: 9px 10px;
    gap: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
