:root {
    --pink: #e94278;
    --pink-mid: #f27694;
    --pink-hot: #D91A60;
    --pink-soft: #f8bed6;
    --bg: #f4bcd0;
    --cream: #fef0ee;
    --white: #ffffff;
    --ink: #1a1a1a;
    --overlay: rgba(20, 8, 16, 0.62);
    --card-radius: 28px;
    --page-max: 600px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "source-sans-pro", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    color: var(--pink);
    background: var(--bg);
    line-height: 1.45;
    min-height: 100vh;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.page {
    position: relative;
    width: min(100%, var(--page-max));
    margin: 0 auto;
    padding: 28px 32px 36px;
    z-index: 1;
}

.heart {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.heart img {
    width: 100%;
}

.heart-tl {
  top: 1%;
  right: 15%;
  width: 12%;
}

.heart-tr {
  display:none;
}

.heart-br {
  top: auto;
  bottom: 15%;
  left: 1%;
  width: 15%;
}

.layout {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.title {
    margin: 0 auto;
    width: 100%;
}

.title img {
    width: 100%;
    margin: 0 auto;
    max-width: 400px;
}

.intro {
    margin: 0 auto 28px;
    max-width: 34em;
    font-size: 1.05rem;
    text-align: center;
}

.intro p {
    margin: 0 0 0.7em;
}

.intro p:last-child {
    margin-bottom: 0;
}

.steps {
    display: block;
    width: min(100%, 430px);
    margin: 0 auto 32px;
}

.pledge-card {
    background: var(--white);
    border-radius: var(--card-radius);
    padding: 28px 16px 26px;
    text-align: center;
    max-width: 460px;
    margin: 0 auto;
}

.pledge-card h2 {
    margin: 0 0 10px;
    font-size: 1.28rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--pink);
}

.pledge-card .note {
    margin: 0 0 22px;
    font-size: 0.98rem;
}

.counter {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 0 0 16px;
}

.counter-digit {
    flex: 0 1 46px;
    min-width: 28px;
    width: 46px;
    height: 62px;
    border-radius: 10px;
    background:linear-gradient(0deg, rgba(10, 10, 10, 1) 0%, rgba(10, 10, 10, 1) 48%, rgba(68, 68, 68, 1) 50%, rgba(0, 0, 0, 1) 52%, rgba(0, 0, 0, 1) 100%);
    color: #e94278;
    font-weight: 700;
    font-size: 2.15rem;
    line-height: 62px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.counter-label {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.map-panel {
    position: relative;
    z-index: 1;
}

.map-legend {
  position: absolute;
  top: 13%;
  right: -32px;
  margin: 0;
  width: 40%;
}

.legend-note {
  width: 90%;
}

.legend-arrow {
  width: 32%;
  top: 38%;
  left: -24%;
  position: absolute;
}

.map-root {
    width: 100%;
    min-height: 360px;
}

.map-root svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}

#Map > g[data-region] path.st1,
#Map > g[data-region] path.st4 {
    pointer-events: fill;
    cursor: pointer;
    transition: fill 0.16s ease;
}

#Map > g[data-region] .st2,
#Map > g[data-region] path.st0,
#Map > g[data-region] path.st3 {
    pointer-events: none;
}

#Map > g[data-region].is-hover path.st1,
#Map > g[data-region].is-hover path.st4,
#Map > g[data-region]:focus-visible path.st1,
#Map > g[data-region]:focus-visible path.st4,
#Map > g[data-region]:active path.st1,
#Map > g[data-region]:active path.st4,
#Map > g[data-region].is-selected path.st1,
#Map > g[data-region].is-selected path.st4 {
    fill: var(--pink-hot);
}

#Map > g[data-region]:focus {
    outline: none;
}

.map-status {
    margin: 12px 0 0;
    font-size: 0.95rem;
    min-height: 1.3em;
}

.site-footer {
    display: flex;
    flex-direction: column-reverse;
    gap: 22px;
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--pink);
}

.footer-logos {
    width: min(100%, 520px);
    margin: 0 auto;
}

.footer-copy {
    margin: 0 auto;
    font-size: 0.5rem;
    line-height: 1.4;
    max-width: 80ch;
    text-align: center;
}

.footer-copy span {
    display: block;
}

.footer-copy .footer-gp-note {
  font-size:0.75rem;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: var(--overlay);
    border: 0;
    padding: 0;
    cursor: pointer;
}

.modal-dialog {
    position: relative;
    z-index: 1;
    width: min(92vw, 400px);
    max-height: calc(100vh - 32px);
}

.modal-note {
    position: relative;
    width: 100%;
}

.modal-donate {
    display: block;
    width: 100%;
}

.modal-donate img {
    width: 100%;
}

.modal-donate:focus-visible {
    outline: 3px solid var(--white);
    outline-offset: 4px;
}

.modal-close {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: var(--pink);
    color: var(--white);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    font-family: inherit;
}

.modal-close:focus-visible {
    outline: none;
}

@media (min-width:375px) {
  .counter-digit {
    flex-basis: 50px;
    width: 50px;
    height: 66px;
    line-height: 64px;
    font-size:2.75rem;
  }
}

@media (min-width: 768px) {
    .page {
        padding: 40px 32px 48px;
    }

    .title {
        width: min(100%, 480px);
        margin-left: auto;
        margin-right: auto;
    }

    .intro {
      font-size: 1.375rem;
      max-width: 42ch;
      margin: 0 auto 1.5rem;
    }

    .steps {
        margin-bottom: 40px;
    }

    .pledge-card {
        padding: 36px 40px 32px;
        max-width: 520px;
    }

    .pledge-card h2 {
        font-size: 1.45rem;
    }

    .counter-digit {
      flex-basis: 62px;
      width: 62px;
      height: 80px;
      font-size: 4rem;
      line-height: 78px;
    }

    .counter {
        gap: 8px;
    }

    .counter-label {
        font-size: 1.4rem;
    }

    .map-legend {
      right:-42px;
    }

    .map-root {
        min-height: 520px;
    }

    .site-footer {
        margin-top: 28px;
    }

    .footer-copy {
        font-size: 0.75rem;
    }

    .footer-copy .footer-gp-note {
      font-size:1.25rem;
    }

    .modal-dialog {
        width: min(100%, 480px);
    }
}

@media (min-width: 992px) {
    :root {
        --page-max: 1140px;
    }

    .page {
        padding: 36px 20px 28px;
    }

    .content {
        text-align: left;
    }

    .heart-tl {
      top: 0px;
      right:auto;
      left: -4%;
      width: 11%;
    }

    .heart-tr {
      top: 6%;
      right: 17%;
      width: 8%;
      display:block;
    }

    .heart-br {
      top: auto;
      bottom: 15%;
      left: 15%;
      width: 7%;
    }

    .layout {
        display: grid;
        grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.2fr);
        gap: 0;
        align-items: start;
    }

    .content {
        padding-top: 4px;
    }

    .title {
        width: 430px;
        margin: 0;
    }

    .title img {
      margin:0;
    }

    .intro {
        margin: 0 0 1.5rem;
        text-align: left;
    }

    .steps {
        width: 400px;
        margin: 0 0 2rem;
    }

    .pledge-card {
        max-width: 430px;
        padding: 28px 26px 24px;
        margin: 0;
    }

    .pledge-card h2 {
        font-size: 1.75rem;
        letter-spacing: -0.02em;
    }

    .counter-digit {
      flex-basis: 64px;
      width: 64px;
      height: 86px;
      font-size: 4.75rem;
      line-height: 80px;
    }

    .map-panel {
        min-height: 0;
    }

    .map-legend {
        position: absolute;
        top: 11%;
        margin: 0;
        width: 40%;
    }

    .legend-note {
        width: 90%;
    }

    .legend-arrow {
      width: 30%;
      top: 37%;
      left: -19%;
      position: absolute;
    }

    .map-root {
      min-height: 0;
      width: 100%;
      margin-left: 0;
      padding-top: 4px;
    }

    .site-footer {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        gap: 32px;
        margin-top: 8px;
        padding-top: 0;
        border-top: none;
    }

    .footer-logos {
        width: 460px;
        flex-shrink: 0;
        margin: 0;
    }

    .footer-copy {
        text-align: right;
        margin: 0 0 1rem 0;
    }
}

@media (min-width: 1140px) {
    .page {
        padding: 40px 0 32px;
    }

    .title {
        width: 430px;
    }

    .intro {
        font-size: 1.375rem;
        max-width:42ch;
    }

    .steps {
        width: 430px;
    }

    .pledge-card {
        max-width: 450px;
    }

    .footer-note {
      transform: translateX(-3rem);
    }

    .footer-logos {
      width: 540px;
    }
}
