:root {
  --cyan: #3599b8;
  --coral: #fd625e;
  --purple: #6967ce;
  --ink: #333333;
  --muted: #757575;
  --pale: #eff1f1;
  --white: #ffffff;
  --line: #d8dddd;
  --max: 1100px;
  --header-height: 83px;
  font-family: "Urbanist", Arial, sans-serif;
}

/* Base */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Urbanist", Arial, sans-serif;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.55;
}

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

a {
  color: var(--cyan);
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  margin-bottom: 18px;
  color: var(--ink);
  font-family: "Michroma", Arial, sans-serif;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(44px, 7vw, 86px);
  text-transform: uppercase;
}

h2 {
  font-size: clamp(30px, 4.2vw, 48px);
}

h3 {
  font-size: clamp(24px, 3vw, 34px);
}

h4 {
  font-size: 20px;
}

.wrap {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 8px 12px;
  background: var(--white);
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  min-height: var(--header-height);
  background: var(--cyan);
  box-shadow: 2px 2px 5px 2px rgba(0, 0, 0, 0.25);
}

.nav {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand img,
.footer-logo img {
  width: 175px;
}

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px 22px;
}

.nav-menu a {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.3);
}

.nav-menu a::after {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 2px;
  content: "";
  background: var(--white);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav-menu a:hover::after,
.nav-menu a:focus::after {
  opacity: 1;
  transform: translateY(0);
}

.nav-toggle {
  display: none;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  padding: 8px 14px;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-weight: 700;
  text-transform: uppercase;
}

/* Hero */

.hero {
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  padding: 0 0 40px;
  color: var(--white);
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.04)),
    url("../img/futura-age-hero.jpg");
  background-position: center center;
  background-size: cover;
}

.hero-grid {
  display: block;
}

.hero-copy {
  width: min(620px, 92vw);
  margin-left: 2vw;
}

.hero h1,
.hero p {
  color: var(--white);
}

.hero h1 {
  margin-bottom: 6px;
}

.hero p {
  font-size: clamp(20px, 2.4vw, 34px);
  font-weight: 300;
}

/* Shared Sections */

.section {
  padding: 70px 0;
}

/* About */

.intro {
  background: var(--pale);
  border-bottom-right-radius: 400px;
  padding: 82px 0 105px;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1fr);
  gap: 48px;
  align-items: center;
}

.intro-photo {
  width: 100%;
}

.lead-copy h2::after,
.section-heading h2::after,
.subsection > h2::after,
.minor-heading::after,
.foundation-copy h2::after,
.foundation-copy h3::after {
  display: block;
  width: 100px;
  height: 3px;
  margin-top: 18px;
  content: "";
  background: var(--coral);
}

.lead-copy h2 {
  margin-top: 12px;
}

.lead-copy p {
  font-size: 18px;
}

/* Communities */

.communities {
  background: var(--white);
}

.section-heading {
  max-width: 980px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading h2::after,
.subsection > h2::after,
.minor-heading::after {
  margin-right: auto;
  margin-left: auto;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
  align-items: start;
}

.community-card {
  text-align: center;
}

.community-logo {
  height: 118px;
  width: 100%;
  object-fit: contain;
  margin-bottom: 24px;
}

.community-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 18px;
}

.button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 12px;
  border: 1px solid var(--coral);
  padding: 12px 24px;
  background: var(--coral);
  color: var(--white);
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.button::before,
.text-link::before {
  margin-right: 8px;
  content: ">";
  font-weight: 700;
}

.button:hover,
.text-link:hover {
  border-color: var(--purple);
  background: var(--purple);
  color: var(--white);
}

/* Team and Boards */

.team-section {
  color: var(--white);
  background: var(--coral);
  border-bottom-left-radius: 400px;
  padding-bottom: 125px;
}

.team-section h2,
.team-section h3,
.team-section h4,
.team-section p,
.team-section a {
  color: var(--white);
}

.team-section .section-heading h2::after {
  background: var(--white);
}

.profile-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 44px;
}

.profile {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.profile img {
  width: 145px;
  aspect-ratio: 1;
  object-fit: cover;
}

.profile h3 {
  margin-bottom: 6px;
  font-family: "Urbanist", Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
}

.profile .role {
  margin-bottom: 6px;
  font-weight: 700;
}

.profile p {
  font-size: 15px;
  line-height: 1.45;
}

.board-section {
  padding-top: 80px;
}

.subsection {
  margin-top: 80px;
}

.subsection > h2,
.minor-heading {
  text-align: center;
}

.minor-heading {
  margin: 44px 0 28px;
  font-size: 28px;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.person {
  text-align: center;
}

.person img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
  margin-bottom: 12px;
}

.person h3 {
  margin-bottom: 5px;
  font-family: "Urbanist", Arial, sans-serif;
  font-size: 21px;
  font-weight: 700;
}

.person p {
  margin-bottom: 4px;
  font-size: 15px;
  line-height: 1.35;
}

.foundation-board {
  background: var(--pale);
}

.foundation-board h2,
.foundation-board h3,
.foundation-board p,
.foundation-board li,
.foundation-board a:not(.button) {
  color: var(--ink);
}

.foundation-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1fr);
  gap: 54px;
  align-items: start;
}

.rack-card {
  justify-self: center;
  color: var(--coral);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.rack-card img {
  margin-bottom: 12px;
  max-height: 620px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

.foundation-details {
  display: grid;
  gap: 24px;
}

.foundation-details article {
  border-top: 3px solid var(--coral);
  padding-top: 18px;
}

.foundation-details h3 {
  margin-bottom: 10px;
  font-family: "Urbanist", Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
}

.foundation-details ul,
.foundation-copy ul {
  margin: 0 0 0 1.2em;
  padding: 0;
}

.next-step {
  background: var(--white);
  padding: 24px;
}

.foundation-copy {
  background: var(--white);
}

.foundation-copy .wrap {
  max-width: 980px;
}

.foundation-copy h2 {
  margin-top: 38px;
  text-transform: none;
}

.foundation-copy h2:first-child {
  margin-top: 0;
}

.foundation-copy h3 {
  font-family: "Urbanist", Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
}

.foundation-copy h2::after,
.foundation-copy h3::after {
  width: 100px;
}

.campus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.impact-section {
  background: var(--pale);
}

.impact-grid,
.giving-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.impact-grid article,
.giving-list article {
  border-top: 3px solid var(--coral);
  padding-top: 18px;
}

.impact-grid h3,
.giving-list h3 {
  font-family: "Urbanist", Arial, sans-serif;
  font-size: 21px;
  font-weight: 700;
}

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

/* Contact and Footer */

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

.contact-section h2,
.contact-section p,
.contact-section a,
.contact-section strong,
.contact-section span {
  color: var(--white);
}

address {
  display: grid;
  gap: 8px;
  font-style: normal;
  font-size: 18px;
}

address strong {
  margin-top: 12px;
  font-weight: 700;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 54px;
  align-items: center;
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid #e6e6e6;
  color: var(--muted);
  background: var(--white);
  font-size: 13px;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-logo img {
  filter: invert(42%) sepia(12%) saturate(541%) hue-rotate(143deg) brightness(88%) contrast(84%);
}

.site-footer p {
  margin: 0;
}

/* Utility Pages */

.policy {
  max-width: 860px;
  padding: 52px;
  background: var(--white);
}

.policy h1 {
  font-size: clamp(36px, 6vw, 52px);
  text-transform: none;
}

.maintenance {
  display: grid;
  min-height: 100vh;
  place-items: center;
  align-content: center;
  gap: 18px;
  padding: 32px;
  color: var(--white);
  text-align: center;
  background: var(--cyan);
}

.maintenance img {
  width: 230px;
}

.maintenance h1,
.maintenance p {
  color: var(--white);
}

@media (max-width: 1020px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }

  .nav-menu {
    justify-content: flex-start;
  }

  .two-col,
  .foundation-grid,
  .campus-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .profile-list,
  .people-grid,
  .impact-grid,
  .giving-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 78px;
  }

  body {
    font-size: 14px;
    line-height: 1.45;
  }

  h1 {
    font-size: 36px;
    line-height: 1.4;
  }

  h2 {
    font-size: 30px;
    line-height: 1.4;
  }

  h3 {
    font-size: 24px;
    line-height: 1.4;
  }

  .site-header {
    min-height: var(--header-height);
  }

  .nav {
    min-height: var(--header-height);
    flex-direction: row;
    align-items: center;
  }

  .brand img {
    width: 150px;
  }

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

  .nav-menu {
    position: absolute;
    inset: var(--header-height) 0 auto 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 18px;
    background: var(--cyan);
    box-shadow: 2px 4px 5px rgba(0, 0, 0, 0.2);
  }

  .nav-menu.is-open,
  .nav-menu-simple {
    display: flex;
  }

  .nav-menu a {
    padding: 12px 0;
  }

  .hero {
    min-height: 48vh;
    padding-bottom: 28px;
  }

  .hero-copy {
    margin-left: 0;
  }

  .intro,
  .team-section {
    border-bottom-right-radius: 180px;
    border-bottom-left-radius: 180px;
  }

  .community-grid,
  .profile-list,
  .profile,
  .people-grid,
  .impact-grid,
  .campus-grid,
  .giving-list {
    grid-template-columns: 1fr;
  }

  .profile img {
    width: 180px;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }
}
