:root {
  --paper: #f5f0e6;
  --ink: #1f1a24;
  --soft: #6f6672;
  --butter: #f6e2a4;
  --apricot: #f3c6a0;
  --blush: #efbac4;
  --lilac: #d2c5ee;
  --accent: #d6336c;
  --font: 'Bricolage Grotesque Variable', system-ui, sans-serif;
  --hand: 'Caveat Variable', 'Bradley Hand', cursive;
}

* { box-sizing: border-box; margin: 0; }

html, body { height: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.page {
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  padding: clamp(14px, 3.2vmin, 34px) clamp(16px, 4vw, 56px) clamp(10px, 2vmin, 24px);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-weight: 700;
  font-size: clamp(14px, 1.3vw + .4vh, 19px);
  letter-spacing: -.01em;
}

.brand svg { width: 1.25em; height: 1.25em; color: var(--accent); }

.join {
  position: relative;
  display: inline-grid;
  place-items: center;
  padding: .62em 1.15em;
  color: #fff;
  text-decoration: none;
  font-weight: 650;
  font-size: clamp(12px, .9vw + .3vh, 15px);
  isolation: isolate;
}

.join__bg {
  position: absolute;
  inset: 0;
  border-radius: 2em;
  background: var(--accent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 6px 14px -6px rgba(214, 51, 108, .55);
  z-index: -1;
}

.join__txt { display: inline-block; }

.head {
  margin-top: clamp(10px, 4vh, 44px);
  text-align: center;
}

.eyebrow {
  font-size: clamp(10px, .7vw + .3vh, 13px);
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--soft);
}

.title {
  margin-top: .28em;
  font-weight: 800;
  font-size: clamp(22px, min(5.2vw, 8.4vh), 76px);
  line-height: .95;
  letter-spacing: -.035em;
}

.title .w {
  display: inline-block;
  transform-origin: 0 0;
  white-space: nowrap;
}

.stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  margin-top: clamp(4px, 1.6vh, 18px);
  touch-action: pan-y;
}

.card {
  position: absolute;
  left: 0;
  top: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  will-change: transform;
}

.card:focus { outline: none; }
.card:focus-visible .card__body { outline: 2px solid var(--ink); outline-offset: 4px; }

.card__body {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: calc(var(--w, 240px) * .09);
  background: var(--c);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .55) inset,
    0 -1px 0 rgba(31, 26, 36, .06) inset,
    0 1px 2px rgba(31, 26, 36, .08),
    0 8px 18px -10px rgba(31, 26, 36, .28);
  overflow: hidden;
}

.card__lift {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 26px 44px -18px rgba(31, 26, 36, .42), 0 10px 18px -10px rgba(31, 26, 36, .22);
  opacity: 0;
}

.card__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 9% 10% 10%;
  font-size: var(--fs, 16px);
}

.card__tag {
  position: relative;
  align-self: center;
  display: inline-block;
  font-family: var(--hand);
  font-weight: 600;
  font-size: 2.15em;
  line-height: 1;
  transform: rotate(-4deg);
}

.card__line {
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -.16em;
  width: 116%;
  height: .26em;
  overflow: visible;
}

.card__line path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
}

.card__icon {
  width: 3.4em;
  height: 3.4em;
  margin: auto auto;
  overflow: visible;
}

.card__icon path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.card__title {
  font-weight: 800;
  font-size: 1.55em;
  line-height: .98;
  letter-spacing: -.03em;
}

.card__text {
  margin-top: .55em;
  font-weight: 500;
  font-size: .92em;
  line-height: 1.25;
  color: rgba(31, 26, 36, .78);
}

.card__foot {
  margin-top: .9em;
  padding-top: .65em;
  border-top: 1px solid rgba(31, 26, 36, .16);
  font-weight: 650;
  font-size: .74em;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(31, 26, 36, .62);
}

.stage.is-small .card__text,
.stage.is-small .card__foot { display: none; }
.stage.is-small .card__title { font-size: 1.75em; }
.stage.is-small .card__tag { font-size: 2.5em; }
.stage.is-small .card__icon { width: 4em; height: 4em; }

.card__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .35 0 0 0 0 .3 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  .card { will-change: auto; }
}
