/* Second visual pass for the demo/showcase branch. */

:root {
  --showcase-green: #22543f;
  --showcase-green-2: #2f6b4f;
  --showcase-red: #c9272f;
  --showcase-ink: #181b19;
  --showcase-muted: #646b67;
  --showcase-line: #e6e7e3;
  --showcase-soft: #f5f7f4;
}

body {
  background: #fff;
  color: var(--showcase-ink);
}

.foundation-header__inner,
.module-bar__inner,
.foundation-footer__inner,
.foundation-footer__bottom,
.section,
.home-hero,
.campaign-detail,
.messages {
  width: min(1160px, calc(100% - 40px));
}

.foundation-header__inner {
  min-height: 86px;
  padding-block: 12px;
}

.foundation-header__utility a {
  font-size: 14px;
}

.header-help-button {
  min-height: 46px;
  padding-inline: 22px;
}

.module-bar {
  background: #fff;
  color: var(--showcase-green);
  border-top: 1px solid #f2f2ef;
  border-bottom: 1px solid var(--showcase-line);
}

.module-bar__inner {
  min-height: 54px;
}

.module-bar__title,
.module-bar__title:hover,
.module-bar nav a,
.module-bar nav a:hover {
  color: var(--showcase-green);
}

.module-bar__title {
  position: relative;
  padding-left: 16px;
  font-size: 15px;
}

.module-bar__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: var(--showcase-red);
}

.module-bar nav a {
  font-size: 14px;
  font-weight: 650;
}

/* Home */
.home-hero {
  margin: 0 auto;
  padding: clamp(56px, 8vw, 100px) 0 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: clamp(36px, 7vw, 90px);
  align-items: end;
}

.home-hero__copy h1 {
  max-width: 800px;
  margin: 10px 0 22px;
  font-size: clamp(48px, 7vw, 88px);
  line-height: .96;
  letter-spacing: -.045em;
}

.home-hero__copy > p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.45;
}

.home-hero__aside {
  padding: 28px;
  border-radius: 20px;
  background: var(--showcase-green);
  color: #fff;
}

.home-hero__aside .eyebrow {
  margin-top: 0;
  color: #fff;
  opacity: .72;
}

.home-hero__aside h2 {
  margin: 6px 0 10px;
  font-size: 28px;
  line-height: 1.08;
}

.home-hero__aside p {
  margin: 0 0 22px;
  color: rgba(255,255,255,.82);
}

.home-hero__aside .button {
  background: #fff;
  color: var(--showcase-green);
}

.home-hero__aside .button:hover {
  background: #f3f3ef;
  color: var(--showcase-green);
}

.home-hero__actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.section {
  padding-block: 46px;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 6px 0 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
}

/* Fundraiser cards */
.card-grid {
  align-items: stretch;
  gap: 22px;
}

.fundraiser-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
}

.card-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--showcase-soft);
  text-decoration: none;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-media-fallback {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  align-content: end;
  padding: 24px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 82% 28%, rgba(255,255,255,.14) 0 12%, transparent 12.5%),
    linear-gradient(145deg, #2f6b4f 0%, #214d39 65%, #18392b 100%);
}

.card-media-fallback::after {
  content: "";
  position: absolute;
  right: -36px;
  top: -38px;
  width: 155px;
  height: 155px;
  border: 24px solid rgba(255,255,255,.09);
  border-radius: 50%;
}

.card-media-fallback strong {
  position: relative;
  z-index: 1;
  max-width: 220px;
  font-size: 21px;
  line-height: 1.05;
}

.fundraiser-card .card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.fundraiser-card h3 {
  margin: 0 0 10px;
  font-size: 23px;
  line-height: 1.08;
}

.fundraiser-card h3 a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.fundraiser-card .card-description {
  min-height: 3.1em;
  margin: 0 0 18px;
  color: #444b47;
}

.fundraiser-card .progress {
  margin-top: auto;
}

.fundraiser-card .target {
  margin-top: 10px;
}

.fundraiser-card .actions {
  margin-top: 14px;
}

.fundraiser-card .button {
  padding: .72rem 1.08rem;
}

/* List heading */
.page-heading {
  padding-top: clamp(56px, 7vw, 90px);
  padding-bottom: 36px;
}

.page-heading h1 {
  max-width: 840px;
  margin-top: 8px;
  font-size: clamp(52px, 7vw, 86px);
  letter-spacing: -.045em;
}

.page-heading > div > p:not(.eyebrow) {
  max-width: 720px;
  font-size: 19px;
}

.author-callout {
  padding: 32px;
  border-radius: 20px;
}

/* Campaign detail */
.campaign-detail {
  display: block;
  padding-top: clamp(56px, 7vw, 86px);
}

.campaign-detail__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
  margin-bottom: 34px;
}

.campaign-detail__header h1 {
  max-width: 820px;
  margin: 8px 0 12px;
  font-size: clamp(52px, 7vw, 82px);
  line-height: .98;
  letter-spacing: -.045em;
}

.campaign-detail__header .campaign-author {
  margin-bottom: 0;
}

.campaign-detail__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, .68fr);
  gap: 42px;
  align-items: start;
}

.campaign-story {
  display: grid;
  gap: 24px;
}

.campaign-cover,
.campaign-cover-fallback {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  overflow: hidden;
}

.campaign-cover {
  max-height: none;
  object-fit: cover;
}

.campaign-cover-fallback {
  display: grid;
  place-items: center;
  min-height: 360px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 30%, rgba(255,255,255,.13) 0 11%, transparent 11.5%),
    linear-gradient(135deg, #2f6b4f, #214d39 72%);
}

.campaign-cover-fallback span {
  max-width: 460px;
  padding: 30px;
  text-align: center;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1;
}

.campaign-story__content {
  max-width: 760px;
  font-size: 18px;
  line-height: 1.65;
}

.campaign-story__content h2 {
  margin: 0 0 12px;
  font-size: 34px;
}

.donation-panel {
  top: 24px;
  padding: 26px;
  border-radius: 18px;
  border-top-width: 5px;
}

.donation-panel .progress {
  margin-top: 14px;
}

.share-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.share-panel strong {
  margin-right: auto;
}

.share-panel input,
.share-panel label {
  display: none;
}

/* Footer */
.foundation-footer {
  margin-top: 72px;
}

.foundation-footer__inner {
  padding-block: 46px 34px;
}

.foundation-footer__bottom nav {
  display: flex;
  gap: 18px;
}

.foundation-footer__bottom a {
  color: inherit;
  text-decoration: none;
}

/* Exact official site chrome */
.foundation-brand {
  display: inline-flex;
  align-items: center;
  min-width: 176px;
  text-decoration: none;
}

.foundation-brand__logo {
  display: block;
  width: 184px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.foundation-brand__mark,
.foundation-brand__copy {
  display: none !important;
}

.foundation-header {
  background: #fff;
  border-top: 5px solid #202220;
  border-bottom: 0;
}

.foundation-header__inner {
  min-height: 90px;
}

.foundation-footer {
  background: #fff;
  color: var(--showcase-ink);
  border-top: 1px solid var(--showcase-line);
}

.foundation-footer .foundation-brand {
  color: inherit;
}

.foundation-footer h2 {
  color: var(--showcase-green);
}

.foundation-footer nav a,
.foundation-footer a,
.foundation-footer address {
  color: var(--showcase-ink);
}

.foundation-footer nav a:hover,
.foundation-footer a:hover {
  color: var(--showcase-red);
}

.foundation-footer__bottom {
  color: var(--showcase-muted);
  border-top: 1px solid var(--showcase-line);
}

.foundation-brand__logo--footer {
  width: 190px;
}

@media (max-width: 900px) {
  .home-hero,
  .campaign-detail__grid {
    grid-template-columns: 1fr;
  }

  .campaign-detail__header {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .donation-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .foundation-header__inner,
  .module-bar__inner,
  .foundation-footer__inner,
  .foundation-footer__bottom,
  .section,
  .home-hero,
  .campaign-detail,
  .messages {
    width: min(100% - 28px, 1160px);
  }

  .foundation-brand__logo {
    width: 154px;
  }

  .module-bar__inner {
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
  }

  .module-bar__title {
    flex: 0 0 auto;
  }

  .module-bar nav {
    width: auto;
    flex: 0 0 auto;
    margin-left: auto;
    overflow: visible;
  }

  .home-hero {
    padding-top: 48px;
  }

  .home-hero__copy h1,
  .page-heading h1,
  .campaign-detail__header h1 {
    font-size: clamp(46px, 13vw, 64px);
  }

  .home-hero__aside {
    padding: 22px;
  }

  .campaign-cover-fallback {
    min-height: 240px;
  }

  .share-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .share-panel strong {
    margin-right: 0;
  }

  .share-panel .button {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .module-bar nav a:nth-child(3) {
    display: none;
  }

  .home-hero__actions .button {
    width: 100%;
    text-align: center;
  }

  .page-heading {
    padding-top: 42px;
  }

  .author-callout {
    padding: 24px;
  }
}
