:root {
  color-scheme: dark;
  --background: #0b0910;
  --surface: #151119;
  --surface-soft: #1b151e;
  --text: #faf6f9;
  --muted: #aaa0aa;
  --pink: #f3a6d8;
  --mint: #bdeee5;
  --line: rgba(255, 255, 255, 0.1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -20%, rgba(243, 166, 216, 0.13), transparent 36rem),
    var(--background);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 0.55px, transparent 0.55px);
  background-size: 18px 18px;
  opacity: 0.18;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

a {
  color: inherit;
}

.coffee-page {
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 42px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
}

.brand {
  color: var(--pink);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.back-link {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 160ms ease;
}

.back-link:hover {
  color: var(--text);
}

.coffee-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(62px, 11vw, 104px) 20px clamp(42px, 7vw, 68px);
  text-align: center;
}

.coffee-mark {
  display: grid;
  width: 76px;
  height: 76px;
  margin-bottom: 25px;
  place-items: center;
  border: 1px solid rgba(243, 166, 216, 0.32);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(243, 166, 216, 0.16), rgba(189, 238, 229, 0.05));
  box-shadow: 0 18px 60px rgba(243, 166, 216, 0.12);
  font-size: 2rem;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--pink);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.2em;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(2.8rem, 9vw, 5.6rem);
  font-weight: 760;
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.intro-copy {
  max-width: 590px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.5vw, 1.12rem);
  line-height: 1.7;
}

.donation-card {
  padding: clamp(18px, 4vw, 30px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(21, 17, 25, 0.9);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(16px);
}

.donation-heading {
  display: flex;
  gap: 24px;
  align-items: flex-end;
  justify-content: space-between;
  padding: 2px 2px 22px;
}

.donation-heading .eyebrow {
  margin-bottom: 8px;
}

.donation-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 4vw, 2.25rem);
  letter-spacing: -0.045em;
}

.secure-note {
  flex: none;
  padding: 8px 11px;
  border: 1px solid rgba(189, 238, 229, 0.18);
  border-radius: 999px;
  color: var(--mint);
  background: rgba(189, 238, 229, 0.05);
  font-size: 0.72rem;
  font-weight: 750;
}

.donation-widget {
  min-height: 360px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 19px;
  background: var(--surface-soft);
}

.widget-loading {
  display: flex;
  min-height: 280px;
  gap: 10px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.loading-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 16px var(--pink);
  animation: breathe 1.4s ease-in-out infinite;
}

.widget-error {
  display: grid;
  min-height: 280px;
  gap: 14px;
  place-items: center;
  align-content: center;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.widget-error button {
  border: 1px solid rgba(243, 166, 216, 0.3);
  border-radius: 999px;
  padding: 10px 17px;
  color: var(--text);
  background: rgba(243, 166, 216, 0.1);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.hievents-widget iframe {
  min-height: 420px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 4px 0;
  color: #716971;
  font-size: 0.76rem;
}

@keyframes breathe {
  50% {
    opacity: 0.35;
    transform: scale(0.76);
  }
}

@media (max-width: 600px) {
  .coffee-page {
    width: min(100% - 20px, 820px);
    padding-top: 12px;
  }

  .coffee-intro {
    padding: 54px 12px 38px;
  }

  .coffee-mark {
    width: 66px;
    height: 66px;
    border-radius: 21px;
  }

  h1 {
    font-size: clamp(2.65rem, 14vw, 4rem);
  }

  .donation-card {
    border-radius: 22px;
  }

  .donation-heading {
    display: block;
  }

  .secure-note {
    display: inline-flex;
    margin-top: 14px;
  }

  footer {
    flex-direction: column;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .loading-dot {
    animation: none;
  }
}

.swish-card { margin-bottom: 18px; padding: clamp(22px, 5vw, 38px); border: 1px solid rgba(243, 166, 216, 0.28); border-radius: 28px; background: linear-gradient(145deg, rgba(243, 166, 216, 0.11), rgba(21, 17, 25, 0.96) 58%); box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28); }
.swish-heading { display: flex; gap: 16px; align-items: center; margin-bottom: 24px; }
.swish-logo { display: grid; width: 52px; height: 52px; flex: none; place-items: center; border-radius: 17px; color: #161018; background: linear-gradient(135deg, var(--pink), var(--mint)); font-size: 1.35rem; font-weight: 950; transform: rotate(-5deg); }
.swish-heading .eyebrow { margin-bottom: 5px; }
.swish-heading h2 { margin-bottom: 0; font-size: clamp(1.7rem, 5vw, 2.55rem); letter-spacing: -0.05em; }
.amount-picker { display: grid; grid-template-columns: repeat(3, 1fr) minmax(145px, 1.4fr); gap: 9px; margin-bottom: 13px; }
.amount-picker button { min-height: 52px; border: 1px solid var(--line); border-radius: 15px; color: var(--text); background: rgba(255, 255, 255, 0.035); font: inherit; font-weight: 800; cursor: pointer; transition: 150ms ease; }
.amount-picker button:hover, .amount-picker button.is-selected { border-color: var(--pink); color: #160d15; background: var(--pink); }
.custom-amount { display: grid; grid-template-columns: auto 1fr auto; gap: 7px; align-items: center; min-height: 52px; padding: 0 12px; border: 1px solid var(--line); border-radius: 15px; color: var(--muted); background: rgba(255, 255, 255, 0.035); font-size: 0.74rem; font-weight: 750; }
.custom-amount span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.custom-amount input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--text); background: transparent; font: inherit; font-size: 1rem; font-weight: 850; text-align: right; }
.custom-amount b { color: var(--muted); }
.swish-button { display: flex; min-height: 58px; align-items: center; justify-content: space-between; padding: 0 21px; border-radius: 17px; color: #160d15; background: linear-gradient(105deg, var(--pink), var(--mint)); font-size: 1rem; font-weight: 900; text-decoration: none; box-shadow: 0 15px 40px rgba(243, 166, 216, 0.13); transition: transform 150ms ease, filter 150ms ease; }
.swish-button:hover { filter: brightness(1.06); transform: translateY(-1px); }
.swish-recipient { display: flex; gap: 11px; align-items: center; margin-top: 17px; color: var(--muted); font-size: 0.8rem; }
.swish-recipient span { margin-right: auto; }
.swish-recipient strong { color: var(--text); font-size: 0.91rem; letter-spacing: 0.03em; }
.swish-recipient button { border: 0; padding: 5px 0; color: var(--mint); background: none; font: inherit; font-weight: 800; cursor: pointer; }
.swish-message { margin: 8px 0 0; color: #716971; font-size: 0.72rem; }
.swish-message strong { color: var(--muted); letter-spacing: 0.06em; }
@media (max-width: 600px) {
  .amount-picker { grid-template-columns: repeat(3, 1fr); }
  .custom-amount { grid-column: 1 / -1; }
  .swish-recipient { flex-wrap: wrap; }
  .swish-recipient button { flex-basis: 100%; text-align: left; }
}
