/* Rotabebe — page-scoped identity. Tokens live on .rotabebe so the club theme stays untouched. */

.rotabebe {
  --rb-magenta: #C2185B;
  --rb-magenta-dot: #D2386F;
  --rb-plum: #7A1E45;
  --rb-blush: #F8D7E3;
  --rb-paper: #F6F3EE;
  --rb-petal: #F2A7C3;
  --rb-tape: #E6D3A8;
  --rb-gold: #F2C14E;
  --rb-text: #2B1520;
  --rb-text-soft: #6B4A58;

  --rb-script: "Pacifico", cursive;
  --rb-serif: "Fraunces", Georgia, serif;
  --rb-sans: "Open Sans", system-ui, sans-serif;

  --rb-page: 1100px;
  /* same page edges as the club site */
  --rb-gutter: max(clamp(16px, 5vw, 64px), (100% - var(--rb-page)) / 2);

  /* torn paper edge, shared by every paper card */
  --rb-torn: polygon(
    0 6px, 4% 2px, 9% 7px, 15% 1px, 22% 6px, 30% 2px, 37% 7px, 45% 3px, 53% 8px, 61% 2px, 69% 6px, 77% 1px, 85% 7px, 92% 3px, 100% 6px,
    100% calc(100% - 5px), 94% calc(100% - 1px), 87% calc(100% - 7px), 80% calc(100% - 2px), 72% calc(100% - 6px), 64% calc(100% - 1px),
    56% calc(100% - 7px), 48% calc(100% - 3px), 40% calc(100% - 8px), 32% calc(100% - 2px), 24% calc(100% - 6px), 16% calc(100% - 1px),
    8% calc(100% - 7px), 0 calc(100% - 3px)
  );

  margin: 0;
  font-family: var(--rb-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--rb-text);
  background: var(--rb-paper);
  overflow-x: hidden;
}

.rotabebe *, .rotabebe *::before, .rotabebe *::after { box-sizing: border-box; }
:where(.rotabebe) img { max-width: 100%; height: auto; display: block; }
:where(.rotabebe) :where(h1, h2, h3, p, ul, ol) { margin: 0; padding: 0; }
:where(.rotabebe) :where(ul, ol) { list-style: none; }

.rotabebe :focus-visible { outline: 3px solid var(--rb-text); outline-offset: 3px; border-radius: 4px; }
.rb-dots :focus-visible { outline-color: var(--rb-gold); }

.rb-sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.rb-noscript { padding: 24px 20px; text-align: center; font-weight: 600; }

/* ---------- shared pieces ---------- */

.rb-dots {
  background-color: var(--rb-magenta);
  background-image: radial-gradient(var(--rb-magenta-dot) 3px, transparent 3.5px);
  background-size: 26px 26px;
  color: #fff;
}

.rb-section { padding: 64px var(--rb-gutter); }
.rb-section--blush { background: var(--rb-blush); }
.rb-wrap--narrow { max-width: 720px; margin-inline: auto; }

.rb-label {
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rb-plum);
  margin-bottom: 8px;
}
.rb-label--light { color: #fff; }

.rb-title {
  font-family: var(--rb-serif);
  font-weight: 700;
  font-size: clamp(1.8rem, 6vw, 2.7rem);
  line-height: 1.12;
  color: var(--rb-plum);
}
.rb-lead { max-width: 40em; margin-top: 14px; font-size: 1.08rem; }

.rb-link { color: var(--rb-plum); font-weight: 800; text-underline-offset: 3px; }

/* torn paper card with a strip of tape */
.rb-paper { position: relative; isolation: isolate; padding: 30px 22px 26px; }
.rb-paper::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--rb-paper);
  clip-path: var(--rb-torn);
}
.rb-paper::after {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  width: 78px;
  height: 24px;
  margin-left: -39px;
  background: var(--rb-tape);
  opacity: .92;
  rotate: -4deg;
}
.rb-paper:nth-child(even)::before { scale: -1 1; }
.rb-paper:nth-child(even)::after { rotate: 3deg; margin-left: -52px; }
.rb-paper:nth-child(3n)::after { rotate: -7deg; margin-left: -24px; }

.rb-grid { display: grid; gap: 30px 20px; margin-top: 40px; }

.rb-card__big {
  font-family: var(--rb-serif);
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--rb-magenta);
}
.rb-card__title { font-family: var(--rb-sans); font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--rb-plum); margin-top: 8px; }
.rb-card__text { margin-top: 8px; color: var(--rb-text-soft); font-size: .98rem; }

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

.rb-donate { margin-top: 28px; }

.rb-btn {
  display: inline-block;
  padding: .85em 2em;
  border-radius: 999px;
  font-family: var(--rb-sans);
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  transition: transform .15s;
}
.rb-btn:hover { transform: translateY(-2px); }

/* on magenta: white pill with an outline ring */
.rb-dots .rb-btn { background: #fff; color: var(--rb-magenta); box-shadow: 0 0 0 4px var(--rb-magenta), 0 0 0 6px #fff; }
/* on light sections: magenta pill, white text */
.rb-section .rb-btn { background: var(--rb-magenta); color: #fff; }

.rb-btn--soon, .rb-btn--soon:hover { transform: none; cursor: default; }
.rb-dots .rb-btn--soon { background: transparent; color: #fff; box-shadow: none; border: 2px dashed #fff; }
.rb-section .rb-btn--soon { background: transparent; color: var(--rb-plum); border: 2px dashed var(--rb-plum); }

.rb-ended { font-family: var(--rb-serif); font-weight: 700; font-size: 1.3rem; line-height: 1.3; }
.rb-section .rb-ended { color: var(--rb-plum); }

/* ---------- hero ---------- */

html { scroll-behavior: smooth; }
.rb-title { scroll-margin-top: 80px; }
#doneaza { scroll-margin-top: 0; }

.rb-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: min(100svh, 860px);
  padding: 18px var(--rb-gutter) 110px;
  text-align: center;
  overflow-x: clip;
}
.rb-final::before { content: "★"; position: absolute; color: var(--rb-gold); font-size: 1.3rem; line-height: 1; }

.rb-nav { position: relative; z-index: 5; --menu-display: var(--rb-serif); display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; }
.rb-nav__logo { display: inline-block; flex: none; }
.rb-nav__logo img { width: 124px; }
.rb-nav__links { display: flex; align-items: center; gap: 12px; font-size: .95rem; font-weight: 800; white-space: nowrap; }
.rb-nav__links a, .rb-nav__toggle { color: #fff; text-decoration: none; }
.rb-nav__links a:not(.rb-nav__cta), .rb-nav__toggle { padding: 0 0 2px; border: dashed transparent; border-width: 0 0 2px; }
.rb-nav__links a:not(.rb-nav__cta):hover, .rb-nav__toggle:hover, .rb-nav__toggle[aria-expanded="true"] { border-bottom-color: #fff; }
.rb-nav__toggle { background: none; font: inherit; cursor: pointer; }
.rb-nav__toggle::after { content: ""; display: inline-block; width: .42em; height: .42em; margin: 0 0 .2em .45em; border: solid currentColor; border-width: 0 2px 2px 0; rotate: 45deg; transition: rotate .2s; }
.rb-nav__toggle[aria-expanded="true"]::after { rotate: 225deg; margin-bottom: 0; }
.rb-nav__cta { display: inline-block; padding: .5em 1.1em; border-radius: 999px; background: #fff; color: var(--rb-magenta) !important; }

/* drifting stars and hearts; --px/--py follow the pointer, --d is how far each one travels */
.rb-float {
  position: absolute;
  left: var(--x);
  top: var(--y);
  font-size: var(--s);
  line-height: 1;
  translate: calc(var(--px, 0) * var(--d) * 1px) calc(var(--py, 0) * var(--d) * 1px);
  rotate: calc(var(--spin, 0deg) * var(--d) / 20);
  transition: translate .4s ease-out;
  animation: rb-drift 7s ease-in-out var(--t) infinite;
}
.rb-float--star { color: var(--rb-gold); }
.rb-float--petal { color: var(--rb-petal); }

.rb-hero__inner { position: relative; margin-block: auto; padding-top: 32px; }
.rb-hero__inner > * { animation: rb-rise .7s ease-out both; }
.rb-hero__inner > .rb-hero__title { animation: none; }
.rb-hero__subtitle { animation-delay: .75s; }
.rb-hero .rb-donate { animation-delay: .95s; }
.rb-hero__dates { animation-delay: 1.1s; }

.rb-hero__title {
  font-family: var(--rb-script);
  font-weight: 400;
  font-size: clamp(3.6rem, 17vw, 7rem);
  line-height: 1.15;
  cursor: default;
  scale: var(--shrink, 1);
}
.rb-letter { display: inline-block; animation: rb-pop .6s cubic-bezier(.2, 1.6, .4, 1) both; animation-delay: calc(var(--i) * 70ms + 150ms); }
.rb-letter__in { display: inline-block; }
.rb-letter__in.is-hop { animation: rb-hop .5s ease-out; }

.rb-hero__subtitle {
  font-family: var(--rb-serif);
  font-weight: 700;
  font-size: clamp(1.3rem, 5vw, 1.9rem);
  line-height: 1.25;
  margin-top: 6px;
}
.rb-hero .rb-donate { margin-top: 34px; }
.rb-hero .rb-btn { animation: rb-pulse 2.4s ease-in-out 2s infinite; }
.rb-hero__dates { margin: 26px auto 0; max-width: 26em; font-weight: 600; }

/* "read on" hint: plain text and a double chevron at the foot of the hero */
.rb-scrollhint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  translate: -50% 0;
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .6s, translate .6s;
}
.rb-scrollhint.is-gone { opacity: 0; translate: -50% 12px; pointer-events: none; }
.rb-scrollhint__icon { position: relative; width: 22px; height: 20px; animation: rb-nudge 1.6s ease-in-out infinite; }
.rb-scrollhint__icon::before, .rb-scrollhint__icon::after {
  content: "";
  position: absolute;
  left: 4px;
  width: 14px;
  height: 14px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  rotate: 45deg;
}
.rb-scrollhint__icon::before { top: -8px; }
.rb-scrollhint__icon::after { top: -1px; }

@keyframes rb-drift { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-16px) rotate(10deg); } }
@keyframes rb-pop { from { opacity: 0; transform: translateY(.5em) scale(.4) rotate(-12deg); } }
@keyframes rb-hop { 40% { transform: translateY(-.22em) rotate(-6deg); } 70% { transform: translateY(.04em) rotate(3deg); } }
@keyframes rb-rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes rb-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes rb-nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ---------- package ---------- */

/* flex instead of grid so a lone item on the last row sits in the middle */
.rb-products { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 36px; }
.rb-product { flex: 0 0 100%; }
.rb-product {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 14px 16px;
  background: var(--rb-blush);
  border-radius: 14px;
  font-weight: 600;
}
.rb-product__mark {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50% 50% 50% 0;
  background: var(--rb-petal);
  rotate: -45deg;
}
.rb-product__note {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--rb-plum);
  background: var(--rb-paper);
  padding: .25em .7em;
  border-radius: 999px;
}

.rb-photos { display: grid; gap: 14px; margin-top: 36px; }
.rb-photo { margin: 0; }
.rb-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; background: var(--rb-blush); }

/* ---------- progress ---------- */

.rb-progress { margin-top: 44px; padding: 40px 22px 32px; text-align: center; }
.rb-progress__sentence { font-family: var(--rb-serif); font-weight: 700; font-size: clamp(1.4rem, 5.5vw, 2rem); line-height: 1.5; color: var(--rb-plum); }
.rb-progress__number {
  display: inline-block;
  min-width: 1.7em;
  padding: 0 .3em;
  margin: 0 .1em;
  font-size: 1.5em;
  line-height: 1.25;
  background: var(--rb-gold);
  border-radius: 46% 54% 50% 50% / 56% 48% 52% 44%;
}
.rb-bar { height: 20px; margin-top: 24px; background: var(--rb-blush); border-radius: 999px; overflow: hidden; }
.rb-bar__fill { width: 0; height: 100%; background: var(--rb-magenta); border-radius: 999px; transition: width 1s ease-out; }
.rb-progress__updated { margin-top: 14px; font-size: .9rem; color: var(--rb-text-soft); }

/* ---------- how to donate ---------- */

.rb-steps .rb-paper::before { background: var(--rb-blush); }
.rb-section > .rb-wrap > .rb-donate { margin-top: 36px; text-align: center; }

/* donation menu */
.rb-bank { margin-top: 44px; padding: 40px 22px 30px; text-align: left; }
.rb-bank::before { background: var(--rb-blush); }
.rb-bank__title { font-family: var(--rb-serif); font-weight: 700; font-size: 1.5rem; line-height: 1.2; color: var(--rb-plum); }
.rb-bank__list { display: grid; gap: 14px; margin: 20px 0 0; }
.rb-bank__row { padding: 14px 16px; border-radius: 14px; background: var(--rb-paper); }
.rb-bank__row dt { font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--rb-plum); }
.rb-bank__row dd { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin: 4px 0 0; }
.rb-bank__value { font-weight: 700; font-size: 1.05rem; word-break: break-word; }
.rb-copy {
  flex: none;
  padding: .45em 1.1em;
  border: 2px solid var(--rb-plum);
  border-radius: 999px;
  background: transparent;
  color: var(--rb-plum);
  font: inherit;
  font-size: .85rem;
  font-weight: 800;
  cursor: pointer;
}
.rb-copy:hover { background: var(--rb-plum); color: #fff; }
.rb-bank__note { margin-top: 18px; font-size: .9rem; color: var(--rb-text-soft); }

/* ---------- timeline ---------- */

/* phones: a vertical list, line on the left */
.rb-timeline { position: relative; margin-top: 40px; }
.rb-tl__step { position: relative; display: flex; gap: 16px; padding-bottom: 22px; }
.rb-tl__step:last-of-type { padding-bottom: 0; }
.rb-tl__step::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 10px;
  bottom: -10px;
  width: 6px;
  margin-left: -3px;
  background: var(--rb-petal);
}
.rb-tl__step:last-of-type::before { display: none; }
.rb-tl__step.is-donations::before { left: 8px; width: 10px; margin-left: -5px; background: var(--rb-magenta); }
.rb-tl__dot {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--rb-plum);
  box-shadow: 0 0 0 4px var(--rb-blush);
}
.rb-tl__step.is-key .rb-tl__dot { background: var(--rb-magenta); box-shadow: 0 0 0 4px var(--rb-blush), 0 0 0 6px rgba(194, 24, 91, .25); }
.rb-tl__text { display: grid; gap: 2px; }
.rb-tl__date { font-family: var(--rb-serif); font-weight: 700; font-size: 1.35rem; line-height: 1.15; color: var(--rb-plum); }
.rb-tl__title { line-height: 1.3; color: var(--rb-text); }
.rb-tl__step.is-key .rb-tl__date { color: var(--rb-magenta); }
.rb-tl__step.is-key .rb-tl__title { font-weight: 700; }
.rb-tl__bar { display: none; }

/* ---------- sponsors ---------- */

.rb-sponsors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 36px; }
.rb-sponsor { display: grid; place-items: center; padding: 18px; background: #fff; border-radius: 14px; min-height: 96px; }
.rb-sponsor img { width: 100%; height: 60px; object-fit: contain; }

/* ---------- FAQ ---------- */

.rb-faq { margin-top: 32px; display: grid; gap: 10px; }
.rb-faq__item { background: var(--rb-paper); border-radius: 14px; }
.rb-faq__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 20px;
  border: 0;
  border-radius: 14px;
  background: none;
  font: inherit;
  font-weight: 800;
  color: var(--rb-plum);
  text-align: left;
  cursor: pointer;
}
.rb-faq__icon { position: relative; flex: none; width: 16px; height: 16px; }
.rb-faq__icon::before, .rb-faq__icon::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--rb-plum);
  transition: rotate .2s;
}
.rb-faq__icon::after { rotate: 90deg; }
.rb-faq__button[aria-expanded="true"] .rb-faq__icon::after { rotate: 0deg; }
.rb-faq__panel { padding: 0 20px 20px; }

/* ---------- final ---------- */

.rb-final { position: relative; padding: 72px var(--rb-gutter) 40px; text-align: center; }
.rb-final::before { top: 36px; right: 12%; rotate: 10deg; }
.rb-final__signature { font-family: var(--rb-script); font-size: clamp(1.4rem, 6vw, 2rem); line-height: 1.4; }
.rb-final__title { font-family: var(--rb-serif); font-weight: 700; font-size: clamp(2rem, 8vw, 3.2rem); line-height: 1.1; margin-top: 14px; }
.rb-final .rb-donate { margin-top: 34px; }
.rb-final__logo { display: inline-block; margin-top: 64px; }
.rb-final__logo img { width: 170px; }
.rb-final__footer { margin-top: 10px; font-size: .9rem; }

/* ---------- larger screens ---------- */

@media (min-width: 600px) {
  .rb-product { flex-basis: calc((100% - 10px) / 2); }
  .rb-photos, .rb-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .rb-sponsors { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 380px) {
  .rb-nav__home { display: none; }
  .rb-nav__logo img { width: 104px; }
  .rb-nav__links { gap: 10px; font-size: .88rem; }
  .rb-nav__cta { padding: .45em .8em; }
}

/* same breakpoint as the club site's menu */
@media (min-width: 821px) {
  .rb-nav__logo img { width: clamp(150px, 20vw, 210px); }
  .rb-nav__links { gap: clamp(12px, 2.5vw, 30px); font-size: 1rem; }
}

@media (min-width: 900px) {
  .rb-section { padding-block: 96px; }
  .rb-product { flex-basis: calc((100% - 20px) / 3); }
  .rb-sponsors { grid-template-columns: repeat(5, 1fr); }
  .rb-progress { padding-inline: 48px; }
}

/* laptops: one horizontal line, labels alternating above and below the dots */
@media (min-width: 900px) {
  .rb-timeline {
    display: grid;
    grid-template-columns: repeat(var(--n, 8), 1fr);
    margin-top: 56px;
  }
  .rb-timeline::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 8px;
    margin-top: -4px;
    border-radius: 999px;
    background: var(--rb-petal);
  }
  .rb-tl__step {
    display: grid;
    grid-template-rows: 112px 30px 112px;
    justify-items: center;
    padding: 0 6px;
    text-align: center;
  }
  .rb-tl__step::before, .rb-tl__step.is-donations::before { display: none; }
  .rb-tl__dot { grid-row: 2; align-self: center; z-index: 1; margin: 0; }
  .rb-tl__text { grid-row: 1; align-self: end; padding-bottom: 14px; }
  .rb-tl__step.is-below .rb-tl__text { grid-row: 3; align-self: start; padding: 14px 0 0; }
  .rb-tl__date { font-size: 1.45rem; }
  .rb-tl__title { font-size: .95rem; }
  .rb-tl__bar {
    display: block;
    position: absolute;
    top: 50%;
    height: 16px;
    margin-top: -8px;
    border-radius: 999px;
    background: var(--rb-magenta);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rotabebe *, .rotabebe *::before, .rotabebe *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
