a, b, body, button, div, footer, h1, h2, html, i, img, nav, p, small, span { margin: 0; padding: 0; border: 0; font: inherit; vertical-align: baseline; background: none; }
* { box-sizing: border-box; }

:root {
  --sans: 'Poppins', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --ink: #000;
  --ink-soft: #0d0d0d;
  --text-2: #707070;
  --text-3: #9e9e9e;
  --paper: #fff;
  --surface: #f5f5f5;
  --surface-2: #eaeaea;
  --border: #e0e0e0;
  --r-post: 28px;
  --r-jar: 18px;
  --shadow-jar: 0 4px 4px -4px rgba(12, 12, 13, 0.05), 0 16px 16px -8px rgba(12, 12, 13, 0.1);
  --shadow-sheet: 0 -12px 40px -16px rgba(0, 0, 0, 0.35);
}

html, body {
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1;
}
a { color: inherit; text-decoration: none; }

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding-bottom: 0.85rem;
}
@supports (-webkit-touch-callout: none) {
  .page { min-height: -webkit-fill-available; }
}

.hero-title {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: clamp(1.5em, 8vh, 5em);
}
.hero-title__icon {
  position: relative;
  width: min(15rem, 40vw);
  aspect-ratio: 605 / 312;
  height: auto;
  flex: none;
}
.is-intro .hero-title__icon,
.is-intro .hero-tagline,
.is-intro .footer__inner { opacity: 0; }
.is-intro:not(.has-intro-cover) .hero-anim { opacity: 0; }
.hero-title__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.hero-title__shine {
  position: absolute;
  inset: 0;
  overflow: hidden;
  -webkit-mask: url("../assets/madam-mark-mask.svg") center / 100% 100% no-repeat;
  mask: url("../assets/madam-mark-mask.svg") center / 100% 100% no-repeat;
  pointer-events: none;
}
.hero-title__shine::before {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: 0;
  width: 60%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 28%,
    rgba(255, 255, 255, 0.16) 50%,
    rgba(255, 255, 255, 0.04) 72%,
    transparent 100%
  );
  transform: translateX(-120%);
  will-change: transform;
  animation: logo-shimmer 7s cubic-bezier(0.4, 0, 0.2, 1) 1.2s infinite;
}
@keyframes logo-shimmer {
  0% { transform: translateX(-120%); }
  36%, 100% { transform: translateX(300%); }
}
.hero-tagline {
  font-family: 'Josefin Sans', 'Avenir Next', sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  line-height: 1.15;
  text-align: center;
  color: var(--ink);
  margin: 0.55em 1em 0;
}

.hero-anim {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0;
  transform: scale(1);
}
.scene {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2.4em;
  width: 39.5em;
  height: 31em;
}

.feed {
  position: relative;
  width: 21.5em;
  height: 31em;
  flex: none;
  clip-path: inset(-3em -3em 0 -3em);
}
.feed__viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 0.35em, #000 calc(100% - 0.35em), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 0.35em, #000 calc(100% - 0.35em), transparent 100%);
}
.feed__list {
  position: absolute;
  left: 0.75em;
  right: 0.75em;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 1.15em;
  will-change: transform;
}
.post__shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.36);
  opacity: 0;
  pointer-events: none;
}

.post { display: flex; flex-direction: column; }
.post__card {
  position: relative;
  aspect-ratio: 359 / 432;
  border-radius: var(--r-post);
  overflow: hidden;
  background: var(--surface);
  transform-origin: center;
}
.post__img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.post__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--surface);
}
/* Stands in for a video the browser refused to autoplay, so it has to sit
   exactly where that video sits. */
.video-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.post__head {
  position: absolute;
  top: 8px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.post__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  flex: none;
}
.post__who { display: flex; flex-direction: column; min-width: 0; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55); }
.post__name { font-size: 15px; font-weight: 600; letter-spacing: -0.43px; line-height: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post__time { font-size: 11px; font-weight: 400; line-height: 13px; }
.post__more {
  margin-left: auto;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.45));
}
.post__more i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; box-shadow: -6px 0 0 currentColor, 6px 0 0 currentColor; }
.post__dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 4px;
}
.post__dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.5); }
.post__dots i:first-child { width: 8px; height: 8px; background: #fff; }
.post__heart {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 96px;
  height: 96px;
  margin: -48px 0 0 -48px;
  color: #fff;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
  opacity: 0;
  pointer-events: none;
}
.post__heart svg { width: 100%; height: 100%; }

.post__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  margin-top: 8px;
  height: 28px;
}
.post__social { display: flex; align-items: center; gap: 16px; }
.act { display: flex; align-items: center; gap: 3px; color: var(--ink); }
.act__icon { position: relative; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
.act svg { width: 20px; height: 20px; display: block; }
.act__count { font-size: 12px; font-weight: 700; }
.act--jar svg { position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; }
.act--jar .jar-bold { opacity: 0; }
.act--jar.is-jarred .jar-bold { opacity: 1; }
.act--jar.is-jarred .jar-linear { opacity: 0; }
.burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.burst i { position: absolute; left: -2px; top: -2px; width: 4px; height: 4px; border-radius: 50%; background: var(--ink); }
.post__mark {
  width: 24px;
  height: 10px;
  margin-right: 8px;
  background: currentColor;
  -webkit-mask: url("../assets/madam-mark.svg") center / contain no-repeat;
  mask: url("../assets/madam-mark.svg") center / contain no-repeat;
}
.post__caption {
  padding: 5px 4px 4px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06px;
  line-height: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.post__caption b { font-weight: 600; }

.intro {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--paper);
  z-index: 200;
  will-change: left, top, width, height;
}
.intro__media { position: absolute; inset: 0; will-change: transform; }
.intro__img,
.intro__video {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.intro__img { background: var(--paper) center / cover no-repeat; }
.intro__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--paper);
}
.intro__logo {
  position: fixed;
  left: 50%;
  top: 50%;
  width: clamp(9rem, 48vw, 13rem);
  aspect-ratio: 605 / 312;
  transform: translate(-50%, -50%);
  color: #111;
  background: currentColor;
  -webkit-mask: url("../assets/madam-mark-mask.svg") center / 100% 100% no-repeat;
  mask: url("../assets/madam-mark-mask.svg") center / 100% 100% no-repeat;
  z-index: 210;
  pointer-events: none;
  will-change: transform;
}

.tap {
  position: absolute;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 4px 14px rgba(0, 0, 0, 0.18);
  pointer-events: none;
  z-index: 30;
  opacity: 0;
}
.tap--dark { background: rgba(0, 0, 0, 0.16); }

.sheet {
  position: absolute;
  left: 0.75em;
  right: 0.75em;
  bottom: 0.55em;
  height: auto;
  max-height: calc(100% - 1em);
  min-height: 0;
  background: var(--paper);
  color: var(--ink);
  border-radius: 24px;
  box-shadow: var(--shadow-sheet);
  padding: 8px 14px 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(105%);
  z-index: 20;
}
.sheet__handle { width: 36px; height: 4px; border-radius: 2px; background: var(--border); margin: 0 auto 12px; flex: none; }
.sheet__top { display: flex; align-items: center; gap: 12px; flex: none; }
.sheet__close { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); display: flex; align-items: center; justify-content: center; flex: none; }
.sheet__close svg { width: 18px; height: 18px; }
.sheet__titles { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.sheet__title { font-size: 17px; font-weight: 600; letter-spacing: -0.3px; }
.sheet__sub { font-size: 10px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet__new { display: inline-flex; align-items: center; gap: 3px; padding: 7px 10px; border-radius: 20px; background: var(--surface-2); font-size: 12px; font-weight: 600; white-space: nowrap; }
.sheet__new svg { width: 14px; height: 14px; }
.sheet__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 8px; margin-top: 12px; padding-top: 2px; flex: 1 1 auto; min-height: 0; align-content: start; overflow: hidden; }
.pick { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pick__cover { position: relative; aspect-ratio: 1; border-radius: 16px; background: var(--surface); background-size: cover; background-position: center; }
.pick__cover .jar-ico { position: absolute; left: 8px; bottom: 8px; width: 18px; height: 18px; color: #fff; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35)); }
.pick--unsorted .pick__cover .jar-ico { left: 50%; top: 50%; bottom: auto; margin: -11px 0 0 -11px; width: 22px; height: 22px; color: var(--text-2); filter: none; }
.pick__check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: scale(0.4);
  z-index: 2;
}
.pick__check svg { width: 14px; height: 14px; stroke-width: 3.4; }
.pick__name { font-size: 11px; font-weight: 500; letter-spacing: -0.15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet__done {
  margin-top: 12px;
  flex: none;
  flex-shrink: 0;
  height: 44px;
  border-radius: 22px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center;
}

.toast {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, 12px);
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  z-index: 25;
}
.toast svg { width: 14px; height: 14px; }

.jars { display: flex; flex-direction: column; gap: 0.9em; flex: none; }
.jars__head { display: flex; align-items: baseline; gap: 0.5em; padding: 0 0.15em; }
.jars__title { font-size: 1.25em; font-weight: 600; letter-spacing: -0.02em; }
.jars__meta { font-size: 0.78em; color: var(--text-2); }
.jars__grid { display: grid; grid-template-columns: repeat(2, 7.1em); gap: 1.05em 0.9em; }
.jar { position: relative; display: flex; flex-direction: column; gap: 5px; transform-origin: center; }
.jar__lid {
  position: absolute;
  left: 12px;
  right: 12px;
  top: -6px;
  height: 40px;
  border-radius: 16px 16px 0 0;
  background: #ededed;
  transform-origin: bottom center;
}
.jar__cover {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r-jar);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-jar);
}
.jar__cover span { position: absolute; inset: 0; background-size: cover; background-position: center; }
.jar__cover::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.6)); }
.jar__cover .jar-ico { position: absolute; left: 8px; top: 8px; width: 20px; height: 20px; color: #fff; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1)); z-index: 1; }
.jar__name { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jar__count { font-size: 12px; color: var(--text-2); }

.fly {
  position: absolute;
  background-size: cover;
  background-position: center;
  border-radius: var(--r-post);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.35);
  z-index: 40;
  will-change: transform;
}

.footer { width: 100%; padding: 6px 0 0; flex-shrink: 0; z-index: 100; position: relative; }
.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0 2em 0.65em;
  font-size: 0.875rem;
  font-weight: 600;
}
.footer__copy { color: var(--text-2); font-size: 0.875rem; font-weight: 500; }
.footer__nav { display: flex; align-items: center; gap: 1.75rem; }
.footer__link { font-size: 0.95rem; font-weight: 600; transition: opacity 0.3s; }
.footer__link:hover { opacity: 0.5; }
.footer__stores { display: flex; align-items: center; justify-content: flex-end; }
.stores { display: flex; gap: 8px; }
.stores img { height: 36px; display: block; transition: transform 0.2s ease; }
.stores img:hover { transform: scale(1.05); }

@media (max-width: 840px) {
  .page { padding-bottom: max(1.5rem, calc(env(safe-area-inset-bottom, 0px) + 1rem)); }
  .hero-title { width: 100%; margin-top: 3.2%; }
  .hero-title__icon { width: min(7.25rem, 34vw); }
  .hero-tagline { font-size: 0.78rem; letter-spacing: 0.16em; margin: 0.5em 1em 0; }

  .scene { flex-direction: column; gap: 0.7em; width: 24.25em; height: 42.4em; }
  .feed { width: 24.25em; height: 34.2em; }
  .feed__list { left: 0.45em; right: 0.45em; }
  .post__card { aspect-ratio: 3 / 4; }
  .jars { width: 100%; align-items: stretch; gap: 0; padding: 0 0.2em; }
  .jars__head { display: none; }
  .jars__grid { grid-template-columns: repeat(4, 1fr); gap: 0.55em 0.55em; padding-top: 0.5em; }
  .jar { gap: 4px; }
  .jar__lid { left: 11px; right: 11px; height: 34px; }
  .jar__name { font-size: 11px; font-weight: 500; opacity: 0.78; }
  .jar__count { display: none; }

  .sheet {
    left: 0.75em;
    right: 0.75em;
    bottom: 0.7em;
    max-height: calc(100% - 1.5em);
    padding: 8px 12px 10px;
  }
  .sheet__grid {
    grid-template-columns: repeat(3, minmax(0, 5.4em));
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
  }
  .sheet__done { height: 40px; margin-top: 10px; }

  .footer { padding-top: 14px; padding-bottom: 0; }
  .footer__inner { grid-template-columns: 1fr; justify-items: center; padding: 0 1em 0; gap: 0.95rem; }
  .footer__stores { order: 1; justify-content: center; }
  .footer__nav { order: 2; width: 100%; justify-content: center; gap: 1.1rem; }
  .footer__link { font-size: 0.72rem; font-weight: 500; color: var(--text-2); }
  .footer__copy { display: none; }
  .stores { gap: 10px; }
  .stores img { height: 32px; }
}

@media (max-width: 430px) {
  .scene { width: 23.4em; height: 41.2em; }
  .feed { width: 23.4em; height: 33.2em; }
}

@media (max-width: 380px) {
  .hero-title__icon { width: min(6.6rem, 36vw); }
  .scene { width: 21.8em; height: 39.4em; gap: 0.55em; }
  .feed { width: 21.8em; height: 31.8em; }
  .jars__grid { gap: 0.45em 0.4em; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title__shine::before { animation: none; }
}
