@font-face { font-family: "RL Albra Display"; src: url("assets/fonts/RL-Albra-Display-Black.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/Inter-VF.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --red: #F33012; --purple: #4D3AAA; --pink: #FDABFF; --cream: #F4E0D0; --ink: #16102E; --red-text: #B81F08;
  --line: 3px; --ease: cubic-bezier(.16, 1, .3, 1);
  --display: "RL Albra Display", "Iowan Old Style", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--purple) var(--pink); }
body {
  margin: 0; min-height: 100vh; color: var(--purple);
  background-color: var(--pink);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .3 0 0 0 0 .23 0 0 0 0 .67 0 0 0 .13 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  font: 500 16px/1.45 var(--body);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--purple); color: var(--pink); }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 4px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { width: 1em; height: 1em; fill: currentColor; }

.page { max-width: 460px; margin: 0 auto; padding: 16px 16px 32px; }

.panel {
  position: relative; background: var(--cream);
  border: var(--line) solid var(--purple); border-radius: 28px;
  box-shadow: 7px 7px 0 var(--purple);
  padding: 40px 16px 22px;
}
.tab {
  position: absolute; top: -3px; left: 22px; margin: 0;
  background: var(--purple); color: var(--cream);
  font: 800 11px/1 var(--body); letter-spacing: .12em; text-transform: uppercase;
  padding: 10px 13px 11px; border-radius: 0 0 11px 11px; white-space: nowrap;
}
.tab span { color: var(--pink); margin-right: .35em; }

/* Intro: photo sticker + name */
.intro { display: grid; grid-template-columns: 100px 1fr; gap: 16px; align-items: center; }
.photo {
  position: relative; aspect-ratio: 4 / 5; rotate: -4deg;
  border: var(--line) solid var(--purple); border-radius: 18px;
  box-shadow: 4px 4px 0 var(--purple); background: var(--pink);
}
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 48% 28%; border-radius: 15px; }
.sticker-star { position: absolute; top: -14px; right: -14px; width: 36px; height: 36px; color: var(--red); rotate: 14deg; filter: drop-shadow(2px 2px 0 var(--purple)); }
h1 { margin: 0 0 8px; font: 900 31px/.95 var(--display); letter-spacing: -.01em; color: var(--purple); text-wrap: balance; }
.hook { margin: 0; font: 700 15px/1.4 var(--body); color: var(--ink); }
.hook mark { white-space: nowrap; background: var(--pink); color: var(--purple); padding: 1px 6px; border-radius: 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Featured: Residency 2.0 waitlist */
.feature {
  position: relative; display: block; margin-top: 22px;
  background: var(--red); color: var(--cream);
  border: var(--line) solid var(--purple); border-radius: 22px;
  box-shadow: 7px 7px 0 var(--purple);
  padding: 16px 16px 16px;
  rotate: -1.5deg; /* slapped on the desk at a slant, like the tilted pills on her carousels; the only card that leans */
  transition: translate .14s var(--ease), box-shadow .14s var(--ease);
}
.pill {
  position: absolute; top: -15px; right: 14px; rotate: 6deg;
  background: var(--pink); color: var(--purple);
  border: 2.5px solid var(--purple); border-radius: 999px;
  font: 800 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase;
  padding: 8px 12px; white-space: nowrap;
}
/* Stars hang off the card's bottom edge like stickers, clear of the button */
.feature-star { position: absolute; color: var(--pink); filter: drop-shadow(2px 2px 0 var(--purple)); }
.feature-star.s1 { width: 28px; height: 28px; bottom: -15px; right: 26px; rotate: -12deg; }
.feature-star.s2 { width: 16px; height: 16px; bottom: -7px; right: 62px; rotate: 18deg; }
/* Fits on one line in Albra at every phone width; if the font ever fails to load, it wraps instead of spilling out */
.feature-title { display: block; font: 900 clamp(30px, 10vw, 40px)/.92 var(--display); letter-spacing: -.015em; text-wrap: balance; }
.feature-body {
  display: block; margin: 10px 0 12px;
  background: var(--cream); color: var(--purple);
  border: 2.5px solid var(--purple); border-radius: 14px;
  padding: 10px 12px; font: 600 14px/1.42 var(--body); text-wrap: pretty;
}
.feature-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 50px;
  background: var(--purple); color: var(--cream);
  border-radius: 999px; padding: 0 20px 0 22px;
  font: 800 clamp(15px, 4.6vw, 17px)/1 var(--body); white-space: nowrap;
}
.feature-cta svg { width: 20px; height: 20px; transition: translate .2s var(--ease); }

/* Links: chunky sticker cards */
/* Every card looks the same so the red one is clearly the main thing; only the icon chip carries color */
.links { display: grid; gap: 12px; margin-top: 22px; }
.link {
  display: grid; grid-template-columns: 42px 1fr 22px; align-items: center; gap: 12px;
  min-height: 64px; padding: 10px 14px 10px 12px;
  background: var(--cream); color: var(--purple);
  border: var(--line) solid var(--purple); border-radius: 18px;
  box-shadow: 4px 4px 0 var(--purple);
  font: 800 16px/1.3 var(--body);
  transition: translate .14s var(--ease), box-shadow .14s var(--ease);
}
.link small { display: block; margin-top: 3px; font: 500 13px/1.3 var(--body); color: var(--ink); text-wrap: pretty; }
.chip { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 2.5px solid var(--purple); }
.chip svg { width: 21px; height: 21px; }
.go { width: 20px; height: 20px; transition: translate .2s var(--ease); }
.link--purple .chip { background: var(--purple); color: var(--cream); }
.link--pink .chip { background: var(--pink); color: var(--purple); }
.link--cream .chip { background: var(--red); color: var(--cream); }

/* Pressed: the sticker gets pushed into the desk */
.feature:active, .link:active { translate: 4px 4px; box-shadow: 0 0 0 var(--purple); }
@media (hover: hover) {
  .feature:hover { translate: -2px -2px; box-shadow: 9px 9px 0 var(--purple); }
  .link:hover { translate: -2px -2px; box-shadow: 6px 6px 0 var(--purple); }
  .feature:hover .feature-cta svg, .link:hover .go { translate: 4px 0; }
  .feature:active, .link:active { translate: 4px 4px; box-shadow: 0 0 0 var(--purple); }
}

/* Footer */
.foot { margin-top: 28px; }
.bar {
  display: flex; align-items: center; gap: 10px; width: fit-content; margin: 0 auto 16px;
  background: var(--purple); color: var(--cream);
  border-radius: 999px; padding: 6px 18px 6px 6px;
  font: 800 11px/1.3 var(--body); letter-spacing: .1em; text-transform: uppercase; text-wrap: balance;
}
.badge {
  width: 34px; height: 34px; border-radius: 50%; background: var(--pink); position: relative; flex: none;
}
.badge::after {
  content: ""; position: absolute; inset: 5px; background: var(--red);
  -webkit-mask: url("assets/badge-small.png") center / contain no-repeat;
  mask: url("assets/badge-small.png") center / contain no-repeat;
}
.legal { margin: 0 6px 8px; font: 500 12px/1.5 var(--body); color: var(--purple); text-align: center; text-wrap: pretty; }
.legal a { display: inline-block; padding: 6px 4px; text-decoration: underline; text-underline-offset: 3px; }

/* Entrance: only the decorations move. The buttons are there, still and tappable, from the first frame. */
@keyframes land { from { opacity: 0; translate: 0 -18px; scale: 1.05; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes spin-in { from { opacity: 0; scale: .2; rotate: -80deg; } to { opacity: 1; scale: 1; rotate: 14deg; } }
@keyframes twinkle { from { opacity: 0; scale: .2; } to { opacity: 1; scale: 1; } }
.js .photo { animation: land .6s .05s var(--ease) both; }
.js .sticker-star { animation: spin-in .7s .4s var(--ease) both; }
.js .feature-star { animation: twinkle .5s var(--ease) both; }
.js .feature-star.s1 { animation-delay: .5s; }
.js .feature-star.s2 { animation-delay: .62s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
/* Small Androids (under 360 wide): the folder tab stays on one line */
@media (max-width: 359px) {
  .tab { left: 14px; padding: 9px 9px 10px; letter-spacing: .04em; }
}
@media (min-width: 900px) {
  .page { padding-top: 64px; }
}
