/*
 * Components, named with BEM (block__element--modifier).
 * Shared building blocks first, then page sections in document order.
 * Depends on tokens.css and base.css.
 */

/* ---------- Shared ---------- */

/* Logo plus wordmark */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
  text-decoration: none;
}

.brand--inverse {
  color: var(--color-paper);
}

.brand__logo {
  flex: none;
}

.nav-link {
  display: block;
  padding: 5px 8px 7px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 24px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease-out;
}

.nav-link:hover {
  background: var(--color-hover-tint);
  color: var(--color-ink-strong);
}

.button {
  display: inline-block;
  padding: 16px 26px;
  border-radius: var(--radius-md);
  background: var(--color-ink);
  color: var(--color-paper);
  font-family: var(--font-base);
  font-size: 18px;
  line-height: 24px;
  font-weight: 400;
  text-align: center;
  text-decoration: none;
  filter: drop-shadow(0 0 50px rgba(0, 0, 0, 0.1));
  transition: color 0.5s ease-out;
}

.button:hover {
  color: var(--color-white);
}

/* Must precede .button--large, which keeps its own size on phones */
@media (max-width: 720px) {
  .button {
    padding: 12px 17px;
    font-size: 14px;
  }
}

.button--large {
  padding: 18px 35px;
  font-size: 25px;
  line-height: 30px;
}

@media (max-width: 1200px) {
  .button--large {
    padding: 15px 36px;
    font-size: 18px;
    line-height: 26px;
  }
}

/*
 * Marker-pen highlight behind a run of text. The block deliberately creates
 * no stacking context, so on stacked lines every __text paints above every
 * marker and descenders are not covered by the next line's marker.
 */
.highlight {
  position: relative;
  display: inline-block;
}

.highlight::before {
  content: "";
  position: absolute;
  inset: 0 -10px;
  z-index: 0;
  background: var(--color-highlight);
}

.highlight__text {
  position: relative;
  z-index: 1;
}

@media (max-width: 720px) {
  .highlight::before {
    inset: 0 -5px;
  }
}

/* ---------- Header ---------- */

.site-header {
  padding-bottom: 15px;
  background: var(--color-white);
}

.site-header__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  padding-block: 33px 18px;
}

.site-header__links {
  flex: 1 1 200px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

/* ---------- Hero ---------- */

.hero {
  padding-top: 72px;
  background: var(--color-white);
}

.hero__title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding-left: 36px;
}

/* ---------- Questions ---------- */

.questions {
  padding: 110px 0 100px;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  background: var(--color-white);
}

.questions__inner {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.question-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.question {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.question__number {
  flex: 0 0 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 45px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--accent);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.question__keyword {
  color: var(--accent);
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.pillar-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--accent-tint);
}

.pillar-card__label {
  color: var(--accent);
  font-size: 18px;
  line-height: 24px;
}

/* ---------- Mission ---------- */

.mission {
  padding: 100px 0;
}

.mission__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
}

.mission__tagline {
  max-width: 800px;
}

/* ---------- Community ---------- */

.community {
  padding: 110px 0 120px;
  background: var(--color-white);
}

.community__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.community__cta {
  margin-top: 16px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-ink);
  color: var(--color-paper);
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 24px;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px 50px;
  padding: 65px 50px;
}

.site-footer__identity {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 60px;
}

.footer-nav__group,
.footer-nav__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav__heading {
  font-weight: 500;
}

.footer-nav__link {
  display: block;
  text-decoration: none;
}

.footer-nav__link:hover {
  color: var(--color-paper-dim);
  text-decoration: underline;
}
