/* Mobile-first performer page, same paper-collage look as ../css/style.css
   (palette and fonts copied from its :root). Everything is one centered
   column; on a desktop window it simply stays phone-width. */

:root {
  --bg: #F6F0E8;
  --bg-cream: #FFD4C9;
  --ink: #241419;
  --maroon: #5E1231;
  --pink: #D94D86;
  --hero-bg: #8F1F4C;
  --contact-bg: #FFB1C2;
  --olive-dark: #707318;

  --font-display: 'Unbounded', sans-serif;
  --font-hand: 'Bad Script', cursive;
  --font-body: 'Manrope', sans-serif;

  --chip-shape: polygon(3% 10%, 20% 0%, 50% 6%, 80% 0%, 97% 10%, 100% 55%,
    96% 92%, 70% 100%, 30% 94%, 0% 100%, 2% 55%);
}

* { box-sizing: border-box; }

html, body { margin: 0; background: var(--bg); }

body {
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

img { display: block; max-width: 100%; }
a { color: var(--maroon); }

main, footer {
  max-width: 480px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}

/* ---------- first view: name, photo, donate — all above the fold ---------- */

.first-view {
  /* The whole block fits one phone screen; the donate button is never below it. */
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2svh, 16px);
  padding: max(16px, env(safe-area-inset-top)) 0 16px;
  text-align: center;
}

.chip {
  margin: 0;
  background-color: var(--bg-cream);
  background-image: url('/assets/card-paper.webp');
  background-size: cover;
  background-blend-mode: multiply;
  clip-path: var(--chip-shape);
  padding: 7px 18px 9px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--maroon);
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 8.4vw, 38px);
  line-height: 1.05;
  color: var(--maroon);
  text-shadow: 3px 3px 0 var(--contact-bg);
}

.polaroid {
  position: relative;
  /* Sized from the viewport height too, so a short phone still shows the
     button without scrolling. */
  width: min(62vw, 38svh * 1231 / 1446 * 1.15, 280px);
  aspect-ratio: 1231 / 1446;
  transform: rotate(-2deg);
  margin: 4px 0;
}

.photo-slot {
  position: absolute;
  left: 7%;
  top: 6.4%;
  width: 85.1%;
  height: 72.8%;
  overflow: hidden;
  background: var(--contact-bg);
}

.photo-slot img { width: 100%; height: 100%; object-fit: cover; }

.polaroid .frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  filter: drop-shadow(0 12px 20px rgba(36, 20, 25, 0.35));
}

.polaroid .caption {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 3%;
  margin: 0;
  text-align: center;
  font-family: var(--font-hand);
  font-size: 14px;
  line-height: 1.2;
}

/* ---------- donate ---------- */

.tip-lead {
  margin: 4px 0 0;
  font-family: var(--font-hand);
  font-size: 19px;
  color: var(--olive-dark);
}

.tip-row {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.btn-donate {
  display: block;
  width: 100%;
  max-width: 340px;
  min-height: 56px; /* comfortable thumb target */
  padding: 16px 24px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--ink);
}

/* Secondary: outlined, a bit slimmer so both buttons still fit the first view. */
.btn-donate--alt {
  min-height: 48px;
  padding: 12px 24px;
  font-size: 14px;
  background: transparent;
  color: var(--maroon);
  border: 2px solid var(--maroon);
  box-shadow: none;
}

.btn-donate--alt:hover { color: #fff; background: var(--maroon); }

.btn-donate:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn-donate:hover { color: #fff; background: #c43f77; }

/* ---------- about ---------- */

.about {
  padding: 32px 0 8px;
  border-top: 2px solid var(--ink);
}

h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--maroon);
}

.about p { margin: 0 0 12px; font-size: 17px; }

.photo-card {
  margin: 20px auto;
  width: min(78%, 320px);
  padding: 10px 10px 36px;
  background: #fff;
  box-shadow: 6px 6px 0 rgba(36, 20, 25, 0.2);
  transform: rotate(1.5deg);
}

.photo-card img { width: 100%; height: auto; }

.about .lessons { font-size: 15px; }

/* ---------- footer ---------- */

footer {
  padding-top: 24px;
  padding-bottom: max(28px, env(safe-area-inset-bottom));
  text-align: center;
}

.copy { margin: 18px 0 0; font-size: 12px; opacity: 0.6; }

@media (prefers-reduced-motion: reduce) {
  .btn-donate:active { transform: none; }
}
