:root {
  --cream: #FBF9F6;
  --paper: #fffdf5;
  --yellow: #FDCF67;
  --sunflower: #f6b91f;
  --mustard: #d89a1f;
  --sage: #b8bd8f;
  --blush: #f4b8aa;
  --tan: #d8b98c;
  --brown: #4a341f;
  --dark: #352706;
  --brown-soft: #7b6045;
  --ink: #2f2922;
  --muted: #7c6f64;
  --line: #e4d8c4;
  --white: #ffffff;
  --section-width: 86vw;
  --section-width-compact: 82vw;
  --section-width-mobile: 80vw;
  --container-max: 1200px;
  --wide-container-max: 1260px;
  --nav-max: 1380px;
  --footer-max: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  background-color: var(--cream);
  background-image: url("/static/img/main-bg.a6d41d7189ad.png");
  background-size: cover;
  background-attachment: fixed;
  background-position: top center;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 400;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.mobile-break {
  display: none;
}

.container {
  width: min(var(--container-max), var(--section-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #3D3024;
  color: var(--cream);
  box-shadow: 0 2px 12px rgba(47, 41, 34, 0.16);
}

.nav-shell {
  width: min(var(--nav-max), var(--section-width));
  min-height: 56px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 160px 1fr 160px;
  align-items: center;
  gap: 16px;
}

.brand-script,
.footer-logo {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 28px;
  line-height: 1;
  color: var(--white);
}

.logo-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
}

.brand-script img {
  width: 100px;
  height: auto;
}

.footer-logo img {
  width: 172px;
  height: auto;
}

.nav-title {
  justify-self: center;
  font-family: "Lora", Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  color: #fffdf5;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.nav-links a:not(.nav-donate) {
  opacity: 0.9;
}

.nav-donate,
.pill-button,
.outline-button {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  padding: 5px 15px;
  border: 3px solid var(--yellow);
  border-radius: 1000px;
  background: var(--yellow);
  color: var(--dark);
  text-align: center;
  font-family: "Lora", Georgia, serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.32px;
  line-height: normal;
  text-transform: capitalize;
  white-space: nowrap;
  box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.05);
  transition: transform 160ms ease, box-shadow 160ms ease;
  cursor: pointer;
  appearance: none;
}

.button-icon {
  flex: 0 0 auto;
  width: 1.05em;
  height: 1.05em;
  display: inline-block;
  object-fit: contain;
  transform: translateY(0.02em);
}

.heading-icon {
  width: 0.75em;
  height: 0.75em;
  display: inline-block;
  object-fit: contain;
  vertical-align: -0.05em;
}

.nav-donate{
  border: 0px;
}

.nav-donate:hover,
.pill-button:hover,
.outline-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.08);
}

.nav-donate:focus-visible,
.pill-button:focus-visible,
.outline-button:focus-visible {
  outline: 3px solid var(--brown);
  outline-offset: 7px;
}

.outline-button {
  background: var(--paper);
}

.nav-donate {
  min-height: 30px;
  padding: 6px 18px;
  font-size: 16px;
}

.button-row .pill-button,
.button-row .outline-button {
  min-width: 164px;
  min-height: 36px;
}

.hero {
  padding: 80px 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 626px 481px;
  align-items: center;
  gap: 95px;
  min-height: 497px;
}

.highlight-strip,
.section-label,
.category-label,
.hand-label {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--brown);
}

.highlight-strip {
  width: fit-content;
  margin: 0 0 24px;
  padding: 5px 14px;
  background: color-mix(in srgb, var(--sage) 68%, var(--paper));
  transform: rotate(-2deg);
  box-shadow: 0 4px 0 rgba(74, 52, 31, 0.06);
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero-drive-label {
  min-width: 225px;
  min-height: 59px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 20px;
  background: url("/static/img/gabbis-bday-drive.07dcbce600e1.png") center / contain no-repeat;
  box-shadow: none;
  color: transparent;
  margin-left: -15px;
}

h1,
h2,
h3,
.cause-name {
  font-family: "Lora", Georgia, serif;
  color: var(--brown);
  letter-spacing: 0;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: 50px;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.hero-subhead {
  margin: 24px 0 18px;
  font-size: 24px;
  font-weight: 500;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--brown);
}

.hero-copy > p:not(.highlight-strip):not(.hero-subhead) {
  max-width: 520px;
  color: var(--brown-soft);
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.38;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 50px;
}

.paper-card,
.cause-card {
  position: relative;
  background: rgba(255, 253, 245, 0.94);
  border: 1px solid rgba(228, 216, 196, 0.9);
  box-shadow: 0 15px 30px rgba(74, 52, 31, 0.11), 0 2px 0 rgba(74, 52, 31, 0.06);
}

.hero-note-card {
  position: relative;
  width: min(481px, 100%);
  min-height: 457px;
  padding: 0;
  justify-self: center;
  transform: rotate(4deg);
  background: url("/static/img/notepad.b105de2ef7a0.png") center / contain no-repeat;
}

.hero-note-card::before,
.section-label::before,
.site-footer::before {
  content: "";
  position: absolute;
  pointer-events: none;
}

.washi-tape {
  display: none;
}

.asset-tape,
.floating-sticker {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  user-select: none;
}

.asset-tape {
  width: 118px;
  height: auto;
  filter: drop-shadow(0 2px 2px rgba(74, 52, 31, 0.1));
}

.tape-top {
  top: -18px;
  left: 50%;
  transform: translateX(-50%) rotate(-4deg);
}

.card-tape {
  top: -10px;
  left: 32%;
  width: 192px;
  transform: translateX(-50%) rotate(0deg);
}

.cause-card:nth-child(odd) .card-tape {
  top: -20px;
  left: 79%;
  width: 164px;
  transform: translateX(-50%) rotate(-5deg);
}

.tape-orange {
  width: 136px;
}

.tape-yellow {
  width: 112px;
}

.tape-pink {
  width: 132px;
}

.doodle,
.sticker {
  font-family: "Inter", system-ui, sans-serif;
}

.flower {
  position: absolute;
  right: 18px;
  bottom: 58px;
  z-index: 2;
  color: var(--mustard);
  font-size: 42px;
  transform: rotate(12deg);
}

.section-divider {
  width: min(1191px, var(--section-width));
  height: 36px;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  color: transparent;
  background: url("/static/img/divider.238d6a712413.png") center / contain no-repeat;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 24px;
  letter-spacing: 6px;
  text-align: center;
  opacity: 0.8;
}

.hero + .section-divider,
.how-section + .section-divider,
.section-divider + .how-section,
.section-divider + .causes-section {
  margin-top: 80px;
}

.section-label {
  position: relative;
  width: min(355px, 100%);
  margin: 0 auto 80px;
  min-height: 81px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  font-family: "Lora", Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  box-shadow: none;
  transform: rotate(-1deg);
}

.section-label img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.section-label span {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 81px;
  padding: 0 72px 2px;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  margin-left: -20px;
}

.section-label::before {
  display: none;
}

.blush-label {
  box-shadow: none;
}

.how-section {
  padding: 0 0 30px;
}

.how-grid {
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 225px 280px 235px 300px;
  gap: 48px;
  align-items: stretch;
}

.how-grid .paper-card {
  position: relative;
  min-height: 141px;
  padding: 36px 30px;
}

.how-card {
  border: 0;
  background: url("/static/img/ripped-paper-note.185510ead226.png") center / 100% 100% no-repeat;
  box-shadow: none;
}

.how-card .asset-tape {
  width: 96px;
}

.how-card .tape-top-center {
  top: -18px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
}

.how-card .tape-top-right {
  top: -18px;
  right: 22px;
  transform: rotate(-3deg);
}

.how-card .tape-left-lean {
  top: -18px;
  left: -16px;
  transform: rotate(-24deg);
}

.how-card .tape-bottom-right {
  right: -20px;
  bottom: -14px;
  transform: rotate(-28deg);
}

.how-card .tape-bottom-center {
  left: 50%;
  bottom: -17px;
  transform: translateX(-50%) rotate(-1deg);
}

.how-sticker {
  width: 90px;
}

.how-flower {
  left: -40px;
  bottom: -35px;
  transform: rotate(-12deg);
}

.how-flower-two {
  right: -30px;
  bottom: -40px;
  transform: rotate(8deg);
}

.how-grid .paper-card:nth-child(even) {
  transform: rotate(1.5deg);
}

.how-grid .paper-card:nth-child(odd) {
  transform: rotate(-1deg);
}

.how-grid h3 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.12;
}

.how-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.22;
}

.causes-section {
  width: min(var(--wide-container-max), var(--section-width));
  padding: 50px 0 100px;
}

.causes-section .section-label {
  margin-bottom: 50px;
}

.category-section {
  margin-top: 100px;
}

.category-section:first-of-type {
  margin-top: 0;
}

.category-row {
  display: grid;
  grid-template-columns: 443px 545px;
  gap: 20px;
  justify-content: center;
  align-items: center;
  min-height: 97px;
  margin-bottom: 56px;
}

.category-row > p {
  max-width: 640px;
  margin: 0;
  color: var(--brown-soft);
  font-size: 16px;
  line-height: 1.4;
}

.category-label {
  position: relative;
  min-height: 97px;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 443px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-family: "Lora", Georgia, serif;
  font-size: 24px;
  font-weight: 700;
}

.category-label img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.category-label-text {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 97px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 82px 0 126px;
  color: var(--brown);
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  margin-left: -5px;
}

.sticker {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px double color-mix(in srgb, var(--category-accent) 72%, var(--brown));
  border-radius: 50%;
  background: var(--paper);
  color: var(--mustard);
  font-size: 26px;
}

.cause-grid {
  --cause-card-width: 400px;
  --cause-card-gap: 100px;
  display: grid;
  grid-template-columns: repeat(2, var(--cause-card-width));
  justify-content: center;
  gap: var(--cause-card-gap);
  width: calc((var(--cause-card-width) * 2) + var(--cause-card-gap));
  margin: 0 auto;
}

.cause-card {
  --photo-x: calc(var(--cause-card-width) * 0.0375);
  --photo-y: calc(var(--cause-card-width) * 0.05);
  --content-x: calc(var(--cause-card-width) * 0.0775);
  --photo-width: calc(var(--cause-card-width) * 0.905);
  --photo-height: calc(var(--cause-card-width) * 0.8575);
  --photo-gap: calc(var(--cause-card-width) * 0.035);
  --card-bottom: calc(var(--cause-card-width) * 0.095);
  --cause-body-gap: calc(var(--cause-card-width) * 0.035);
  --cause-copy-min-height: calc(var(--cause-card-width) * 0.175);
  --cause-copy-gap: clamp(3px, calc(var(--cause-card-width) * 0.0125), 5px);
  --cause-title-size: clamp(18px, calc(var(--cause-card-width) * 0.06), 24px);
  --cause-body-size: clamp(13px, calc(var(--cause-card-width) * 0.04), 16px);
  --cause-helper-size: clamp(9px, calc(var(--cause-card-width) * 0.03), 12px);
  --cause-helper-spacing: clamp(0.27px, calc(var(--cause-card-width) * 0.0009), 0.36px);
  --cause-progress-height: clamp(7px, calc(var(--cause-card-width) * 0.0275), 11px);
  --cause-action-gap: clamp(8px, calc(var(--cause-card-width) * 0.05), 20px);
  --cause-action-height: clamp(28px, calc(var(--cause-card-width) * 0.075), 30px);
  --cause-action-font-size: clamp(12px, calc(var(--cause-card-width) * 0.04), 16px);
  --cause-action-padding-y: clamp(4px, calc(var(--cause-card-width) * 0.0125), 5px);
  --cause-action-padding-x: clamp(8px, calc(var(--cause-card-width) * 0.0375), 15px);
  --cause-support-width: clamp(82px, calc(var(--cause-card-width) * 0.2925), 117px);
  --cause-advocacy-width: clamp(108px, calc(var(--cause-card-width) * 0.3675), 147px);
  width: var(--cause-card-width);
  height: calc(var(--cause-card-width) * 1.505);
  display: flex;
  flex-direction: column;
  overflow: visible;
  padding: var(--photo-y) var(--content-x) var(--card-bottom);
  border: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 13px 16px rgba(74, 52, 31, 0.13));
}

.cause-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: url("/static/img/polaroid-frame.22c47922b4c2.png") center / 100% 100% no-repeat;
}

.cause-card .green-card-tape,
.cause-card:nth-child(odd) .green-card-tape {
  top: -20px;
  left: calc(var(--cause-card-width) * 0.13);
  width: calc(var(--cause-card-width) * 0.48);
  transform: none;
}

.cause-card:nth-child(even) .green-card-tape {
  top: -22px;
  left: calc(var(--cause-card-width) * 0.56);
  width: calc(var(--cause-card-width) * 0.48);
  transform: rotate(7deg);
}

.cause-card-womens-rights .card-tape,
.cause-card-womens-rights:nth-child(odd) .card-tape {
  top: -10px;
  left: calc(var(--cause-card-width) * 0.13);
  width: calc(var(--cause-card-width) * 0.48);
  transform: none;
}

.cause-card-womens-rights:nth-child(even) .card-tape {
  top: -18px;
  left: calc(var(--cause-card-width) * 0.28);
  width: calc(var(--cause-card-width) * 0.48);
  transform: rotate(0deg);
}

.cause-card-childrens-education .card-tape,
.cause-card-childrens-education:nth-child(odd) .card-tape {
  top: -20px;
  left: calc(var(--cause-card-width) * 0.575);
  width: calc(var(--cause-card-width) * 0.418);
  transform: rotate(4deg);
}

.cause-card-childrens-education:nth-child(even) .card-tape {
  top: -10px;
  left: calc(var(--cause-card-width) * 0.09);
  width: calc(var(--cause-card-width) * 0.48);
  transform: rotate(-4deg);
}

.card-sticker {
  object-fit: contain;
  filter: drop-shadow(0 5px 5px rgba(74, 52, 31, 0.12));
}

.sticker-sunflowers {
  width: calc(var(--cause-card-width) * 0.367);
  left: calc(var(--cause-card-width) * -0.12);
  top: calc(var(--cause-card-width) * 0.377);
  transform: rotate(14deg);
}

.sticker-yellow-heart {
  width: calc(var(--cause-card-width) * 0.26);
  right: calc(var(--cause-card-width) * -0.11);
  bottom: calc(var(--cause-card-width) * -0.08);
  transform: rotate(-11deg);
}

.sticker-pink-heart {
  width: calc(var(--cause-card-width) * 0.3);
  right: calc(var(--cause-card-width) * -0.07);
  top: calc(var(--cause-card-width) * 0.05);
  transform: rotate(0deg);
}

.sticker-cameleon {
  width: calc(var(--cause-card-width) * 0.29);
  right: calc(var(--cause-card-width) * -0.12);
  top: calc(var(--cause-card-width) * 0.51);
  transform: rotate(8deg);
}

.sticker-daisies {
  width: 200px;
  right: calc(var(--cause-card-width) * -0.2);
  top: calc(var(--cause-card-width) * 0.52);
  transform: rotate(7deg);
}

.sticker-white-flower {
  width: calc(var(--cause-card-width) * 0.27);
  left: calc(var(--cause-card-width) * -0.07);
  top: calc(var(--cause-card-width) * 0.13);
  transform: rotate(-15deg);
}

.cause-card:nth-child(odd) {
  transform: rotate(-1.5deg);
}

.cause-card:nth-child(even) {
  transform: rotate(1deg);
}

.cause-image,
.detail-image,
.qr {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5ead7;
  overflow: hidden;
  color: var(--muted);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
}

.cause-image {
  position: relative;
  z-index: 1;
  width: var(--photo-width);
  height: var(--photo-height);
  aspect-ratio: auto;
  margin: 0 0 var(--photo-gap) calc(var(--photo-x) - var(--content-x));
  border: 0;
}

.cause-image::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(253, 207, 103, 0.32), rgba(253, 207, 103, 0));
}

.asset-placeholder img {
  width: 100%;
  height: 100%;
  display: none;
  object-fit: cover;
  object-position: center;
}

.cause-image img {
  object-fit: cover;
  object-position: center;
}

.asset-placeholder.image-loaded img {
  display: block;
}

.asset-placeholder.image-loaded span {
  display: none;
}

.cause-card-body {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--cause-body-gap);
  min-height: 0;
  color: var(--dark);
  font-family: "Inter", system-ui, sans-serif;
  font-size: var(--cause-body-size);
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.cause-copy-block,
.cause-progress-block {
  display: grid;
}

.cause-copy-block {
  gap: var(--cause-copy-gap);
  min-height: var(--cause-copy-min-height);
  align-content: start;
}

.cause-progress-block {
  gap: var(--cause-copy-gap);
}

.cause-card-body h3 {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: var(--cause-body-size);
  font-style: normal;
  font-weight: 300;
  color: var(--dark);
  line-height: normal;
}

.cause-name {
  margin: 0;
  color: var(--dark);
  font-family: "Lora", Georgia, serif;
  font-size: var(--cause-title-size);
  font-style: italic;
  font-weight: 500;
  line-height: normal;
  letter-spacing: -0.48px;
}

.cause-full-name {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.12;
}

.impact-line,
.progress-copy {
  margin: 0;
  color: #685220;
  font-family: "Inter", system-ui, sans-serif;
  font-size: var(--cause-helper-size);
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: var(--cause-helper-spacing);
  text-transform: uppercase;
}

.progress-copy {
  font-style: italic;
}

.progress-bar {
  position: relative;
  display: block;
  flex: 0 0 var(--cause-progress-height);
  width: 100%;
  height: var(--cause-progress-height);
  min-height: var(--cause-progress-height);
  margin: 0;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(124, 96, 69, 0.16);
  background: rgba(248, 240, 226, 0.98);
  box-shadow: inset 0 1px 2px rgba(74, 52, 31, 0.12), 0 1px 0 rgba(255, 253, 245, 0.9);
}

.progress-fill {
  display: block;
  min-width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--yellow);
  transition: width 180ms ease;
}

.cause-card-womens-rights .progress-fill {
  background: var(--blush);
}

.cause-card-womens-rights .pill-button {
  border-color: var(--blush);
  background: var(--blush);
}

.cause-card-womens-rights .outline-button {
  border-color: var(--blush);
}

.cause-actions {
  display: flex;
  gap: var(--cause-action-gap);
  align-items: stretch;
  margin-top: 0;
  padding-top: 0;
}

.cause-actions .pill-button,
.cause-actions .outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--cause-action-height);
  height: var(--cause-action-height);
  padding: var(--cause-action-padding-y) var(--cause-action-padding-x);
  font-size: var(--cause-action-font-size);
}

.cause-actions .pill-button {
  width: var(--cause-support-width);
}

.cause-actions .outline-button {
  width: var(--cause-advocacy-width);
}

.cause-card-elderly-care .pill-button {
  border-color: var(--sage);
  background: var(--sage);
}

.cause-card-elderly-care .outline-button {
  border-color: var(--sage);
}

.cause-card-elderly-care .progress-fill {
  background: var(--sage);
}

.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: 80px;
  padding: 34px 0;
  background: var(--brown);
  background-image: url("/static/img/footer-bg.e891718443a7.png");
  background-size: cover;
  background-position: center;
  color: var(--cream);
}

.footer-inner {
  width: min(var(--footer-max), var(--section-width));
  min-height: 200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.footer-logo {
  font-size: 54px;
}

.footer-inner p {
  margin: 16px 0 0;
  font-size: 12px;
}

.footer-connect {
  display: grid;
  gap: 14px;
  font-family: "Lora", Georgia, serif;
  font-size: 19px;
  font-weight: 700;
}

.connect-icons {
  display: flex;
  gap: 30px;
  align-items: center;
}

.connect-icons a {
  width: auto;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--brown);
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 800;
}

.connect-icons img {
  width: auto;
  height: 30px;
  object-fit: contain;
}

.detail-page,
.simple-page {
  padding: 78px 0 112px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--brown-soft);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: underline;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}

.polaroid {
  padding: 22px 22px 54px;
  transform: rotate(-1.5deg);
}

.detail-image {
  aspect-ratio: 724 / 686;
  border: 1px solid var(--line);
}

.impact-card,
.transparency-note,
.donor-wall {
  margin-top: 30px;
  padding: 28px;
}

.impact-card h2 {
  margin: 0;
  font-size: 40px;
  font-weight: 700;
}

.hand-label {
  margin: 0 0 10px;
  color: var(--brown-soft);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.detail-copy h1 {
  margin-bottom: 12px;
}

.detail-copy h2 {
  margin: 18px 0;
  font-size: 40px;
  font-weight: 700;
  color: var(--ink);
}

.detail-copy h3 {
  margin: 32px 0 8px;
  font-size: 24px;
  font-weight: 700;
}

.detail-copy p {
  color: var(--brown-soft);
}

.donation-form-card {
  margin: 86px auto 0;
  padding: 42px;
}

.form-intro h2 {
  margin: 0 0 8px;
  font-size: 40px;
  font-weight: 700;
}

.payment-tabs {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  margin: 30px 0;
  padding: 20px;
  border: 1px dashed var(--line);
  background: rgba(255, 248, 232, 0.58);
}

.tab-buttons {
  display: grid;
  gap: 10px;
  align-content: start;
}

.tab-buttons button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--dark);
  text-align: center;
  font-family: "Lora", Georgia, serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  letter-spacing: 0.32px;
  text-transform: capitalize;
  cursor: pointer;
}

.tab-buttons button.active {
  background: var(--yellow);
  border-color: var(--sunflower);
}

.payment-panel {
  display: none;
}

.payment-panel.active {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 10px 18px;
  align-items: center;
}

.payment-panel p {
  margin: 0;
}

.qr {
  grid-row: span 3;
  width: 160px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
}

.donation-form {
  display: grid;
  gap: 18px;
}

.modal-open {
  overflow: hidden;
}

.donation-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 64px 24px 24px;
}

.donation-modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(47, 41, 34, 0.52);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  overflow: visible;
  padding: 30px 50px;
  background-color: var(--paper);
  background-image: linear-gradient(rgba(255, 253, 245, 0.84), rgba(255, 253, 245, 0.92)), url("/static/img/ripped-paper-note.185510ead226.png"), url("/static/img/main-bg.a6d41d7189ad.png");
  background-size: cover, 100% 100%, cover;
  background-position: center;
  border: 1px solid rgba(228, 216, 196, 0.9);
  box-shadow: 0 28px 80px rgba(47, 41, 34, 0.32);
}

.modal-card::before {
  content: "";
  position: absolute;
  top: -44px;
  left: 50%;
  width: 264px;
  height: 78px;
  background: url("/static/img/orange-tape.ec67d87051eb.png") center / contain no-repeat;
  transform: translateX(-50%) rotate(-4deg);
  pointer-events: none;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--cream);
  color: var(--brown);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.modal-card h2 {
  margin: 30px 0px;
  font-size: 40px;
  line-height: 1.1;
  text-align: center;
}

.compact-donation-form {
  justify-items: stretch;
  gap: 20px;
  max-height: calc(100vh - 285px);
  overflow-y: auto;
  padding-right: 4px;
  padding: 16px;
  background-image: linear-gradient(rgba(255, 253, 245, 0.76), rgba(255, 253, 245, 0.86)), url("/static/img/ripped-paper-note.185510ead226.png");
  background-size: cover, 100% 100%;
  background-position: center;
}

.success-modal-card {
  width: min(560px, 100%);
}

.success-modal-card p:not(.hand-label):not(.modal-footnote) {
  margin: 0 0 16px;
  color: var(--brown-soft);
  font-size: 17px;
}

.modal-payment-tabs {
  display: flex;
  flex-direction: column;
  grid-template-columns: 104px minmax(220px, 1fr);
  align-items: stretch;
  gap: 18px;
  width: 100%;
  max-width: 100%;
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background-color: rgba(255, 248, 232, 0.72);
  background-image: linear-gradient(rgba(255, 248, 232, 0.76), rgba(255, 253, 245, 0.82)), url("/static/img/ripped-paper-note.185510ead226.png");
  background-size: cover, 100% 100%;
  background-position: center;
}

.payment-method-buttons {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: clamp(6px, 1.8vw, 14px);
  width: 100%;
}

.payment-method-buttons button {
  flex: 1 1 0;
  width: 100%;
  min-width: 0;
  min-height: 30px;
  padding: 4px clamp(5px, 1.6vw, 10px);
  border: 2px solid var(--yellow);
  border-radius: 835.456px;
  background: var(--paper);
  color: var(--dark);
  text-align: center;
  font-family: "Lora", Georgia, serif;
  font-size: clamp(12px, 2.7vw, 16px);
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  letter-spacing: 0.32px;
  text-transform: capitalize;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

.payment-method-buttons button.active {
  background: var(--yellow);
}

.modal-payment-tabs .payment-panel {
  display: none;
  min-width: 0;
}

.modal-payment-tabs .payment-panel.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-payment-tabs .payment-panel p {
  color: var(--brown-soft);
  font-size: 13px;
  line-height: 1.25;
}

.modal-payment-tabs .payment-panel strong {
  color: var(--brown);
}

.modal-payment-tabs .qr {
  width: min(240px, 100%);
  aspect-ratio: 1 / 1;
  background: rgba(255, 253, 245, 0.86);
}

.modal-payment-tabs .qr-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-payment-tabs .qr span {
  display: none;
  padding: 10px;
  text-align: center;
  font-size: 12px;
}

.modal-footnote {
  margin: 0 auto;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  max-width: 46ch;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.donation-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--brown-soft);
  font-size: 13px;
  font-weight: 800;
}

.donation-form input,
.donation-form select,
.donation-form textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
  padding: 10px 12px;
}

.donation-form textarea {
  resize: vertical;
}

.submit-button {
  width: fit-content;
  cursor: pointer;
  margin: 20px auto 0;
  justify-self: center;
}

.form-note,
.small-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.form-errors,
.errorlist {
  color: #8c2d19;
}

.donor-wall h2 {
  margin-top: 0;
}

.donor-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.donor-list article {
  padding: 16px;
  background: var(--cream);
  border: 1px solid var(--line);
}

.simple-page {
  max-width: 760px;
}

.simple-page h1 {
  margin-bottom: 20px;
}

.simple-page > p {
  color: var(--brown-soft);
  font-size: 18px;
}

.success-page {
  text-align: center;
}

.success-page .highlight-strip,
.success-page .pill-button {
  margin-left: auto;
  margin-right: auto;
}

.empty-state,
.link-list,
.update-list .paper-card {
  padding: 26px;
}

.link-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.link-list a {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--brown);
  font-size: 16px;
  font-weight: 600;
  text-decoration: underline;
}

.update-list {
  display: grid;
  gap: 22px;
  margin-top: 30px;
}

@media (max-width: 1400px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 481px);
    gap: clamp(44px, 6vw, 95px);
  }

  .how-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(32px, 3.5vw, 56px);
  }

  .category-row {
    grid-template-columns: minmax(360px, 443px) minmax(0, 545px);
  }

  .cause-grid {
    --cause-card-gap: clamp(56px, 7vw, 112px);
    width: min(100%, calc((var(--cause-card-width) * 2) + var(--cause-card-gap)));
  }
}

@media (max-width: 1100px) {
  :root {
    --section-width: var(--section-width-compact);
  }

  .hero + .section-divider, .how-section + .section-divider, .section-divider + .how-section, .section-divider + .causes-section {
    width: min(1191px, var(--section-width-compact));
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    width: min(var(--container-max), var(--section-width-compact));
    justify-items: center;
    text-align: center;
  }

  .hero-note-card {
    display: none;
  }

  .hero-copy {
    display: grid;
    justify-items: center;
  }

  .hero-copy > p:not(.highlight-strip):not(.hero-subhead) {
    max-width: 30rem;
  }

  .how-grid {
    grid-template-columns: repeat(2, minmax(250px, 1fr));
    max-width: 760px;
    gap: 56px 48px;
  }

  .category-row {
    grid-template-columns: minmax(300px, 443px) minmax(0, 545px);
    gap: 28px;
  }

  .cause-grid {
    --cause-card-width: 360px;
    --cause-card-gap: clamp(48px, 6vw, 76px);
  }

  .cause-card {
    --cause-body-gap: calc(var(--cause-card-width) * 0.032);
    --cause-copy-min-height: calc(var(--cause-card-width) * 0.165);
  }

  .footer-inner {
    width: min(var(--footer-max), var(--section-width-compact));
    min-height: 150px;
  }
}

@media (max-width: 900px) {
  .nav-shell {
    grid-template-columns: 120px 1fr 120px;
    padding: 7px 0;
  }

  .hero {
    padding: 70px 0 54px;
  }

  .hero-grid,
  .detail-grid,
  .payment-tabs {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    justify-items: center;
    text-align: center;
  }

  .hero-copy {
    display: grid;
    justify-items: center;
  }

  .hero-copy > p:not(.highlight-strip):not(.hero-subhead) {
    max-width: 30rem;
  }

  .hero-note-card {
    display: none;
  }

  .how-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 56px 48px;
  }

  .category-row {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 24px;
  }

  .category-row > p {
    text-align: center;
  }

  .cause-grid {
    width: 100%;
    grid-template-columns: minmax(0, var(--cause-card-width));
    gap: 104px;
  }

  .cause-card {
    width: min(100%, var(--cause-card-width));
    justify-self: center;
  }

  .donor-list {
    grid-template-columns: 1fr;
  }

  .modal-card {
    width: min(680px, calc(100vw - 32px));
  }
}

@media (max-width: 620px) {
  :root {
    --section-width: var(--section-width-mobile);
    --section-width-compact: var(--section-width-mobile);
  }

  .container {
    width: min(var(--container-max), var(--section-width-mobile));
  }

  body {
    background-attachment: scroll;
  }

  .nav-shell {
    width: min(560px, var(--section-width-mobile));
    min-height: 52px;
    grid-template-columns: 82px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .brand-script {
    font-size: 24px;
  }

  .brand-script img {
    width: 76px;
  }

  .nav-title {
    font-size: 13px;
    line-height: 1.1;
    text-align: center;
  }

  .nav-links {
    gap: 8px;
  }

  .nav-donate {
    min-height: 30px;
    padding: 5px 12px;
    font-size: 14px;
  }

  .hero {
    padding: 52px 0 24px;
  }

  .hero-grid {
    gap: 0;
  }

  .hero-copy > p:not(.highlight-strip):not(.hero-subhead) {
    max-width: 270px;
    font-size: 13px;
  }

  h1 {
    font-size: clamp(36px, 10vw, 42px);
  }

  .hero-subhead {
    font-size: 18px;
  }

  .button-row {
    justify-content: center;
    gap: 22px;
    margin-top: 34px;
  }

  .button-row .pill-button,
  .button-row .outline-button {
    min-width: min(164px, 100%);
  }

  .hero + .section-divider,
  .how-section + .section-divider,
  .section-divider + .how-section,
  .section-divider + .causes-section {
    margin-top: 56px;
  }

  .section-divider {
    height: 34px;
  }

  .section-label {
    margin-bottom: 38px;
    font-size: 22px;
  }

  .section-label span {
    padding: 0 54px 2px;
  }

  .mobile-break {
    display: block;
  }

  .how-grid,
  .field-grid,
  .payment-panel.active {
    grid-template-columns: 1fr;
  }

  .how-grid {
    max-width: 360px;
    gap: 80px;
    margin-top: 50px;
    justify-items: center;
    text-align: center;
  }

  .how-grid .paper-card {
    width: 100%;
    min-height: 132px;
    padding: 32px 26px 24px;
  }

  .how-sticker {
    width: 72px;
  }

  .qr {
    grid-row: auto;
  }

  .causes-section {
    width: min(var(--wide-container-max), var(--section-width-mobile));
    padding: 36px 0 80px;
    text-align: center;
  }

  .category-section {
    margin-top: 84px;
  }

  .category-row {
    margin-bottom: 54px;
  }

  .category-label {
    width: 100%;
    max-width: 340px;
    min-height: 66px;
    font-size: 18px;
  }

  .category-label-text {
    min-height: 66px;
    padding: 0 54px 0 84px;
  }

  .cause-grid {
    --cause-card-width: min(80vw, 390px);
    gap: 104px;
  }

  .cause-card {
    --cause-body-gap: calc(var(--cause-card-width) * 0.03);
    --cause-copy-min-height: calc(var(--cause-card-width) * 0.16);
    --cause-body-size: clamp(12px, calc(var(--cause-card-width) * 0.035), 13.5px);
    --cause-title-size: clamp(19px, calc(var(--cause-card-width) * 0.055), 21.5px);
    --cause-helper-size: clamp(8.5px, calc(var(--cause-card-width) * 0.026), 10.5px);
    --cause-action-font-size: clamp(12px, calc(var(--cause-card-width) * 0.036), 14px);
    text-align: left;
  }

  .cause-card-body h3 {
    line-height: 1.12;
  }

  .donation-form-card {
    padding: 30px 18px;
  }

  .donation-modal {
    align-items: center;
    padding: 24px;
  }

  .modal-payment-tabs {
    grid-template-columns: 1fr;
  }

  .modal-card {
    max-height: 72vh;
    padding: 36px 18px 20px;
    overflow: visible;
  }

  .modal-card h2 {
    font-size: 30px;
    margin: 22px 0;
  }

  .compact-donation-form {
    max-height: calc(72vh - 128px);
    padding: 14px;
  }

  .payment-method-buttons button {
    min-height: 32px;
    padding-top: 2px;
    padding-bottom: 2px;
  }

  .modal-payment-tabs .qr {
    width: min(220px, 100%);
  }

  .donation-form input,
  .donation-form select,
  .donation-form textarea {
    min-height: 48px;
  }

  .footer-inner {
    min-height: 280px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .connect-icons {
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .container,
  .causes-section {
    width: min(var(--wide-container-max), var(--section-width-mobile));
  }

  .nav-shell {
    width: min(420px, var(--section-width-mobile));
    grid-template-columns: 68px minmax(0, 1fr) auto;
  }

  .brand-script img {
    width: 64px;
  }

  .nav-title {
    font-size: 12px;
  }

  .nav-donate {
    padding: 5px 10px;
    font-size: 13px;
  }

  .hero-drive-label {
    min-width: 184px;
    min-height: 48px;
    margin-left: -8px;
  }

  .section-label {
    width: min(315px, 100%);
    min-height: 72px;
  }

  .section-label span {
    min-height: 72px;
    padding: 0 48px 2px;
    margin-left: -14px;
    font-size: 20px;
  }

  .category-label {
    max-width: 310px;
    font-size: 17px;
  }

  .category-label-text {
    padding: 0 48px 0 78px;
  }

  .cause-grid {
    --cause-card-width: min(80vw, 360px);
    gap: 92px;
  }

  .cause-card-body {
    gap: var(--cause-body-gap);
  }

  .cause-card {
    --cause-body-gap: calc(var(--cause-card-width) * 0.025);
    --cause-copy-min-height: calc(var(--cause-card-width) * 0.14);
    --cause-body-size: clamp(11.5px, calc(var(--cause-card-width) * 0.034), 12.5px);
    --cause-title-size: clamp(18px, calc(var(--cause-card-width) * 0.053), 20px);
    --cause-helper-size: clamp(8px, calc(var(--cause-card-width) * 0.025), 9.5px);
    --cause-action-font-size: clamp(11.5px, calc(var(--cause-card-width) * 0.035), 13px);
  }

  .sticker-sunflowers {
    left: calc(var(--cause-card-width) * -0.06);
  }

  .sticker-yellow-heart,
  .sticker-cameleon,
  .sticker-daisies {
    right: calc(var(--cause-card-width) * -0.04);
  }

  .sticker-daisies{
    width: 130px;
    right: calc(var(--cause-card-width) * -0.1);
  }

  .modal-card {
    width: calc(100vw - 48px);
    max-height: 70vh;
    padding: 34px 12px 16px;
  }

  .compact-donation-form {
    max-height: calc(70vh - 128px);
  }

  .modal-payment-tabs {
    padding: 14px 10px;
  }

  .payment-method-buttons button {
    min-height: 30px;
    padding-top: 2px;
    padding-bottom: 2px;
  }

  input[type="file"]::file-selector-button {
    width: 100%;
    margin: 0 0 8px;
  }
}

input[type="file"]::file-selector-button {
  padding: 5px 10px;
  margin-right: 14px;
  border: 1px dashed var(--line);
  border-radius: 4px;
  background: var(--cream);
  color: var(--dark);
  font-weight: 700;
  cursor: pointer;
}
